migrate sdk to new warp API (Message/Envelope); bump warp v1.24.0, evm v1.100.0, precompile v0.17.0

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
zeekay
2026-06-30 16:03:15 -07:00
co-authored by Claude Opus 4.8
parent 860abeef32
commit 8f3eb196fd
12 changed files with 225 additions and 86 deletions
+1 -1
View File
@@ -413,7 +413,7 @@ func TxToMethodWithWarpMessage(
from crypto.Address,
privateKey string,
contractAddress crypto.Address,
warpMessage *luxWarp.Message,
warpMessage *luxWarp.Envelope,
payment *big.Int,
description string,
errorSignatureToError map[string]error,
+6 -2
View File
@@ -518,7 +518,7 @@ func (client Client) WaitForEVMBootstrapped(timeout time.Duration) error {
func (client Client) TransactWithWarpMessage(
from crypto.Address,
privateKeyStr string,
warpMessage *warp.Message,
warpMessage *warp.Envelope,
contract crypto.Address,
callData []byte,
value *big.Int,
@@ -552,10 +552,14 @@ func (client Client) TransactWithWarpMessage(
if err != nil {
return nil, err
}
warpMessageBytes, err := warpMessage.Bytes()
if err != nil {
return nil, err
}
accessList := types.AccessList{
types.AccessTuple{
Address: evmWarp.ContractAddress,
StorageKeys: evmUtils.BytesToHashSlice(predicate.PackPredicate(warpMessage.Bytes())),
StorageKeys: evmUtils.BytesToHashSlice(predicate.PackPredicate(warpMessageBytes)),
},
}
msg := ethereum.CallMsg{
+3 -3
View File
@@ -1805,19 +1805,19 @@ func TestTransactWithWarpMessage(t *testing.T) {
callData := []byte{1, 2, 3, 4, 5}
value := big.NewInt(1000000000000000000) // 1 ETH
sourceChainID := ids.ID{1, 2, 3}
unsignedMessage, err := luxWarp.NewUnsignedMessage(
unsignedMessage, err := luxWarp.NewMessage(
0, // NetworkID
sourceChainID,
[]byte{4, 5, 6},
)
require.NoError(t, err)
warpMessage, err := luxWarp.NewMessage(unsignedMessage, &luxWarp.BitSetSignature{})
warpMessage, err := luxWarp.NewEnvelope(unsignedMessage, luxWarp.BitSetSignature{}, nil, nil)
require.NoError(t, err)
tests := []struct {
name string
from crypto.Address
privateKey string
warpMessage *luxWarp.Message
warpMessage *luxWarp.Envelope
contract crypto.Address
callData []byte
value *big.Int
+4 -4
View File
@@ -14,8 +14,8 @@ import (
// GetWarpMessagesFromLogs gets all unsigned warp messages contained in [logs].
func GetWarpMessagesFromLogs(
logs []*types.Log,
) []*warp.UnsignedMessage {
messages := []*warp.UnsignedMessage{}
) []*warp.Message {
messages := []*warp.Message{}
for _, txLog := range logs {
msg, err := evmWarp.UnpackSendWarpEventDataToMessage(txLog.Data)
if err == nil {
@@ -28,7 +28,7 @@ func GetWarpMessagesFromLogs(
// ExtractWarpMessageFromLogs gets first unsigned warp message contained in [logs].
func ExtractWarpMessageFromLogs(
logs []*types.Log,
) (*warp.UnsignedMessage, error) {
) (*warp.Message, error) {
messages := GetWarpMessagesFromLogs(logs)
if len(messages) == 0 {
return nil, fmt.Errorf("no warp message is present in evm logs")
@@ -39,7 +39,7 @@ func ExtractWarpMessageFromLogs(
// ExtractWarpMessageFromReceipt gets first unsigned warp message contained in [receipt].
func ExtractWarpMessageFromReceipt(
receipt *types.Receipt,
) (*warp.UnsignedMessage, error) {
) (*warp.Message, error) {
if receipt == nil {
return nil, fmt.Errorf("empty receipt was given")
}
+5 -5
View File
@@ -28,7 +28,7 @@ func TestGetWarpMessagesFromLogs(t *testing.T) {
require.Empty(t, messages)
// Test case 3: Log with valid warp message
chainID := ids.ID{}
unsignedWarpMessage, err := warp.NewUnsignedMessage(
unsignedWarpMessage, err := warp.NewMessage(
0,
chainID,
[]byte{},
@@ -45,11 +45,11 @@ func TestGetWarpMessagesFromLogs(t *testing.T) {
}
logs = []*types.Log{validLog}
messages = GetWarpMessagesFromLogs(logs)
require.Equal(t, messages, []*warp.UnsignedMessage{unsignedWarpMessage})
require.Equal(t, messages, []*warp.Message{unsignedWarpMessage})
// Test case 4: Multiple logs with mixed valid and invalid messages
logs = []*types.Log{validLog, invalidLog}
messages = GetWarpMessagesFromLogs(logs)
require.Equal(t, messages, []*warp.UnsignedMessage{unsignedWarpMessage})
require.Equal(t, messages, []*warp.Message{unsignedWarpMessage})
}
func TestExtractWarpMessageFromLogs(t *testing.T) {
@@ -71,7 +71,7 @@ func TestExtractWarpMessageFromLogs(t *testing.T) {
require.Contains(t, err.Error(), "no warp message is present in evm logs")
// Test case 3: Log with valid warp message
chainID := ids.ID{}
unsignedWarpMessage, err := warp.NewUnsignedMessage(
unsignedWarpMessage, err := warp.NewMessage(
0,
chainID,
[]byte{},
@@ -125,7 +125,7 @@ func TestExtractWarpMessageFromReceipt(t *testing.T) {
require.Contains(t, err.Error(), "no warp message is present in evm logs")
// Test case 4: Receipt with valid warp message
chainID2 := ids.ID{}
unsignedWarpMessage, err := warp.NewUnsignedMessage(
unsignedWarpMessage, err := warp.NewMessage(
0,
chainID2,
[]byte{},
+52 -26
View File
@@ -8,11 +8,11 @@ require (
// Core dependencies for working packages
github.com/btcsuite/btcd/btcutil v1.1.6
github.com/luxfi/crypto v1.19.26
github.com/luxfi/geth v1.17.11
github.com/luxfi/geth v1.17.12
github.com/luxfi/ids v1.2.15
github.com/luxfi/log v1.4.3
github.com/luxfi/version v1.0.1
github.com/luxfi/warp v1.19.3
github.com/luxfi/warp v1.24.0
github.com/manifoldco/promptui v0.9.0
github.com/spf13/cobra v1.10.2
github.com/stretchr/testify v1.11.1
@@ -37,15 +37,16 @@ require (
github.com/chelnak/ysmrr v0.6.0
github.com/cloudflare/circl v1.6.3
github.com/go-git/go-git/v5 v5.16.2
github.com/holiman/uint256 v1.3.2
github.com/k0kubun/go-ansi v0.0.0-20180517002512-3bf9e2903213
github.com/luxfi/address v1.0.1
github.com/luxfi/api v1.0.12
github.com/luxfi/api v1.0.15
github.com/luxfi/bft v0.1.5
github.com/luxfi/consensus v1.31.0
github.com/luxfi/constants v1.5.8
github.com/luxfi/database v1.19.3
github.com/luxfi/evm v0.8.49
github.com/luxfi/genesis v1.13.9
github.com/luxfi/database v1.20.4
github.com/luxfi/evm v1.100.0
github.com/luxfi/genesis v1.13.14
github.com/luxfi/go-bip32 v1.0.2
github.com/luxfi/go-bip39 v1.1.2
github.com/luxfi/keychain v1.0.2
@@ -53,11 +54,11 @@ require (
github.com/luxfi/lpm v1.9.4
github.com/luxfi/math v1.4.1
github.com/luxfi/math/safe v0.0.1
github.com/luxfi/net v0.0.4
github.com/luxfi/netrunner v1.19.2
github.com/luxfi/proto v1.3.4
github.com/luxfi/net v0.0.5
github.com/luxfi/netrunner v1.19.4
github.com/luxfi/proto v1.3.5
github.com/luxfi/rpc v1.1.0
github.com/luxfi/runtime v1.1.1
github.com/luxfi/runtime v1.1.3
github.com/luxfi/utils v1.2.0
github.com/luxfi/utxo v0.3.7
github.com/luxfi/validators v1.2.0
@@ -74,7 +75,7 @@ require (
github.com/luxfi/compress v0.0.5 // indirect
github.com/luxfi/concurrent v0.0.3 // indirect
github.com/luxfi/container v0.0.4 // indirect
github.com/luxfi/metric v1.5.8 // indirect
github.com/luxfi/metric v1.5.9 // indirect
github.com/luxfi/mock v0.1.1 // indirect
github.com/luxfi/timer v1.0.2 // indirect
)
@@ -86,6 +87,25 @@ require (
github.com/DataDog/zstd v1.5.7 // indirect
github.com/Microsoft/go-winio v0.6.2 // indirect
github.com/ProtonMail/go-crypto v1.1.6 // indirect
github.com/aws/aws-sdk-go-v2 v1.41.5 // indirect
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.5 // indirect
github.com/aws/aws-sdk-go-v2/config v1.32.13 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.19.13 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.21 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.21 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.21 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.6 // indirect
github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.18 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.7 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.10 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.21 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.18 // indirect
github.com/aws/aws-sdk-go-v2/service/s3 v1.96.2 // indirect
github.com/aws/aws-sdk-go-v2/service/signin v1.0.9 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.30.14 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.18 // indirect
github.com/aws/aws-sdk-go-v2/service/sts v1.41.10 // indirect
github.com/aws/smithy-go v1.24.2 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bits-and-blooms/bitset v1.24.4 // indirect
github.com/btcsuite/btcd/btcec/v2 v2.3.6 // indirect
@@ -103,18 +123,21 @@ require (
github.com/crate-crypto/go-eth-kzg v1.5.0 // indirect
github.com/cyphar/filepath-securejoin v0.4.1 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/deckarep/golang-set/v2 v2.8.0 // indirect
github.com/deckarep/golang-set/v2 v2.9.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.1 // indirect
github.com/emicklei/dot v1.11.0 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/ethereum/c-kzg-4844/v2 v2.1.7 // indirect
github.com/fatih/color v1.19.0 // indirect
github.com/ferranbt/fastssz v1.0.0 // indirect
github.com/fjl/gencodec v0.1.1 // indirect
github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/garslo/gogen v0.0.0-20170306192744-1d203ffc1f61 // indirect
github.com/getsentry/sentry-go v0.44.1 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.6.2 // indirect
github.com/go-ini/ini v1.67.0 // indirect
github.com/go-json-experiment/json v0.0.0-20260601182631-00ed12fed2a6 // indirect
github.com/go-logr/logr v1.4.3 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
@@ -130,8 +153,9 @@ require (
github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 // indirect
github.com/grandcat/zeroconf v1.0.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.28.0 // indirect
github.com/hanzoai/vfs v0.4.3 // indirect
github.com/hanzos3/go-sdk v1.0.2 // indirect
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
github.com/holiman/uint256 v1.3.2 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/juju/fslock v0.0.0-20160525022230-4d5c94c67b4b // indirect
@@ -148,15 +172,16 @@ require (
github.com/luxfi/crypto/ipa v1.2.4 // indirect
github.com/luxfi/filesystem v0.0.1 // indirect
github.com/luxfi/gpu v1.0.1 // indirect
github.com/luxfi/kms v1.11.3 // indirect
github.com/luxfi/kms v1.11.7 // indirect
github.com/luxfi/lattice/v7 v7.1.4 // indirect
github.com/luxfi/mdns v0.1.1 // indirect
github.com/luxfi/mlwe v0.2.1 // indirect
github.com/luxfi/node v1.27.24 // indirect
github.com/luxfi/node v1.30.9 // indirect
github.com/luxfi/pq v1.0.3 // indirect
github.com/luxfi/trace v0.1.4 // indirect
github.com/luxfi/zap v0.8.1 // indirect
github.com/luxfi/zapdb v1.10.0 // indirect
github.com/luxfi/trace v1.1.0 // indirect
github.com/luxfi/zap v0.8.11 // indirect
github.com/luxfi/zapcodec v1.0.1 // indirect
github.com/luxfi/zapdb v1.10.1 // indirect
github.com/mattn/go-colorable v0.1.15 // indirect
github.com/mattn/go-isatty v0.0.22 // indirect
github.com/mattn/go-runewidth v0.0.21 // indirect
@@ -189,19 +214,20 @@ require (
github.com/spf13/pflag v1.0.10 // indirect
github.com/supranational/blst v0.3.16 // indirect
github.com/tinylib/msgp v1.6.4 // indirect
github.com/tklauser/go-sysconf v0.3.16 // indirect
github.com/tklauser/numcpus v0.11.0 // indirect
github.com/tklauser/go-sysconf v0.4.0 // indirect
github.com/tklauser/numcpus v0.12.0 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
github.com/zeebo/blake3 v0.2.4 // indirect
go.mongodb.org/mongo-driver v1.17.9 // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
go.opentelemetry.io/otel v1.43.0 // indirect
go.opentelemetry.io/otel v1.44.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.43.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.42.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.43.0 // indirect
go.opentelemetry.io/otel/metric v1.43.0 // indirect
go.opentelemetry.io/otel/metric v1.44.0 // indirect
go.opentelemetry.io/otel/sdk v1.43.0 // indirect
go.opentelemetry.io/otel/trace v1.43.0 // indirect
go.opentelemetry.io/otel/trace v1.44.0 // indirect
go.opentelemetry.io/proto/otlp v1.10.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/sync v0.20.0 // indirect
@@ -231,14 +257,14 @@ require (
github.com/luxfi/keys v1.2.0 // indirect
github.com/luxfi/math/big v0.1.0 // indirect
github.com/luxfi/p2p v1.21.1 // indirect
github.com/luxfi/precompile v0.5.44 // indirect
github.com/luxfi/precompile v0.17.0 // indirect
github.com/luxfi/sampler v1.1.0 // indirect
github.com/luxfi/tls v1.0.3
github.com/luxfi/upgrade v1.0.1
github.com/luxfi/vm v1.2.3
github.com/luxfi/vm v1.2.5
github.com/olekukonko/errors v1.1.0 // indirect
github.com/olekukonko/ll v0.0.9 // indirect
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
github.com/pelletier/go-toml/v2 v2.3.0 // indirect
github.com/sagikazarmark/locafero v0.12.0 // indirect
github.com/spf13/viper v1.21.0 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
+112 -3
View File
@@ -22,6 +22,44 @@ github.com/apapsch/go-jsonmerge/v2 v2.0.0 h1:axGnT1gRIfimI7gJifB699GoE/oq+F2MU7D
github.com/apapsch/go-jsonmerge/v2 v2.0.0/go.mod h1:lvDnEdqiQrp0O42VQGgmlKpxL1AP2+08jFMw88y4klk=
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
github.com/aws/aws-sdk-go-v2 v1.41.5 h1:dj5kopbwUsVUVFgO4Fi5BIT3t4WyqIDjGKCangnV/yY=
github.com/aws/aws-sdk-go-v2 v1.41.5/go.mod h1:mwsPRE8ceUUpiTgF7QmQIJ7lgsKUPQOUl3o72QBrE1o=
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.5 h1:zWFmPmgw4sveAYi1mRqG+E/g0461cJ5M4bJ8/nc6d3Q=
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.5/go.mod h1:nVUlMLVV8ycXSb7mSkcNu9e3v/1TJq2RTlrPwhYWr5c=
github.com/aws/aws-sdk-go-v2/config v1.32.13 h1:5KgbxMaS2coSWRrx9TX/QtWbqzgQkOdEa3sZPhBhCSg=
github.com/aws/aws-sdk-go-v2/config v1.32.13/go.mod h1:8zz7wedqtCbw5e9Mi2doEwDyEgHcEE9YOJp6a8jdSMY=
github.com/aws/aws-sdk-go-v2/credentials v1.19.13 h1:mA59E3fokBvyEGHKFdnpNNrvaR351cqiHgRg+JzOSRI=
github.com/aws/aws-sdk-go-v2/credentials v1.19.13/go.mod h1:yoTXOQKea18nrM69wGF9jBdG4WocSZA1h38A+t/MAsk=
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.21 h1:NUS3K4BTDArQqNu2ih7yeDLaS3bmHD0YndtA6UP884g=
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.21/go.mod h1:YWNWJQNjKigKY1RHVJCuupeWDrrHjRqHm0N9rdrWzYI=
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.21 h1:Rgg6wvjjtX8bNHcvi9OnXWwcE0a2vGpbwmtICOsvcf4=
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.21/go.mod h1:A/kJFst/nm//cyqonihbdpQZwiUhhzpqTsdbhDdRF9c=
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.21 h1:PEgGVtPoB6NTpPrBgqSE5hE/o47Ij9qk/SEZFbUOe9A=
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.21/go.mod h1:p+hz+PRAYlY3zcpJhPwXlLC4C+kqn70WIHwnzAfs6ps=
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.6 h1:qYQ4pzQ2Oz6WpQ8T3HvGHnZydA72MnLuFK9tJwmrbHw=
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.6/go.mod h1:O3h0IK87yXci+kg6flUKzJnWeziQUKciKrLjcatSNcY=
github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.18 h1:eZioDaZGJ0tMM4gzmkNIO2aAoQd+je7Ug7TkvAzlmkU=
github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.18/go.mod h1:CCXwUKAJdoWr6/NcxZ+zsiPr6oH/Q5aTooRGYieAyj4=
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.7 h1:5EniKhLZe4xzL7a+fU3C2tfUN4nWIqlLesfrjkuPFTY=
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.7/go.mod h1:x0nZssQ3qZSnIcePWLvcoFisRXJzcTVvYpAAdYX8+GI=
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.10 h1:fJvQ5mIBVfKtiyx0AHY6HeWcRX5LGANLpq8SVR+Uazs=
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.10/go.mod h1:Kzm5e6OmNH8VMkgK9t+ry5jEih4Y8whqs+1hrkxim1I=
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.21 h1:c31//R3xgIJMSC8S6hEVq+38DcvUlgFY0FM6mSI5oto=
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.21/go.mod h1:r6+pf23ouCB718FUxaqzZdbpYFyDtehyZcmP5KL9FkA=
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.18 h1:/A/xDuZAVD2BpsS2fftFRo/NoEKQJ8YTnJDEHBy2Gtg=
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.18/go.mod h1:hWe9b4f+djUQGmyiGEeOnZv69dtMSgpDRIvNMvuvzvY=
github.com/aws/aws-sdk-go-v2/service/s3 v1.96.2 h1:M1A9AjcFwlxTLuf0Faj88L8Iqw0n/AJHjpZTQzMMsSc=
github.com/aws/aws-sdk-go-v2/service/s3 v1.96.2/go.mod h1:KsdTV6Q9WKUZm2mNJnUFmIoXfZux91M3sr/a4REX8e0=
github.com/aws/aws-sdk-go-v2/service/signin v1.0.9 h1:QKZH0S178gCmFEgst8hN0mCX1KxLgHBKKY/CLqwP8lg=
github.com/aws/aws-sdk-go-v2/service/signin v1.0.9/go.mod h1:7yuQJoT+OoH8aqIxw9vwF+8KpvLZ8AWmvmUWHsGQZvI=
github.com/aws/aws-sdk-go-v2/service/sso v1.30.14 h1:GcLE9ba5ehAQma6wlopUesYg/hbcOhFNWTjELkiWkh4=
github.com/aws/aws-sdk-go-v2/service/sso v1.30.14/go.mod h1:WSvS1NLr7JaPunCXqpJnWk1Bjo7IxzZXrZi1QQCkuqM=
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.18 h1:mP49nTpfKtpXLt5SLn8Uv8z6W+03jYVoOSAl/c02nog=
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.18/go.mod h1:YO8TrYtFdl5w/4vmjL8zaBSsiNp3w0L1FfKVKenZT7w=
github.com/aws/aws-sdk-go-v2/service/sts v1.41.10 h1:p8ogvvLugcR/zLBXTXrTkj0RYBUdErbMnAFFp12Lm/U=
github.com/aws/aws-sdk-go-v2/service/sts v1.41.10/go.mod h1:60dv0eZJfeVXfbT1tFJinbHrDfSJ2GZl4Q//OSSNAVw=
github.com/aws/smithy-go v1.24.2 h1:FzA3bu/nt/vDvmnkg+R8Xl46gmzEDam6mZ1hzmwXFng=
github.com/aws/smithy-go v1.24.2/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc=
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
github.com/bits-and-blooms/bitset v1.24.4 h1:95H15Og1clikBrKr/DuzMXkQzECs1M6hhoGXLwLQOZE=
@@ -116,6 +154,8 @@ github.com/dchest/siphash v1.2.3 h1:QXwFc8cFOR2dSa/gE6o/HokBMWtLUaNDVd+22aKHeEA=
github.com/dchest/siphash v1.2.3/go.mod h1:0NvQU092bT0ipiFN++/rXm69QG9tVxLAlQHIXMPAkHc=
github.com/deckarep/golang-set/v2 v2.8.0 h1:swm0rlPCmdWn9mESxKOjWk8hXSqoxOp+ZlfuyaAdFlQ=
github.com/deckarep/golang-set/v2 v2.8.0/go.mod h1:VAky9rY/yGXJOLEDv3OMci+7wtDpOF4IN+y82NBOac4=
github.com/deckarep/golang-set/v2 v2.9.0 h1:prva4eP9UysWagLyKrtn074ughi0NnkIf0A4M5yOCKI=
github.com/deckarep/golang-set/v2 v2.9.0/go.mod h1:EWknQXbs0mcFpat2QOoXV0Ee57cD+w6ZEN76BR2JVrM=
github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc=
github.com/decred/dcrd/crypto/blake256 v1.1.0 h1:zPMNGQCm0g4QTY27fOCorQW7EryeQ/U0x++OzVrdms8=
github.com/decred/dcrd/crypto/blake256 v1.1.0/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo=
@@ -143,6 +183,8 @@ github.com/fatih/color v1.19.0 h1:Zp3PiM21/9Ld6FzSKyL5c/BULoe/ONr9KlbYVOfG8+w=
github.com/fatih/color v1.19.0/go.mod h1:zNk67I0ZUT1bEGsSGyCZYZNrHuTkJJB+r6Q9VuMi0LE=
github.com/ferranbt/fastssz v1.0.0 h1:9EXXYsracSqQRBQiHeaVsG/KQeYblPf40hsQPb9Dzk8=
github.com/ferranbt/fastssz v1.0.0/go.mod h1:Ea3+oeoRGGLGm5shYAeDgu6PGUlcvQhE2fILyD9+tGg=
github.com/fjl/gencodec v0.1.1 h1:DhQY29Q6JLXB/GgMqE86NbOEuvckiYcJCbXFu02toms=
github.com/fjl/gencodec v0.1.1/go.mod h1:chDHL3wKXuBgauP8x3XNZkl5EIAR5SoCTmmmDTZRzmw=
github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
@@ -150,6 +192,8 @@ github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4
github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU=
github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k=
github.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
github.com/garslo/gogen v0.0.0-20170306192744-1d203ffc1f61 h1:IZqZOB2fydHte3kUgxrzK5E1fW7RQGeDwE8F/ZZnUYc=
github.com/garslo/gogen v0.0.0-20170306192744-1d203ffc1f61/go.mod h1:Q0X6pkwTILDlzrGEckF6HKjXe48EgsY/l7K7vhY4MW8=
github.com/gballet/go-libpcsclite v0.0.0-20250918194357-1ec6f2e601c6 h1:ko+DlyhLqUHpgrvwqs5ybydoGAqjpJQTXpAS7vUqVlM=
github.com/gballet/go-libpcsclite v0.0.0-20250918194357-1ec6f2e601c6/go.mod h1:3IVE7v4II2gS2V5amIH7F7NeYQtbbORtQtjdflgS1vk=
github.com/getsentry/sentry-go v0.44.1 h1:/cPtrA5qB7uMRrhgSn9TYtcEF36auGP3Y6+ThvD/yaI=
@@ -168,6 +212,8 @@ github.com/go-git/go-git/v5 v5.16.2 h1:fT6ZIOjE5iEnkzKyxTHK1W4HGAsPhqEqiSAssSO77
github.com/go-git/go-git/v5 v5.16.2/go.mod h1:4Ge4alE/5gPs30F2H1esi2gPd69R0C39lolkucHBOp8=
github.com/go-ini/ini v1.67.0 h1:z6ZrTEZqSWOTyH2FlglNbNgARyHG8oLW9gMELqKr06A=
github.com/go-ini/ini v1.67.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8=
github.com/go-json-experiment/json v0.0.0-20260601182631-00ed12fed2a6 h1:nxP4pPoyqOAgX8lYDFCfl3DyKeXErCvSvhcyzwGV9CE=
github.com/go-json-experiment/json v0.0.0-20260601182631-00ed12fed2a6/go.mod h1:tphK2c80bpPhMOI4v6bIc2xWywPfbqi1Z06+RcrMkDg=
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI=
github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
@@ -229,6 +275,12 @@ github.com/graph-gophers/graphql-go v1.9.0 h1:yu0ucKHLc5qGpRwLYKIWtr9bOoxovkWasu
github.com/graph-gophers/graphql-go v1.9.0/go.mod h1:23olKZ7duEvHlF/2ELEoSZaY1aNPfShjP782SOoNTyM=
github.com/grpc-ecosystem/grpc-gateway/v2 v2.28.0 h1:HWRh5R2+9EifMyIHV7ZV+MIZqgz+PMpZ14Jynv3O2Zs=
github.com/grpc-ecosystem/grpc-gateway/v2 v2.28.0/go.mod h1:JfhWUomR1baixubs02l85lZYYOm7LV6om4ceouMv45c=
github.com/hanzoai/vfs v0.4.1 h1:erXat8LUZRI+fuw+8XNpslWdAaIrkGPXNGbP3PGQUBU=
github.com/hanzoai/vfs v0.4.1/go.mod h1:8AzyntfZgjK6iiB4A+xPestHgSAGUEHMthTkhACRIjM=
github.com/hanzoai/vfs v0.4.3 h1:QN9SemEQBq9x1l/toi51/TZWctbt3i3mgUJfz5RPALY=
github.com/hanzoai/vfs v0.4.3/go.mod h1:wTHfTpJ/165yz0qfPBNFcYRg+tGw8YDwPu+xgps88zU=
github.com/hanzos3/go-sdk v1.0.2 h1:EOJQGVnwclkzIyRJyWqtqmA2muyaSsF4y+7KYC4Vhdw=
github.com/hanzos3/go-sdk v1.0.2/go.mod h1:oOp/rYVDpZIv2Mn3ZacAUiIahRNOi+V/vlGukvIcuI0=
github.com/hashicorp/go-bexpr v0.1.16 h1:D+fKoGyUzXVS0FdjOX1ws3vIck8DVtBqQ0tsusmYDR8=
github.com/hashicorp/go-bexpr v0.1.16/go.mod h1:HGKbAByHn2aJWUV47gL7+IjLK79iU3EZIbOwCXJZLoE=
github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c=
@@ -299,6 +351,10 @@ github.com/luxfi/age v1.5.0 h1:G69HbSV4R3vKEH9B0CulnRaMdSdf4RalMgP8xKmxHeI=
github.com/luxfi/age v1.5.0/go.mod h1:iAYAxgvrXxcy746+Ovh/eWWDuF9teJLNcCSSOX9RYW0=
github.com/luxfi/api v1.0.12 h1:HnLfoowXDZ2oGGB+40CHlmQ0XET5I9I828EVeYixlXc=
github.com/luxfi/api v1.0.12/go.mod h1:q3Hh3mmkvp3cnv3aqe2+gCtmmSAL/uFjuzrqGavQLNA=
github.com/luxfi/api v1.0.14 h1:WgkdNw9jNo6NXdR3z8Z7EBuiPJ9ibGJ0t1HTarH6l/E=
github.com/luxfi/api v1.0.14/go.mod h1:J4KfArXSmYBRBpYEZXOqmOt9aekL2zBiBGMmRYSqvc4=
github.com/luxfi/api v1.0.15 h1:Q5ox3Ompw/AZNMfB9wpHZosrj9C+ZldAEHKtHEotFdY=
github.com/luxfi/api v1.0.15/go.mod h1:Eer59msIXMnOlFncG0XjEGH3TZML0Dd1bUu4GtB7f4Q=
github.com/luxfi/atomic v1.0.0 h1:xUV60MuzRvXngaQ1sM0yVC2v4TRoLlUGkkH7M9PS4yw=
github.com/luxfi/atomic v1.0.0/go.mod h1:0G2mTlQ6TXWHICUHrUUPu1/qAiIyR4gSZ2tva9ci/bI=
github.com/luxfi/bft v0.1.5 h1:5xVLPkog4e5LTgaVlb9pgxA0EWE6tkrKwHPZVRz+RZw=
@@ -339,18 +395,26 @@ github.com/luxfi/database v1.18.3 h1:gg+xwhKUxXa7fDoOD8IS91E71QqoEtcDCl2nfS61Jgg
github.com/luxfi/database v1.18.3/go.mod h1:sv0pYCGKlK1aNJTICxFUDpVWCJTigoLlshHmV/1pg7c=
github.com/luxfi/database v1.19.3 h1:flss7/VSGf29l1yZvPwazbtp87X5qfnZGPCU5ObqttQ=
github.com/luxfi/database v1.19.3/go.mod h1:S/LvmfzNYWVNslcEcZwDrntqUO2ksaL8ql1nRmLUA/Q=
github.com/luxfi/database v1.20.4 h1:WOt2GIGJxf8AFpg49odMz8DZ8RFSLDrozGhZtmorN70=
github.com/luxfi/database v1.20.4/go.mod h1:S/LvmfzNYWVNslcEcZwDrntqUO2ksaL8ql1nRmLUA/Q=
github.com/luxfi/evm v0.8.49 h1:xBiGibL6v1Gm02EIHVtvGvAIGVdPUY0kgsX8MDynApI=
github.com/luxfi/evm v0.8.49/go.mod h1:fgtQq7WGR5EpaqJTdYn//EqzAZDvBH9OKkPYS7s4oMI=
github.com/luxfi/evm v1.100.0 h1:SHPdU5KqJ5H7tFOkiO4UXHtMgz2pyo0oYdbxtPt7DhE=
github.com/luxfi/evm v1.100.0/go.mod h1:KnaE9BIOZ41inZBsGBd2dmk/kdnNIKN3znPcxYes9KA=
github.com/luxfi/filesystem v0.0.1 h1:VZ6xMFKaAPBW/ddlMsDnI2G0VU1lV5rYaVcW5d+KwEY=
github.com/luxfi/filesystem v0.0.1/go.mod h1:OQVSU6XNwqrr1AI+MqkID2taHUclx7NYmmr3svgttec=
github.com/luxfi/formatting v1.0.1 h1:ZnE1rAdEUds9yAegdVdGDOBGN6hLMPOv6E03Fp8IEYo=
github.com/luxfi/formatting v1.0.1/go.mod h1:mYzNf5DJOiqSSKUPzNj5dKy4tstFbN3pZlkI5716eKc=
github.com/luxfi/genesis v1.13.9 h1:UbrqFNnygf+cWYtvHJEQ2NndfmbrIpSW5U/klv63lO4=
github.com/luxfi/genesis v1.13.9/go.mod h1:iwXcnFHY997cWUKzyP4SCBl7o493SYHQniy3QViZOAg=
github.com/luxfi/genesis v1.13.14 h1:CauxugSR1NP6Zhng+6BvBvXjTnbMwQrfGILg5a9LbR0=
github.com/luxfi/genesis v1.13.14/go.mod h1:qUa+AcTWwxv0x+CJochBsRNOMbmEBjw07HJKZLhs5c0=
github.com/luxfi/geth v1.16.98 h1:w187TtKuGStf3tm2bshuHVKBv2Frjx0lT54kQVXyNHA=
github.com/luxfi/geth v1.16.98/go.mod h1:6kEzSExdk9CPQDPXALt6P3HfQqBq7KF1Jrrv9gBpxbU=
github.com/luxfi/geth v1.17.11 h1:opyVqYiH3t4qglAdMymudxKIO09O1LWB9tKGc57o9sA=
github.com/luxfi/geth v1.17.11/go.mod h1:3vQfQJd9JC+AVBjxNXa9PYQOqpbE2dKu8E3jqhPZ3LU=
github.com/luxfi/geth v1.17.12 h1:UP/fhpcfbGPTrkOCwX3d88Oc3jVm5gTOgfjgq+lek6s=
github.com/luxfi/geth v1.17.12/go.mod h1:3vQfQJd9JC+AVBjxNXa9PYQOqpbE2dKu8E3jqhPZ3LU=
github.com/luxfi/go-bip32 v1.0.2 h1:7vFbb+Wr4Z499q2tuCLdd7wWjtn8sH+HWBlx76mhH9Y=
github.com/luxfi/go-bip32 v1.0.2/go.mod h1:bc7/LXDKAJQZ/F0Xjf5yXaTZxY9/ssLb4FC+Hxn/cDk=
github.com/luxfi/go-bip39 v1.1.2 h1:p+wLMPGs6MLQh7q0YIsmy2EhHL7LHiELEGTJko6t/Jg=
@@ -369,6 +433,7 @@ github.com/luxfi/keys v1.2.0 h1:+AriQNM7FOylAEls1XvFdlSOXDfoyc6X3ZfJRWQ2I9g=
github.com/luxfi/keys v1.2.0/go.mod h1:SjsAaxo6sGmSp9OaHXUiVCqsknO8iPspN6jMOoEAMb8=
github.com/luxfi/kms v1.11.3 h1:ru/vHNneYiWeO9nPDXMAaUrkVj5zBwtg0VUj4PLy0tQ=
github.com/luxfi/kms v1.11.3/go.mod h1:k91I3fULpJHicaWa2YESthHtHv3XwGlJauW/dcvB6WM=
github.com/luxfi/kms v1.11.8 h1:cDEEpx/zAyfRZoGIxFd97Hs9cB7k8tvLet9iLCif7XM=
github.com/luxfi/kms v1.11.8/go.mod h1:XhLUVqN4RBv6j4Bj3MNgTZmHCnm74jH7RqqK0b9xbzw=
github.com/luxfi/lattice/v7 v7.1.4 h1:hQR02M6cHTAV5+joOPi9gb9Gm+z/hKJnhJF4IlciIJs=
github.com/luxfi/lattice/v7 v7.1.4/go.mod h1:DmIQFi3mJiehVsR235l1NKYEU0JhU649OX5p7gMEW2c=
@@ -388,28 +453,40 @@ github.com/luxfi/mdns v0.1.1 h1:g2eRr9AXcziPkkcd24M+Qu9ApEpoKKjfI79QSNqv0rQ=
github.com/luxfi/mdns v0.1.1/go.mod h1:dbp5f3h3aE7CGzwbaWzBM9cwdcekhmSrWhQevgYhhNA=
github.com/luxfi/metric v1.5.8 h1:axPwfq+erOlIue7IJp5g+hMcMtVhYHja9gJAaT3+KNA=
github.com/luxfi/metric v1.5.8/go.mod h1:fO2giazkg4NDtr72JM/QXJBYebplAMeWC1JoZyNDvKw=
github.com/luxfi/metric v1.5.9 h1:UAgXMNZf5oN/XJwwuKorf8iMaCj3nyP6thHPCwkUwY4=
github.com/luxfi/metric v1.5.9/go.mod h1:ux+w3RZQCfF1zM8MO0wAWyNj/CsDlPd2mwTGshB9vY0=
github.com/luxfi/mlwe v0.2.1 h1:pRwTjNUUtzUxRIlMbUPpeh9DE2/NdqfS17hfdogazp4=
github.com/luxfi/mlwe v0.2.1/go.mod h1:DD9EHTeiyh/y0KGGeqL+q9S4n8raeGiGdaG/BQPAvT0=
github.com/luxfi/mock v0.1.1 h1:0HEtIjg1J6CWz+IUyP6rsGqNWTcmxjFnSQIhaDuARwY=
github.com/luxfi/mock v0.1.1/go.mod h1:jo35akl3Vtd8LbzDts8VJ0jmSVycrd1/eBi6g6t5hKU=
github.com/luxfi/net v0.0.4 h1:z1d6Q5c9/79jb4vF0XwBBjlF5swH5NsgfaXA+Pgojq8=
github.com/luxfi/net v0.0.4/go.mod h1:QvgHzCa767cVWtPpui0P7HW1IrA2+c++hhvaQ/t0yyw=
github.com/luxfi/netrunner v1.19.2 h1:5qHbddvEHMM3vkRo+kh5Kif4pwRxgVeujzMUPPDAsIU=
github.com/luxfi/net v0.0.5 h1:F1lD3NsIioV0wr2V5jWc4TtMyiE/Ffo1LoeblFv3TrI=
github.com/luxfi/net v0.0.5/go.mod h1:BEQR1HEVmkjii/F1R6vJrNUVE7wr55b4eMq9Iz5wjUw=
github.com/luxfi/netrunner v1.19.2 h1:f0bUsW8vN4Zw6gzQV7q+8ED+XkNeJZ0hSNY8Mj87c8A=
github.com/luxfi/netrunner v1.19.2/go.mod h1:e9oiUxS1B49UNbps275fHrKOnv98/dQi67bIkjM1NhI=
github.com/luxfi/node v1.27.24 h1:2C+CJGTdEyDwRpFCi+q/sXPnGK2kXpbhJtXXG/nQwjM=
github.com/luxfi/netrunner v1.19.4 h1:enus88pFg+lfgfGhFCLGLjLXowd3LRYwlkPYlWlB2X8=
github.com/luxfi/netrunner v1.19.4/go.mod h1:ttgmiBmvxW0Rc52QAWwY+UqPXGU/q9FNWxf3sz1bCzU=
github.com/luxfi/node v1.27.24 h1:ikA41PZro37IedMSx1rCrRI7x64yZZ/rOaVeuPFMxDc=
github.com/luxfi/node v1.27.24/go.mod h1:KuksAiPkLvn5OPg/UiZhFy57z3K2MtlV5iVevplBm2Y=
github.com/luxfi/node v1.30.9 h1:LwvxIIcdwRY1n8NNr0ol9617OF4ofevuyAGopcCzeps=
github.com/luxfi/node v1.30.9/go.mod h1:agYolxZc8PRK0KGP+gbrvaWJ3ZTKLASc+c5uwwBdK/Y=
github.com/luxfi/p2p v1.21.1 h1:gmz1JMDhzHIL3dQlhwIDvR4OlFuhNVfnWUl/ipYhAIo=
github.com/luxfi/p2p v1.21.1/go.mod h1:SsNPR5fPGWWNem9plGWhSmRqyDoysJ3kPAN0zG0g3iw=
github.com/luxfi/pq v1.0.3 h1:ksw1dmfTR0dqqNMRS7BjGcprCO2Fhc+3Iiq2/NMuONw=
github.com/luxfi/pq v1.0.3 h1:pFlQm1+5FuKTDUh2y/23bXWkN4I2Rc5iuxJypwDFFMs=
github.com/luxfi/pq v1.0.3/go.mod h1:8bppZcRElfrVt0n3nYCZW3iX1TvhvzNbdjNdK1irgIE=
github.com/luxfi/precompile v0.5.27 h1:lEF5gXY8ny5xXp8Qg8PK0Y2RQlaRNOZeDU+wP6Sj24M=
github.com/luxfi/precompile v0.5.27/go.mod h1:boKRJeoa4XEhCoylRnPI/0IGfBgm5bZnFNI9llDktWo=
github.com/luxfi/precompile v0.5.44 h1:r5g98nYTwHX0v7mOpico8Lksc/MInSHEaK/ST+QwKfc=
github.com/luxfi/precompile v0.5.44/go.mod h1:FYfq9CT8XRmlpjFAtblHAMcpnjByuoM+YpKq/FF9QVk=
github.com/luxfi/precompile v0.17.0 h1:NoD3PdkXQ9DjGguw1dIDUq+so8WkcvVwK6EcfemB6vM=
github.com/luxfi/precompile v0.17.0/go.mod h1:oheLZnxLYZNhSQf6CsyI53qKqqp/2ltlGv2svDMQio0=
github.com/luxfi/proto v1.2.1 h1:aMT07pGKqa6M2F9P3oWEJWbtx3436tO5TBuifTjorz8=
github.com/luxfi/proto v1.2.1/go.mod h1:JkzinRBQu02HsVPIGQvLVhG/xyO1ovTqoEAphOiNBso=
github.com/luxfi/proto v1.3.4 h1:dNrdQ/414Pe9otIekVUmQ9QLqemaMFK43H4N3DIbuzQ=
github.com/luxfi/proto v1.3.4/go.mod h1:S80KrTzISCktptit/pWLzk6nHgagjJS86qbQL6gHutE=
github.com/luxfi/proto v1.3.5 h1:AW11rnu5xyvB7beyowoiY9uIffLOF3+eMR/a3EkK2c8=
github.com/luxfi/proto v1.3.5/go.mod h1:ixTofGpdW1rTYr+wgTuBhAsgBv8GnWYHMLWbPNEdm7M=
github.com/luxfi/rpc v1.0.3 h1:ddI5fiwGf/L8eLO8Am9rqbNvApJseoVRmBZ8syM1Mmw=
github.com/luxfi/rpc v1.0.3/go.mod h1:rxTxYwFrGlYLLClEyj2ckT/bS7QMI6c4sTNTIDglmrQ=
github.com/luxfi/rpc v1.1.0 h1:B/PJbK399th1mHRDSufhCpVbAciZqId3LsaWhIGNWH4=
@@ -418,6 +495,8 @@ github.com/luxfi/runtime v1.1.0 h1:6TrvzAmZVCTVbR1ebntHTO3/kVBaogPUSkxdDMnrTiw=
github.com/luxfi/runtime v1.1.0/go.mod h1:Mfv2zlXqvfRFMS+/zXgG1TieyP9VnvtVzOGB437+o4Y=
github.com/luxfi/runtime v1.1.1 h1:vOMe82PL3bpSbslS7p69dKRpbr2qW2vOOAwej3UkkmU=
github.com/luxfi/runtime v1.1.1/go.mod h1:fmG6+Zxj4wSNlXwiUfDthQDY+SfxVu6S0fX2lL6VbrE=
github.com/luxfi/runtime v1.1.3 h1:6Yp/PKwQCohjXmBR9GA+gamdSAp+xA2rdN6J/74Y4aw=
github.com/luxfi/runtime v1.1.3/go.mod h1:r1uonDnxRCnPz6N6WYwaC72HW95KbFIAyChnJyxePGs=
github.com/luxfi/sampler v1.1.0 h1:u3iRDl7V06ARh0e85h3HT+aZ1saCFo2yMMsh+dCJbqk=
github.com/luxfi/sampler v1.1.0/go.mod h1:kJa53S3tC9+VSbuV3RFu68MmbCCBlr2UM39LOClQ/Hs=
github.com/luxfi/timer v1.0.2 h1:g/odi0VQJIsrzdklJUG1thHZ/sGNnbIiVGcU6LctJm0=
@@ -426,10 +505,13 @@ github.com/luxfi/tls v1.0.3 h1:rK3nxSAxrUOOSHOZnKChwV4f6UJ+cfOl8KWJXAQx/SI=
github.com/luxfi/tls v1.0.3/go.mod h1:dQqSiGE7YxXUxOwICoReUuIitBms9DYOaCeteBwmIWw=
github.com/luxfi/trace v0.1.4 h1:ttCRyXGwWuz232se+lIUqhWHBoTuvPLhHH/hLWyqtaM=
github.com/luxfi/trace v0.1.4/go.mod h1:Az7HWh+PCuPftXjQu+ssjv51nKauaFu+q2un7bmZYBA=
github.com/luxfi/trace v1.1.0 h1:eQoObwStrdQN879zfJWJeN1l0FJnfOKQHQHyEJOYjCI=
github.com/luxfi/trace v1.1.0/go.mod h1:Sgtpj8ZE5GBSi4ZyQOL3rL9enl59sSWswWWKw3BUdpk=
github.com/luxfi/units v1.0.0 h1:2aNVB+WsP1XeDob71IsO0w3jJqP3FtZdYnFsmORkJZg=
github.com/luxfi/units v1.0.0/go.mod h1:tma28v4ed1tupdS0kpSeyO+u1wWK/g1NqODPbN1YzmA=
github.com/luxfi/upgrade v1.0.1 h1:7+ygYeUf/MuLeGL7pjIu6ckQimxctCp+Swybhpy64go=
github.com/luxfi/upgrade v1.0.1/go.mod h1:Re7g9Y+SYf/LvkHFpN0vbtlVH/Rr5ZpHQdPeVFEo3Jw=
github.com/luxfi/upgrade v1.0.2 h1:c6S/kVCPBb8q7LJDgIklErLXOjTbKQbWRhyUeElTUUY=
github.com/luxfi/upgrade v1.0.2/go.mod h1:Re7g9Y+SYf/LvkHFpN0vbtlVH/Rr5ZpHQdPeVFEo3Jw=
github.com/luxfi/utils v1.1.5 h1:6q85557b7djbZ/OF6S1k5wyGddozWnsoUuhokPHQRvo=
github.com/luxfi/utils v1.1.5/go.mod h1:T2OCKT1xG9jtKR/gyJQoSkticzrE9WFQ8eohJHGu9Fg=
@@ -445,16 +527,26 @@ github.com/luxfi/vm v1.2.0 h1:jTwQRHdC9VmyRZTPSn+IqjMju7f6xlxLc6P9CEg+Y2M=
github.com/luxfi/vm v1.2.0/go.mod h1:qasVIBRerVQuvy9vFGrX3H8X8pPMPG5un/KbZSyq5YY=
github.com/luxfi/vm v1.2.3 h1:IdfB02OtDmdy/YNxaIR8DquPp5Aq0fi5QXBqGHoRkug=
github.com/luxfi/vm v1.2.3/go.mod h1:ZXmw1sKA6GL3Ma3BfYUv5Fzvx3aWu2QMtkxF3lL/3R4=
github.com/luxfi/vm v1.2.5 h1:L1etY/gh68f9tns1BtyDUpZcBVqc3Ng1mqU3n38GyLo=
github.com/luxfi/vm v1.2.5/go.mod h1:TCCg4lDcQFCjxaxfXnxPIrpRSVAyyf2ucT4A4w654Hg=
github.com/luxfi/warp v1.18.6 h1:+ly7mHz77ig4yUyLax32aAjk7tiQQ6eygzOSDNfYRbQ=
github.com/luxfi/warp v1.18.6/go.mod h1:OBN23yiGl+E4qupkPHuetBIEqsI8q5leE8WJH8soFjY=
github.com/luxfi/warp v1.19.3 h1:tU6aAniYrPiRGrht7oFSwsUmk5KBb9RDFSyZq3lJ4HY=
github.com/luxfi/warp v1.19.3/go.mod h1:kqyk7Fa5mgw1zzMLqjrZWVLuTef35CCW0gOEv10UlZk=
github.com/luxfi/warp v1.24.0 h1:jrcJNlbOiZsAEopJMy9bSaCwI5NDZ8qgp/6sNoXqepg=
github.com/luxfi/warp v1.24.0/go.mod h1:bKvTi24JHlANsl7qkWZAVr/DsMfvwy42f+Cc9x4+Sq8=
github.com/luxfi/zap v0.7.2 h1:YecWTWNE5PPJXL56sLIkzS8b23bprUwZ5lPAQuLUtTE=
github.com/luxfi/zap v0.7.2/go.mod h1:1k+nwT+JW802YzuPAuf7CxMSGr/qxvbGgGwi5k6X9Ok=
github.com/luxfi/zap v0.8.1 h1:IzYWf4T35QjsUJhoNbuhew8MDDRYmlZUVx4gKBNLjMA=
github.com/luxfi/zap v0.8.1/go.mod h1:gUoQ/V9nTLLIb4/n0bY/L2zQDYK6pDBG121rK4t8bpg=
github.com/luxfi/zap v0.8.11 h1:jT+ol9rj557MRdmnzxrVUCR3CDFaE+8OpzUsLIn92og=
github.com/luxfi/zap v0.8.11/go.mod h1:JfqII8VtVQYLLTX6obU1DP9sjGqf9L24vfug5ifh0b8=
github.com/luxfi/zapcodec v1.0.1 h1:pRxLxCOi6uihQMg8A8riDjNjefU2cXZxfRVZ+obeuL8=
github.com/luxfi/zapcodec v1.0.1/go.mod h1:txrRt2JK4O76ssTxlXIwoNVsgzyZVL0ES4mlXqGNogs=
github.com/luxfi/zapdb v1.10.0 h1:1lLHEmkyC0BucnA/zjQYsMkUVxuEo2vQkEaQGjYfuuc=
github.com/luxfi/zapdb v1.10.0/go.mod h1:Qukh3hDRD0MnxA6z+a28JTnXhN85AiLLgp6TYr4QAMc=
github.com/luxfi/zapdb v1.10.1 h1:XV3k4UTTKKxUMgbfC7woPXgUEIJd3P5nj2lGTQ88xeE=
github.com/luxfi/zapdb v1.10.1/go.mod h1:3Y0hH2A9kvjR+Bp9N2yEbtHnhXGHhqCQOLvBRkHrrM0=
github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA=
github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg=
github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE=
@@ -523,6 +615,8 @@ github.com/onsi/gomega v1.41.0 h1:OwKp4pXNgVxf6sCplzYo794OFNuoL2q2SBMU5NSWOjA=
github.com/onsi/gomega v1.41.0/go.mod h1:M/Uqpu/8qTjtzCLUA2zJHX9Iilrau25x1PdoSRbWh5A=
github.com/pelletier/go-toml/v2 v2.2.4 h1:mye9XuhQ6gvn5h28+VilKrrPoQVanw5PMw/TB0t5Ec4=
github.com/pelletier/go-toml/v2 v2.2.4/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY=
github.com/pelletier/go-toml/v2 v2.3.0 h1:k59bC/lIZREW0/iVaQR8nDHxVq8OVlIzYCOJf421CaM=
github.com/pelletier/go-toml/v2 v2.3.0/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY=
github.com/peterh/liner v1.2.2 h1:aJ4AOodmL+JxOZZEL2u9iJf8omNRpqHc/EbrK+3mAXw=
github.com/peterh/liner v1.2.2/go.mod h1:xFwJyiKIXJZUKItq5dGHZSTBRAuG/CpeNpWLyiNRNwI=
github.com/philhofer/fwd v1.2.0 h1:e6DnBTl7vGY+Gz322/ASL4Gyp1FspeMvx1RNDoToZuM=
@@ -624,11 +718,16 @@ github.com/thepudds/fzgen v0.4.3 h1:srUP/34BulQaEwPP/uHZkdjUcUjIzL7Jkf4CBVryiP8=
github.com/thepudds/fzgen v0.4.3/go.mod h1:BhhwtRhzgvLWAjjcHDJ9pEiLD2Z9hrVIFjBCHJ//zJ4=
github.com/tinylib/msgp v1.6.1 h1:ESRv8eL3u+DNHUoSAAQRE50Hm162zqAnBoGv9PzScPY=
github.com/tinylib/msgp v1.6.1/go.mod h1:RSp0LW9oSxFut3KzESt5Voq4GVWyS+PSulT77roAqEA=
github.com/tinylib/msgp v1.6.4 h1:mOwYbyYDLPj35mkA2BjjYejgJk9BuHxDdvRnb6v2ZcQ=
github.com/tinylib/msgp v1.6.4/go.mod h1:RSp0LW9oSxFut3KzESt5Voq4GVWyS+PSulT77roAqEA=
github.com/tklauser/go-sysconf v0.3.16 h1:frioLaCQSsF5Cy1jgRBrzr6t502KIIwQ0MArYICU0nA=
github.com/tklauser/go-sysconf v0.3.16/go.mod h1:/qNL9xxDhc7tx3HSRsLWNnuzbVfh3e7gh/BmM179nYI=
github.com/tklauser/go-sysconf v0.4.0 h1:7H0uAN+7RkwWRaxhYXDLqa5V3LPrJeV8wmD9dRUgPQU=
github.com/tklauser/go-sysconf v0.4.0/go.mod h1:8mTNWyog7H+MpKijp4VmKJAd2bbYQ2zuUwkYRbUArPI=
github.com/tklauser/numcpus v0.11.0 h1:nSTwhKH5e1dMNsCdVBukSZrURJRoHbSEQjdEbY+9RXw=
github.com/tklauser/numcpus v0.11.0/go.mod h1:z+LwcLq54uWZTX0u/bGobaV34u6V7KNlTZejzM6/3MQ=
github.com/tklauser/numcpus v0.12.0 h1:NR85qdvHA9pFse3x3weVZ0r0ST8R6l5RHbZrlRaqob4=
github.com/tklauser/numcpus v0.12.0/go.mod h1:ABHeXzJnr/qqwguhClkZKT1/8VABcYrsyUiUGobwWJg=
github.com/urfave/cli/v2 v2.27.7 h1:bH59vdhbjLv3LAvIu6gd0usJHgoTTPhCFib8qqOwXYU=
github.com/urfave/cli/v2 v2.27.7/go.mod h1:CyNAG/xg+iAOg0N4MPGZqVmv2rCoP267496AOXUZjA4=
github.com/wlynxg/anet v0.0.5 h1:J3VJGi1gvo0JwZ/P1/Yc/8p63SoW98B5dHkYDmpgvvU=
@@ -649,10 +748,16 @@ github.com/zeebo/blake3 v0.2.4 h1:KYQPkhpRtcqh0ssGYcKLG1JYvddkEA8QwCM/yBqhaZI=
github.com/zeebo/blake3 v0.2.4/go.mod h1:7eeQ6d2iXWRGF6npfaxl2CU+xy2Fjo2gxeyZGCRUjcE=
github.com/zeebo/pcg v1.0.1 h1:lyqfGeWiv4ahac6ttHs+I5hwtH/+1mrhlCtVNQM2kHo=
github.com/zeebo/pcg v1.0.1/go.mod h1:09F0S9iiKrwn9rlI5yjLkmrug154/YRW6KnnXVDM/l4=
go.mongodb.org/mongo-driver v1.17.4 h1:jUorfmVzljjr0FLzYQsGP8cgN/qzzxlY9Vh0C9KFXVw=
go.mongodb.org/mongo-driver v1.17.4/go.mod h1:Hy04i7O2kC4RS06ZrhPRqj/u4DTYkFDAAccj+rVKqgQ=
go.mongodb.org/mongo-driver v1.17.9 h1:IexDdCuuNJ3BHrELgBlyaH9p60JXAvdzWR128q+U5tU=
go.mongodb.org/mongo-driver v1.17.9/go.mod h1:LlOhpH5NUEfhxcAwG0UEkMqwYcc4JU18gtCdGudk/tQ=
go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=
go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y=
go.opentelemetry.io/otel v1.43.0 h1:mYIM03dnh5zfN7HautFE4ieIig9amkNANT+xcVxAj9I=
go.opentelemetry.io/otel v1.43.0/go.mod h1:JuG+u74mvjvcm8vj8pI5XiHy1zDeoCS2LB1spIq7Ay0=
go.opentelemetry.io/otel v1.44.0 h1:JjwHmHpA4iZ3wBxluu2fbbE7j4kqlE8jXyAyPXH7HqU=
go.opentelemetry.io/otel v1.44.0/go.mod h1:BMgjTHL9WPRlRjL2oZCBTL4whCGtXch2H4BhOPIAyYc=
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.43.0 h1:88Y4s2C8oTui1LGM6bTWkw0ICGcOLCAI5l6zsD1j20k=
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.43.0/go.mod h1:Vl1/iaggsuRlrHf/hfPJPvVag77kKyvrLeD10kpMl+A=
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.42.0 h1:zWWrB1U6nqhS/k6zYB74CjRpuiitRtLLi68VcgmOEto=
@@ -661,12 +766,16 @@ go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.43.0 h1:3iZJK
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.43.0/go.mod h1:/G+nUPfhq2e+qiXMGxMwumDrP5jtzU+mWN7/sjT2rak=
go.opentelemetry.io/otel/metric v1.43.0 h1:d7638QeInOnuwOONPp4JAOGfbCEpYb+K6DVWvdxGzgM=
go.opentelemetry.io/otel/metric v1.43.0/go.mod h1:RDnPtIxvqlgO8GRW18W6Z/4P462ldprJtfxHxyKd2PY=
go.opentelemetry.io/otel/metric v1.44.0 h1:1w0gILTcHdr3YI+ixLyjemwrVnsMURbTZFrSYCdDdmc=
go.opentelemetry.io/otel/metric v1.44.0/go.mod h1:8O7hanEPBNgEMmybD3s2VBKcgWOCsA6tzHBPODAiquo=
go.opentelemetry.io/otel/sdk v1.43.0 h1:pi5mE86i5rTeLXqoF/hhiBtUNcrAGHLKQdhg4h4V9Dg=
go.opentelemetry.io/otel/sdk v1.43.0/go.mod h1:P+IkVU3iWukmiit/Yf9AWvpyRDlUeBaRg6Y+C58QHzg=
go.opentelemetry.io/otel/sdk/metric v1.43.0 h1:S88dyqXjJkuBNLeMcVPRFXpRw2fuwdvfCGLEo89fDkw=
go.opentelemetry.io/otel/sdk/metric v1.43.0/go.mod h1:C/RJtwSEJ5hzTiUz5pXF1kILHStzb9zFlIEe85bhj6A=
go.opentelemetry.io/otel/trace v1.43.0 h1:BkNrHpup+4k4w+ZZ86CZoHHEkohws8AY+WTX09nk+3A=
go.opentelemetry.io/otel/trace v1.43.0/go.mod h1:/QJhyVBUUswCphDVxq+8mld+AvhXZLhe+8WVFxiFff0=
go.opentelemetry.io/otel/trace v1.44.0 h1:jxF5CsGYCe74MCRx2X4g7WsY/VBKRqqpNvXlX/6gtIk=
go.opentelemetry.io/otel/trace v1.44.0/go.mod h1:oLl1jrMQAVo6v3GAggN+1VH9VIz9iUSvW53sW1Q8PIE=
go.opentelemetry.io/proto/otlp v1.10.0 h1:IQRWgT5srOCYfiWnpqUYz9CVmbO8bFmKcwYxpuCSL2g=
go.opentelemetry.io/proto/otlp v1.10.0/go.mod h1:/CV4QoCR/S9yaPj8utp3lvQPoqMtxXdzn7ozvvozVqk=
go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE=
+12 -12
View File
@@ -211,9 +211,9 @@ func GetRegisterL1ValidatorMessage(
weight uint64,
alreadyInitialized bool,
initiateTxHash string,
registerChainValidatorUnsignedMessage *warp.UnsignedMessage,
registerChainValidatorUnsignedMessage *warp.Message,
signatureAggregatorEndpoint string,
) (*warp.Message, ids.ID, error) {
) (*warp.Envelope, ids.ID, error) {
var (
validationID ids.ID
err error
@@ -268,7 +268,7 @@ func GetRegisterL1ValidatorMessage(
if err != nil {
return nil, ids.Empty, err
}
registerChainValidatorUnsignedMessage, err = warp.NewUnsignedMessage(
registerChainValidatorUnsignedMessage, err = warp.NewMessage(
network.ID(),
blockchainID,
registerChainValidatorAddressedCall.Bytes(),
@@ -303,7 +303,7 @@ func GetRegisterL1ValidatorMessage(
if err != nil {
return nil, ids.Empty, fmt.Errorf("failed to convert warp message: %w", err)
}
return signedMessage.(*warp.Message), validationID, nil
return signedMessage.(*warp.Envelope), validationID, nil
}
func GetPChainL1ValidatorRegistrationMessage(
@@ -316,7 +316,7 @@ func GetPChainL1ValidatorRegistrationMessage(
validationID ids.ID,
registered bool,
signatureAggregatorEndpoint string,
) (*warp.Message, error) {
) (*warp.Envelope, error) {
addressedCallPayload, err := warpMessage.NewL1ValidatorRegistration(validationID, registered)
if err != nil {
return nil, err
@@ -328,7 +328,7 @@ func GetPChainL1ValidatorRegistrationMessage(
if err != nil {
return nil, err
}
chainConversionUnsignedMessage, err := warp.NewUnsignedMessage(
chainConversionUnsignedMessage, err := warp.NewMessage(
network.ID(),
constants.PlatformChainID,
chainValidatorRegistrationAddressedCall.Bytes(),
@@ -353,7 +353,7 @@ func GetPChainL1ValidatorRegistrationMessage(
if err != nil {
return nil, err
}
return nodeWarpMsg.(*warp.Message), nil
return nodeWarpMsg.(*warp.Envelope), nil
}
// CompleteValidatorRegistration is the last step of flow for adding a new validator.
@@ -363,7 +363,7 @@ func CompleteValidatorRegistration(
generateRawTxOnly bool,
ownerAddress crypto.Address,
privateKey string, // not need to be owner atm
l1ValidatorRegistrationSignedMessage *warp.Message,
l1ValidatorRegistrationSignedMessage *warp.Envelope,
) (*types.Transaction, *types.Receipt, error) {
return contract.TxToMethodWithWarpMessage(
rpcURL,
@@ -404,7 +404,7 @@ func InitValidatorRegistration(
useACP99 bool,
initiateTxHash string,
signatureAggregatorEndpoint string,
) (*warp.Message, ids.ID, *types.Transaction, error) {
) (*warp.Envelope, ids.ID, *types.Transaction, error) {
chainID, err := contract.GetNetworkID(
app,
network,
@@ -508,7 +508,7 @@ func InitValidatorRegistration(
ux.Logger.PrintToUser("%s", luxlog.LightBlue.Wrap("The validator registration was already initialized. Proceeding to the next step"))
}
var unsignedMessage *warp.UnsignedMessage
var unsignedMessage *warp.Message
if receipt != nil {
unsignedMessage, err = evm.ExtractWarpMessageFromReceipt(receipt)
if err != nil {
@@ -613,7 +613,7 @@ func SearchForRegisterL1ValidatorMessage(
ctx context.Context,
rpcURL string,
validationID ids.ID,
) (*warp.UnsignedMessage, error) {
) (*warp.Message, error) {
client, err := evm.GetClient(rpcURL)
if err != nil {
return nil, err
@@ -713,7 +713,7 @@ func GetRegisterL1ValidatorMessageFromTx(
rpcURL string,
validationID ids.ID,
txHash string,
) (*warp.UnsignedMessage, error) {
) (*warp.Message, error) {
client, err := evm.GetClient(rpcURL)
if err != nil {
return nil, err
+9 -9
View File
@@ -37,7 +37,7 @@ func InitializeValidatorRemoval(
privateKey string,
validationID ids.ID,
isPoS bool,
uptimeProofSignedMessage *warp.Message,
uptimeProofSignedMessage *warp.Envelope,
force bool,
useACP99 bool,
) (*types.Transaction, *types.Receipt, error) {
@@ -149,7 +149,7 @@ func GetUptimeProofMessage(
validationID ids.ID,
uptime uint64,
signatureAggregatorEndpoint string,
) (*warp.Message, error) {
) (*warp.Envelope, error) {
uptimePayload, err := messages.NewValidatorUptime(validationID, uptime)
if err != nil {
return nil, err
@@ -158,7 +158,7 @@ func GetUptimeProofMessage(
if err != nil {
return nil, err
}
uptimeProofUnsignedMessage, err := warp.NewUnsignedMessage(
uptimeProofUnsignedMessage, err := warp.NewMessage(
network.ID(),
blockchainID,
addressedCall.Bytes(),
@@ -189,7 +189,7 @@ func InitValidatorRemoval(
useACP99 bool,
initiateTxHash string,
signatureAggregatorEndpoint string,
) (*warp.Message, ids.ID, *types.Transaction, error) {
) (*warp.Envelope, ids.ID, *types.Transaction, error) {
chainID, err := contract.GetNetworkID(
app,
network,
@@ -220,7 +220,7 @@ func InitValidatorRemoval(
return nil, ids.Empty, nil, fmt.Errorf("node %s is not a L1 validator", nodeID)
}
var unsignedMessage *warp.UnsignedMessage
var unsignedMessage *warp.Message
if initiateTxHash != "" {
unsignedMessage, err = GetL1ValidatorWeightMessageFromTx(
rpcURL,
@@ -235,7 +235,7 @@ func InitValidatorRemoval(
var receipt *types.Receipt
if unsignedMessage == nil {
signedUptimeProof := &warp.Message{}
signedUptimeProof := &warp.Envelope{}
if isPoS {
if uptimeSec == 0 {
uptimeSec, err = GetL1ValidatorUptimeSeconds(rpcURL, nodeID)
@@ -302,9 +302,9 @@ func InitValidatorRemoval(
}
// Convert node warp message back to standalone for GetL1ValidatorWeightMessage
var standaloneUnsignedMsg *warp.UnsignedMessage
var standaloneUnsignedMsg *warp.Message
if unsignedMessage != nil {
standaloneUnsignedMsg, err = warp.NewUnsignedMessage(
standaloneUnsignedMsg, err = warp.NewMessage(
unsignedMessage.NetworkID,
unsignedMessage.SourceChainID,
unsignedMessage.Payload,
@@ -335,7 +335,7 @@ func CompleteValidatorRemoval(
generateRawTxOnly bool,
ownerAddress crypto.Address,
privateKey string, // not need to be owner atm
chainValidatorRegistrationSignedMessage *warp.Message,
chainValidatorRegistrationSignedMessage *warp.Envelope,
useACP99 bool,
) (*types.Transaction, *types.Receipt, error) {
if useACP99 {
+3 -3
View File
@@ -201,7 +201,7 @@ func GetPChainChainToL1ConversionUnsignedMessage(
managerBlockchainID ids.ID,
managerAddress crypto.Address,
convertChainValidators []*txs.ConvertNetworkToL1Validator,
) (*warp.UnsignedMessage, error) {
) (*warp.Message, error) {
validators := []warpMessage.ChainToL1ConversionValidatorData{}
for _, convertChainValidator := range convertChainValidators {
validators = append(validators, warpMessage.ChainToL1ConversionValidatorData{
@@ -232,7 +232,7 @@ func GetPChainChainToL1ConversionUnsignedMessage(
if err != nil {
return nil, err
}
chainConversionUnsignedMessage, err := warp.NewUnsignedMessage(
chainConversionUnsignedMessage, err := warp.NewMessage(
net.ID(),
constants.PlatformChainID,
chainConversionAddressedCall.Bytes(),
@@ -254,7 +254,7 @@ func InitializeValidatorsSet(
chainID ids.ID,
managerBlockchainID ids.ID,
convertChainValidators []*txs.ConvertNetworkToL1Validator,
chainConversionSignedMessage *warp.Message,
chainConversionSignedMessage *warp.Envelope,
) (*types.Transaction, *types.Receipt, error) {
type InitialValidator struct {
NodeID []byte
+16 -16
View File
@@ -70,7 +70,7 @@ func InitValidatorWeightChange(
weight uint64,
initiateTxHash string,
signatureAggregatorEndpoint string,
) (*warp.Message, ids.ID, *types.Transaction, error) {
) (*warp.Envelope, ids.ID, *types.Transaction, error) {
chainID, err := contract.GetNetworkID(
app,
network,
@@ -101,7 +101,7 @@ func InitValidatorWeightChange(
return nil, ids.Empty, nil, fmt.Errorf("node %s is not a L1 validator", nodeID)
}
var unsignedMessage *warp.UnsignedMessage
var unsignedMessage *warp.Message
if initiateTxHash != "" {
unsignedMessage, err = GetL1ValidatorWeightMessageFromTx(
rpcURL,
@@ -152,7 +152,7 @@ func InitValidatorWeightChange(
}
// Convert node warp to standalone warp
if nodeWarpMsg != nil {
unsignedMessage, err = warp.NewUnsignedMessage(
unsignedMessage, err = warp.NewMessage(
nodeWarpMsg.NetworkID,
nodeWarpMsg.SourceChainID,
nodeWarpMsg.Payload,
@@ -192,7 +192,7 @@ func CompleteValidatorWeightChange(
generateRawTxOnly bool,
ownerAddress crypto.Address,
privateKey string, // not need to be owner atm
pchainL1ValidatorRegistrationSignedMessage *warp.Message,
pchainL1ValidatorRegistrationSignedMessage *warp.Envelope,
) (*types.Transaction, *types.Receipt, error) {
// No conversion needed - already using the right warp type
nodeWarpMsg := pchainL1ValidatorRegistrationSignedMessage
@@ -224,7 +224,7 @@ func FinishValidatorWeightChange(
validationID ids.ID,
aggregatorLogger luxlog.Logger,
validatorManagerAddressStr string,
l1ValidatorRegistrationSignedMessage *warp.Message,
l1ValidatorRegistrationSignedMessage *warp.Envelope,
weight uint64,
signatureAggregatorEndpoint string,
) (*types.Transaction, error) {
@@ -290,7 +290,7 @@ func GetL1ValidatorWeightMessage(
network models.Network,
aggregatorLogger luxlog.Logger,
// message is given
unsignedMessage *warp.UnsignedMessage,
unsignedMessage *warp.Message,
chainID ids.ID,
blockchainID ids.ID,
managerAddress crypto.Address,
@@ -298,7 +298,7 @@ func GetL1ValidatorWeightMessage(
nonce uint64,
weight uint64,
signatureAggregatorEndpoint string,
) (*warp.Message, error) {
) (*warp.Envelope, error) {
if unsignedMessage == nil {
addressedCallPayload, err := localWarpMessage.NewL1ValidatorWeight(
validationID,
@@ -315,7 +315,7 @@ func GetL1ValidatorWeightMessage(
if err != nil {
return nil, err
}
unsignedMessage, err = warp.NewUnsignedMessage(
unsignedMessage, err = warp.NewMessage(
network.ID(),
blockchainID,
addressedCall.Bytes(),
@@ -334,15 +334,15 @@ func GetPChainL1ValidatorWeightMessage(
aggregatorQuorumPercentage uint64,
chainID ids.ID,
// message is given
l1SignedMessage *warp.Message,
l1SignedMessage *warp.Envelope,
// needed to generate full message contents
validationID ids.ID,
nonce uint64,
weight uint64,
signatureAggregatorEndpoint string,
) (*warp.Message, error) {
) (*warp.Envelope, error) {
if l1SignedMessage != nil {
addressedCall, err := warpPayload.ParseAddressedCall(l1SignedMessage.UnsignedMessage.Payload)
addressedCall, err := warpPayload.ParseAddressedCall(l1SignedMessage.Message.Payload)
if err != nil {
return nil, err
}
@@ -369,7 +369,7 @@ func GetPChainL1ValidatorWeightMessage(
if err != nil {
return nil, err
}
unsignedMessage, err := warp.NewUnsignedMessage(
unsignedMessage, err := warp.NewMessage(
network.ID(),
constants.PlatformChainID,
addressedCall.Bytes(),
@@ -386,7 +386,7 @@ func GetL1ValidatorWeightMessageFromTx(
validationID ids.ID,
weight uint64,
txHash string,
) (*warp.UnsignedMessage, error) {
) (*warp.Message, error) {
client, err := evm.GetClient(rpcURL)
if err != nil {
return nil, err
@@ -404,7 +404,7 @@ func GetL1ValidatorWeightMessageFromTx(
if err == nil {
if weightMsg.ValidationID == validationID && weightMsg.Weight == weight {
// Convert node warp message to standalone
standaloneMsg, err := warp.NewUnsignedMessage(
standaloneMsg, err := warp.NewMessage(
msg.NetworkID,
msg.SourceChainID,
msg.Payload,
@@ -425,7 +425,7 @@ func SearchForL1ValidatorWeightMessage(
rpcURL string,
validationID ids.ID,
weight uint64,
) (*warp.UnsignedMessage, error) {
) (*warp.Message, error) {
maxBlocksToSearch := int64(5000000)
client, err := evm.GetClient(rpcURL)
if err != nil {
@@ -466,7 +466,7 @@ func SearchForL1ValidatorWeightMessage(
if err == nil {
if weightMsg.ValidationID == validationID && weightMsg.Weight == weight {
// Convert node warp message to standalone
standaloneMsg, err := warp.NewUnsignedMessage(
standaloneMsg, err := warp.NewMessage(
msg.NetworkID,
msg.SourceChainID,
msg.Payload,
+2 -2
View File
@@ -40,7 +40,7 @@ type AggregateSignatureResponse struct {
// SignMessage sends a request to the signature aggregator to sign a message.
// It returns the signed warp message or an error if the operation fails.
func SignMessage(logger luxlog.Logger, signatureAggregatorEndpoint string, message, justification, signingChainID string, quorumPercentage uint64) (*warp.Message, error) {
func SignMessage(logger luxlog.Logger, signatureAggregatorEndpoint string, message, justification, signingChainID string, quorumPercentage uint64) (*warp.Envelope, error) {
if quorumPercentage == 0 {
quorumPercentage = DefaultQuorumPercentage
} else if quorumPercentage > 100 {
@@ -147,7 +147,7 @@ func SignMessage(logger luxlog.Logger, signatureAggregatorEndpoint string, messa
}
// Parse the signed message
signedMessage, err := warp.ParseMessage(signedMessageBytes)
signedMessage, err := warp.ParseEnvelope(signedMessageBytes)
if err != nil {
lastErr = fmt.Errorf("error parsing signed message: %w", err)
logger.Error("Error parsing signed message",