From f20f69ed44e46febe4dd62f5d2d56706711a0399 Mon Sep 17 00:00:00 2001 From: faisal-link Date: Thu, 4 Jun 2026 20:16:57 +0400 Subject: [PATCH 01/15] initial draft --- chain/mcms/adapters/chain_access.go | 14 +++++ chain/sui/client.go | 56 +++++++++++++++++++ chain/sui/provider/ctf_provider.go | 11 +++- chain/sui/provider/rpc_provider.go | 13 ++++- chain/sui/sui_chain.go | 8 ++- .../catalog/remote/testcontainer_setup.go | 12 ++++ go.mod | 9 ++- go.sum | 8 +-- 8 files changed, 118 insertions(+), 13 deletions(-) create mode 100644 chain/sui/client.go diff --git a/chain/mcms/adapters/chain_access.go b/chain/mcms/adapters/chain_access.go index ac1b3aa58..963770d61 100644 --- a/chain/mcms/adapters/chain_access.go +++ b/chain/mcms/adapters/chain_access.go @@ -2,10 +2,16 @@ package adapters import ( aptoslib "github.com/aptos-labs/aptos-go-sdk" +<<<<<<< HEAD "github.com/block-vision/sui-go-sdk/sui" "github.com/ethereum/go-ethereum/accounts/abi/bind" sol "github.com/gagliardetto/solana-go" +||||||| parent of 8e78f6e (update sui client) + "github.com/block-vision/sui-go-sdk/sui" +======= +>>>>>>> 8e78f6e (update sui client) solrpc "github.com/gagliardetto/solana-go/rpc" + cslclient "github.com/smartcontractkit/chainlink-sui/relayer/client" "github.com/smartcontractkit/mcms/sdk/evm" mcmssui "github.com/smartcontractkit/mcms/sdk/sui" "github.com/stellar/go-stellar-sdk/clients/rpcclient" @@ -93,6 +99,7 @@ func (a *ChainAccessAdapter) AptosClient(selector uint64) (aptoslib.AptosRpcClie return ch.Client, true } +<<<<<<< HEAD // AptosSigner returns the Aptos signer for the given selector. func (a *ChainAccessAdapter) AptosSigner(selector uint64) (aptoslib.TransactionSigner, bool) { ch, ok := a.inner.AptosChains()[selector] @@ -101,6 +108,13 @@ func (a *ChainAccessAdapter) AptosSigner(selector uint64) (aptoslib.TransactionS // SuiClient returns the Sui API client for the given selector. func (a *ChainAccessAdapter) SuiClient(selector uint64) (sui.ISuiAPI, bool) { +||||||| parent of 8e78f6e (update sui client) +// SuiClient returns the Sui API client and signer for the given selector. +func (a *ChainAccessAdapter) SuiClient(selector uint64) (sui.ISuiAPI, mcmssui.SuiSigner, bool) { +======= +// SuiClient returns the Sui API client and signer for the given selector. +func (a *ChainAccessAdapter) SuiClient(selector uint64) (cslclient.BindingsClient, mcmssui.SuiSigner, bool) { +>>>>>>> 8e78f6e (update sui client) ch, ok := a.inner.SuiChains()[selector] if !ok { return nil, false diff --git a/chain/sui/client.go b/chain/sui/client.go new file mode 100644 index 000000000..35280c9c9 --- /dev/null +++ b/chain/sui/client.go @@ -0,0 +1,56 @@ +package sui + +import ( + "fmt" + "net/url" + "strings" + "time" + + "github.com/smartcontractkit/chainlink-common/pkg/logger" + cslclient "github.com/smartcontractkit/chainlink-sui/relayer/client" +) + +const defaultGrpcToken = "test" + +// NewPTBClientFromNodeURL creates a gRPC-backed Sui PTB client from an HTTP RPC URL. +func NewPTBClientFromNodeURL(log logger.Logger, nodeURL string, grpcToken string) (cslclient.SuiPTBClient, error) { + grpcTarget, err := grpcTargetFromNodeURL(nodeURL) + if err != nil { + return nil, err + } + if grpcToken == "" { + grpcToken = defaultGrpcToken + } + + return cslclient.NewPTBClient(log, cslclient.PTBClientConfig{ + GrpcTarget: grpcTarget, + GrpcToken: grpcToken, + TransactionTimeout: 30 * time.Second, + MaxConcurrentRequests: 50, + DefaultRequestType: cslclient.WaitForEffectsCert, + }) +} + +func grpcTargetFromNodeURL(nodeURL string) (string, error) { + u, err := url.Parse(nodeURL) + if err != nil { + return "", fmt.Errorf("parse node URL %q: %w", nodeURL, err) + } + host := u.Hostname() + port := u.Port() + if host == "" { + return "", fmt.Errorf("node URL %q has no host", nodeURL) + } + if port == "" { + switch u.Scheme { + case "https": + port = "443" + default: + port = "9000" + } + } + if strings.Contains(host, ":") && !strings.HasPrefix(host, "[") { + return fmt.Sprintf("[%s]:%s", host, port), nil + } + return fmt.Sprintf("%s:%s", host, port), nil +} diff --git a/chain/sui/provider/ctf_provider.go b/chain/sui/provider/ctf_provider.go index 78d00b0f1..1464959dc 100644 --- a/chain/sui/provider/ctf_provider.go +++ b/chain/sui/provider/ctf_provider.go @@ -12,8 +12,9 @@ import ( "github.com/avast/retry-go/v4" "github.com/block-vision/sui-go-sdk/models" - sui_sdk "github.com/block-vision/sui-go-sdk/sui" "github.com/go-resty/resty/v2" + "github.com/smartcontractkit/chainlink-common/pkg/logger" + cslclient "github.com/smartcontractkit/chainlink-sui/relayer/client" chainsel "github.com/smartcontractkit/chain-selectors" "github.com/smartcontractkit/chainlink-testing-framework/framework" "github.com/smartcontractkit/chainlink-testing-framework/framework/components/blockchain" @@ -148,7 +149,7 @@ func (p *CTFChainProvider) BlockChain() chain.BlockChain { // It returns the URL of the Sui node and the client to interact with it. func (p *CTFChainProvider) startContainer( chainID string, account sui.SuiSigner, -) (string, string, sui_sdk.ISuiAPI) { +) (string, string, cslclient.SuiPTBClient) { var ( attempts = uint(10) url string @@ -223,7 +224,11 @@ func (p *CTFChainProvider) startContainer( url = result.url fauceturl = fmt.Sprintf("http://%s:%s", "127.0.0.1", result.faucetPort) - client := sui_sdk.NewSuiClient(url) + log, logErr := logger.New() + require.NoError(p.t, logErr, "Failed to create logger") + + client, clientErr := sui.NewPTBClientFromNodeURL(log, url, "") + require.NoError(p.t, clientErr, "Failed to create Sui PTB client") var ready bool for i := range 30 { diff --git a/chain/sui/provider/rpc_provider.go b/chain/sui/provider/rpc_provider.go index 93b3d7e26..ea32ee64e 100644 --- a/chain/sui/provider/rpc_provider.go +++ b/chain/sui/provider/rpc_provider.go @@ -5,9 +5,8 @@ import ( "errors" "fmt" - suisdk "github.com/block-vision/sui-go-sdk/sui" - chainsel "github.com/smartcontractkit/chain-selectors" + "github.com/smartcontractkit/chainlink-common/pkg/logger" "github.com/smartcontractkit/chainlink-deployments-framework/chain" "github.com/smartcontractkit/chainlink-deployments-framework/chain/sui" @@ -82,7 +81,15 @@ func (p *RPCChainProvider) Initialize(_ context.Context) (chain.BlockChain, erro return nil, fmt.Errorf("failed to get chain ID from selector %d: %w", p.selector, err) } - client := suisdk.NewSuiClient(p.config.RPCURL) + log, err := logger.New() + if err != nil { + return nil, fmt.Errorf("failed to create logger: %w", err) + } + + client, err := sui.NewPTBClientFromNodeURL(log, p.config.RPCURL, "") + if err != nil { + return nil, fmt.Errorf("failed to create Sui PTB client: %w", err) + } p.chain = &sui.Chain{ ChainMetadata: sui.ChainMetadata{ diff --git a/chain/sui/sui_chain.go b/chain/sui/sui_chain.go index b674d32d3..c1dcfc45e 100644 --- a/chain/sui/sui_chain.go +++ b/chain/sui/sui_chain.go @@ -1,11 +1,17 @@ package sui import ( +<<<<<<< HEAD "crypto/ed25519" "crypto/rand" "fmt" "github.com/block-vision/sui-go-sdk/sui" +||||||| parent of 8e78f6e (update sui client) + "github.com/block-vision/sui-go-sdk/sui" +======= + cslclient "github.com/smartcontractkit/chainlink-sui/relayer/client" +>>>>>>> 8e78f6e (update sui client) "github.com/smartcontractkit/chainlink-deployments-framework/chain/internal/common" ) @@ -15,7 +21,7 @@ type ChainMetadata = common.ChainMetadata // Chain represents an Sui chain. type Chain struct { ChainMetadata - Client sui.ISuiAPI + Client cslclient.SuiPTBClient Signer SuiSigner URL string FaucetURL string diff --git a/datastore/catalog/remote/testcontainer_setup.go b/datastore/catalog/remote/testcontainer_setup.go index ad286a378..902f4060b 100644 --- a/datastore/catalog/remote/testcontainer_setup.go +++ b/datastore/catalog/remote/testcontainer_setup.go @@ -95,7 +95,13 @@ func (s *TestContainerSetup) startPostgres(ctx context.Context) error { // Build DSN for local access s.PostgresDSN = fmt.Sprintf("postgres://%s:%s@localhost:%d/%s?sslmode=disable", +<<<<<<< HEAD postgresUser, postgresPassword, localPort.Num(), postgresDB) +||||||| parent of 8e78f6e (update sui client) + postgresUser, postgresPassword, localPort.Int(), postgresDB) +======= + postgresUser, postgresPassword, localPort.Port(), postgresDB) +>>>>>>> 8e78f6e (update sui client) return nil } @@ -238,7 +244,13 @@ func (s *TestContainerSetup) startCatalogService(ctx context.Context) error { return fmt.Errorf("failed to get catalog service mapped port: %w", err) } +<<<<<<< HEAD s.CatalogGRPCAddr = fmt.Sprintf("localhost:%d", mappedPort.Num()) +||||||| parent of 8e78f6e (update sui client) + s.CatalogGRPCAddr = fmt.Sprintf("localhost:%d", mappedPort.Int()) +======= + s.CatalogGRPCAddr = fmt.Sprintf("localhost:%d", mappedPort.Port()) +>>>>>>> 8e78f6e (update sui client) return nil } diff --git a/go.mod b/go.mod index 839306b89..ca5698b94 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,10 @@ go 1.26.2 replace github.com/fbsobreira/gotron-sdk => github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.20250422175525-b7575d96bd4d +replace github.com/smartcontractkit/chainlink-sui => ../chainlink-sui + +replace github.com/smartcontractkit/mcms => ../mcms + require ( github.com/Masterminds/semver/v3 v3.5.0 github.com/aptos-labs/aptos-go-sdk v1.13.0 @@ -36,6 +40,7 @@ require ( github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260415165642-49f23e4d76cc github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260121163256-85accaf3d28d github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5 + github.com/smartcontractkit/chainlink-common v0.11.2-0.20260506120607-7f10be016c89 github.com/smartcontractkit/chainlink-protos/job-distributor v0.18.0 github.com/smartcontractkit/chainlink-protos/op-catalog v0.1.0 github.com/smartcontractkit/chainlink-testing-framework/framework v0.16.4 @@ -97,7 +102,7 @@ require ( github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect github.com/onsi/ginkgo/v2 v2.22.1 // indirect github.com/onsi/gomega v1.36.2 // indirect - github.com/smartcontractkit/chainlink-common v0.11.2-0.20260506120607-7f10be016c89 // indirect + github.com/patrickmn/go-cache v2.1.0+incompatible // indirect github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.10 // indirect github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20260505131349-78e491b80735 // indirect github.com/smartcontractkit/chainlink-protos/linking-service/go v0.0.0-20251002192024-d2ad9222409b // indirect @@ -279,7 +284,7 @@ require ( github.com/shopspring/decimal v1.4.0 // indirect github.com/sigurn/crc16 v0.0.0-20211026045750-20ab5afb07e3 // indirect github.com/sirupsen/logrus v1.9.4 // indirect - github.com/smartcontractkit/chainlink-sui v0.0.0-20260429183453-39df0198aed8 + github.com/smartcontractkit/chainlink-sui v0.0.0-20260527160341-aa3adc0abf67 github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 // indirect github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 // indirect github.com/spf13/afero v1.15.0 // indirect diff --git a/go.sum b/go.sum index ba87a07e4..5dd393116 100644 --- a/go.sum +++ b/go.sum @@ -586,6 +586,8 @@ github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8 github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJwooC2xJA040= github.com/opencontainers/image-spec v1.1.1/go.mod h1:qpqAh3Dmcf36wStyyWU+kCeDgrGnAve2nCC8+7h8Q0M= +github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaRUnok+kx1WdO15EQc= +github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= github.com/pelletier/go-toml/v2 v2.3.0 h1:k59bC/lIZREW0/iVaQR8nDHxVq8OVlIzYCOJf421CaM= @@ -673,6 +675,8 @@ github.com/smartcontractkit/chain-selectors v1.0.100 h1:wpiSpmI/eFjY+wx/nPr5VuNF github.com/smartcontractkit/chain-selectors v1.0.100/go.mod h1:qy7whtgG5g+7z0jt0nRyii9bLND9m15NZTzuQPkMZ5w= github.com/smartcontractkit/chainlink-aptos v0.0.0-20260428085939-5c70de12dbfc h1:Um9FBcf0JNSFuGbxgccDG1vM3cNrMGy0SdJ7r6VbX0o= github.com/smartcontractkit/chainlink-aptos v0.0.0-20260428085939-5c70de12dbfc/go.mod h1:zfE2R7887kiwXkGTHKPe5NBgwhFwIC3pnA2uAxrbvig= +github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260428205619-2db1389501a1 h1:p0nFrTYrOQzDhWYm6suaM5CoWiXV5NV7llHnp6/Kn/8= +github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260428205619-2db1389501a1/go.mod h1:1XxxpkgCmG/z6y30yRuVrcxre6zixIVX3xzi706Db/8= github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260415165642-49f23e4d76cc h1:dP1ERzdTbiJbHVXfHYdBAi1+8NjgkyQuY2oFNWWWDsQ= github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260415165642-49f23e4d76cc/go.mod h1:7XR5wfgT8hjSsiV+t0EAWvna+rYQeMPaoZf/0g+dios= github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260121163256-85accaf3d28d h1:xdFpzbApEMz4Rojg2Y2OjFlrh0wu7eB10V2tSZGW5y8= @@ -693,8 +697,6 @@ github.com/smartcontractkit/chainlink-protos/node-platform v0.0.0-20260211172625 github.com/smartcontractkit/chainlink-protos/node-platform v0.0.0-20260211172625-dff40e83b3c9/go.mod h1:dkR2uYg9XYJuT1JASkPzWE51jjFkVb86P7a/yXe5/GM= github.com/smartcontractkit/chainlink-protos/op-catalog v0.1.0 h1:hGEJFD2X3oNIPXQbtIPxCJyg5CcKglRCYBmESS+gmeQ= github.com/smartcontractkit/chainlink-protos/op-catalog v0.1.0/go.mod h1:PjZD54vr6rIKEKQj6HNA4hllvYI/QpT+Zefj3tqkFAs= -github.com/smartcontractkit/chainlink-sui v0.0.0-20260429183453-39df0198aed8 h1:sWpTYRucOQQ/wXbKj52UE59JMMEq2Aq5g+sMdjYzfRM= -github.com/smartcontractkit/chainlink-sui v0.0.0-20260429183453-39df0198aed8/go.mod h1:k1HSbHyPaQWPOj6lXDIAe04EuwbC5ge1nK+cpG2E8hE= github.com/smartcontractkit/chainlink-testing-framework/framework v0.16.4 h1:8M+2pA0qx9rXaxmpKouUHj983vQCGzztHkG0XjE5Eew= github.com/smartcontractkit/chainlink-testing-framework/framework v0.16.4/go.mod h1:nyOjn4ADJGqRMe3+4ZXSV+J/7nWb1H2Vx8Qk57eLRYA= github.com/smartcontractkit/chainlink-testing-framework/seth v1.51.5 h1:RwZXxdIAOyjp6cwc9Quxgr38k8r7ACz+Lxh9o/A6oH0= @@ -711,8 +713,6 @@ github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 h1:12i github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7/go.mod h1:FX7/bVdoep147QQhsOPkYsPEXhGZjeYx6lBSaSXtZOA= github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e h1:poXTj5cFVM6XfC4HICIDYkDVc/A6OYB0eeID0wU2JQE= github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e/go.mod h1:PLdNK6GlqfxIWXzziPkU7dCAVlVFeYkyyW7AQY0R+4Q= -github.com/smartcontractkit/mcms v0.45.0 h1:6Zx80KKLQOPXLhvrRkJKClANnBJmPa/r69CV5UUq/0I= -github.com/smartcontractkit/mcms v0.45.0/go.mod h1:/uOE69QmF7opKlaBNzp8djypmBoYSW0mk4V2iKWP418= github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 h1:+jumHNA0Wrelhe64i8F6HNlS8pkoyMv5sreGx2Ry5Rw= github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8/go.mod h1:3n1Cwaq1E1/1lhQhtRK2ts/ZwZEhjcQeJQ1RuC6Q/8U= github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I= From e26b8cddfa0a8cc4a6832299c6b0aeaceb108c9b Mon Sep 17 00:00:00 2001 From: faisal-link Date: Thu, 4 Jun 2026 21:46:22 +0400 Subject: [PATCH 02/15] initial draft --- chain/mcms/adapters/chain_access.go | 19 +++---------------- chain/mcms/adapters/chain_access_test.go | 7 +------ chain/sui/provider/ctf_provider_test.go | 2 +- chain/sui/provider/rpc_provider_test.go | 2 +- chain/sui/sui_chain.go | 6 ------ chain/sui/sui_chain_test.go | 19 +++++++++---------- datastore/catalog/remote/main_test.go | 4 ++-- .../catalog/remote/testcontainer_setup.go | 12 ------------ 8 files changed, 17 insertions(+), 54 deletions(-) diff --git a/chain/mcms/adapters/chain_access.go b/chain/mcms/adapters/chain_access.go index 963770d61..67a93756e 100644 --- a/chain/mcms/adapters/chain_access.go +++ b/chain/mcms/adapters/chain_access.go @@ -2,22 +2,17 @@ package adapters import ( aptoslib "github.com/aptos-labs/aptos-go-sdk" -<<<<<<< HEAD - "github.com/block-vision/sui-go-sdk/sui" "github.com/ethereum/go-ethereum/accounts/abi/bind" sol "github.com/gagliardetto/solana-go" -||||||| parent of 8e78f6e (update sui client) - "github.com/block-vision/sui-go-sdk/sui" -======= ->>>>>>> 8e78f6e (update sui client) solrpc "github.com/gagliardetto/solana-go/rpc" - cslclient "github.com/smartcontractkit/chainlink-sui/relayer/client" "github.com/smartcontractkit/mcms/sdk/evm" mcmssui "github.com/smartcontractkit/mcms/sdk/sui" "github.com/stellar/go-stellar-sdk/clients/rpcclient" "github.com/xssnick/tonutils-go/ton" tonwallet "github.com/xssnick/tonutils-go/ton/wallet" + cslclient "github.com/smartcontractkit/chainlink-sui/relayer/client" + "github.com/smartcontractkit/chainlink-deployments-framework/chain" cldfaptos "github.com/smartcontractkit/chainlink-deployments-framework/chain/aptos" cldfcanton "github.com/smartcontractkit/chainlink-deployments-framework/chain/canton" @@ -99,7 +94,6 @@ func (a *ChainAccessAdapter) AptosClient(selector uint64) (aptoslib.AptosRpcClie return ch.Client, true } -<<<<<<< HEAD // AptosSigner returns the Aptos signer for the given selector. func (a *ChainAccessAdapter) AptosSigner(selector uint64) (aptoslib.TransactionSigner, bool) { ch, ok := a.inner.AptosChains()[selector] @@ -107,14 +101,7 @@ func (a *ChainAccessAdapter) AptosSigner(selector uint64) (aptoslib.TransactionS } // SuiClient returns the Sui API client for the given selector. -func (a *ChainAccessAdapter) SuiClient(selector uint64) (sui.ISuiAPI, bool) { -||||||| parent of 8e78f6e (update sui client) -// SuiClient returns the Sui API client and signer for the given selector. -func (a *ChainAccessAdapter) SuiClient(selector uint64) (sui.ISuiAPI, mcmssui.SuiSigner, bool) { -======= -// SuiClient returns the Sui API client and signer for the given selector. -func (a *ChainAccessAdapter) SuiClient(selector uint64) (cslclient.BindingsClient, mcmssui.SuiSigner, bool) { ->>>>>>> 8e78f6e (update sui client) +func (a *ChainAccessAdapter) SuiClient(selector uint64) (cslclient.BindingsClient, bool) { ch, ok := a.inner.SuiChains()[selector] if !ok { return nil, false diff --git a/chain/mcms/adapters/chain_access_test.go b/chain/mcms/adapters/chain_access_test.go index e1b553396..9314de751 100644 --- a/chain/mcms/adapters/chain_access_test.go +++ b/chain/mcms/adapters/chain_access_test.go @@ -56,10 +56,6 @@ func TestChainAccess_UnknownSelector(t *testing.T) { require.False(t, ok) require.Nil(t, suiClient) - suiSigner, ok := a.SuiSigner(999) - require.False(t, ok) - require.Nil(t, suiSigner) - tonClient, ok := a.TonClient(999) require.False(t, ok) require.Nil(t, tonClient) @@ -92,8 +88,7 @@ func TestChainAccess_SelectorsAndLookups(t *testing.T) { aptosSigner := aptosmocks.NewMockTransactionSigner(t) solClient := solrpc.New("http://example.invalid") solSigner := &sol.PrivateKey{1, 2, 3} - suiClient := suimocks.NewMockISuiAPI(t) - suiSigner, _ := chainsui.NewSignerFromSeed(make([]byte, 32)) + suiClient := suimocks.NewMockBindingsClient(t) tonClient := tonmocks.NewMockAPIClientWrapped(t) tonSigner := &tonwallet.Wallet{} diff --git a/chain/sui/provider/ctf_provider_test.go b/chain/sui/provider/ctf_provider_test.go index 6e44a1279..9c3fd5c06 100644 --- a/chain/sui/provider/ctf_provider_test.go +++ b/chain/sui/provider/ctf_provider_test.go @@ -121,7 +121,7 @@ func Test_CTFChainProvider_Initialize(t *testing.T) { // Check that the chain is of type sui.Chain and has the expected fields gotChain, ok := got.(sui.Chain) require.True(t, ok, "expected got to be of type sui.Chain") - assert.Equal(t, tt.giveSelector, gotChain.Selector) + assert.Equal(t, tt.giveSelector, gotChain.ChainMetadata.Selector) assert.NotEmpty(t, gotChain.Client) assert.NotEmpty(t, gotChain.Signer) assert.NotEmpty(t, gotChain.URL) diff --git a/chain/sui/provider/rpc_provider_test.go b/chain/sui/provider/rpc_provider_test.go index 1ac265992..452a5a0a8 100644 --- a/chain/sui/provider/rpc_provider_test.go +++ b/chain/sui/provider/rpc_provider_test.go @@ -118,7 +118,7 @@ func Test_RPCChainProvider_Initialize(t *testing.T) { gotChain, ok := got.(sui.Chain) require.True(t, ok, "expected got to be of type sui.Chain") - assert.Equal(t, tt.giveSelector, gotChain.Selector) + assert.Equal(t, tt.giveSelector, gotChain.ChainMetadata.Selector) assert.NotEmpty(t, gotChain.Client) assert.NotEmpty(t, gotChain.Signer) assert.Equal(t, tt.giveConfig.RPCURL, gotChain.URL) diff --git a/chain/sui/sui_chain.go b/chain/sui/sui_chain.go index c1dcfc45e..e76a6a997 100644 --- a/chain/sui/sui_chain.go +++ b/chain/sui/sui_chain.go @@ -1,17 +1,11 @@ package sui import ( -<<<<<<< HEAD "crypto/ed25519" "crypto/rand" "fmt" - "github.com/block-vision/sui-go-sdk/sui" -||||||| parent of 8e78f6e (update sui client) - "github.com/block-vision/sui-go-sdk/sui" -======= cslclient "github.com/smartcontractkit/chainlink-sui/relayer/client" ->>>>>>> 8e78f6e (update sui client) "github.com/smartcontractkit/chainlink-deployments-framework/chain/internal/common" ) diff --git a/chain/sui/sui_chain_test.go b/chain/sui/sui_chain_test.go index b5615e75d..d818ecfbb 100644 --- a/chain/sui/sui_chain_test.go +++ b/chain/sui/sui_chain_test.go @@ -4,13 +4,13 @@ import ( "sync" "testing" - "github.com/block-vision/sui-go-sdk/models" chainsel "github.com/smartcontractkit/chain-selectors" - "github.com/smartcontractkit/chainlink-sui/bindings/bind" - "github.com/smartcontractkit/chainlink-sui/bindings/packages/mcms" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "github.com/smartcontractkit/chainlink-sui/bindings/bind" + "github.com/smartcontractkit/chainlink-sui/bindings/packages/mcms" + "github.com/smartcontractkit/chainlink-deployments-framework/chain/sui" "github.com/smartcontractkit/chainlink-deployments-framework/chain/sui/provider" "github.com/smartcontractkit/chainlink-deployments-framework/internal/pointer" @@ -42,10 +42,10 @@ func TestChain_ChainInfot(t *testing.T) { c := sui.Chain{ ChainMetadata: sui.ChainMetadata{Selector: tt.selector}, } - assert.Equal(t, tt.selector, c.ChainSelector()) - assert.Equal(t, tt.wantString, c.String()) - assert.Equal(t, tt.wantName, c.Name()) - assert.Equal(t, tt.wantFamily, c.Family()) + assert.Equal(t, tt.selector, c.ChainMetadata.ChainSelector()) + assert.Equal(t, tt.wantString, c.ChainMetadata.String()) + assert.Equal(t, tt.wantName, c.ChainMetadata.Name()) + assert.Equal(t, tt.wantFamily, c.ChainMetadata.Family()) }) } } @@ -75,10 +75,9 @@ func TestChain_ReadOnly(t *testing.T) { require.NoError(t, err) // read with read-only client should work - balanceReq := models.SuiXGetBalanceRequest{Owner: signer, CoinType: "0x2::sui::SUI"} - balance, err := roSuiChain.Client.SuiXGetBalance(t.Context(), balanceReq) + balance, err := roSuiChain.Client.GetSUIBalance(t.Context(), signer) require.NoError(t, err) - require.Equal(t, "1000000000000", balance.TotalBalance) + require.Equal(t, "1000000000000", balance.GetBalance()) // write with read-write client should work opts := &bind.CallOpts{WaitForExecution: true, GasBudget: pointer.To(uint64(400_000_000)), Signer: suiChain.Signer} diff --git a/datastore/catalog/remote/main_test.go b/datastore/catalog/remote/main_test.go index c212346c6..559dd858b 100644 --- a/datastore/catalog/remote/main_test.go +++ b/datastore/catalog/remote/main_test.go @@ -41,7 +41,7 @@ func TestMain(m *testing.M) { log.Fatalf("Failed to setup testcontainers: %v", err) } globalTestSetup = setup - catalogGRPCAddress = setup.GetCatalogGRPCAddress() + catalogGRPCAddress = setup.CatalogGRPCAddr log.Println("========================================") log.Println("Testcontainers setup complete!") @@ -64,7 +64,7 @@ func TestMain(m *testing.M) { cleanupCtx, cleanupCancel := context.WithTimeout(context.Background(), 2*time.Minute) defer cleanupCancel() - if err := globalTestSetup.Teardown(cleanupCtx); err != nil { + if err := globalTestSetup.CatalogContainer.Terminate(cleanupCtx); err != nil { log.Printf("Warning: Failed to teardown testcontainers: %v", err) } diff --git a/datastore/catalog/remote/testcontainer_setup.go b/datastore/catalog/remote/testcontainer_setup.go index 902f4060b..ad286a378 100644 --- a/datastore/catalog/remote/testcontainer_setup.go +++ b/datastore/catalog/remote/testcontainer_setup.go @@ -95,13 +95,7 @@ func (s *TestContainerSetup) startPostgres(ctx context.Context) error { // Build DSN for local access s.PostgresDSN = fmt.Sprintf("postgres://%s:%s@localhost:%d/%s?sslmode=disable", -<<<<<<< HEAD postgresUser, postgresPassword, localPort.Num(), postgresDB) -||||||| parent of 8e78f6e (update sui client) - postgresUser, postgresPassword, localPort.Int(), postgresDB) -======= - postgresUser, postgresPassword, localPort.Port(), postgresDB) ->>>>>>> 8e78f6e (update sui client) return nil } @@ -244,13 +238,7 @@ func (s *TestContainerSetup) startCatalogService(ctx context.Context) error { return fmt.Errorf("failed to get catalog service mapped port: %w", err) } -<<<<<<< HEAD s.CatalogGRPCAddr = fmt.Sprintf("localhost:%d", mappedPort.Num()) -||||||| parent of 8e78f6e (update sui client) - s.CatalogGRPCAddr = fmt.Sprintf("localhost:%d", mappedPort.Int()) -======= - s.CatalogGRPCAddr = fmt.Sprintf("localhost:%d", mappedPort.Port()) ->>>>>>> 8e78f6e (update sui client) return nil } From 1a74ee3bbc2f81db01f04fbd4995f4f37f8806ad Mon Sep 17 00:00:00 2001 From: faisal-link Date: Mon, 8 Jun 2026 19:29:01 +0400 Subject: [PATCH 03/15] update deps --- chain/mcms/adapters/chain_access_test.go | 3 +- go.mod | 52 +++++------ go.sum | 106 +++++++++++------------ 3 files changed, 82 insertions(+), 79 deletions(-) diff --git a/chain/mcms/adapters/chain_access_test.go b/chain/mcms/adapters/chain_access_test.go index 9314de751..8d4f27d1f 100644 --- a/chain/mcms/adapters/chain_access_test.go +++ b/chain/mcms/adapters/chain_access_test.go @@ -88,7 +88,8 @@ func TestChainAccess_SelectorsAndLookups(t *testing.T) { aptosSigner := aptosmocks.NewMockTransactionSigner(t) solClient := solrpc.New("http://example.invalid") solSigner := &sol.PrivateKey{1, 2, 3} - suiClient := suimocks.NewMockBindingsClient(t) + suiClient := suimocks.NewSuiPTBClient(t) + suiSigner := suimocks.NewSuiSigner(t) tonClient := tonmocks.NewMockAPIClientWrapped(t) tonSigner := &tonwallet.Wallet{} diff --git a/go.mod b/go.mod index ca5698b94..156542f3b 100644 --- a/go.mod +++ b/go.mod @@ -35,18 +35,18 @@ require ( github.com/samber/lo v1.53.0 github.com/segmentio/ksuid v1.0.4 github.com/smartcontractkit/ccip-owner-contracts v0.1.0 - github.com/smartcontractkit/chain-selectors v1.0.100 + github.com/smartcontractkit/chain-selectors v1.0.101 github.com/smartcontractkit/chainlink-aptos v0.0.0-20260428085939-5c70de12dbfc - github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260415165642-49f23e4d76cc - github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260121163256-85accaf3d28d - github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5 + github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260512180815-d7a89b0a5784 + github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260129103204-4c8453dd8139 + github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20260129103204-4c8453dd8139 github.com/smartcontractkit/chainlink-common v0.11.2-0.20260506120607-7f10be016c89 github.com/smartcontractkit/chainlink-protos/job-distributor v0.18.0 github.com/smartcontractkit/chainlink-protos/op-catalog v0.1.0 github.com/smartcontractkit/chainlink-testing-framework/framework v0.16.4 github.com/smartcontractkit/chainlink-testing-framework/seth v1.51.5 github.com/smartcontractkit/chainlink-ton v1.0.5-0.20260514223130-48bc90aca745 - github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250908203554-5bd9d2fe9513 + github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20251014143056-a0c6328c91e9 github.com/smartcontractkit/freeport v0.1.3-0.20250828155247-add56fa28aad github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e github.com/smartcontractkit/mcms v0.45.0 @@ -60,7 +60,7 @@ require ( github.com/xssnick/tonutils-go v1.14.1 github.com/zksync-sdk/zksync2-go v1.1.1-0.20250620124214-2c742ee399c6 go.uber.org/zap v1.28.0 - golang.org/x/crypto v0.51.0 + golang.org/x/crypto v0.52.0 golang.org/x/oauth2 v0.36.0 google.golang.org/grpc v1.81.1 google.golang.org/protobuf v1.36.11 @@ -70,59 +70,61 @@ require ( require ( github.com/ProjectZKM/Ziren/crates/go-runtime/zkvm_runtime v0.0.0-20251001021608-1fe7b43fc4d6 // indirect github.com/aws/aws-sdk-go-v2/service/signin v1.0.8 // indirect - github.com/btcsuite/btcutil v1.0.2 // indirect + github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce // indirect github.com/cenkalti/backoff/v5 v5.0.3 // indirect github.com/crate-crypto/go-eth-kzg v1.5.0 // indirect github.com/creachadair/jrpc2 v1.2.0 // indirect github.com/creachadair/mds v0.13.4 // indirect github.com/dchest/siphash v1.2.3 // indirect github.com/emicklei/dot v1.6.2 // indirect - github.com/emicklei/go-restful/v3 v3.11.0 // indirect + github.com/emicklei/go-restful/v3 v3.12.1 // indirect github.com/ethereum/c-kzg-4844/v2 v2.1.6 // indirect github.com/ethereum/go-bigmodexpfix v0.0.0-20250911101455-f9e208c548ab // indirect github.com/ferranbt/fastssz v0.1.4 // indirect github.com/go-openapi/jsonpointer v0.21.0 // indirect github.com/go-openapi/jsonreference v0.21.0 // indirect github.com/go-openapi/swag v0.23.0 // indirect - github.com/golang-jwt/jwt/v5 v5.3.0 // indirect + github.com/golang-jwt/jwt/v5 v5.3.1 // indirect github.com/google/gnostic-models v0.6.9 // indirect - github.com/google/gofuzz v1.2.0 // indirect github.com/grafana/otel-profiling-go v0.5.1 // indirect github.com/grafana/pyroscope-go v1.2.8 // indirect github.com/grafana/pyroscope-go/godeltaprof v0.1.9 // indirect + github.com/grafana/regexp v0.0.0-20240518133315-a468a5bfb3bc // indirect github.com/jackc/pgx/v5 v5.9.2 // indirect github.com/jackc/puddle/v2 v2.2.2 // indirect github.com/josharian/intern v1.0.0 // indirect - github.com/klauspost/cpuid/v2 v2.2.10 // indirect - github.com/lib/pq v1.11.1 // indirect + github.com/klauspost/cpuid/v2 v2.3.0 // indirect + github.com/lib/pq v1.12.3 // indirect github.com/minio/sha256-simd v1.0.1 // indirect - github.com/moby/moby/api v1.54.1 // indirect + github.com/moby/moby/api v1.54.2 // indirect github.com/moby/moby/client v0.4.0 // indirect github.com/moby/spdystream v0.5.1 // indirect github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect github.com/onsi/ginkgo/v2 v2.22.1 // indirect github.com/onsi/gomega v1.36.2 // indirect github.com/patrickmn/go-cache v2.1.0+incompatible // indirect + github.com/smartcontractkit/chainlink-canton v0.0.0-20260602133237-99f834640c9d // indirect github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.10 // indirect github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20260505131349-78e491b80735 // indirect github.com/smartcontractkit/chainlink-protos/linking-service/go v0.0.0-20251002192024-d2ad9222409b // indirect github.com/smartcontractkit/chainlink-protos/node-platform v0.0.0-20260211172625-dff40e83b3c9 // indirect + github.com/smartcontractkit/go-daml v0.0.0-20260604143752-c6f6567940ba // indirect github.com/stellar/go-xdr v0.0.0-20260312225820-cc2b0611aabf // indirect go.uber.org/goleak v1.3.0 // indirect - go.yaml.in/yaml/v2 v2.4.2 // indirect go.yaml.in/yaml/v3 v3.0.4 // indirect golang.org/x/exp v0.0.0-20260218203240-3dfff04db8fa // indirect gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect k8s.io/api v0.32.3 // indirect - k8s.io/apimachinery v0.32.3 // indirect + k8s.io/apimachinery v0.33.2 // indirect k8s.io/client-go v0.32.3 // indirect k8s.io/klog/v2 v2.130.1 // indirect - k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7 // indirect - k8s.io/utils v0.0.0-20241104163129-6fe5fd82f078 // indirect + k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff // indirect + k8s.io/utils v0.0.0-20241210054802-24370beab758 // indirect sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect - sigs.k8s.io/structured-merge-diff/v4 v4.4.2 // indirect + sigs.k8s.io/randfill v1.0.0 // indirect + sigs.k8s.io/structured-merge-diff/v4 v4.6.0 // indirect sigs.k8s.io/yaml v1.4.0 // indirect ) @@ -130,7 +132,7 @@ require ( dario.cat/mergo v1.0.2 // indirect filippo.io/edwards25519 v1.1.1 // indirect github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c // indirect - github.com/BurntSushi/toml v1.5.0 // indirect + github.com/BurntSushi/toml v1.6.0 // indirect github.com/DataDog/zstd v1.5.6 // indirect github.com/Microsoft/go-winio v0.6.2 // indirect github.com/VictoriaMetrics/fastcache v1.13.0 // indirect @@ -180,10 +182,10 @@ require ( github.com/deckarep/golang-set/v2 v2.8.0 // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect github.com/distribution/reference v0.6.0 // indirect - github.com/docker/go-connections v0.6.0 // indirect + github.com/docker/go-connections v0.7.0 // indirect github.com/docker/go-units v0.5.0 // indirect github.com/ebitengine/purego v0.10.0 // indirect - github.com/fatih/color v1.18.0 // indirect + github.com/fatih/color v1.19.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.9.0 // indirect github.com/fxamacker/cbor/v2 v2.9.0 // indirect @@ -269,12 +271,12 @@ require ( github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect github.com/prometheus/client_golang v1.23.2 // indirect github.com/prometheus/client_model v0.6.2 // indirect - github.com/prometheus/common v0.66.1 // indirect + github.com/prometheus/common v1.20.99 // indirect github.com/prometheus/procfs v0.16.1 // indirect github.com/rivo/uniseg v0.4.7 // indirect github.com/rogpeppe/go-internal v1.14.1 // indirect github.com/rs/cors v1.11.1 // indirect - github.com/rs/zerolog v1.34.0 // indirect + github.com/rs/zerolog v1.35.1 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/sagikazarmark/locafero v0.11.0 // indirect github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 // indirect @@ -284,7 +286,7 @@ require ( github.com/shopspring/decimal v1.4.0 // indirect github.com/sigurn/crc16 v0.0.0-20211026045750-20ab5afb07e3 // indirect github.com/sirupsen/logrus v1.9.4 // indirect - github.com/smartcontractkit/chainlink-sui v0.0.0-20260527160341-aa3adc0abf67 + github.com/smartcontractkit/chainlink-sui v0.0.0-20260605165559-eb9893a9718c github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 // indirect github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 // indirect github.com/spf13/afero v1.15.0 // indirect @@ -297,7 +299,7 @@ require ( github.com/suzuki-shunsuke/go-convmap v0.2.1 github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tidwall/gjson v1.18.0 // indirect - github.com/tidwall/match v1.1.1 // indirect + github.com/tidwall/match v1.2.0 // indirect github.com/tidwall/pretty v1.2.1 // indirect github.com/tklauser/go-sysconf v0.3.16 // indirect github.com/tklauser/numcpus v0.11.0 // indirect diff --git a/go.sum b/go.sum index 5dd393116..aa44b7bf6 100644 --- a/go.sum +++ b/go.sum @@ -11,8 +11,8 @@ github.com/AlekSi/pointer v1.1.0/go.mod h1:y7BvfRI3wXPWKXEBhU71nbnIEEZX0QTSB2Bj4 github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c h1:udKWzYgxTojEKWjV8V+WSxDXJ4NFATAsZjh8iIbsQIg= github.com/Azure/go-ansiterm v0.0.0-20250102033503-faa5f7b0171c/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/toml v1.5.0 h1:W5quZX/G/csjUnuI8SUYlsHs9M38FC7znL0lIO+DvMg= -github.com/BurntSushi/toml v1.5.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= +github.com/BurntSushi/toml v1.6.0 h1:dRaEfpa2VI55EwlIW72hMRHdWouJeRF7TPYhI+AUQjk= +github.com/BurntSushi/toml v1.6.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho= github.com/DataDog/zstd v1.5.6 h1:LbEglqepa/ipmmQJUDnSsfvA8e8IStVcGaFWDuxvGOY= github.com/DataDog/zstd v1.5.6/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= github.com/Masterminds/semver/v3 v3.5.0 h1:kQceYJfbupGfZOKZQg0kou0DgAKhzDg2NZPAwZ/2OOE= @@ -109,8 +109,8 @@ github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 h1:59Kx4K6lzOW5w6nFlA0v5+lk/6 github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= -github.com/btcsuite/btcutil v1.0.2 h1:9iZ1Terx9fMIOtq1VrwdqfsATL9MC2l8ZrUY6YZ2uts= -github.com/btcsuite/btcutil v1.0.2/go.mod h1:j9HUFwoQRsZL3V4n+qG+CUnEGHOarIxfC3Le2Yhbcts= +github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce h1:YtWJF7RHm2pYCvA5t0RPmAaLUhREsKuKd+SLhxFbFeQ= +github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce/go.mod h1:0DVlHczLPewLcPGEIeUEzfOJhqGPQ0mJJRDBtD307+o= github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg= github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY= github.com/btcsuite/goleveldb v1.0.0/go.mod h1:QiK9vBlgftBg6rWQIj6wFzbPfRjiykIEhBH4obrXJ/I= @@ -166,7 +166,6 @@ github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I= github.com/containerd/log v0.1.0/go.mod h1:VRRf09a7mHDIRezVKTRCrOq78v577GXq3bSa3EhrzVo= github.com/containerd/platforms v1.0.0-rc.2 h1:0SPgaNZPVWGEi4grZdV8VRYQn78y+nm6acgLGv/QzE4= github.com/containerd/platforms v1.0.0-rc.2/go.mod h1:J71L7B+aiM5SdIEqmd9wp6THLVRzJGXfNuWCZCllLA4= -github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= github.com/cpuguy83/dockercfg v0.3.2 h1:DlJTyZGBDlXqUZ2Dk2Q3xHs/FtnooJJVaad2S9GKorA= @@ -211,16 +210,16 @@ github.com/digital-asset/dazl-client/v8 v8.9.0 h1:F2qTUWtHAjhGyRGV+xTim+VAFwM99F github.com/digital-asset/dazl-client/v8 v8.9.0/go.mod h1:q1KevCJ8FpH8je2MnnjN8/QUfhstB4fKpyKyqDtqFh0= github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk= github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E= -github.com/docker/go-connections v0.6.0 h1:LlMG9azAe1TqfR7sO+NJttz1gy6KO7VJBh+pMmjSD94= -github.com/docker/go-connections v0.6.0/go.mod h1:AahvXYshr6JgfUJGdDCs2b5EZG/vmaMAntpSFH5BFKE= +github.com/docker/go-connections v0.7.0 h1:6SsRfJddP22WMrCkj19x9WKjEDTB+ahsdiGYf0mN39c= +github.com/docker/go-connections v0.7.0/go.mod h1:no1qkHdjq7kLMGUXYAduOhYPSJxxvgWBh7ogVvptn3Q= github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/ebitengine/purego v0.10.0 h1:QIw4xfpWT6GWTzaW5XEKy3HXoqrJGx1ijYHzTF0/ISU= github.com/ebitengine/purego v0.10.0/go.mod h1:iIjxzd6CiRiOG0UyXP+V1+jWqUXVjPKLAI0mRfJZTmQ= github.com/emicklei/dot v1.6.2 h1:08GN+DD79cy/tzN6uLCT84+2Wk9u+wvqP+Hkx/dIR8A= github.com/emicklei/dot v1.6.2/go.mod h1:DeV7GvQtIw4h2u73RKBkkFdvVAz0D9fzeJrgPW6gy/s= -github.com/emicklei/go-restful/v3 v3.11.0 h1:rAQeMHw1c7zTmncogyy8VvRZwtkmkZ4FxERmMY4rD+g= -github.com/emicklei/go-restful/v3 v3.11.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= +github.com/emicklei/go-restful/v3 v3.12.1 h1:PJMDIM/ak7btuL8Ex0iYET9hxM3CI2sjZtzpL63nKAU= +github.com/emicklei/go-restful/v3 v3.12.1/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= @@ -232,8 +231,8 @@ github.com/ethereum/go-bigmodexpfix v0.0.0-20250911101455-f9e208c548ab/go.mod h1 github.com/ethereum/go-ethereum v1.17.3 h1:Ev/sQHH+UdKZHWjuVzhu2pxhi/sXaPZl23Q+Q5LDd4Q= github.com/ethereum/go-ethereum v1.17.3/go.mod h1:f2EhRwqewIZkGoQekywI2Y2RZAMTSavLNkD9qItFy1A= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM= -github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU= +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/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/ferranbt/fastssz v0.1.4 h1:OCDB+dYDEQDvAgtAGnTSidK1Pe2tW3nFV40XyMkTeDY= @@ -310,7 +309,6 @@ github.com/goccy/go-json v0.10.5 h1:Fq85nIqj+gXn/S5ahsiTlK3TmC85qgirsdTP/+DeaC4= github.com/goccy/go-json v0.10.5/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M= github.com/goccy/go-yaml v1.19.2 h1:PmFC1S6h8ljIz6gMRBopkjP1TVT7xuwrButHID66PoM= github.com/goccy/go-yaml v1.19.2/go.mod h1:XBurs7gK8ATbW4ZPGKgcbrY1Br56PdM69F7LkFRi1kA= -github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/gofrs/flock v0.12.1 h1:MTLVXXHf8ekldpJk3AKicLij9MdwOWkZ+a/jHHZby9E= github.com/gofrs/flock v0.12.1/go.mod h1:9zxTsyu5xtJ9DK+1tFZyibEV7y3uwDxPPfbxeeHCoD0= github.com/gofrs/uuid v4.4.0+incompatible h1:3qXRTX8/NbyulANqlc0lchS1gqAVxRgsuW1YrTJupqA= @@ -319,8 +317,8 @@ github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/golang-jwt/jwt/v4 v4.5.2 h1:YtQM7lnr8iZ+j5q71MGKkNw9Mn7AjHM68uc9g5fXeUI= github.com/golang-jwt/jwt/v4 v4.5.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= -github.com/golang-jwt/jwt/v5 v5.3.0 h1:pv4AsKCKKZuqlgs5sUmn4x8UlGa0kEVt/puTpKx9vvo= -github.com/golang-jwt/jwt/v5 v5.3.0/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= +github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= +github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -374,6 +372,8 @@ github.com/grafana/pyroscope-go v1.2.8 h1:UvCwIhlx9DeV7F6TW/z8q1Mi4PIm3vuUJ2ZlCE github.com/grafana/pyroscope-go v1.2.8/go.mod h1:SSi59eQ1/zmKoY/BKwa5rSFsJaq+242Bcrr4wPix1g8= github.com/grafana/pyroscope-go/godeltaprof v0.1.9 h1:c1Us8i6eSmkW+Ez05d3co8kasnuOY813tbMN8i/a3Og= github.com/grafana/pyroscope-go/godeltaprof v0.1.9/go.mod h1:2+l7K7twW49Ct4wFluZD3tZ6e0SjanjcUUBPVD/UuGU= +github.com/grafana/regexp v0.0.0-20240518133315-a468a5bfb3bc h1:GN2Lv3MGO7AS6PrRoT6yV5+wkrOpcszoIsO4+4ds248= +github.com/grafana/regexp v0.0.0-20240518133315-a468a5bfb3bc/go.mod h1:+JKpmjMGhpgPL+rXZ5nsZieVzvarn86asRlBg4uNGnk= github.com/graph-gophers/graphql-go v1.5.0 h1:fDqblo50TEpD0LY7RXk/LFVYEVqo3+tXMNMPSVXA1yc= github.com/graph-gophers/graphql-go v1.5.0/go.mod h1:YtmJZDLbF1YYNrlNAuiO5zAStUWc3XZT07iGsVqe1Os= github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1 h1:qnpSQwGEnkcRpTqNOIR6bJbR0gAorgP9CSALpRcKoAA= @@ -459,8 +459,8 @@ github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6 github.com/klauspost/compress v1.11.4/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.18.5 h1:/h1gH5Ce+VWNLSWqPzOVn6XBO+vJbCNGvjoaGBFW2IE= github.com/klauspost/compress v1.18.5/go.mod h1:cwPg85FWrGar70rWktvGQj8/hthj3wpl0PGDogxkrSQ= -github.com/klauspost/cpuid/v2 v2.2.10 h1:tBs3QSyvjDyFTq3uoc/9xFpCuOsJQFNPiAhYdw2skhE= -github.com/klauspost/cpuid/v2 v2.2.10/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0= +github.com/klauspost/cpuid/v2 v2.3.0 h1:S4CRMLnYUhGeDFDqkGriYKdfoFlDnMtqTiI/sFzhA9Y= +github.com/klauspost/cpuid/v2 v2.3.0/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= @@ -476,8 +476,8 @@ github.com/leanovate/gopter v0.2.11/go.mod h1:aK3tzZP/C+p1m3SPRE4SYZFGP7jjkuSI4f github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ= github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI= github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/lib/pq v1.11.1 h1:wuChtj2hfsGmmx3nf1m7xC2XpK6OtelS2shMY+bGMtI= -github.com/lib/pq v1.11.1/go.mod h1:/p+8NSbOcwzAEI7wiMXFlgydTwcgTr3OSKMsD2BitpA= +github.com/lib/pq v1.12.3 h1:tTWxr2YLKwIvK90ZXEw8GP7UFHtcbTtty8zsI+YjrfQ= +github.com/lib/pq v1.12.3/go.mod h1:/p+8NSbOcwzAEI7wiMXFlgydTwcgTr3OSKMsD2BitpA= github.com/logrusorgru/aurora v2.0.3+incompatible h1:tOpm7WcpBTn4fjmVfgpQq0EfczGlG91VSDkswnjF5A8= github.com/logrusorgru/aurora v2.0.3+incompatible/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4= github.com/lufia/plan9stats v0.0.0-20260216142805-b3301c5f2a88 h1:PTw+yKnXcOFCR6+8hHTyWBeQ/P4Nb7dd4/0ohEcWQuM= @@ -494,13 +494,10 @@ github.com/maruel/natural v1.1.1 h1:Hja7XhhmvEFhcByqDoHz9QZbkWey+COd9xWfCfn1ioo= github.com/maruel/natural v1.1.1/go.mod h1:v+Rfd79xlw1AgVBjbO0BEQmptqb5HvL/k9GRHB7ZKEg= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= -github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE= github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= @@ -526,8 +523,8 @@ github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3N github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo= github.com/moby/go-archive v0.2.0 h1:zg5QDUM2mi0JIM9fdQZWC7U8+2ZfixfTYoHL7rWUcP8= github.com/moby/go-archive v0.2.0/go.mod h1:mNeivT14o8xU+5q1YnNrkQVpK+dnNe/K6fHqnTg4qPU= -github.com/moby/moby/api v1.54.1 h1:TqVzuJkOLsgLDDwNLmYqACUuTehOHRGKiPhvH8V3Nn4= -github.com/moby/moby/api v1.54.1/go.mod h1:+RQ6wluLwtYaTd1WnPLykIDPekkuyD/ROWQClE83pzs= +github.com/moby/moby/api v1.54.2 h1:wiat9QAhnDQjA7wk1kh/TqHz2I1uUA7M7t9SAl/JNXg= +github.com/moby/moby/api v1.54.2/go.mod h1:+RQ6wluLwtYaTd1WnPLykIDPekkuyD/ROWQClE83pzs= github.com/moby/moby/client v0.4.0 h1:S+2XegzHQrrvTCvF6s5HFzcrywWQmuVnhOXe2kiWjIw= github.com/moby/moby/client v0.4.0/go.mod h1:QWPbvWchQbxBNdaLSpoKpCdf5E+WxFAgNHogCWDoa7g= github.com/moby/patternmatcher v0.6.1 h1:qlhtafmr6kgMIJjKJMDmMWq7WLkKIo23hsrpR3x084U= @@ -625,8 +622,8 @@ github.com/prometheus/client_golang v1.23.2/go.mod h1:Tb1a6LWHB3/SPIzCoaDXI4I8UH github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.6.2 h1:oBsgwpGs7iVziMvrGhE53c/GrLUsZdHnqNwqPLxwZyk= github.com/prometheus/client_model v0.6.2/go.mod h1:y3m2F6Gdpfy6Ut/GBsUqTWZqCUvMVzSfMLjcu6wAwpE= -github.com/prometheus/common v0.66.1 h1:h5E0h5/Y8niHc5DlaLlWLArTQI7tMrsfQjHV+d9ZoGs= -github.com/prometheus/common v0.66.1/go.mod h1:gcaUsgf3KfRSwHY4dIMXLPV0K/Wg1oZ8+SbZk/HH/dA= +github.com/prometheus/common v1.20.99 h1:vZEybF3CT0t6L0UjsOtHRML7vuIglHocmvJMMH/se4M= +github.com/prometheus/common v1.20.99/go.mod h1:VX44Tebe4qpuTK+MQWg25h4fJGKBqzObSdxuB7y8K/Y= github.com/prometheus/procfs v0.16.1 h1:hZ15bTNuirocR6u0JZ6BAHHmwS1p8B4P6MRqxtzMyRg= github.com/prometheus/procfs v0.16.1/go.mod h1:teAbpZRB1iIAJYREa1LsoWUXykVXA1KlTmWl8x/U+Is= github.com/prysmaticlabs/gohashtree v0.0.4-beta h1:H/EbCuXPeTV3lpKeXGPpEV9gsUpkqOOVnWapUyeWro4= @@ -639,9 +636,8 @@ github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0t github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= github.com/rs/cors v1.11.1 h1:eU3gRzXLRK57F5rKMGMZURNdIG4EoAmX8k94r9wXWHA= github.com/rs/cors v1.11.1/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= -github.com/rs/xid v1.6.0/go.mod h1:7XoLgs4eV+QndskICGsho+ADou8ySMSjJKDIan90Nz0= -github.com/rs/zerolog v1.34.0 h1:k43nTLIwcTVQAncfCw4KZ2VY6ukYoZaBPNOE8txlOeY= -github.com/rs/zerolog v1.34.0/go.mod h1:bJsvje4Z08ROH4Nhs5iH600c3IkWhwp44iRc54W6wYQ= +github.com/rs/zerolog v1.35.1 h1:m7xQeoiLIiV0BCEY4Hs+j2NG4Gp2o2KPKmhnnLiazKI= +github.com/rs/zerolog v1.35.1/go.mod h1:EjML9kdfa/RMA7h/6z6pYmq1ykOuA8/mjWaEvGI+jcw= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sagikazarmark/locafero v0.11.0 h1:1iurJgmM9G3PA/I+wWYIOw/5SyBtxapeHDcg+AAIFXc= @@ -671,18 +667,20 @@ github.com/sirupsen/logrus v1.9.4 h1:TsZE7l11zFCLZnZ+teH4Umoq5BhEIfIzfRDZ1Uzql2w github.com/sirupsen/logrus v1.9.4/go.mod h1:ftWc9WdOfJ0a92nsE2jF5u5ZwH8Bv2zdeOC42RjbV2g= github.com/smartcontractkit/ccip-owner-contracts v0.1.0 h1:GiBDtlx7539o7AKlDV+9LsA7vTMPv+0n7ClhSFnZFAk= github.com/smartcontractkit/ccip-owner-contracts v0.1.0/go.mod h1:NnT6w4Kj42OFFXhSx99LvJZWPpMjmo4+CpDEWfw61xY= -github.com/smartcontractkit/chain-selectors v1.0.100 h1:wpiSpmI/eFjY+wx/nPr5VuNF4hki0prIBMKEaQWn3g4= -github.com/smartcontractkit/chain-selectors v1.0.100/go.mod h1:qy7whtgG5g+7z0jt0nRyii9bLND9m15NZTzuQPkMZ5w= +github.com/smartcontractkit/chain-selectors v1.0.101 h1:TF4ma9h3QeyIZ8XoEmgI5lrUvZfzHAz8tfR0pV0+GCA= +github.com/smartcontractkit/chain-selectors v1.0.101/go.mod h1:qy7whtgG5g+7z0jt0nRyii9bLND9m15NZTzuQPkMZ5w= github.com/smartcontractkit/chainlink-aptos v0.0.0-20260428085939-5c70de12dbfc h1:Um9FBcf0JNSFuGbxgccDG1vM3cNrMGy0SdJ7r6VbX0o= github.com/smartcontractkit/chainlink-aptos v0.0.0-20260428085939-5c70de12dbfc/go.mod h1:zfE2R7887kiwXkGTHKPe5NBgwhFwIC3pnA2uAxrbvig= +github.com/smartcontractkit/chainlink-canton v0.0.0-20260602133237-99f834640c9d h1:aBQYdlGQvqftkcUo0GIgtaLDs/84FQzBYpF4tZUfPA0= +github.com/smartcontractkit/chainlink-canton v0.0.0-20260602133237-99f834640c9d/go.mod h1:/oTkN9bVrQ1ROUNtIJJSNdffl3NReClq+qINNkGAwlY= github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260428205619-2db1389501a1 h1:p0nFrTYrOQzDhWYm6suaM5CoWiXV5NV7llHnp6/Kn/8= github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260428205619-2db1389501a1/go.mod h1:1XxxpkgCmG/z6y30yRuVrcxre6zixIVX3xzi706Db/8= -github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260415165642-49f23e4d76cc h1:dP1ERzdTbiJbHVXfHYdBAi1+8NjgkyQuY2oFNWWWDsQ= -github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260415165642-49f23e4d76cc/go.mod h1:7XR5wfgT8hjSsiV+t0EAWvna+rYQeMPaoZf/0g+dios= -github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260121163256-85accaf3d28d h1:xdFpzbApEMz4Rojg2Y2OjFlrh0wu7eB10V2tSZGW5y8= -github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260121163256-85accaf3d28d/go.mod h1:bgmqE7x9xwmIVr8PqLbC0M5iPm4AV2DBl596lO6S5Sw= -github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5 h1:Z4t2ZY+ZyGWxtcXvPr11y4o3CGqhg3frJB5jXkCSvWA= -github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20250912190424-fd2e35d7deb5/go.mod h1:xtZNi6pOKdC3sLvokDvXOhgHzT+cyBqH/gWwvxTxqrg= +github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260512180815-d7a89b0a5784 h1:s0rW7GaIKf9m+kfv0dFJPdSbHaMqQiv3xamQP2RVWNE= +github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260512180815-d7a89b0a5784/go.mod h1:0dcvbCc+HRK+nIweRSHu3FjkNTV9gi+irBIB3mUUe68= +github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260129103204-4c8453dd8139 h1:jkChf04hhdiMBApbb+lLDxHMY62Md6UeM7v++GSw3K8= +github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260129103204-4c8453dd8139/go.mod h1:wuhagkM/lU0GbV2YcrROOH0GlsfXJYwm6qmpa4CK70w= +github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20260129103204-4c8453dd8139 h1:tw3K4UkH5XfW5SoyYkvAlbzrccoGSLdz/XkxD6nyGC8= +github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20260129103204-4c8453dd8139/go.mod h1:1WcontO9PeuKdUf5HXfs3nuICtzUvFNnyCmrHkTCF9Y= github.com/smartcontractkit/chainlink-common v0.11.2-0.20260506120607-7f10be016c89 h1:5z3LQ27MJmhiaeqp9S2TzbF5Wm4GGvUKAYOtE9AauR8= github.com/smartcontractkit/chainlink-common v0.11.2-0.20260506120607-7f10be016c89/go.mod h1:G2AII0QmWzXx8Ag9IKnGN3h/gwwNnhHUOCviJievdvo= github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.10 h1:FJAFgXS9oqASnkS03RE1HQwYQQxrO4l46O5JSzxqLgg= @@ -703,12 +701,14 @@ github.com/smartcontractkit/chainlink-testing-framework/seth v1.51.5 h1:RwZXxdIA github.com/smartcontractkit/chainlink-testing-framework/seth v1.51.5/go.mod h1:kHYJnZUqiPF7/xN5273prV+srrLJkS77GbBXHLKQpx0= github.com/smartcontractkit/chainlink-ton v1.0.5-0.20260514223130-48bc90aca745 h1:eieKLvYuzwBPh/FdbUS1gnIanI86zgWby1L10o90g4o= github.com/smartcontractkit/chainlink-ton v1.0.5-0.20260514223130-48bc90aca745/go.mod h1:8vXLeG//BxDF86GWRytzGIy6jc70htD1r/KtPfjrsK0= -github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250908203554-5bd9d2fe9513 h1:XRNxgcNqagXu6e4smJuS1crRK5cUAcCVd7u+iLduHDM= -github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250908203554-5bd9d2fe9513/go.mod h1:ccjEgNeqOO+bjPddnL4lUrNLzyCvGCxgBjJdhFX3wa8= +github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20251014143056-a0c6328c91e9 h1:7Ut0g+Pdm+gcu2J/Xv8OpQOVf7uLGErMX8yhC4b4tIA= +github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20251014143056-a0c6328c91e9/go.mod h1:h9hMs6K4hT1+mjYnJD3/SW1o7yC/sKjNi0Qh8hLfiCE= github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.20250422175525-b7575d96bd4d h1:qLmSOOtB/Ogn79eIDkuujOu8M5Jd747V1H7Brk/nTvo= github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.20250422175525-b7575d96bd4d/go.mod h1:4WhGgCA0smBbBud5mK+jnDb2wwndMvoqaWBJ3OV/7Bw= github.com/smartcontractkit/freeport v0.1.3-0.20250828155247-add56fa28aad h1:lgHxTHuzJIF3Vj6LSMOnjhqKgRqYW+0MV2SExtCYL1Q= github.com/smartcontractkit/freeport v0.1.3-0.20250828155247-add56fa28aad/go.mod h1:T4zH9R8R8lVWKfU7tUvYz2o2jMv1OpGCdpY2j2QZXzU= +github.com/smartcontractkit/go-daml v0.0.0-20260604143752-c6f6567940ba h1:peYJwUWOv54aigdk1VFzkmXdZmZK4xixfxv0Af1l6/I= +github.com/smartcontractkit/go-daml v0.0.0-20260604143752-c6f6567940ba/go.mod h1:SqWfl3Bp9NleC9jhzFUaOGzOZeKfldpY4QOW6A6NSNM= github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 h1:12ijqMM9tvYVEm+nR826WsrNi6zCKpwBhuApq127wHs= github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7/go.mod h1:FX7/bVdoep147QQhsOPkYsPEXhGZjeYx6lBSaSXtZOA= github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e h1:poXTj5cFVM6XfC4HICIDYkDVc/A6OYB0eeID0wU2JQE= @@ -767,8 +767,9 @@ github.com/testcontainers/testcontainers-go/modules/postgres v0.41.0 h1:AOtFXssr github.com/testcontainers/testcontainers-go/modules/postgres v0.41.0/go.mod h1:k2a09UKhgSp6vNpliIY0QSgm4Hi7GXVTzWvWgUemu/8= github.com/tidwall/gjson v1.18.0 h1:FIDeeyB800efLX89e5a8Y0BNH+LOngJyGrIWxG2FKQY= github.com/tidwall/gjson v1.18.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= -github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= +github.com/tidwall/match v1.2.0 h1:0pt8FlkOwjN2fPt4bIl4BoNxb98gGHN2ObFEDkrfZnM= +github.com/tidwall/match v1.2.0/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= github.com/tidwall/pretty v1.2.1 h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4= github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= @@ -876,8 +877,6 @@ go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.21.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= go.uber.org/zap v1.28.0 h1:IZzaP1Fv73/T/pBMLk4VutPl36uNC+OSUh3JLG3FIjo= go.uber.org/zap v1.28.0/go.mod h1:rDLpOi171uODNm/mxFcuYWxDsqWSAVkFdX4XojSKg/Q= -go.yaml.in/yaml/v2 v2.4.2 h1:DzmwEr2rDGHl7lsFgAHxmNz/1NlQ7xLIrlN2h5d1eGI= -go.yaml.in/yaml/v2 v2.4.2/go.mod h1:081UH+NErpNdqlCXm3TtEran0rJZGxAYx9hb/ELlsPU= go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc= go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= @@ -891,8 +890,8 @@ golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0 golang.org/x/crypto v0.8.0/go.mod h1:mRqEX+O9/h5TFCrQhkgjo2yKi0yYA+9ecGkdQoHrywE= golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= -golang.org/x/crypto v0.51.0 h1:IBPXwPfKxY7cWQZ38ZCIRPI50YLeevDLlLnyC5wRGTI= -golang.org/x/crypto v0.51.0/go.mod h1:8AdwkbraGNABw2kOX6YFPs3WM22XqI4EXEd8g+x7Oc8= +golang.org/x/crypto v0.52.0 h1:RMs7fP2rXdep0CftQlK8Uf+kibLm7qkCcradZWYz988= +golang.org/x/crypto v0.52.0/go.mod h1:1QgfPxDqh0T2M/elOJtp9RvuR95kVjir0e6/BvEmGbc= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20260218203240-3dfff04db8fa h1:Zt3DZoOFFYkKhDT3v7Lm9FDMEV06GpzjG2jrqW+QTE0= golang.org/x/exp v0.0.0-20260218203240-3dfff04db8fa/go.mod h1:K79w1Vqn7PoiZn+TkNpx3BUWUQksGO3JcVX6qIjytmA= @@ -984,14 +983,12 @@ golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.45.0 h1:dO4czNzziLiiXplLQgBCEpCvXQ3dnkn0SdaZSYdQ+FY= @@ -1109,21 +1106,24 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= k8s.io/api v0.32.3 h1:Hw7KqxRusq+6QSplE3NYG4MBxZw1BZnq4aP4cJVINls= k8s.io/api v0.32.3/go.mod h1:2wEDTXADtm/HA7CCMD8D8bK4yuBUptzaRhYcYEEYA3k= -k8s.io/apimachinery v0.32.3 h1:JmDuDarhDmA/Li7j3aPrwhpNBA94Nvk5zLeOge9HH1U= -k8s.io/apimachinery v0.32.3/go.mod h1:GpHVgxoKlTxClKcteaeuF1Ul/lDVb74KpZcxcmLDElE= +k8s.io/apimachinery v0.33.2 h1:IHFVhqg59mb8PJWTLi8m1mAoepkUNYmptHsV+Z1m5jY= +k8s.io/apimachinery v0.33.2/go.mod h1:BHW0YOu7n22fFv/JkYOEfkUYNRN0fj0BlvMFWA7b+SM= k8s.io/client-go v0.32.3 h1:RKPVltzopkSgHS7aS98QdscAgtgah/+zmpAogooIqVU= k8s.io/client-go v0.32.3/go.mod h1:3v0+3k4IcT9bXTc4V2rt+d2ZPPG700Xy6Oi0Gdl2PaY= k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk= k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= -k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7 h1:hcha5B1kVACrLujCKLbr8XWMxCxzQx42DY8QKYJrDLg= -k8s.io/kube-openapi v0.0.0-20241212222426-2c72e554b1e7/go.mod h1:GewRfANuJ70iYzvn+i4lezLDAFzvjxZYK1gn1lWcfas= -k8s.io/utils v0.0.0-20241104163129-6fe5fd82f078 h1:jGnCPejIetjiy2gqaJ5V0NLwTpF4wbQ6cZIItJCSHno= -k8s.io/utils v0.0.0-20241104163129-6fe5fd82f078/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= +k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff h1:/usPimJzUKKu+m+TE36gUyGcf03XZEP0ZIKgKj35LS4= +k8s.io/kube-openapi v0.0.0-20250318190949-c8a335a9a2ff/go.mod h1:5jIi+8yX4RIb8wk3XwBo5Pq2ccx4FP10ohkbSKCZoK8= +k8s.io/utils v0.0.0-20241210054802-24370beab758 h1:sdbE21q2nlQtFh65saZY+rRM6x6aJJI8IUa1AmH/qa0= +k8s.io/utils v0.0.0-20241210054802-24370beab758/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= pgregory.net/rapid v1.2.0 h1:keKAYRcjm+e1F0oAuU5F5+YPAWcyxNNRK2wud503Gnk= pgregory.net/rapid v1.2.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 h1:/Rv+M11QRah1itp8VhT6HoVx1Ray9eB4DBr+K+/sCJ8= sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3/go.mod h1:18nIHnGi6636UCz6m8i4DhaJ65T6EruyzmoQqI2BVDo= -sigs.k8s.io/structured-merge-diff/v4 v4.4.2 h1:MdmvkGuXi/8io6ixD5wud3vOLwc1rj0aNqRlpuvjmwA= -sigs.k8s.io/structured-merge-diff/v4 v4.4.2/go.mod h1:N8f93tFZh9U6vpxwRArLiikrE5/2tiu1w1AGfACIGE4= +sigs.k8s.io/randfill v0.0.0-20250304075658-069ef1bbf016/go.mod h1:XeLlZ/jmk4i1HRopwe7/aU3H5n1zNUcX6TM94b3QxOY= +sigs.k8s.io/randfill v1.0.0 h1:JfjMILfT8A6RbawdsK2JXGBR5AQVfd+9TbzrlneTyrU= +sigs.k8s.io/randfill v1.0.0/go.mod h1:XeLlZ/jmk4i1HRopwe7/aU3H5n1zNUcX6TM94b3QxOY= +sigs.k8s.io/structured-merge-diff/v4 v4.6.0 h1:IUA9nvMmnKWcj5jl84xn+T5MnlZKThmUW1TdblaLVAc= +sigs.k8s.io/structured-merge-diff/v4 v4.6.0/go.mod h1:dDy58f92j70zLsuZVuUX5Wp9vtxXpaZnkPGWeqDfCps= sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= From f2a4d03aeb1195886adbe064ce0661d18e9572a4 Mon Sep 17 00:00:00 2001 From: faisal-link Date: Mon, 8 Jun 2026 20:28:23 +0400 Subject: [PATCH 04/15] update Sui mocks and deps --- .mockery.yml | 13 +- chain/mcms/adapters/chain_access_test.go | 4 +- chain/sui/mocks/bindings_client.go | 529 +++ chain/sui/mocks/i_sui_api.go | 3860 ---------------------- chain/sui/mocks/sui_ptb_client.go | 2374 +++++++++++++ chain/sui/mocks/sui_signer.go | 151 + go.mod | 21 +- go.sum | 32 +- 8 files changed, 3090 insertions(+), 3894 deletions(-) create mode 100644 chain/sui/mocks/bindings_client.go delete mode 100644 chain/sui/mocks/i_sui_api.go create mode 100644 chain/sui/mocks/sui_ptb_client.go create mode 100644 chain/sui/mocks/sui_signer.go diff --git a/.mockery.yml b/.mockery.yml index 3aaef5fe5..e604433af 100644 --- a/.mockery.yml +++ b/.mockery.yml @@ -140,14 +140,23 @@ packages: interfaces: AptosRpcClient: TransactionSigner: - github.com/block-vision/sui-go-sdk/sui: + github.com/smartcontractkit/chainlink-sui/relayer/client: config: all: false pkgname: "mocks" dir: "chain/sui/mocks" filename: "{{.InterfaceName | snakecase}}.go" interfaces: - ISuiAPI: + BindingsClient: + SuiPTBClient: + github.com/smartcontractkit/chainlink-sui/bindings/utils: + config: + all: false + pkgname: "mocks" + dir: "chain/sui/mocks" + filename: "{{.InterfaceName | snakecase}}.go" + interfaces: + SuiSigner: github.com/xssnick/tonutils-go/ton: config: all: false diff --git a/chain/mcms/adapters/chain_access_test.go b/chain/mcms/adapters/chain_access_test.go index 8d4f27d1f..2f377e88a 100644 --- a/chain/mcms/adapters/chain_access_test.go +++ b/chain/mcms/adapters/chain_access_test.go @@ -88,8 +88,8 @@ func TestChainAccess_SelectorsAndLookups(t *testing.T) { aptosSigner := aptosmocks.NewMockTransactionSigner(t) solClient := solrpc.New("http://example.invalid") solSigner := &sol.PrivateKey{1, 2, 3} - suiClient := suimocks.NewSuiPTBClient(t) - suiSigner := suimocks.NewSuiSigner(t) + suiClient := suimocks.NewMockSuiPTBClient(t) + suiSigner := suimocks.NewMockSuiSigner(t) tonClient := tonmocks.NewMockAPIClientWrapped(t) tonSigner := &tonwallet.Wallet{} diff --git a/chain/sui/mocks/bindings_client.go b/chain/sui/mocks/bindings_client.go new file mode 100644 index 000000000..b621f21a8 --- /dev/null +++ b/chain/sui/mocks/bindings_client.go @@ -0,0 +1,529 @@ +// Code generated by mockery; DO NOT EDIT. +// github.com/vektra/mockery +// template: testify + +package mocks + +import ( + "context" + "math/big" + + "github.com/block-vision/sui-go-sdk/pb/sui/rpc/v2" + "github.com/block-vision/sui-go-sdk/signer" + "github.com/block-vision/sui-go-sdk/transaction" + "github.com/smartcontractkit/chainlink-sui/relayer/client" + mock "github.com/stretchr/testify/mock" +) + +// NewMockBindingsClient creates a new instance of MockBindingsClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewMockBindingsClient(t interface { + mock.TestingT + Cleanup(func()) +}) *MockBindingsClient { + mock := &MockBindingsClient{} + mock.Mock.Test(t) + + t.Cleanup(func() { mock.AssertExpectations(t) }) + + return mock +} + +// MockBindingsClient is an autogenerated mock type for the BindingsClient type +type MockBindingsClient struct { + mock.Mock +} + +type MockBindingsClient_Expecter struct { + mock *mock.Mock +} + +func (_m *MockBindingsClient) EXPECT() *MockBindingsClient_Expecter { + return &MockBindingsClient_Expecter{mock: &_m.Mock} +} + +// FinishPTBAndSend provides a mock function for the type MockBindingsClient +func (_mock *MockBindingsClient) FinishPTBAndSend(ctx context.Context, signer1 *signer.Signer, tx *transaction.Transaction, requestType client.TransactionRequestType) (*v2.ExecuteTransactionResponse, error) { + ret := _mock.Called(ctx, signer1, tx, requestType) + + if len(ret) == 0 { + panic("no return value specified for FinishPTBAndSend") + } + + var r0 *v2.ExecuteTransactionResponse + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, *signer.Signer, *transaction.Transaction, client.TransactionRequestType) (*v2.ExecuteTransactionResponse, error)); ok { + return returnFunc(ctx, signer1, tx, requestType) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, *signer.Signer, *transaction.Transaction, client.TransactionRequestType) *v2.ExecuteTransactionResponse); ok { + r0 = returnFunc(ctx, signer1, tx, requestType) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*v2.ExecuteTransactionResponse) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, *signer.Signer, *transaction.Transaction, client.TransactionRequestType) error); ok { + r1 = returnFunc(ctx, signer1, tx, requestType) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockBindingsClient_FinishPTBAndSend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FinishPTBAndSend' +type MockBindingsClient_FinishPTBAndSend_Call struct { + *mock.Call +} + +// FinishPTBAndSend is a helper method to define mock.On call +// - ctx context.Context +// - signer1 *signer.Signer +// - tx *transaction.Transaction +// - requestType client.TransactionRequestType +func (_e *MockBindingsClient_Expecter) FinishPTBAndSend(ctx interface{}, signer1 interface{}, tx interface{}, requestType interface{}) *MockBindingsClient_FinishPTBAndSend_Call { + return &MockBindingsClient_FinishPTBAndSend_Call{Call: _e.mock.On("FinishPTBAndSend", ctx, signer1, tx, requestType)} +} + +func (_c *MockBindingsClient_FinishPTBAndSend_Call) Run(run func(ctx context.Context, signer1 *signer.Signer, tx *transaction.Transaction, requestType client.TransactionRequestType)) *MockBindingsClient_FinishPTBAndSend_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 *signer.Signer + if args[1] != nil { + arg1 = args[1].(*signer.Signer) + } + var arg2 *transaction.Transaction + if args[2] != nil { + arg2 = args[2].(*transaction.Transaction) + } + var arg3 client.TransactionRequestType + if args[3] != nil { + arg3 = args[3].(client.TransactionRequestType) + } + run( + arg0, + arg1, + arg2, + arg3, + ) + }) + return _c +} + +func (_c *MockBindingsClient_FinishPTBAndSend_Call) Return(executeTransactionResponse *v2.ExecuteTransactionResponse, err error) *MockBindingsClient_FinishPTBAndSend_Call { + _c.Call.Return(executeTransactionResponse, err) + return _c +} + +func (_c *MockBindingsClient_FinishPTBAndSend_Call) RunAndReturn(run func(ctx context.Context, signer1 *signer.Signer, tx *transaction.Transaction, requestType client.TransactionRequestType) (*v2.ExecuteTransactionResponse, error)) *MockBindingsClient_FinishPTBAndSend_Call { + _c.Call.Return(run) + return _c +} + +// GetReferenceGasPrice provides a mock function for the type MockBindingsClient +func (_mock *MockBindingsClient) GetReferenceGasPrice(ctx context.Context) (*big.Int, error) { + ret := _mock.Called(ctx) + + if len(ret) == 0 { + panic("no return value specified for GetReferenceGasPrice") + } + + var r0 *big.Int + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context) (*big.Int, error)); ok { + return returnFunc(ctx) + } + if returnFunc, ok := ret.Get(0).(func(context.Context) *big.Int); ok { + r0 = returnFunc(ctx) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*big.Int) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok { + r1 = returnFunc(ctx) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockBindingsClient_GetReferenceGasPrice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReferenceGasPrice' +type MockBindingsClient_GetReferenceGasPrice_Call struct { + *mock.Call +} + +// GetReferenceGasPrice is a helper method to define mock.On call +// - ctx context.Context +func (_e *MockBindingsClient_Expecter) GetReferenceGasPrice(ctx interface{}) *MockBindingsClient_GetReferenceGasPrice_Call { + return &MockBindingsClient_GetReferenceGasPrice_Call{Call: _e.mock.On("GetReferenceGasPrice", ctx)} +} + +func (_c *MockBindingsClient_GetReferenceGasPrice_Call) Run(run func(ctx context.Context)) *MockBindingsClient_GetReferenceGasPrice_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + run( + arg0, + ) + }) + return _c +} + +func (_c *MockBindingsClient_GetReferenceGasPrice_Call) Return(intParam *big.Int, err error) *MockBindingsClient_GetReferenceGasPrice_Call { + _c.Call.Return(intParam, err) + return _c +} + +func (_c *MockBindingsClient_GetReferenceGasPrice_Call) RunAndReturn(run func(ctx context.Context) (*big.Int, error)) *MockBindingsClient_GetReferenceGasPrice_Call { + _c.Call.Return(run) + return _c +} + +// GetTransactionStatus provides a mock function for the type MockBindingsClient +func (_mock *MockBindingsClient) GetTransactionStatus(ctx context.Context, digest string) (client.TransactionResult, error) { + ret := _mock.Called(ctx, digest) + + if len(ret) == 0 { + panic("no return value specified for GetTransactionStatus") + } + + var r0 client.TransactionResult + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, string) (client.TransactionResult, error)); ok { + return returnFunc(ctx, digest) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, string) client.TransactionResult); ok { + r0 = returnFunc(ctx, digest) + } else { + r0 = ret.Get(0).(client.TransactionResult) + } + if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok { + r1 = returnFunc(ctx, digest) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockBindingsClient_GetTransactionStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTransactionStatus' +type MockBindingsClient_GetTransactionStatus_Call struct { + *mock.Call +} + +// GetTransactionStatus is a helper method to define mock.On call +// - ctx context.Context +// - digest string +func (_e *MockBindingsClient_Expecter) GetTransactionStatus(ctx interface{}, digest interface{}) *MockBindingsClient_GetTransactionStatus_Call { + return &MockBindingsClient_GetTransactionStatus_Call{Call: _e.mock.On("GetTransactionStatus", ctx, digest)} +} + +func (_c *MockBindingsClient_GetTransactionStatus_Call) Run(run func(ctx context.Context, digest string)) *MockBindingsClient_GetTransactionStatus_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 string + if args[1] != nil { + arg1 = args[1].(string) + } + run( + arg0, + arg1, + ) + }) + return _c +} + +func (_c *MockBindingsClient_GetTransactionStatus_Call) Return(transactionResult client.TransactionResult, err error) *MockBindingsClient_GetTransactionStatus_Call { + _c.Call.Return(transactionResult, err) + return _c +} + +func (_c *MockBindingsClient_GetTransactionStatus_Call) RunAndReturn(run func(ctx context.Context, digest string) (client.TransactionResult, error)) *MockBindingsClient_GetTransactionStatus_Call { + _c.Call.Return(run) + return _c +} + +// QueryCoinsByAddress provides a mock function for the type MockBindingsClient +func (_mock *MockBindingsClient) QueryCoinsByAddress(ctx context.Context, address string, coinType string) ([]*v2.Object, error) { + ret := _mock.Called(ctx, address, coinType) + + if len(ret) == 0 { + panic("no return value specified for QueryCoinsByAddress") + } + + var r0 []*v2.Object + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) ([]*v2.Object, error)); ok { + return returnFunc(ctx, address, coinType) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) []*v2.Object); ok { + r0 = returnFunc(ctx, address, coinType) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).([]*v2.Object) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, string, string) error); ok { + r1 = returnFunc(ctx, address, coinType) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockBindingsClient_QueryCoinsByAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryCoinsByAddress' +type MockBindingsClient_QueryCoinsByAddress_Call struct { + *mock.Call +} + +// QueryCoinsByAddress is a helper method to define mock.On call +// - ctx context.Context +// - address string +// - coinType string +func (_e *MockBindingsClient_Expecter) QueryCoinsByAddress(ctx interface{}, address interface{}, coinType interface{}) *MockBindingsClient_QueryCoinsByAddress_Call { + return &MockBindingsClient_QueryCoinsByAddress_Call{Call: _e.mock.On("QueryCoinsByAddress", ctx, address, coinType)} +} + +func (_c *MockBindingsClient_QueryCoinsByAddress_Call) Run(run func(ctx context.Context, address string, coinType string)) *MockBindingsClient_QueryCoinsByAddress_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 string + if args[1] != nil { + arg1 = args[1].(string) + } + var arg2 string + if args[2] != nil { + arg2 = args[2].(string) + } + run( + arg0, + arg1, + arg2, + ) + }) + return _c +} + +func (_c *MockBindingsClient_QueryCoinsByAddress_Call) Return(objects []*v2.Object, err error) *MockBindingsClient_QueryCoinsByAddress_Call { + _c.Call.Return(objects, err) + return _c +} + +func (_c *MockBindingsClient_QueryCoinsByAddress_Call) RunAndReturn(run func(ctx context.Context, address string, coinType string) ([]*v2.Object, error)) *MockBindingsClient_QueryCoinsByAddress_Call { + _c.Call.Return(run) + return _c +} + +// ReadObjectId provides a mock function for the type MockBindingsClient +func (_mock *MockBindingsClient) ReadObjectId(ctx context.Context, objectId string) (*v2.Object, error) { + ret := _mock.Called(ctx, objectId) + + if len(ret) == 0 { + panic("no return value specified for ReadObjectId") + } + + var r0 *v2.Object + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, string) (*v2.Object, error)); ok { + return returnFunc(ctx, objectId) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, string) *v2.Object); ok { + r0 = returnFunc(ctx, objectId) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*v2.Object) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok { + r1 = returnFunc(ctx, objectId) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockBindingsClient_ReadObjectId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadObjectId' +type MockBindingsClient_ReadObjectId_Call struct { + *mock.Call +} + +// ReadObjectId is a helper method to define mock.On call +// - ctx context.Context +// - objectId string +func (_e *MockBindingsClient_Expecter) ReadObjectId(ctx interface{}, objectId interface{}) *MockBindingsClient_ReadObjectId_Call { + return &MockBindingsClient_ReadObjectId_Call{Call: _e.mock.On("ReadObjectId", ctx, objectId)} +} + +func (_c *MockBindingsClient_ReadObjectId_Call) Run(run func(ctx context.Context, objectId string)) *MockBindingsClient_ReadObjectId_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 string + if args[1] != nil { + arg1 = args[1].(string) + } + run( + arg0, + arg1, + ) + }) + return _c +} + +func (_c *MockBindingsClient_ReadObjectId_Call) Return(object *v2.Object, err error) *MockBindingsClient_ReadObjectId_Call { + _c.Call.Return(object, err) + return _c +} + +func (_c *MockBindingsClient_ReadObjectId_Call) RunAndReturn(run func(ctx context.Context, objectId string) (*v2.Object, error)) *MockBindingsClient_ReadObjectId_Call { + _c.Call.Return(run) + return _c +} + +// SendTransaction provides a mock function for the type MockBindingsClient +func (_mock *MockBindingsClient) SendTransaction(ctx context.Context, req *v2.ExecuteTransactionRequest) (*v2.ExecuteTransactionResponse, error) { + ret := _mock.Called(ctx, req) + + if len(ret) == 0 { + panic("no return value specified for SendTransaction") + } + + var r0 *v2.ExecuteTransactionResponse + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, *v2.ExecuteTransactionRequest) (*v2.ExecuteTransactionResponse, error)); ok { + return returnFunc(ctx, req) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, *v2.ExecuteTransactionRequest) *v2.ExecuteTransactionResponse); ok { + r0 = returnFunc(ctx, req) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*v2.ExecuteTransactionResponse) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, *v2.ExecuteTransactionRequest) error); ok { + r1 = returnFunc(ctx, req) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockBindingsClient_SendTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendTransaction' +type MockBindingsClient_SendTransaction_Call struct { + *mock.Call +} + +// SendTransaction is a helper method to define mock.On call +// - ctx context.Context +// - req *v2.ExecuteTransactionRequest +func (_e *MockBindingsClient_Expecter) SendTransaction(ctx interface{}, req interface{}) *MockBindingsClient_SendTransaction_Call { + return &MockBindingsClient_SendTransaction_Call{Call: _e.mock.On("SendTransaction", ctx, req)} +} + +func (_c *MockBindingsClient_SendTransaction_Call) Run(run func(ctx context.Context, req *v2.ExecuteTransactionRequest)) *MockBindingsClient_SendTransaction_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 *v2.ExecuteTransactionRequest + if args[1] != nil { + arg1 = args[1].(*v2.ExecuteTransactionRequest) + } + run( + arg0, + arg1, + ) + }) + return _c +} + +func (_c *MockBindingsClient_SendTransaction_Call) Return(executeTransactionResponse *v2.ExecuteTransactionResponse, err error) *MockBindingsClient_SendTransaction_Call { + _c.Call.Return(executeTransactionResponse, err) + return _c +} + +func (_c *MockBindingsClient_SendTransaction_Call) RunAndReturn(run func(ctx context.Context, req *v2.ExecuteTransactionRequest) (*v2.ExecuteTransactionResponse, error)) *MockBindingsClient_SendTransaction_Call { + _c.Call.Return(run) + return _c +} + +// SimulatePTB provides a mock function for the type MockBindingsClient +func (_mock *MockBindingsClient) SimulatePTB(ctx context.Context, bcsBytes []byte) ([]any, error) { + ret := _mock.Called(ctx, bcsBytes) + + if len(ret) == 0 { + panic("no return value specified for SimulatePTB") + } + + var r0 []any + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, []byte) ([]any, error)); ok { + return returnFunc(ctx, bcsBytes) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, []byte) []any); ok { + r0 = returnFunc(ctx, bcsBytes) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).([]any) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, []byte) error); ok { + r1 = returnFunc(ctx, bcsBytes) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockBindingsClient_SimulatePTB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SimulatePTB' +type MockBindingsClient_SimulatePTB_Call struct { + *mock.Call +} + +// SimulatePTB is a helper method to define mock.On call +// - ctx context.Context +// - bcsBytes []byte +func (_e *MockBindingsClient_Expecter) SimulatePTB(ctx interface{}, bcsBytes interface{}) *MockBindingsClient_SimulatePTB_Call { + return &MockBindingsClient_SimulatePTB_Call{Call: _e.mock.On("SimulatePTB", ctx, bcsBytes)} +} + +func (_c *MockBindingsClient_SimulatePTB_Call) Run(run func(ctx context.Context, bcsBytes []byte)) *MockBindingsClient_SimulatePTB_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 []byte + if args[1] != nil { + arg1 = args[1].([]byte) + } + run( + arg0, + arg1, + ) + }) + return _c +} + +func (_c *MockBindingsClient_SimulatePTB_Call) Return(vs []any, err error) *MockBindingsClient_SimulatePTB_Call { + _c.Call.Return(vs, err) + return _c +} + +func (_c *MockBindingsClient_SimulatePTB_Call) RunAndReturn(run func(ctx context.Context, bcsBytes []byte) ([]any, error)) *MockBindingsClient_SimulatePTB_Call { + _c.Call.Return(run) + return _c +} diff --git a/chain/sui/mocks/i_sui_api.go b/chain/sui/mocks/i_sui_api.go deleted file mode 100644 index 09273857f..000000000 --- a/chain/sui/mocks/i_sui_api.go +++ /dev/null @@ -1,3860 +0,0 @@ -// Code generated by mockery; DO NOT EDIT. -// github.com/vektra/mockery -// template: testify - -package mocks - -import ( - "context" - - "github.com/block-vision/sui-go-sdk/models" - mock "github.com/stretchr/testify/mock" -) - -// NewMockISuiAPI creates a new instance of MockISuiAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. -// The first argument is typically a *testing.T value. -func NewMockISuiAPI(t interface { - mock.TestingT - Cleanup(func()) -}) *MockISuiAPI { - mock := &MockISuiAPI{} - mock.Mock.Test(t) - - t.Cleanup(func() { mock.AssertExpectations(t) }) - - return mock -} - -// MockISuiAPI is an autogenerated mock type for the ISuiAPI type -type MockISuiAPI struct { - mock.Mock -} - -type MockISuiAPI_Expecter struct { - mock *mock.Mock -} - -func (_m *MockISuiAPI) EXPECT() *MockISuiAPI_Expecter { - return &MockISuiAPI_Expecter{mock: &_m.Mock} -} - -// BatchTransaction provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) BatchTransaction(ctx context.Context, req models.BatchTransactionRequest) (models.BatchTransactionResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for BatchTransaction") - } - - var r0 models.BatchTransactionResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.BatchTransactionRequest) (models.BatchTransactionResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.BatchTransactionRequest) models.BatchTransactionResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.BatchTransactionResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.BatchTransactionRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_BatchTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchTransaction' -type MockISuiAPI_BatchTransaction_Call struct { - *mock.Call -} - -// BatchTransaction is a helper method to define mock.On call -// - ctx context.Context -// - req models.BatchTransactionRequest -func (_e *MockISuiAPI_Expecter) BatchTransaction(ctx interface{}, req interface{}) *MockISuiAPI_BatchTransaction_Call { - return &MockISuiAPI_BatchTransaction_Call{Call: _e.mock.On("BatchTransaction", ctx, req)} -} - -func (_c *MockISuiAPI_BatchTransaction_Call) Run(run func(ctx context.Context, req models.BatchTransactionRequest)) *MockISuiAPI_BatchTransaction_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.BatchTransactionRequest - if args[1] != nil { - arg1 = args[1].(models.BatchTransactionRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_BatchTransaction_Call) Return(batchTransactionResponse models.BatchTransactionResponse, err error) *MockISuiAPI_BatchTransaction_Call { - _c.Call.Return(batchTransactionResponse, err) - return _c -} - -func (_c *MockISuiAPI_BatchTransaction_Call) RunAndReturn(run func(ctx context.Context, req models.BatchTransactionRequest) (models.BatchTransactionResponse, error)) *MockISuiAPI_BatchTransaction_Call { - _c.Call.Return(run) - return _c -} - -// MergeCoins provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) MergeCoins(ctx context.Context, req models.MergeCoinsRequest) (models.TxnMetaData, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for MergeCoins") - } - - var r0 models.TxnMetaData - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.MergeCoinsRequest) (models.TxnMetaData, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.MergeCoinsRequest) models.TxnMetaData); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.TxnMetaData) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.MergeCoinsRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_MergeCoins_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MergeCoins' -type MockISuiAPI_MergeCoins_Call struct { - *mock.Call -} - -// MergeCoins is a helper method to define mock.On call -// - ctx context.Context -// - req models.MergeCoinsRequest -func (_e *MockISuiAPI_Expecter) MergeCoins(ctx interface{}, req interface{}) *MockISuiAPI_MergeCoins_Call { - return &MockISuiAPI_MergeCoins_Call{Call: _e.mock.On("MergeCoins", ctx, req)} -} - -func (_c *MockISuiAPI_MergeCoins_Call) Run(run func(ctx context.Context, req models.MergeCoinsRequest)) *MockISuiAPI_MergeCoins_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.MergeCoinsRequest - if args[1] != nil { - arg1 = args[1].(models.MergeCoinsRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_MergeCoins_Call) Return(txnMetaData models.TxnMetaData, err error) *MockISuiAPI_MergeCoins_Call { - _c.Call.Return(txnMetaData, err) - return _c -} - -func (_c *MockISuiAPI_MergeCoins_Call) RunAndReturn(run func(ctx context.Context, req models.MergeCoinsRequest) (models.TxnMetaData, error)) *MockISuiAPI_MergeCoins_Call { - _c.Call.Return(run) - return _c -} - -// MoveCall provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) MoveCall(ctx context.Context, req models.MoveCallRequest) (models.TxnMetaData, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for MoveCall") - } - - var r0 models.TxnMetaData - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.MoveCallRequest) (models.TxnMetaData, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.MoveCallRequest) models.TxnMetaData); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.TxnMetaData) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.MoveCallRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_MoveCall_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MoveCall' -type MockISuiAPI_MoveCall_Call struct { - *mock.Call -} - -// MoveCall is a helper method to define mock.On call -// - ctx context.Context -// - req models.MoveCallRequest -func (_e *MockISuiAPI_Expecter) MoveCall(ctx interface{}, req interface{}) *MockISuiAPI_MoveCall_Call { - return &MockISuiAPI_MoveCall_Call{Call: _e.mock.On("MoveCall", ctx, req)} -} - -func (_c *MockISuiAPI_MoveCall_Call) Run(run func(ctx context.Context, req models.MoveCallRequest)) *MockISuiAPI_MoveCall_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.MoveCallRequest - if args[1] != nil { - arg1 = args[1].(models.MoveCallRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_MoveCall_Call) Return(txnMetaData models.TxnMetaData, err error) *MockISuiAPI_MoveCall_Call { - _c.Call.Return(txnMetaData, err) - return _c -} - -func (_c *MockISuiAPI_MoveCall_Call) RunAndReturn(run func(ctx context.Context, req models.MoveCallRequest) (models.TxnMetaData, error)) *MockISuiAPI_MoveCall_Call { - _c.Call.Return(run) - return _c -} - -// Pay provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) Pay(ctx context.Context, req models.PayRequest) (models.TxnMetaData, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for Pay") - } - - var r0 models.TxnMetaData - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.PayRequest) (models.TxnMetaData, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.PayRequest) models.TxnMetaData); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.TxnMetaData) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.PayRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_Pay_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pay' -type MockISuiAPI_Pay_Call struct { - *mock.Call -} - -// Pay is a helper method to define mock.On call -// - ctx context.Context -// - req models.PayRequest -func (_e *MockISuiAPI_Expecter) Pay(ctx interface{}, req interface{}) *MockISuiAPI_Pay_Call { - return &MockISuiAPI_Pay_Call{Call: _e.mock.On("Pay", ctx, req)} -} - -func (_c *MockISuiAPI_Pay_Call) Run(run func(ctx context.Context, req models.PayRequest)) *MockISuiAPI_Pay_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.PayRequest - if args[1] != nil { - arg1 = args[1].(models.PayRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_Pay_Call) Return(txnMetaData models.TxnMetaData, err error) *MockISuiAPI_Pay_Call { - _c.Call.Return(txnMetaData, err) - return _c -} - -func (_c *MockISuiAPI_Pay_Call) RunAndReturn(run func(ctx context.Context, req models.PayRequest) (models.TxnMetaData, error)) *MockISuiAPI_Pay_Call { - _c.Call.Return(run) - return _c -} - -// PayAllSui provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) PayAllSui(ctx context.Context, req models.PayAllSuiRequest) (models.TxnMetaData, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for PayAllSui") - } - - var r0 models.TxnMetaData - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.PayAllSuiRequest) (models.TxnMetaData, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.PayAllSuiRequest) models.TxnMetaData); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.TxnMetaData) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.PayAllSuiRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_PayAllSui_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PayAllSui' -type MockISuiAPI_PayAllSui_Call struct { - *mock.Call -} - -// PayAllSui is a helper method to define mock.On call -// - ctx context.Context -// - req models.PayAllSuiRequest -func (_e *MockISuiAPI_Expecter) PayAllSui(ctx interface{}, req interface{}) *MockISuiAPI_PayAllSui_Call { - return &MockISuiAPI_PayAllSui_Call{Call: _e.mock.On("PayAllSui", ctx, req)} -} - -func (_c *MockISuiAPI_PayAllSui_Call) Run(run func(ctx context.Context, req models.PayAllSuiRequest)) *MockISuiAPI_PayAllSui_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.PayAllSuiRequest - if args[1] != nil { - arg1 = args[1].(models.PayAllSuiRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_PayAllSui_Call) Return(txnMetaData models.TxnMetaData, err error) *MockISuiAPI_PayAllSui_Call { - _c.Call.Return(txnMetaData, err) - return _c -} - -func (_c *MockISuiAPI_PayAllSui_Call) RunAndReturn(run func(ctx context.Context, req models.PayAllSuiRequest) (models.TxnMetaData, error)) *MockISuiAPI_PayAllSui_Call { - _c.Call.Return(run) - return _c -} - -// PaySui provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) PaySui(ctx context.Context, req models.PaySuiRequest) (models.TxnMetaData, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for PaySui") - } - - var r0 models.TxnMetaData - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.PaySuiRequest) (models.TxnMetaData, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.PaySuiRequest) models.TxnMetaData); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.TxnMetaData) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.PaySuiRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_PaySui_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PaySui' -type MockISuiAPI_PaySui_Call struct { - *mock.Call -} - -// PaySui is a helper method to define mock.On call -// - ctx context.Context -// - req models.PaySuiRequest -func (_e *MockISuiAPI_Expecter) PaySui(ctx interface{}, req interface{}) *MockISuiAPI_PaySui_Call { - return &MockISuiAPI_PaySui_Call{Call: _e.mock.On("PaySui", ctx, req)} -} - -func (_c *MockISuiAPI_PaySui_Call) Run(run func(ctx context.Context, req models.PaySuiRequest)) *MockISuiAPI_PaySui_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.PaySuiRequest - if args[1] != nil { - arg1 = args[1].(models.PaySuiRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_PaySui_Call) Return(txnMetaData models.TxnMetaData, err error) *MockISuiAPI_PaySui_Call { - _c.Call.Return(txnMetaData, err) - return _c -} - -func (_c *MockISuiAPI_PaySui_Call) RunAndReturn(run func(ctx context.Context, req models.PaySuiRequest) (models.TxnMetaData, error)) *MockISuiAPI_PaySui_Call { - _c.Call.Return(run) - return _c -} - -// Publish provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) Publish(ctx context.Context, req models.PublishRequest) (models.TxnMetaData, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for Publish") - } - - var r0 models.TxnMetaData - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.PublishRequest) (models.TxnMetaData, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.PublishRequest) models.TxnMetaData); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.TxnMetaData) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.PublishRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_Publish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Publish' -type MockISuiAPI_Publish_Call struct { - *mock.Call -} - -// Publish is a helper method to define mock.On call -// - ctx context.Context -// - req models.PublishRequest -func (_e *MockISuiAPI_Expecter) Publish(ctx interface{}, req interface{}) *MockISuiAPI_Publish_Call { - return &MockISuiAPI_Publish_Call{Call: _e.mock.On("Publish", ctx, req)} -} - -func (_c *MockISuiAPI_Publish_Call) Run(run func(ctx context.Context, req models.PublishRequest)) *MockISuiAPI_Publish_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.PublishRequest - if args[1] != nil { - arg1 = args[1].(models.PublishRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_Publish_Call) Return(txnMetaData models.TxnMetaData, err error) *MockISuiAPI_Publish_Call { - _c.Call.Return(txnMetaData, err) - return _c -} - -func (_c *MockISuiAPI_Publish_Call) RunAndReturn(run func(ctx context.Context, req models.PublishRequest) (models.TxnMetaData, error)) *MockISuiAPI_Publish_Call { - _c.Call.Return(run) - return _c -} - -// RequestAddStake provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) RequestAddStake(ctx context.Context, req models.AddStakeRequest) (models.TxnMetaData, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for RequestAddStake") - } - - var r0 models.TxnMetaData - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.AddStakeRequest) (models.TxnMetaData, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.AddStakeRequest) models.TxnMetaData); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.TxnMetaData) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.AddStakeRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_RequestAddStake_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RequestAddStake' -type MockISuiAPI_RequestAddStake_Call struct { - *mock.Call -} - -// RequestAddStake is a helper method to define mock.On call -// - ctx context.Context -// - req models.AddStakeRequest -func (_e *MockISuiAPI_Expecter) RequestAddStake(ctx interface{}, req interface{}) *MockISuiAPI_RequestAddStake_Call { - return &MockISuiAPI_RequestAddStake_Call{Call: _e.mock.On("RequestAddStake", ctx, req)} -} - -func (_c *MockISuiAPI_RequestAddStake_Call) Run(run func(ctx context.Context, req models.AddStakeRequest)) *MockISuiAPI_RequestAddStake_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.AddStakeRequest - if args[1] != nil { - arg1 = args[1].(models.AddStakeRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_RequestAddStake_Call) Return(txnMetaData models.TxnMetaData, err error) *MockISuiAPI_RequestAddStake_Call { - _c.Call.Return(txnMetaData, err) - return _c -} - -func (_c *MockISuiAPI_RequestAddStake_Call) RunAndReturn(run func(ctx context.Context, req models.AddStakeRequest) (models.TxnMetaData, error)) *MockISuiAPI_RequestAddStake_Call { - _c.Call.Return(run) - return _c -} - -// RequestWithdrawStake provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) RequestWithdrawStake(ctx context.Context, req models.WithdrawStakeRequest) (models.TxnMetaData, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for RequestWithdrawStake") - } - - var r0 models.TxnMetaData - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.WithdrawStakeRequest) (models.TxnMetaData, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.WithdrawStakeRequest) models.TxnMetaData); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.TxnMetaData) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.WithdrawStakeRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_RequestWithdrawStake_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RequestWithdrawStake' -type MockISuiAPI_RequestWithdrawStake_Call struct { - *mock.Call -} - -// RequestWithdrawStake is a helper method to define mock.On call -// - ctx context.Context -// - req models.WithdrawStakeRequest -func (_e *MockISuiAPI_Expecter) RequestWithdrawStake(ctx interface{}, req interface{}) *MockISuiAPI_RequestWithdrawStake_Call { - return &MockISuiAPI_RequestWithdrawStake_Call{Call: _e.mock.On("RequestWithdrawStake", ctx, req)} -} - -func (_c *MockISuiAPI_RequestWithdrawStake_Call) Run(run func(ctx context.Context, req models.WithdrawStakeRequest)) *MockISuiAPI_RequestWithdrawStake_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.WithdrawStakeRequest - if args[1] != nil { - arg1 = args[1].(models.WithdrawStakeRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_RequestWithdrawStake_Call) Return(txnMetaData models.TxnMetaData, err error) *MockISuiAPI_RequestWithdrawStake_Call { - _c.Call.Return(txnMetaData, err) - return _c -} - -func (_c *MockISuiAPI_RequestWithdrawStake_Call) RunAndReturn(run func(ctx context.Context, req models.WithdrawStakeRequest) (models.TxnMetaData, error)) *MockISuiAPI_RequestWithdrawStake_Call { - _c.Call.Return(run) - return _c -} - -// SignAndExecuteTransactionBlock provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SignAndExecuteTransactionBlock(ctx context.Context, req models.SignAndExecuteTransactionBlockRequest) (models.SuiTransactionBlockResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SignAndExecuteTransactionBlock") - } - - var r0 models.SuiTransactionBlockResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SignAndExecuteTransactionBlockRequest) (models.SuiTransactionBlockResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SignAndExecuteTransactionBlockRequest) models.SuiTransactionBlockResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.SuiTransactionBlockResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SignAndExecuteTransactionBlockRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SignAndExecuteTransactionBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignAndExecuteTransactionBlock' -type MockISuiAPI_SignAndExecuteTransactionBlock_Call struct { - *mock.Call -} - -// SignAndExecuteTransactionBlock is a helper method to define mock.On call -// - ctx context.Context -// - req models.SignAndExecuteTransactionBlockRequest -func (_e *MockISuiAPI_Expecter) SignAndExecuteTransactionBlock(ctx interface{}, req interface{}) *MockISuiAPI_SignAndExecuteTransactionBlock_Call { - return &MockISuiAPI_SignAndExecuteTransactionBlock_Call{Call: _e.mock.On("SignAndExecuteTransactionBlock", ctx, req)} -} - -func (_c *MockISuiAPI_SignAndExecuteTransactionBlock_Call) Run(run func(ctx context.Context, req models.SignAndExecuteTransactionBlockRequest)) *MockISuiAPI_SignAndExecuteTransactionBlock_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SignAndExecuteTransactionBlockRequest - if args[1] != nil { - arg1 = args[1].(models.SignAndExecuteTransactionBlockRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SignAndExecuteTransactionBlock_Call) Return(suiTransactionBlockResponse models.SuiTransactionBlockResponse, err error) *MockISuiAPI_SignAndExecuteTransactionBlock_Call { - _c.Call.Return(suiTransactionBlockResponse, err) - return _c -} - -func (_c *MockISuiAPI_SignAndExecuteTransactionBlock_Call) RunAndReturn(run func(ctx context.Context, req models.SignAndExecuteTransactionBlockRequest) (models.SuiTransactionBlockResponse, error)) *MockISuiAPI_SignAndExecuteTransactionBlock_Call { - _c.Call.Return(run) - return _c -} - -// SplitCoin provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SplitCoin(ctx context.Context, req models.SplitCoinRequest) (models.TxnMetaData, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SplitCoin") - } - - var r0 models.TxnMetaData - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SplitCoinRequest) (models.TxnMetaData, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SplitCoinRequest) models.TxnMetaData); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.TxnMetaData) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SplitCoinRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SplitCoin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SplitCoin' -type MockISuiAPI_SplitCoin_Call struct { - *mock.Call -} - -// SplitCoin is a helper method to define mock.On call -// - ctx context.Context -// - req models.SplitCoinRequest -func (_e *MockISuiAPI_Expecter) SplitCoin(ctx interface{}, req interface{}) *MockISuiAPI_SplitCoin_Call { - return &MockISuiAPI_SplitCoin_Call{Call: _e.mock.On("SplitCoin", ctx, req)} -} - -func (_c *MockISuiAPI_SplitCoin_Call) Run(run func(ctx context.Context, req models.SplitCoinRequest)) *MockISuiAPI_SplitCoin_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SplitCoinRequest - if args[1] != nil { - arg1 = args[1].(models.SplitCoinRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SplitCoin_Call) Return(txnMetaData models.TxnMetaData, err error) *MockISuiAPI_SplitCoin_Call { - _c.Call.Return(txnMetaData, err) - return _c -} - -func (_c *MockISuiAPI_SplitCoin_Call) RunAndReturn(run func(ctx context.Context, req models.SplitCoinRequest) (models.TxnMetaData, error)) *MockISuiAPI_SplitCoin_Call { - _c.Call.Return(run) - return _c -} - -// SplitCoinEqual provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SplitCoinEqual(ctx context.Context, req models.SplitCoinEqualRequest) (models.TxnMetaData, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SplitCoinEqual") - } - - var r0 models.TxnMetaData - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SplitCoinEqualRequest) (models.TxnMetaData, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SplitCoinEqualRequest) models.TxnMetaData); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.TxnMetaData) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SplitCoinEqualRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SplitCoinEqual_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SplitCoinEqual' -type MockISuiAPI_SplitCoinEqual_Call struct { - *mock.Call -} - -// SplitCoinEqual is a helper method to define mock.On call -// - ctx context.Context -// - req models.SplitCoinEqualRequest -func (_e *MockISuiAPI_Expecter) SplitCoinEqual(ctx interface{}, req interface{}) *MockISuiAPI_SplitCoinEqual_Call { - return &MockISuiAPI_SplitCoinEqual_Call{Call: _e.mock.On("SplitCoinEqual", ctx, req)} -} - -func (_c *MockISuiAPI_SplitCoinEqual_Call) Run(run func(ctx context.Context, req models.SplitCoinEqualRequest)) *MockISuiAPI_SplitCoinEqual_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SplitCoinEqualRequest - if args[1] != nil { - arg1 = args[1].(models.SplitCoinEqualRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SplitCoinEqual_Call) Return(txnMetaData models.TxnMetaData, err error) *MockISuiAPI_SplitCoinEqual_Call { - _c.Call.Return(txnMetaData, err) - return _c -} - -func (_c *MockISuiAPI_SplitCoinEqual_Call) RunAndReturn(run func(ctx context.Context, req models.SplitCoinEqualRequest) (models.TxnMetaData, error)) *MockISuiAPI_SplitCoinEqual_Call { - _c.Call.Return(run) - return _c -} - -// SuiCall provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiCall(ctx context.Context, method string, params ...interface{}) (interface{}, error) { - var tmpRet mock.Arguments - if len(params) > 0 { - tmpRet = _mock.Called(ctx, method, params) - } else { - tmpRet = _mock.Called(ctx, method) - } - ret := tmpRet - - if len(ret) == 0 { - panic("no return value specified for SuiCall") - } - - var r0 interface{} - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, string, ...interface{}) (interface{}, error)); ok { - return returnFunc(ctx, method, params...) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, string, ...interface{}) interface{}); ok { - r0 = returnFunc(ctx, method, params...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(interface{}) - } - } - if returnFunc, ok := ret.Get(1).(func(context.Context, string, ...interface{}) error); ok { - r1 = returnFunc(ctx, method, params...) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiCall_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiCall' -type MockISuiAPI_SuiCall_Call struct { - *mock.Call -} - -// SuiCall is a helper method to define mock.On call -// - ctx context.Context -// - method string -// - params ...interface{} -func (_e *MockISuiAPI_Expecter) SuiCall(ctx interface{}, method interface{}, params ...interface{}) *MockISuiAPI_SuiCall_Call { - return &MockISuiAPI_SuiCall_Call{Call: _e.mock.On("SuiCall", - append([]interface{}{ctx, method}, params...)...)} -} - -func (_c *MockISuiAPI_SuiCall_Call) Run(run func(ctx context.Context, method string, params ...interface{})) *MockISuiAPI_SuiCall_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 string - if args[1] != nil { - arg1 = args[1].(string) - } - var arg2 []interface{} - var variadicArgs []interface{} - if len(args) > 2 { - variadicArgs = args[2].([]interface{}) - } - arg2 = variadicArgs - run( - arg0, - arg1, - arg2..., - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiCall_Call) Return(ifaceVal interface{}, err error) *MockISuiAPI_SuiCall_Call { - _c.Call.Return(ifaceVal, err) - return _c -} - -func (_c *MockISuiAPI_SuiCall_Call) RunAndReturn(run func(ctx context.Context, method string, params ...interface{}) (interface{}, error)) *MockISuiAPI_SuiCall_Call { - _c.Call.Return(run) - return _c -} - -// SuiDevInspectTransactionBlock provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiDevInspectTransactionBlock(ctx context.Context, req models.SuiDevInspectTransactionBlockRequest) (models.SuiTransactionBlockResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiDevInspectTransactionBlock") - } - - var r0 models.SuiTransactionBlockResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiDevInspectTransactionBlockRequest) (models.SuiTransactionBlockResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiDevInspectTransactionBlockRequest) models.SuiTransactionBlockResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.SuiTransactionBlockResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiDevInspectTransactionBlockRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiDevInspectTransactionBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiDevInspectTransactionBlock' -type MockISuiAPI_SuiDevInspectTransactionBlock_Call struct { - *mock.Call -} - -// SuiDevInspectTransactionBlock is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiDevInspectTransactionBlockRequest -func (_e *MockISuiAPI_Expecter) SuiDevInspectTransactionBlock(ctx interface{}, req interface{}) *MockISuiAPI_SuiDevInspectTransactionBlock_Call { - return &MockISuiAPI_SuiDevInspectTransactionBlock_Call{Call: _e.mock.On("SuiDevInspectTransactionBlock", ctx, req)} -} - -func (_c *MockISuiAPI_SuiDevInspectTransactionBlock_Call) Run(run func(ctx context.Context, req models.SuiDevInspectTransactionBlockRequest)) *MockISuiAPI_SuiDevInspectTransactionBlock_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiDevInspectTransactionBlockRequest - if args[1] != nil { - arg1 = args[1].(models.SuiDevInspectTransactionBlockRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiDevInspectTransactionBlock_Call) Return(suiTransactionBlockResponse models.SuiTransactionBlockResponse, err error) *MockISuiAPI_SuiDevInspectTransactionBlock_Call { - _c.Call.Return(suiTransactionBlockResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiDevInspectTransactionBlock_Call) RunAndReturn(run func(ctx context.Context, req models.SuiDevInspectTransactionBlockRequest) (models.SuiTransactionBlockResponse, error)) *MockISuiAPI_SuiDevInspectTransactionBlock_Call { - _c.Call.Return(run) - return _c -} - -// SuiDryRunTransactionBlock provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiDryRunTransactionBlock(ctx context.Context, req models.SuiDryRunTransactionBlockRequest) (models.SuiTransactionBlockResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiDryRunTransactionBlock") - } - - var r0 models.SuiTransactionBlockResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiDryRunTransactionBlockRequest) (models.SuiTransactionBlockResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiDryRunTransactionBlockRequest) models.SuiTransactionBlockResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.SuiTransactionBlockResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiDryRunTransactionBlockRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiDryRunTransactionBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiDryRunTransactionBlock' -type MockISuiAPI_SuiDryRunTransactionBlock_Call struct { - *mock.Call -} - -// SuiDryRunTransactionBlock is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiDryRunTransactionBlockRequest -func (_e *MockISuiAPI_Expecter) SuiDryRunTransactionBlock(ctx interface{}, req interface{}) *MockISuiAPI_SuiDryRunTransactionBlock_Call { - return &MockISuiAPI_SuiDryRunTransactionBlock_Call{Call: _e.mock.On("SuiDryRunTransactionBlock", ctx, req)} -} - -func (_c *MockISuiAPI_SuiDryRunTransactionBlock_Call) Run(run func(ctx context.Context, req models.SuiDryRunTransactionBlockRequest)) *MockISuiAPI_SuiDryRunTransactionBlock_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiDryRunTransactionBlockRequest - if args[1] != nil { - arg1 = args[1].(models.SuiDryRunTransactionBlockRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiDryRunTransactionBlock_Call) Return(suiTransactionBlockResponse models.SuiTransactionBlockResponse, err error) *MockISuiAPI_SuiDryRunTransactionBlock_Call { - _c.Call.Return(suiTransactionBlockResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiDryRunTransactionBlock_Call) RunAndReturn(run func(ctx context.Context, req models.SuiDryRunTransactionBlockRequest) (models.SuiTransactionBlockResponse, error)) *MockISuiAPI_SuiDryRunTransactionBlock_Call { - _c.Call.Return(run) - return _c -} - -// SuiExecuteTransactionBlock provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiExecuteTransactionBlock(ctx context.Context, req models.SuiExecuteTransactionBlockRequest) (models.SuiTransactionBlockResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiExecuteTransactionBlock") - } - - var r0 models.SuiTransactionBlockResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiExecuteTransactionBlockRequest) (models.SuiTransactionBlockResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiExecuteTransactionBlockRequest) models.SuiTransactionBlockResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.SuiTransactionBlockResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiExecuteTransactionBlockRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiExecuteTransactionBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiExecuteTransactionBlock' -type MockISuiAPI_SuiExecuteTransactionBlock_Call struct { - *mock.Call -} - -// SuiExecuteTransactionBlock is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiExecuteTransactionBlockRequest -func (_e *MockISuiAPI_Expecter) SuiExecuteTransactionBlock(ctx interface{}, req interface{}) *MockISuiAPI_SuiExecuteTransactionBlock_Call { - return &MockISuiAPI_SuiExecuteTransactionBlock_Call{Call: _e.mock.On("SuiExecuteTransactionBlock", ctx, req)} -} - -func (_c *MockISuiAPI_SuiExecuteTransactionBlock_Call) Run(run func(ctx context.Context, req models.SuiExecuteTransactionBlockRequest)) *MockISuiAPI_SuiExecuteTransactionBlock_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiExecuteTransactionBlockRequest - if args[1] != nil { - arg1 = args[1].(models.SuiExecuteTransactionBlockRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiExecuteTransactionBlock_Call) Return(suiTransactionBlockResponse models.SuiTransactionBlockResponse, err error) *MockISuiAPI_SuiExecuteTransactionBlock_Call { - _c.Call.Return(suiTransactionBlockResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiExecuteTransactionBlock_Call) RunAndReturn(run func(ctx context.Context, req models.SuiExecuteTransactionBlockRequest) (models.SuiTransactionBlockResponse, error)) *MockISuiAPI_SuiExecuteTransactionBlock_Call { - _c.Call.Return(run) - return _c -} - -// SuiGetChainIdentifier provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiGetChainIdentifier(ctx context.Context) (string, error) { - ret := _mock.Called(ctx) - - if len(ret) == 0 { - panic("no return value specified for SuiGetChainIdentifier") - } - - var r0 string - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context) (string, error)); ok { - return returnFunc(ctx) - } - if returnFunc, ok := ret.Get(0).(func(context.Context) string); ok { - r0 = returnFunc(ctx) - } else { - r0 = ret.Get(0).(string) - } - if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok { - r1 = returnFunc(ctx) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiGetChainIdentifier_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiGetChainIdentifier' -type MockISuiAPI_SuiGetChainIdentifier_Call struct { - *mock.Call -} - -// SuiGetChainIdentifier is a helper method to define mock.On call -// - ctx context.Context -func (_e *MockISuiAPI_Expecter) SuiGetChainIdentifier(ctx interface{}) *MockISuiAPI_SuiGetChainIdentifier_Call { - return &MockISuiAPI_SuiGetChainIdentifier_Call{Call: _e.mock.On("SuiGetChainIdentifier", ctx)} -} - -func (_c *MockISuiAPI_SuiGetChainIdentifier_Call) Run(run func(ctx context.Context)) *MockISuiAPI_SuiGetChainIdentifier_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - run( - arg0, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiGetChainIdentifier_Call) Return(s string, err error) *MockISuiAPI_SuiGetChainIdentifier_Call { - _c.Call.Return(s, err) - return _c -} - -func (_c *MockISuiAPI_SuiGetChainIdentifier_Call) RunAndReturn(run func(ctx context.Context) (string, error)) *MockISuiAPI_SuiGetChainIdentifier_Call { - _c.Call.Return(run) - return _c -} - -// SuiGetCheckpoint provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiGetCheckpoint(ctx context.Context, req models.SuiGetCheckpointRequest) (models.CheckpointResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiGetCheckpoint") - } - - var r0 models.CheckpointResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiGetCheckpointRequest) (models.CheckpointResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiGetCheckpointRequest) models.CheckpointResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.CheckpointResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiGetCheckpointRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiGetCheckpoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiGetCheckpoint' -type MockISuiAPI_SuiGetCheckpoint_Call struct { - *mock.Call -} - -// SuiGetCheckpoint is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiGetCheckpointRequest -func (_e *MockISuiAPI_Expecter) SuiGetCheckpoint(ctx interface{}, req interface{}) *MockISuiAPI_SuiGetCheckpoint_Call { - return &MockISuiAPI_SuiGetCheckpoint_Call{Call: _e.mock.On("SuiGetCheckpoint", ctx, req)} -} - -func (_c *MockISuiAPI_SuiGetCheckpoint_Call) Run(run func(ctx context.Context, req models.SuiGetCheckpointRequest)) *MockISuiAPI_SuiGetCheckpoint_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiGetCheckpointRequest - if args[1] != nil { - arg1 = args[1].(models.SuiGetCheckpointRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiGetCheckpoint_Call) Return(checkpointResponse models.CheckpointResponse, err error) *MockISuiAPI_SuiGetCheckpoint_Call { - _c.Call.Return(checkpointResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiGetCheckpoint_Call) RunAndReturn(run func(ctx context.Context, req models.SuiGetCheckpointRequest) (models.CheckpointResponse, error)) *MockISuiAPI_SuiGetCheckpoint_Call { - _c.Call.Return(run) - return _c -} - -// SuiGetCheckpoints provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiGetCheckpoints(ctx context.Context, req models.SuiGetCheckpointsRequest) (models.PaginatedCheckpointsResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiGetCheckpoints") - } - - var r0 models.PaginatedCheckpointsResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiGetCheckpointsRequest) (models.PaginatedCheckpointsResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiGetCheckpointsRequest) models.PaginatedCheckpointsResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.PaginatedCheckpointsResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiGetCheckpointsRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiGetCheckpoints_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiGetCheckpoints' -type MockISuiAPI_SuiGetCheckpoints_Call struct { - *mock.Call -} - -// SuiGetCheckpoints is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiGetCheckpointsRequest -func (_e *MockISuiAPI_Expecter) SuiGetCheckpoints(ctx interface{}, req interface{}) *MockISuiAPI_SuiGetCheckpoints_Call { - return &MockISuiAPI_SuiGetCheckpoints_Call{Call: _e.mock.On("SuiGetCheckpoints", ctx, req)} -} - -func (_c *MockISuiAPI_SuiGetCheckpoints_Call) Run(run func(ctx context.Context, req models.SuiGetCheckpointsRequest)) *MockISuiAPI_SuiGetCheckpoints_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiGetCheckpointsRequest - if args[1] != nil { - arg1 = args[1].(models.SuiGetCheckpointsRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiGetCheckpoints_Call) Return(paginatedCheckpointsResponse models.PaginatedCheckpointsResponse, err error) *MockISuiAPI_SuiGetCheckpoints_Call { - _c.Call.Return(paginatedCheckpointsResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiGetCheckpoints_Call) RunAndReturn(run func(ctx context.Context, req models.SuiGetCheckpointsRequest) (models.PaginatedCheckpointsResponse, error)) *MockISuiAPI_SuiGetCheckpoints_Call { - _c.Call.Return(run) - return _c -} - -// SuiGetEvents provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiGetEvents(ctx context.Context, req models.SuiGetEventsRequest) (models.GetEventsResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiGetEvents") - } - - var r0 models.GetEventsResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiGetEventsRequest) (models.GetEventsResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiGetEventsRequest) models.GetEventsResponse); ok { - r0 = returnFunc(ctx, req) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(models.GetEventsResponse) - } - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiGetEventsRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiGetEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiGetEvents' -type MockISuiAPI_SuiGetEvents_Call struct { - *mock.Call -} - -// SuiGetEvents is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiGetEventsRequest -func (_e *MockISuiAPI_Expecter) SuiGetEvents(ctx interface{}, req interface{}) *MockISuiAPI_SuiGetEvents_Call { - return &MockISuiAPI_SuiGetEvents_Call{Call: _e.mock.On("SuiGetEvents", ctx, req)} -} - -func (_c *MockISuiAPI_SuiGetEvents_Call) Run(run func(ctx context.Context, req models.SuiGetEventsRequest)) *MockISuiAPI_SuiGetEvents_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiGetEventsRequest - if args[1] != nil { - arg1 = args[1].(models.SuiGetEventsRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiGetEvents_Call) Return(getEventsResponse models.GetEventsResponse, err error) *MockISuiAPI_SuiGetEvents_Call { - _c.Call.Return(getEventsResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiGetEvents_Call) RunAndReturn(run func(ctx context.Context, req models.SuiGetEventsRequest) (models.GetEventsResponse, error)) *MockISuiAPI_SuiGetEvents_Call { - _c.Call.Return(run) - return _c -} - -// SuiGetLatestCheckpointSequenceNumber provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiGetLatestCheckpointSequenceNumber(ctx context.Context) (uint64, error) { - ret := _mock.Called(ctx) - - if len(ret) == 0 { - panic("no return value specified for SuiGetLatestCheckpointSequenceNumber") - } - - var r0 uint64 - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context) (uint64, error)); ok { - return returnFunc(ctx) - } - if returnFunc, ok := ret.Get(0).(func(context.Context) uint64); ok { - r0 = returnFunc(ctx) - } else { - r0 = ret.Get(0).(uint64) - } - if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok { - r1 = returnFunc(ctx) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiGetLatestCheckpointSequenceNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiGetLatestCheckpointSequenceNumber' -type MockISuiAPI_SuiGetLatestCheckpointSequenceNumber_Call struct { - *mock.Call -} - -// SuiGetLatestCheckpointSequenceNumber is a helper method to define mock.On call -// - ctx context.Context -func (_e *MockISuiAPI_Expecter) SuiGetLatestCheckpointSequenceNumber(ctx interface{}) *MockISuiAPI_SuiGetLatestCheckpointSequenceNumber_Call { - return &MockISuiAPI_SuiGetLatestCheckpointSequenceNumber_Call{Call: _e.mock.On("SuiGetLatestCheckpointSequenceNumber", ctx)} -} - -func (_c *MockISuiAPI_SuiGetLatestCheckpointSequenceNumber_Call) Run(run func(ctx context.Context)) *MockISuiAPI_SuiGetLatestCheckpointSequenceNumber_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - run( - arg0, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiGetLatestCheckpointSequenceNumber_Call) Return(v uint64, err error) *MockISuiAPI_SuiGetLatestCheckpointSequenceNumber_Call { - _c.Call.Return(v, err) - return _c -} - -func (_c *MockISuiAPI_SuiGetLatestCheckpointSequenceNumber_Call) RunAndReturn(run func(ctx context.Context) (uint64, error)) *MockISuiAPI_SuiGetLatestCheckpointSequenceNumber_Call { - _c.Call.Return(run) - return _c -} - -// SuiGetLoadedChildObjects provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiGetLoadedChildObjects(ctx context.Context, req models.SuiGetLoadedChildObjectsRequest) (models.ChildObjectsResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiGetLoadedChildObjects") - } - - var r0 models.ChildObjectsResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiGetLoadedChildObjectsRequest) (models.ChildObjectsResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiGetLoadedChildObjectsRequest) models.ChildObjectsResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.ChildObjectsResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiGetLoadedChildObjectsRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiGetLoadedChildObjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiGetLoadedChildObjects' -type MockISuiAPI_SuiGetLoadedChildObjects_Call struct { - *mock.Call -} - -// SuiGetLoadedChildObjects is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiGetLoadedChildObjectsRequest -func (_e *MockISuiAPI_Expecter) SuiGetLoadedChildObjects(ctx interface{}, req interface{}) *MockISuiAPI_SuiGetLoadedChildObjects_Call { - return &MockISuiAPI_SuiGetLoadedChildObjects_Call{Call: _e.mock.On("SuiGetLoadedChildObjects", ctx, req)} -} - -func (_c *MockISuiAPI_SuiGetLoadedChildObjects_Call) Run(run func(ctx context.Context, req models.SuiGetLoadedChildObjectsRequest)) *MockISuiAPI_SuiGetLoadedChildObjects_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiGetLoadedChildObjectsRequest - if args[1] != nil { - arg1 = args[1].(models.SuiGetLoadedChildObjectsRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiGetLoadedChildObjects_Call) Return(childObjectsResponse models.ChildObjectsResponse, err error) *MockISuiAPI_SuiGetLoadedChildObjects_Call { - _c.Call.Return(childObjectsResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiGetLoadedChildObjects_Call) RunAndReturn(run func(ctx context.Context, req models.SuiGetLoadedChildObjectsRequest) (models.ChildObjectsResponse, error)) *MockISuiAPI_SuiGetLoadedChildObjects_Call { - _c.Call.Return(run) - return _c -} - -// SuiGetMoveFunctionArgTypes provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiGetMoveFunctionArgTypes(ctx context.Context, req models.GetMoveFunctionArgTypesRequest) (models.GetMoveFunctionArgTypesResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiGetMoveFunctionArgTypes") - } - - var r0 models.GetMoveFunctionArgTypesResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.GetMoveFunctionArgTypesRequest) (models.GetMoveFunctionArgTypesResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.GetMoveFunctionArgTypesRequest) models.GetMoveFunctionArgTypesResponse); ok { - r0 = returnFunc(ctx, req) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(models.GetMoveFunctionArgTypesResponse) - } - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.GetMoveFunctionArgTypesRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiGetMoveFunctionArgTypes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiGetMoveFunctionArgTypes' -type MockISuiAPI_SuiGetMoveFunctionArgTypes_Call struct { - *mock.Call -} - -// SuiGetMoveFunctionArgTypes is a helper method to define mock.On call -// - ctx context.Context -// - req models.GetMoveFunctionArgTypesRequest -func (_e *MockISuiAPI_Expecter) SuiGetMoveFunctionArgTypes(ctx interface{}, req interface{}) *MockISuiAPI_SuiGetMoveFunctionArgTypes_Call { - return &MockISuiAPI_SuiGetMoveFunctionArgTypes_Call{Call: _e.mock.On("SuiGetMoveFunctionArgTypes", ctx, req)} -} - -func (_c *MockISuiAPI_SuiGetMoveFunctionArgTypes_Call) Run(run func(ctx context.Context, req models.GetMoveFunctionArgTypesRequest)) *MockISuiAPI_SuiGetMoveFunctionArgTypes_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.GetMoveFunctionArgTypesRequest - if args[1] != nil { - arg1 = args[1].(models.GetMoveFunctionArgTypesRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiGetMoveFunctionArgTypes_Call) Return(getMoveFunctionArgTypesResponse models.GetMoveFunctionArgTypesResponse, err error) *MockISuiAPI_SuiGetMoveFunctionArgTypes_Call { - _c.Call.Return(getMoveFunctionArgTypesResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiGetMoveFunctionArgTypes_Call) RunAndReturn(run func(ctx context.Context, req models.GetMoveFunctionArgTypesRequest) (models.GetMoveFunctionArgTypesResponse, error)) *MockISuiAPI_SuiGetMoveFunctionArgTypes_Call { - _c.Call.Return(run) - return _c -} - -// SuiGetNormalizedMoveFunction provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiGetNormalizedMoveFunction(ctx context.Context, req models.GetNormalizedMoveFunctionRequest) (models.GetNormalizedMoveFunctionResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiGetNormalizedMoveFunction") - } - - var r0 models.GetNormalizedMoveFunctionResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.GetNormalizedMoveFunctionRequest) (models.GetNormalizedMoveFunctionResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.GetNormalizedMoveFunctionRequest) models.GetNormalizedMoveFunctionResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.GetNormalizedMoveFunctionResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.GetNormalizedMoveFunctionRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiGetNormalizedMoveFunction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiGetNormalizedMoveFunction' -type MockISuiAPI_SuiGetNormalizedMoveFunction_Call struct { - *mock.Call -} - -// SuiGetNormalizedMoveFunction is a helper method to define mock.On call -// - ctx context.Context -// - req models.GetNormalizedMoveFunctionRequest -func (_e *MockISuiAPI_Expecter) SuiGetNormalizedMoveFunction(ctx interface{}, req interface{}) *MockISuiAPI_SuiGetNormalizedMoveFunction_Call { - return &MockISuiAPI_SuiGetNormalizedMoveFunction_Call{Call: _e.mock.On("SuiGetNormalizedMoveFunction", ctx, req)} -} - -func (_c *MockISuiAPI_SuiGetNormalizedMoveFunction_Call) Run(run func(ctx context.Context, req models.GetNormalizedMoveFunctionRequest)) *MockISuiAPI_SuiGetNormalizedMoveFunction_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.GetNormalizedMoveFunctionRequest - if args[1] != nil { - arg1 = args[1].(models.GetNormalizedMoveFunctionRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiGetNormalizedMoveFunction_Call) Return(getNormalizedMoveFunctionResponse models.GetNormalizedMoveFunctionResponse, err error) *MockISuiAPI_SuiGetNormalizedMoveFunction_Call { - _c.Call.Return(getNormalizedMoveFunctionResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiGetNormalizedMoveFunction_Call) RunAndReturn(run func(ctx context.Context, req models.GetNormalizedMoveFunctionRequest) (models.GetNormalizedMoveFunctionResponse, error)) *MockISuiAPI_SuiGetNormalizedMoveFunction_Call { - _c.Call.Return(run) - return _c -} - -// SuiGetNormalizedMoveModule provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiGetNormalizedMoveModule(ctx context.Context, req models.GetNormalizedMoveModuleRequest) (models.GetNormalizedMoveModuleResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiGetNormalizedMoveModule") - } - - var r0 models.GetNormalizedMoveModuleResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.GetNormalizedMoveModuleRequest) (models.GetNormalizedMoveModuleResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.GetNormalizedMoveModuleRequest) models.GetNormalizedMoveModuleResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.GetNormalizedMoveModuleResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.GetNormalizedMoveModuleRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiGetNormalizedMoveModule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiGetNormalizedMoveModule' -type MockISuiAPI_SuiGetNormalizedMoveModule_Call struct { - *mock.Call -} - -// SuiGetNormalizedMoveModule is a helper method to define mock.On call -// - ctx context.Context -// - req models.GetNormalizedMoveModuleRequest -func (_e *MockISuiAPI_Expecter) SuiGetNormalizedMoveModule(ctx interface{}, req interface{}) *MockISuiAPI_SuiGetNormalizedMoveModule_Call { - return &MockISuiAPI_SuiGetNormalizedMoveModule_Call{Call: _e.mock.On("SuiGetNormalizedMoveModule", ctx, req)} -} - -func (_c *MockISuiAPI_SuiGetNormalizedMoveModule_Call) Run(run func(ctx context.Context, req models.GetNormalizedMoveModuleRequest)) *MockISuiAPI_SuiGetNormalizedMoveModule_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.GetNormalizedMoveModuleRequest - if args[1] != nil { - arg1 = args[1].(models.GetNormalizedMoveModuleRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiGetNormalizedMoveModule_Call) Return(getNormalizedMoveModuleResponse models.GetNormalizedMoveModuleResponse, err error) *MockISuiAPI_SuiGetNormalizedMoveModule_Call { - _c.Call.Return(getNormalizedMoveModuleResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiGetNormalizedMoveModule_Call) RunAndReturn(run func(ctx context.Context, req models.GetNormalizedMoveModuleRequest) (models.GetNormalizedMoveModuleResponse, error)) *MockISuiAPI_SuiGetNormalizedMoveModule_Call { - _c.Call.Return(run) - return _c -} - -// SuiGetNormalizedMoveModulesByPackage provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiGetNormalizedMoveModulesByPackage(ctx context.Context, req models.GetNormalizedMoveModulesByPackageRequest) (models.GetNormalizedMoveModulesByPackageResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiGetNormalizedMoveModulesByPackage") - } - - var r0 models.GetNormalizedMoveModulesByPackageResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.GetNormalizedMoveModulesByPackageRequest) (models.GetNormalizedMoveModulesByPackageResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.GetNormalizedMoveModulesByPackageRequest) models.GetNormalizedMoveModulesByPackageResponse); ok { - r0 = returnFunc(ctx, req) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(models.GetNormalizedMoveModulesByPackageResponse) - } - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.GetNormalizedMoveModulesByPackageRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiGetNormalizedMoveModulesByPackage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiGetNormalizedMoveModulesByPackage' -type MockISuiAPI_SuiGetNormalizedMoveModulesByPackage_Call struct { - *mock.Call -} - -// SuiGetNormalizedMoveModulesByPackage is a helper method to define mock.On call -// - ctx context.Context -// - req models.GetNormalizedMoveModulesByPackageRequest -func (_e *MockISuiAPI_Expecter) SuiGetNormalizedMoveModulesByPackage(ctx interface{}, req interface{}) *MockISuiAPI_SuiGetNormalizedMoveModulesByPackage_Call { - return &MockISuiAPI_SuiGetNormalizedMoveModulesByPackage_Call{Call: _e.mock.On("SuiGetNormalizedMoveModulesByPackage", ctx, req)} -} - -func (_c *MockISuiAPI_SuiGetNormalizedMoveModulesByPackage_Call) Run(run func(ctx context.Context, req models.GetNormalizedMoveModulesByPackageRequest)) *MockISuiAPI_SuiGetNormalizedMoveModulesByPackage_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.GetNormalizedMoveModulesByPackageRequest - if args[1] != nil { - arg1 = args[1].(models.GetNormalizedMoveModulesByPackageRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiGetNormalizedMoveModulesByPackage_Call) Return(getNormalizedMoveModulesByPackageResponse models.GetNormalizedMoveModulesByPackageResponse, err error) *MockISuiAPI_SuiGetNormalizedMoveModulesByPackage_Call { - _c.Call.Return(getNormalizedMoveModulesByPackageResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiGetNormalizedMoveModulesByPackage_Call) RunAndReturn(run func(ctx context.Context, req models.GetNormalizedMoveModulesByPackageRequest) (models.GetNormalizedMoveModulesByPackageResponse, error)) *MockISuiAPI_SuiGetNormalizedMoveModulesByPackage_Call { - _c.Call.Return(run) - return _c -} - -// SuiGetNormalizedMoveStruct provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiGetNormalizedMoveStruct(ctx context.Context, req models.GetNormalizedMoveStructRequest) (models.GetNormalizedMoveStructResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiGetNormalizedMoveStruct") - } - - var r0 models.GetNormalizedMoveStructResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.GetNormalizedMoveStructRequest) (models.GetNormalizedMoveStructResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.GetNormalizedMoveStructRequest) models.GetNormalizedMoveStructResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.GetNormalizedMoveStructResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.GetNormalizedMoveStructRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiGetNormalizedMoveStruct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiGetNormalizedMoveStruct' -type MockISuiAPI_SuiGetNormalizedMoveStruct_Call struct { - *mock.Call -} - -// SuiGetNormalizedMoveStruct is a helper method to define mock.On call -// - ctx context.Context -// - req models.GetNormalizedMoveStructRequest -func (_e *MockISuiAPI_Expecter) SuiGetNormalizedMoveStruct(ctx interface{}, req interface{}) *MockISuiAPI_SuiGetNormalizedMoveStruct_Call { - return &MockISuiAPI_SuiGetNormalizedMoveStruct_Call{Call: _e.mock.On("SuiGetNormalizedMoveStruct", ctx, req)} -} - -func (_c *MockISuiAPI_SuiGetNormalizedMoveStruct_Call) Run(run func(ctx context.Context, req models.GetNormalizedMoveStructRequest)) *MockISuiAPI_SuiGetNormalizedMoveStruct_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.GetNormalizedMoveStructRequest - if args[1] != nil { - arg1 = args[1].(models.GetNormalizedMoveStructRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiGetNormalizedMoveStruct_Call) Return(getNormalizedMoveStructResponse models.GetNormalizedMoveStructResponse, err error) *MockISuiAPI_SuiGetNormalizedMoveStruct_Call { - _c.Call.Return(getNormalizedMoveStructResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiGetNormalizedMoveStruct_Call) RunAndReturn(run func(ctx context.Context, req models.GetNormalizedMoveStructRequest) (models.GetNormalizedMoveStructResponse, error)) *MockISuiAPI_SuiGetNormalizedMoveStruct_Call { - _c.Call.Return(run) - return _c -} - -// SuiGetObject provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiGetObject(ctx context.Context, req models.SuiGetObjectRequest) (models.SuiObjectResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiGetObject") - } - - var r0 models.SuiObjectResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiGetObjectRequest) (models.SuiObjectResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiGetObjectRequest) models.SuiObjectResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.SuiObjectResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiGetObjectRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiGetObject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiGetObject' -type MockISuiAPI_SuiGetObject_Call struct { - *mock.Call -} - -// SuiGetObject is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiGetObjectRequest -func (_e *MockISuiAPI_Expecter) SuiGetObject(ctx interface{}, req interface{}) *MockISuiAPI_SuiGetObject_Call { - return &MockISuiAPI_SuiGetObject_Call{Call: _e.mock.On("SuiGetObject", ctx, req)} -} - -func (_c *MockISuiAPI_SuiGetObject_Call) Run(run func(ctx context.Context, req models.SuiGetObjectRequest)) *MockISuiAPI_SuiGetObject_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiGetObjectRequest - if args[1] != nil { - arg1 = args[1].(models.SuiGetObjectRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiGetObject_Call) Return(suiObjectResponse models.SuiObjectResponse, err error) *MockISuiAPI_SuiGetObject_Call { - _c.Call.Return(suiObjectResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiGetObject_Call) RunAndReturn(run func(ctx context.Context, req models.SuiGetObjectRequest) (models.SuiObjectResponse, error)) *MockISuiAPI_SuiGetObject_Call { - _c.Call.Return(run) - return _c -} - -// SuiGetProtocolConfig provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiGetProtocolConfig(ctx context.Context, req models.SuiGetProtocolConfigRequest) (models.ProtocolConfigResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiGetProtocolConfig") - } - - var r0 models.ProtocolConfigResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiGetProtocolConfigRequest) (models.ProtocolConfigResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiGetProtocolConfigRequest) models.ProtocolConfigResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.ProtocolConfigResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiGetProtocolConfigRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiGetProtocolConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiGetProtocolConfig' -type MockISuiAPI_SuiGetProtocolConfig_Call struct { - *mock.Call -} - -// SuiGetProtocolConfig is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiGetProtocolConfigRequest -func (_e *MockISuiAPI_Expecter) SuiGetProtocolConfig(ctx interface{}, req interface{}) *MockISuiAPI_SuiGetProtocolConfig_Call { - return &MockISuiAPI_SuiGetProtocolConfig_Call{Call: _e.mock.On("SuiGetProtocolConfig", ctx, req)} -} - -func (_c *MockISuiAPI_SuiGetProtocolConfig_Call) Run(run func(ctx context.Context, req models.SuiGetProtocolConfigRequest)) *MockISuiAPI_SuiGetProtocolConfig_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiGetProtocolConfigRequest - if args[1] != nil { - arg1 = args[1].(models.SuiGetProtocolConfigRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiGetProtocolConfig_Call) Return(protocolConfigResponse models.ProtocolConfigResponse, err error) *MockISuiAPI_SuiGetProtocolConfig_Call { - _c.Call.Return(protocolConfigResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiGetProtocolConfig_Call) RunAndReturn(run func(ctx context.Context, req models.SuiGetProtocolConfigRequest) (models.ProtocolConfigResponse, error)) *MockISuiAPI_SuiGetProtocolConfig_Call { - _c.Call.Return(run) - return _c -} - -// SuiGetTotalTransactionBlocks provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiGetTotalTransactionBlocks(ctx context.Context) (uint64, error) { - ret := _mock.Called(ctx) - - if len(ret) == 0 { - panic("no return value specified for SuiGetTotalTransactionBlocks") - } - - var r0 uint64 - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context) (uint64, error)); ok { - return returnFunc(ctx) - } - if returnFunc, ok := ret.Get(0).(func(context.Context) uint64); ok { - r0 = returnFunc(ctx) - } else { - r0 = ret.Get(0).(uint64) - } - if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok { - r1 = returnFunc(ctx) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiGetTotalTransactionBlocks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiGetTotalTransactionBlocks' -type MockISuiAPI_SuiGetTotalTransactionBlocks_Call struct { - *mock.Call -} - -// SuiGetTotalTransactionBlocks is a helper method to define mock.On call -// - ctx context.Context -func (_e *MockISuiAPI_Expecter) SuiGetTotalTransactionBlocks(ctx interface{}) *MockISuiAPI_SuiGetTotalTransactionBlocks_Call { - return &MockISuiAPI_SuiGetTotalTransactionBlocks_Call{Call: _e.mock.On("SuiGetTotalTransactionBlocks", ctx)} -} - -func (_c *MockISuiAPI_SuiGetTotalTransactionBlocks_Call) Run(run func(ctx context.Context)) *MockISuiAPI_SuiGetTotalTransactionBlocks_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - run( - arg0, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiGetTotalTransactionBlocks_Call) Return(v uint64, err error) *MockISuiAPI_SuiGetTotalTransactionBlocks_Call { - _c.Call.Return(v, err) - return _c -} - -func (_c *MockISuiAPI_SuiGetTotalTransactionBlocks_Call) RunAndReturn(run func(ctx context.Context) (uint64, error)) *MockISuiAPI_SuiGetTotalTransactionBlocks_Call { - _c.Call.Return(run) - return _c -} - -// SuiGetTransactionBlock provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiGetTransactionBlock(ctx context.Context, req models.SuiGetTransactionBlockRequest) (models.SuiTransactionBlockResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiGetTransactionBlock") - } - - var r0 models.SuiTransactionBlockResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiGetTransactionBlockRequest) (models.SuiTransactionBlockResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiGetTransactionBlockRequest) models.SuiTransactionBlockResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.SuiTransactionBlockResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiGetTransactionBlockRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiGetTransactionBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiGetTransactionBlock' -type MockISuiAPI_SuiGetTransactionBlock_Call struct { - *mock.Call -} - -// SuiGetTransactionBlock is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiGetTransactionBlockRequest -func (_e *MockISuiAPI_Expecter) SuiGetTransactionBlock(ctx interface{}, req interface{}) *MockISuiAPI_SuiGetTransactionBlock_Call { - return &MockISuiAPI_SuiGetTransactionBlock_Call{Call: _e.mock.On("SuiGetTransactionBlock", ctx, req)} -} - -func (_c *MockISuiAPI_SuiGetTransactionBlock_Call) Run(run func(ctx context.Context, req models.SuiGetTransactionBlockRequest)) *MockISuiAPI_SuiGetTransactionBlock_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiGetTransactionBlockRequest - if args[1] != nil { - arg1 = args[1].(models.SuiGetTransactionBlockRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiGetTransactionBlock_Call) Return(suiTransactionBlockResponse models.SuiTransactionBlockResponse, err error) *MockISuiAPI_SuiGetTransactionBlock_Call { - _c.Call.Return(suiTransactionBlockResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiGetTransactionBlock_Call) RunAndReturn(run func(ctx context.Context, req models.SuiGetTransactionBlockRequest) (models.SuiTransactionBlockResponse, error)) *MockISuiAPI_SuiGetTransactionBlock_Call { - _c.Call.Return(run) - return _c -} - -// SuiMultiGetObjects provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiMultiGetObjects(ctx context.Context, req models.SuiMultiGetObjectsRequest) ([]*models.SuiObjectResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiMultiGetObjects") - } - - var r0 []*models.SuiObjectResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiMultiGetObjectsRequest) ([]*models.SuiObjectResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiMultiGetObjectsRequest) []*models.SuiObjectResponse); ok { - r0 = returnFunc(ctx, req) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]*models.SuiObjectResponse) - } - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiMultiGetObjectsRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiMultiGetObjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiMultiGetObjects' -type MockISuiAPI_SuiMultiGetObjects_Call struct { - *mock.Call -} - -// SuiMultiGetObjects is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiMultiGetObjectsRequest -func (_e *MockISuiAPI_Expecter) SuiMultiGetObjects(ctx interface{}, req interface{}) *MockISuiAPI_SuiMultiGetObjects_Call { - return &MockISuiAPI_SuiMultiGetObjects_Call{Call: _e.mock.On("SuiMultiGetObjects", ctx, req)} -} - -func (_c *MockISuiAPI_SuiMultiGetObjects_Call) Run(run func(ctx context.Context, req models.SuiMultiGetObjectsRequest)) *MockISuiAPI_SuiMultiGetObjects_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiMultiGetObjectsRequest - if args[1] != nil { - arg1 = args[1].(models.SuiMultiGetObjectsRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiMultiGetObjects_Call) Return(suiObjectResponses []*models.SuiObjectResponse, err error) *MockISuiAPI_SuiMultiGetObjects_Call { - _c.Call.Return(suiObjectResponses, err) - return _c -} - -func (_c *MockISuiAPI_SuiMultiGetObjects_Call) RunAndReturn(run func(ctx context.Context, req models.SuiMultiGetObjectsRequest) ([]*models.SuiObjectResponse, error)) *MockISuiAPI_SuiMultiGetObjects_Call { - _c.Call.Return(run) - return _c -} - -// SuiMultiGetTransactionBlocks provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiMultiGetTransactionBlocks(ctx context.Context, req models.SuiMultiGetTransactionBlocksRequest) (models.SuiMultiGetTransactionBlocksResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiMultiGetTransactionBlocks") - } - - var r0 models.SuiMultiGetTransactionBlocksResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiMultiGetTransactionBlocksRequest) (models.SuiMultiGetTransactionBlocksResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiMultiGetTransactionBlocksRequest) models.SuiMultiGetTransactionBlocksResponse); ok { - r0 = returnFunc(ctx, req) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(models.SuiMultiGetTransactionBlocksResponse) - } - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiMultiGetTransactionBlocksRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiMultiGetTransactionBlocks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiMultiGetTransactionBlocks' -type MockISuiAPI_SuiMultiGetTransactionBlocks_Call struct { - *mock.Call -} - -// SuiMultiGetTransactionBlocks is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiMultiGetTransactionBlocksRequest -func (_e *MockISuiAPI_Expecter) SuiMultiGetTransactionBlocks(ctx interface{}, req interface{}) *MockISuiAPI_SuiMultiGetTransactionBlocks_Call { - return &MockISuiAPI_SuiMultiGetTransactionBlocks_Call{Call: _e.mock.On("SuiMultiGetTransactionBlocks", ctx, req)} -} - -func (_c *MockISuiAPI_SuiMultiGetTransactionBlocks_Call) Run(run func(ctx context.Context, req models.SuiMultiGetTransactionBlocksRequest)) *MockISuiAPI_SuiMultiGetTransactionBlocks_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiMultiGetTransactionBlocksRequest - if args[1] != nil { - arg1 = args[1].(models.SuiMultiGetTransactionBlocksRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiMultiGetTransactionBlocks_Call) Return(suiMultiGetTransactionBlocksResponse models.SuiMultiGetTransactionBlocksResponse, err error) *MockISuiAPI_SuiMultiGetTransactionBlocks_Call { - _c.Call.Return(suiMultiGetTransactionBlocksResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiMultiGetTransactionBlocks_Call) RunAndReturn(run func(ctx context.Context, req models.SuiMultiGetTransactionBlocksRequest) (models.SuiMultiGetTransactionBlocksResponse, error)) *MockISuiAPI_SuiMultiGetTransactionBlocks_Call { - _c.Call.Return(run) - return _c -} - -// SuiTryGetPastObject provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiTryGetPastObject(ctx context.Context, req models.SuiTryGetPastObjectRequest) (models.PastObjectResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiTryGetPastObject") - } - - var r0 models.PastObjectResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiTryGetPastObjectRequest) (models.PastObjectResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiTryGetPastObjectRequest) models.PastObjectResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.PastObjectResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiTryGetPastObjectRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiTryGetPastObject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiTryGetPastObject' -type MockISuiAPI_SuiTryGetPastObject_Call struct { - *mock.Call -} - -// SuiTryGetPastObject is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiTryGetPastObjectRequest -func (_e *MockISuiAPI_Expecter) SuiTryGetPastObject(ctx interface{}, req interface{}) *MockISuiAPI_SuiTryGetPastObject_Call { - return &MockISuiAPI_SuiTryGetPastObject_Call{Call: _e.mock.On("SuiTryGetPastObject", ctx, req)} -} - -func (_c *MockISuiAPI_SuiTryGetPastObject_Call) Run(run func(ctx context.Context, req models.SuiTryGetPastObjectRequest)) *MockISuiAPI_SuiTryGetPastObject_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiTryGetPastObjectRequest - if args[1] != nil { - arg1 = args[1].(models.SuiTryGetPastObjectRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiTryGetPastObject_Call) Return(pastObjectResponse models.PastObjectResponse, err error) *MockISuiAPI_SuiTryGetPastObject_Call { - _c.Call.Return(pastObjectResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiTryGetPastObject_Call) RunAndReturn(run func(ctx context.Context, req models.SuiTryGetPastObjectRequest) (models.PastObjectResponse, error)) *MockISuiAPI_SuiTryGetPastObject_Call { - _c.Call.Return(run) - return _c -} - -// SuiTryMultiGetPastObjects provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiTryMultiGetPastObjects(ctx context.Context, req models.SuiTryMultiGetPastObjectsRequest) ([]*models.PastObjectResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiTryMultiGetPastObjects") - } - - var r0 []*models.PastObjectResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiTryMultiGetPastObjectsRequest) ([]*models.PastObjectResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiTryMultiGetPastObjectsRequest) []*models.PastObjectResponse); ok { - r0 = returnFunc(ctx, req) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]*models.PastObjectResponse) - } - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiTryMultiGetPastObjectsRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiTryMultiGetPastObjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiTryMultiGetPastObjects' -type MockISuiAPI_SuiTryMultiGetPastObjects_Call struct { - *mock.Call -} - -// SuiTryMultiGetPastObjects is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiTryMultiGetPastObjectsRequest -func (_e *MockISuiAPI_Expecter) SuiTryMultiGetPastObjects(ctx interface{}, req interface{}) *MockISuiAPI_SuiTryMultiGetPastObjects_Call { - return &MockISuiAPI_SuiTryMultiGetPastObjects_Call{Call: _e.mock.On("SuiTryMultiGetPastObjects", ctx, req)} -} - -func (_c *MockISuiAPI_SuiTryMultiGetPastObjects_Call) Run(run func(ctx context.Context, req models.SuiTryMultiGetPastObjectsRequest)) *MockISuiAPI_SuiTryMultiGetPastObjects_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiTryMultiGetPastObjectsRequest - if args[1] != nil { - arg1 = args[1].(models.SuiTryMultiGetPastObjectsRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiTryMultiGetPastObjects_Call) Return(pastObjectResponses []*models.PastObjectResponse, err error) *MockISuiAPI_SuiTryMultiGetPastObjects_Call { - _c.Call.Return(pastObjectResponses, err) - return _c -} - -func (_c *MockISuiAPI_SuiTryMultiGetPastObjects_Call) RunAndReturn(run func(ctx context.Context, req models.SuiTryMultiGetPastObjectsRequest) ([]*models.PastObjectResponse, error)) *MockISuiAPI_SuiTryMultiGetPastObjects_Call { - _c.Call.Return(run) - return _c -} - -// SuiXGetAllBalance provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiXGetAllBalance(ctx context.Context, req models.SuiXGetAllBalanceRequest) (models.CoinAllBalanceResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiXGetAllBalance") - } - - var r0 models.CoinAllBalanceResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetAllBalanceRequest) (models.CoinAllBalanceResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetAllBalanceRequest) models.CoinAllBalanceResponse); ok { - r0 = returnFunc(ctx, req) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(models.CoinAllBalanceResponse) - } - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiXGetAllBalanceRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiXGetAllBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiXGetAllBalance' -type MockISuiAPI_SuiXGetAllBalance_Call struct { - *mock.Call -} - -// SuiXGetAllBalance is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiXGetAllBalanceRequest -func (_e *MockISuiAPI_Expecter) SuiXGetAllBalance(ctx interface{}, req interface{}) *MockISuiAPI_SuiXGetAllBalance_Call { - return &MockISuiAPI_SuiXGetAllBalance_Call{Call: _e.mock.On("SuiXGetAllBalance", ctx, req)} -} - -func (_c *MockISuiAPI_SuiXGetAllBalance_Call) Run(run func(ctx context.Context, req models.SuiXGetAllBalanceRequest)) *MockISuiAPI_SuiXGetAllBalance_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiXGetAllBalanceRequest - if args[1] != nil { - arg1 = args[1].(models.SuiXGetAllBalanceRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiXGetAllBalance_Call) Return(coinAllBalanceResponse models.CoinAllBalanceResponse, err error) *MockISuiAPI_SuiXGetAllBalance_Call { - _c.Call.Return(coinAllBalanceResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiXGetAllBalance_Call) RunAndReturn(run func(ctx context.Context, req models.SuiXGetAllBalanceRequest) (models.CoinAllBalanceResponse, error)) *MockISuiAPI_SuiXGetAllBalance_Call { - _c.Call.Return(run) - return _c -} - -// SuiXGetAllCoins provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiXGetAllCoins(ctx context.Context, req models.SuiXGetAllCoinsRequest) (models.PaginatedCoinsResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiXGetAllCoins") - } - - var r0 models.PaginatedCoinsResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetAllCoinsRequest) (models.PaginatedCoinsResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetAllCoinsRequest) models.PaginatedCoinsResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.PaginatedCoinsResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiXGetAllCoinsRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiXGetAllCoins_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiXGetAllCoins' -type MockISuiAPI_SuiXGetAllCoins_Call struct { - *mock.Call -} - -// SuiXGetAllCoins is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiXGetAllCoinsRequest -func (_e *MockISuiAPI_Expecter) SuiXGetAllCoins(ctx interface{}, req interface{}) *MockISuiAPI_SuiXGetAllCoins_Call { - return &MockISuiAPI_SuiXGetAllCoins_Call{Call: _e.mock.On("SuiXGetAllCoins", ctx, req)} -} - -func (_c *MockISuiAPI_SuiXGetAllCoins_Call) Run(run func(ctx context.Context, req models.SuiXGetAllCoinsRequest)) *MockISuiAPI_SuiXGetAllCoins_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiXGetAllCoinsRequest - if args[1] != nil { - arg1 = args[1].(models.SuiXGetAllCoinsRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiXGetAllCoins_Call) Return(paginatedCoinsResponse models.PaginatedCoinsResponse, err error) *MockISuiAPI_SuiXGetAllCoins_Call { - _c.Call.Return(paginatedCoinsResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiXGetAllCoins_Call) RunAndReturn(run func(ctx context.Context, req models.SuiXGetAllCoinsRequest) (models.PaginatedCoinsResponse, error)) *MockISuiAPI_SuiXGetAllCoins_Call { - _c.Call.Return(run) - return _c -} - -// SuiXGetBalance provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiXGetBalance(ctx context.Context, req models.SuiXGetBalanceRequest) (models.CoinBalanceResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiXGetBalance") - } - - var r0 models.CoinBalanceResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetBalanceRequest) (models.CoinBalanceResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetBalanceRequest) models.CoinBalanceResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.CoinBalanceResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiXGetBalanceRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiXGetBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiXGetBalance' -type MockISuiAPI_SuiXGetBalance_Call struct { - *mock.Call -} - -// SuiXGetBalance is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiXGetBalanceRequest -func (_e *MockISuiAPI_Expecter) SuiXGetBalance(ctx interface{}, req interface{}) *MockISuiAPI_SuiXGetBalance_Call { - return &MockISuiAPI_SuiXGetBalance_Call{Call: _e.mock.On("SuiXGetBalance", ctx, req)} -} - -func (_c *MockISuiAPI_SuiXGetBalance_Call) Run(run func(ctx context.Context, req models.SuiXGetBalanceRequest)) *MockISuiAPI_SuiXGetBalance_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiXGetBalanceRequest - if args[1] != nil { - arg1 = args[1].(models.SuiXGetBalanceRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiXGetBalance_Call) Return(coinBalanceResponse models.CoinBalanceResponse, err error) *MockISuiAPI_SuiXGetBalance_Call { - _c.Call.Return(coinBalanceResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiXGetBalance_Call) RunAndReturn(run func(ctx context.Context, req models.SuiXGetBalanceRequest) (models.CoinBalanceResponse, error)) *MockISuiAPI_SuiXGetBalance_Call { - _c.Call.Return(run) - return _c -} - -// SuiXGetCoinMetadata provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiXGetCoinMetadata(ctx context.Context, req models.SuiXGetCoinMetadataRequest) (models.CoinMetadataResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiXGetCoinMetadata") - } - - var r0 models.CoinMetadataResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetCoinMetadataRequest) (models.CoinMetadataResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetCoinMetadataRequest) models.CoinMetadataResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.CoinMetadataResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiXGetCoinMetadataRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiXGetCoinMetadata_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiXGetCoinMetadata' -type MockISuiAPI_SuiXGetCoinMetadata_Call struct { - *mock.Call -} - -// SuiXGetCoinMetadata is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiXGetCoinMetadataRequest -func (_e *MockISuiAPI_Expecter) SuiXGetCoinMetadata(ctx interface{}, req interface{}) *MockISuiAPI_SuiXGetCoinMetadata_Call { - return &MockISuiAPI_SuiXGetCoinMetadata_Call{Call: _e.mock.On("SuiXGetCoinMetadata", ctx, req)} -} - -func (_c *MockISuiAPI_SuiXGetCoinMetadata_Call) Run(run func(ctx context.Context, req models.SuiXGetCoinMetadataRequest)) *MockISuiAPI_SuiXGetCoinMetadata_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiXGetCoinMetadataRequest - if args[1] != nil { - arg1 = args[1].(models.SuiXGetCoinMetadataRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiXGetCoinMetadata_Call) Return(coinMetadataResponse models.CoinMetadataResponse, err error) *MockISuiAPI_SuiXGetCoinMetadata_Call { - _c.Call.Return(coinMetadataResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiXGetCoinMetadata_Call) RunAndReturn(run func(ctx context.Context, req models.SuiXGetCoinMetadataRequest) (models.CoinMetadataResponse, error)) *MockISuiAPI_SuiXGetCoinMetadata_Call { - _c.Call.Return(run) - return _c -} - -// SuiXGetCoins provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiXGetCoins(ctx context.Context, req models.SuiXGetCoinsRequest) (models.PaginatedCoinsResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiXGetCoins") - } - - var r0 models.PaginatedCoinsResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetCoinsRequest) (models.PaginatedCoinsResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetCoinsRequest) models.PaginatedCoinsResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.PaginatedCoinsResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiXGetCoinsRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiXGetCoins_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiXGetCoins' -type MockISuiAPI_SuiXGetCoins_Call struct { - *mock.Call -} - -// SuiXGetCoins is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiXGetCoinsRequest -func (_e *MockISuiAPI_Expecter) SuiXGetCoins(ctx interface{}, req interface{}) *MockISuiAPI_SuiXGetCoins_Call { - return &MockISuiAPI_SuiXGetCoins_Call{Call: _e.mock.On("SuiXGetCoins", ctx, req)} -} - -func (_c *MockISuiAPI_SuiXGetCoins_Call) Run(run func(ctx context.Context, req models.SuiXGetCoinsRequest)) *MockISuiAPI_SuiXGetCoins_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiXGetCoinsRequest - if args[1] != nil { - arg1 = args[1].(models.SuiXGetCoinsRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiXGetCoins_Call) Return(paginatedCoinsResponse models.PaginatedCoinsResponse, err error) *MockISuiAPI_SuiXGetCoins_Call { - _c.Call.Return(paginatedCoinsResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiXGetCoins_Call) RunAndReturn(run func(ctx context.Context, req models.SuiXGetCoinsRequest) (models.PaginatedCoinsResponse, error)) *MockISuiAPI_SuiXGetCoins_Call { - _c.Call.Return(run) - return _c -} - -// SuiXGetCommitteeInfo provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiXGetCommitteeInfo(ctx context.Context, req models.SuiXGetCommitteeInfoRequest) (models.SuiXGetCommitteeInfoResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiXGetCommitteeInfo") - } - - var r0 models.SuiXGetCommitteeInfoResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetCommitteeInfoRequest) (models.SuiXGetCommitteeInfoResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetCommitteeInfoRequest) models.SuiXGetCommitteeInfoResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.SuiXGetCommitteeInfoResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiXGetCommitteeInfoRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiXGetCommitteeInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiXGetCommitteeInfo' -type MockISuiAPI_SuiXGetCommitteeInfo_Call struct { - *mock.Call -} - -// SuiXGetCommitteeInfo is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiXGetCommitteeInfoRequest -func (_e *MockISuiAPI_Expecter) SuiXGetCommitteeInfo(ctx interface{}, req interface{}) *MockISuiAPI_SuiXGetCommitteeInfo_Call { - return &MockISuiAPI_SuiXGetCommitteeInfo_Call{Call: _e.mock.On("SuiXGetCommitteeInfo", ctx, req)} -} - -func (_c *MockISuiAPI_SuiXGetCommitteeInfo_Call) Run(run func(ctx context.Context, req models.SuiXGetCommitteeInfoRequest)) *MockISuiAPI_SuiXGetCommitteeInfo_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiXGetCommitteeInfoRequest - if args[1] != nil { - arg1 = args[1].(models.SuiXGetCommitteeInfoRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiXGetCommitteeInfo_Call) Return(suiXGetCommitteeInfoResponse models.SuiXGetCommitteeInfoResponse, err error) *MockISuiAPI_SuiXGetCommitteeInfo_Call { - _c.Call.Return(suiXGetCommitteeInfoResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiXGetCommitteeInfo_Call) RunAndReturn(run func(ctx context.Context, req models.SuiXGetCommitteeInfoRequest) (models.SuiXGetCommitteeInfoResponse, error)) *MockISuiAPI_SuiXGetCommitteeInfo_Call { - _c.Call.Return(run) - return _c -} - -// SuiXGetCurrentEpoch provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiXGetCurrentEpoch(ctx context.Context) (models.EpochInfo, error) { - ret := _mock.Called(ctx) - - if len(ret) == 0 { - panic("no return value specified for SuiXGetCurrentEpoch") - } - - var r0 models.EpochInfo - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context) (models.EpochInfo, error)); ok { - return returnFunc(ctx) - } - if returnFunc, ok := ret.Get(0).(func(context.Context) models.EpochInfo); ok { - r0 = returnFunc(ctx) - } else { - r0 = ret.Get(0).(models.EpochInfo) - } - if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok { - r1 = returnFunc(ctx) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiXGetCurrentEpoch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiXGetCurrentEpoch' -type MockISuiAPI_SuiXGetCurrentEpoch_Call struct { - *mock.Call -} - -// SuiXGetCurrentEpoch is a helper method to define mock.On call -// - ctx context.Context -func (_e *MockISuiAPI_Expecter) SuiXGetCurrentEpoch(ctx interface{}) *MockISuiAPI_SuiXGetCurrentEpoch_Call { - return &MockISuiAPI_SuiXGetCurrentEpoch_Call{Call: _e.mock.On("SuiXGetCurrentEpoch", ctx)} -} - -func (_c *MockISuiAPI_SuiXGetCurrentEpoch_Call) Run(run func(ctx context.Context)) *MockISuiAPI_SuiXGetCurrentEpoch_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - run( - arg0, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiXGetCurrentEpoch_Call) Return(epochInfo models.EpochInfo, err error) *MockISuiAPI_SuiXGetCurrentEpoch_Call { - _c.Call.Return(epochInfo, err) - return _c -} - -func (_c *MockISuiAPI_SuiXGetCurrentEpoch_Call) RunAndReturn(run func(ctx context.Context) (models.EpochInfo, error)) *MockISuiAPI_SuiXGetCurrentEpoch_Call { - _c.Call.Return(run) - return _c -} - -// SuiXGetDynamicField provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiXGetDynamicField(ctx context.Context, req models.SuiXGetDynamicFieldRequest) (models.PaginatedDynamicFieldInfoResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiXGetDynamicField") - } - - var r0 models.PaginatedDynamicFieldInfoResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetDynamicFieldRequest) (models.PaginatedDynamicFieldInfoResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetDynamicFieldRequest) models.PaginatedDynamicFieldInfoResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.PaginatedDynamicFieldInfoResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiXGetDynamicFieldRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiXGetDynamicField_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiXGetDynamicField' -type MockISuiAPI_SuiXGetDynamicField_Call struct { - *mock.Call -} - -// SuiXGetDynamicField is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiXGetDynamicFieldRequest -func (_e *MockISuiAPI_Expecter) SuiXGetDynamicField(ctx interface{}, req interface{}) *MockISuiAPI_SuiXGetDynamicField_Call { - return &MockISuiAPI_SuiXGetDynamicField_Call{Call: _e.mock.On("SuiXGetDynamicField", ctx, req)} -} - -func (_c *MockISuiAPI_SuiXGetDynamicField_Call) Run(run func(ctx context.Context, req models.SuiXGetDynamicFieldRequest)) *MockISuiAPI_SuiXGetDynamicField_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiXGetDynamicFieldRequest - if args[1] != nil { - arg1 = args[1].(models.SuiXGetDynamicFieldRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiXGetDynamicField_Call) Return(paginatedDynamicFieldInfoResponse models.PaginatedDynamicFieldInfoResponse, err error) *MockISuiAPI_SuiXGetDynamicField_Call { - _c.Call.Return(paginatedDynamicFieldInfoResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiXGetDynamicField_Call) RunAndReturn(run func(ctx context.Context, req models.SuiXGetDynamicFieldRequest) (models.PaginatedDynamicFieldInfoResponse, error)) *MockISuiAPI_SuiXGetDynamicField_Call { - _c.Call.Return(run) - return _c -} - -// SuiXGetDynamicFieldObject provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiXGetDynamicFieldObject(ctx context.Context, req models.SuiXGetDynamicFieldObjectRequest) (models.SuiObjectResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiXGetDynamicFieldObject") - } - - var r0 models.SuiObjectResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetDynamicFieldObjectRequest) (models.SuiObjectResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetDynamicFieldObjectRequest) models.SuiObjectResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.SuiObjectResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiXGetDynamicFieldObjectRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiXGetDynamicFieldObject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiXGetDynamicFieldObject' -type MockISuiAPI_SuiXGetDynamicFieldObject_Call struct { - *mock.Call -} - -// SuiXGetDynamicFieldObject is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiXGetDynamicFieldObjectRequest -func (_e *MockISuiAPI_Expecter) SuiXGetDynamicFieldObject(ctx interface{}, req interface{}) *MockISuiAPI_SuiXGetDynamicFieldObject_Call { - return &MockISuiAPI_SuiXGetDynamicFieldObject_Call{Call: _e.mock.On("SuiXGetDynamicFieldObject", ctx, req)} -} - -func (_c *MockISuiAPI_SuiXGetDynamicFieldObject_Call) Run(run func(ctx context.Context, req models.SuiXGetDynamicFieldObjectRequest)) *MockISuiAPI_SuiXGetDynamicFieldObject_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiXGetDynamicFieldObjectRequest - if args[1] != nil { - arg1 = args[1].(models.SuiXGetDynamicFieldObjectRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiXGetDynamicFieldObject_Call) Return(suiObjectResponse models.SuiObjectResponse, err error) *MockISuiAPI_SuiXGetDynamicFieldObject_Call { - _c.Call.Return(suiObjectResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiXGetDynamicFieldObject_Call) RunAndReturn(run func(ctx context.Context, req models.SuiXGetDynamicFieldObjectRequest) (models.SuiObjectResponse, error)) *MockISuiAPI_SuiXGetDynamicFieldObject_Call { - _c.Call.Return(run) - return _c -} - -// SuiXGetEpochs provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiXGetEpochs(ctx context.Context, req models.SuiXGetEpochsRequest) (models.PaginatedEpochInfoResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiXGetEpochs") - } - - var r0 models.PaginatedEpochInfoResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetEpochsRequest) (models.PaginatedEpochInfoResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetEpochsRequest) models.PaginatedEpochInfoResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.PaginatedEpochInfoResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiXGetEpochsRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiXGetEpochs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiXGetEpochs' -type MockISuiAPI_SuiXGetEpochs_Call struct { - *mock.Call -} - -// SuiXGetEpochs is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiXGetEpochsRequest -func (_e *MockISuiAPI_Expecter) SuiXGetEpochs(ctx interface{}, req interface{}) *MockISuiAPI_SuiXGetEpochs_Call { - return &MockISuiAPI_SuiXGetEpochs_Call{Call: _e.mock.On("SuiXGetEpochs", ctx, req)} -} - -func (_c *MockISuiAPI_SuiXGetEpochs_Call) Run(run func(ctx context.Context, req models.SuiXGetEpochsRequest)) *MockISuiAPI_SuiXGetEpochs_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiXGetEpochsRequest - if args[1] != nil { - arg1 = args[1].(models.SuiXGetEpochsRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiXGetEpochs_Call) Return(paginatedEpochInfoResponse models.PaginatedEpochInfoResponse, err error) *MockISuiAPI_SuiXGetEpochs_Call { - _c.Call.Return(paginatedEpochInfoResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiXGetEpochs_Call) RunAndReturn(run func(ctx context.Context, req models.SuiXGetEpochsRequest) (models.PaginatedEpochInfoResponse, error)) *MockISuiAPI_SuiXGetEpochs_Call { - _c.Call.Return(run) - return _c -} - -// SuiXGetLatestSuiSystemState provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiXGetLatestSuiSystemState(ctx context.Context) (models.SuiSystemStateSummary, error) { - ret := _mock.Called(ctx) - - if len(ret) == 0 { - panic("no return value specified for SuiXGetLatestSuiSystemState") - } - - var r0 models.SuiSystemStateSummary - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context) (models.SuiSystemStateSummary, error)); ok { - return returnFunc(ctx) - } - if returnFunc, ok := ret.Get(0).(func(context.Context) models.SuiSystemStateSummary); ok { - r0 = returnFunc(ctx) - } else { - r0 = ret.Get(0).(models.SuiSystemStateSummary) - } - if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok { - r1 = returnFunc(ctx) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiXGetLatestSuiSystemState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiXGetLatestSuiSystemState' -type MockISuiAPI_SuiXGetLatestSuiSystemState_Call struct { - *mock.Call -} - -// SuiXGetLatestSuiSystemState is a helper method to define mock.On call -// - ctx context.Context -func (_e *MockISuiAPI_Expecter) SuiXGetLatestSuiSystemState(ctx interface{}) *MockISuiAPI_SuiXGetLatestSuiSystemState_Call { - return &MockISuiAPI_SuiXGetLatestSuiSystemState_Call{Call: _e.mock.On("SuiXGetLatestSuiSystemState", ctx)} -} - -func (_c *MockISuiAPI_SuiXGetLatestSuiSystemState_Call) Run(run func(ctx context.Context)) *MockISuiAPI_SuiXGetLatestSuiSystemState_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - run( - arg0, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiXGetLatestSuiSystemState_Call) Return(suiSystemStateSummary models.SuiSystemStateSummary, err error) *MockISuiAPI_SuiXGetLatestSuiSystemState_Call { - _c.Call.Return(suiSystemStateSummary, err) - return _c -} - -func (_c *MockISuiAPI_SuiXGetLatestSuiSystemState_Call) RunAndReturn(run func(ctx context.Context) (models.SuiSystemStateSummary, error)) *MockISuiAPI_SuiXGetLatestSuiSystemState_Call { - _c.Call.Return(run) - return _c -} - -// SuiXGetOwnedObjects provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiXGetOwnedObjects(ctx context.Context, req models.SuiXGetOwnedObjectsRequest) (models.PaginatedObjectsResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiXGetOwnedObjects") - } - - var r0 models.PaginatedObjectsResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetOwnedObjectsRequest) (models.PaginatedObjectsResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetOwnedObjectsRequest) models.PaginatedObjectsResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.PaginatedObjectsResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiXGetOwnedObjectsRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiXGetOwnedObjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiXGetOwnedObjects' -type MockISuiAPI_SuiXGetOwnedObjects_Call struct { - *mock.Call -} - -// SuiXGetOwnedObjects is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiXGetOwnedObjectsRequest -func (_e *MockISuiAPI_Expecter) SuiXGetOwnedObjects(ctx interface{}, req interface{}) *MockISuiAPI_SuiXGetOwnedObjects_Call { - return &MockISuiAPI_SuiXGetOwnedObjects_Call{Call: _e.mock.On("SuiXGetOwnedObjects", ctx, req)} -} - -func (_c *MockISuiAPI_SuiXGetOwnedObjects_Call) Run(run func(ctx context.Context, req models.SuiXGetOwnedObjectsRequest)) *MockISuiAPI_SuiXGetOwnedObjects_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiXGetOwnedObjectsRequest - if args[1] != nil { - arg1 = args[1].(models.SuiXGetOwnedObjectsRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiXGetOwnedObjects_Call) Return(paginatedObjectsResponse models.PaginatedObjectsResponse, err error) *MockISuiAPI_SuiXGetOwnedObjects_Call { - _c.Call.Return(paginatedObjectsResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiXGetOwnedObjects_Call) RunAndReturn(run func(ctx context.Context, req models.SuiXGetOwnedObjectsRequest) (models.PaginatedObjectsResponse, error)) *MockISuiAPI_SuiXGetOwnedObjects_Call { - _c.Call.Return(run) - return _c -} - -// SuiXGetReferenceGasPrice provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiXGetReferenceGasPrice(ctx context.Context) (uint64, error) { - ret := _mock.Called(ctx) - - if len(ret) == 0 { - panic("no return value specified for SuiXGetReferenceGasPrice") - } - - var r0 uint64 - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context) (uint64, error)); ok { - return returnFunc(ctx) - } - if returnFunc, ok := ret.Get(0).(func(context.Context) uint64); ok { - r0 = returnFunc(ctx) - } else { - r0 = ret.Get(0).(uint64) - } - if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok { - r1 = returnFunc(ctx) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiXGetReferenceGasPrice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiXGetReferenceGasPrice' -type MockISuiAPI_SuiXGetReferenceGasPrice_Call struct { - *mock.Call -} - -// SuiXGetReferenceGasPrice is a helper method to define mock.On call -// - ctx context.Context -func (_e *MockISuiAPI_Expecter) SuiXGetReferenceGasPrice(ctx interface{}) *MockISuiAPI_SuiXGetReferenceGasPrice_Call { - return &MockISuiAPI_SuiXGetReferenceGasPrice_Call{Call: _e.mock.On("SuiXGetReferenceGasPrice", ctx)} -} - -func (_c *MockISuiAPI_SuiXGetReferenceGasPrice_Call) Run(run func(ctx context.Context)) *MockISuiAPI_SuiXGetReferenceGasPrice_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - run( - arg0, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiXGetReferenceGasPrice_Call) Return(v uint64, err error) *MockISuiAPI_SuiXGetReferenceGasPrice_Call { - _c.Call.Return(v, err) - return _c -} - -func (_c *MockISuiAPI_SuiXGetReferenceGasPrice_Call) RunAndReturn(run func(ctx context.Context) (uint64, error)) *MockISuiAPI_SuiXGetReferenceGasPrice_Call { - _c.Call.Return(run) - return _c -} - -// SuiXGetStakes provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiXGetStakes(ctx context.Context, req models.SuiXGetStakesRequest) ([]*models.DelegatedStakesResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiXGetStakes") - } - - var r0 []*models.DelegatedStakesResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetStakesRequest) ([]*models.DelegatedStakesResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetStakesRequest) []*models.DelegatedStakesResponse); ok { - r0 = returnFunc(ctx, req) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]*models.DelegatedStakesResponse) - } - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiXGetStakesRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiXGetStakes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiXGetStakes' -type MockISuiAPI_SuiXGetStakes_Call struct { - *mock.Call -} - -// SuiXGetStakes is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiXGetStakesRequest -func (_e *MockISuiAPI_Expecter) SuiXGetStakes(ctx interface{}, req interface{}) *MockISuiAPI_SuiXGetStakes_Call { - return &MockISuiAPI_SuiXGetStakes_Call{Call: _e.mock.On("SuiXGetStakes", ctx, req)} -} - -func (_c *MockISuiAPI_SuiXGetStakes_Call) Run(run func(ctx context.Context, req models.SuiXGetStakesRequest)) *MockISuiAPI_SuiXGetStakes_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiXGetStakesRequest - if args[1] != nil { - arg1 = args[1].(models.SuiXGetStakesRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiXGetStakes_Call) Return(delegatedStakesResponses []*models.DelegatedStakesResponse, err error) *MockISuiAPI_SuiXGetStakes_Call { - _c.Call.Return(delegatedStakesResponses, err) - return _c -} - -func (_c *MockISuiAPI_SuiXGetStakes_Call) RunAndReturn(run func(ctx context.Context, req models.SuiXGetStakesRequest) ([]*models.DelegatedStakesResponse, error)) *MockISuiAPI_SuiXGetStakes_Call { - _c.Call.Return(run) - return _c -} - -// SuiXGetStakesByIds provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiXGetStakesByIds(ctx context.Context, req models.SuiXGetStakesByIdsRequest) ([]*models.DelegatedStakesResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiXGetStakesByIds") - } - - var r0 []*models.DelegatedStakesResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetStakesByIdsRequest) ([]*models.DelegatedStakesResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetStakesByIdsRequest) []*models.DelegatedStakesResponse); ok { - r0 = returnFunc(ctx, req) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).([]*models.DelegatedStakesResponse) - } - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiXGetStakesByIdsRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiXGetStakesByIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiXGetStakesByIds' -type MockISuiAPI_SuiXGetStakesByIds_Call struct { - *mock.Call -} - -// SuiXGetStakesByIds is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiXGetStakesByIdsRequest -func (_e *MockISuiAPI_Expecter) SuiXGetStakesByIds(ctx interface{}, req interface{}) *MockISuiAPI_SuiXGetStakesByIds_Call { - return &MockISuiAPI_SuiXGetStakesByIds_Call{Call: _e.mock.On("SuiXGetStakesByIds", ctx, req)} -} - -func (_c *MockISuiAPI_SuiXGetStakesByIds_Call) Run(run func(ctx context.Context, req models.SuiXGetStakesByIdsRequest)) *MockISuiAPI_SuiXGetStakesByIds_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiXGetStakesByIdsRequest - if args[1] != nil { - arg1 = args[1].(models.SuiXGetStakesByIdsRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiXGetStakesByIds_Call) Return(delegatedStakesResponses []*models.DelegatedStakesResponse, err error) *MockISuiAPI_SuiXGetStakesByIds_Call { - _c.Call.Return(delegatedStakesResponses, err) - return _c -} - -func (_c *MockISuiAPI_SuiXGetStakesByIds_Call) RunAndReturn(run func(ctx context.Context, req models.SuiXGetStakesByIdsRequest) ([]*models.DelegatedStakesResponse, error)) *MockISuiAPI_SuiXGetStakesByIds_Call { - _c.Call.Return(run) - return _c -} - -// SuiXGetTotalSupply provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiXGetTotalSupply(ctx context.Context, req models.SuiXGetTotalSupplyRequest) (models.TotalSupplyResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiXGetTotalSupply") - } - - var r0 models.TotalSupplyResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetTotalSupplyRequest) (models.TotalSupplyResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXGetTotalSupplyRequest) models.TotalSupplyResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.TotalSupplyResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiXGetTotalSupplyRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiXGetTotalSupply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiXGetTotalSupply' -type MockISuiAPI_SuiXGetTotalSupply_Call struct { - *mock.Call -} - -// SuiXGetTotalSupply is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiXGetTotalSupplyRequest -func (_e *MockISuiAPI_Expecter) SuiXGetTotalSupply(ctx interface{}, req interface{}) *MockISuiAPI_SuiXGetTotalSupply_Call { - return &MockISuiAPI_SuiXGetTotalSupply_Call{Call: _e.mock.On("SuiXGetTotalSupply", ctx, req)} -} - -func (_c *MockISuiAPI_SuiXGetTotalSupply_Call) Run(run func(ctx context.Context, req models.SuiXGetTotalSupplyRequest)) *MockISuiAPI_SuiXGetTotalSupply_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiXGetTotalSupplyRequest - if args[1] != nil { - arg1 = args[1].(models.SuiXGetTotalSupplyRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiXGetTotalSupply_Call) Return(totalSupplyResponse models.TotalSupplyResponse, err error) *MockISuiAPI_SuiXGetTotalSupply_Call { - _c.Call.Return(totalSupplyResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiXGetTotalSupply_Call) RunAndReturn(run func(ctx context.Context, req models.SuiXGetTotalSupplyRequest) (models.TotalSupplyResponse, error)) *MockISuiAPI_SuiXGetTotalSupply_Call { - _c.Call.Return(run) - return _c -} - -// SuiXGetValidatorsApy provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiXGetValidatorsApy(ctx context.Context) (models.ValidatorsApy, error) { - ret := _mock.Called(ctx) - - if len(ret) == 0 { - panic("no return value specified for SuiXGetValidatorsApy") - } - - var r0 models.ValidatorsApy - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context) (models.ValidatorsApy, error)); ok { - return returnFunc(ctx) - } - if returnFunc, ok := ret.Get(0).(func(context.Context) models.ValidatorsApy); ok { - r0 = returnFunc(ctx) - } else { - r0 = ret.Get(0).(models.ValidatorsApy) - } - if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok { - r1 = returnFunc(ctx) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiXGetValidatorsApy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiXGetValidatorsApy' -type MockISuiAPI_SuiXGetValidatorsApy_Call struct { - *mock.Call -} - -// SuiXGetValidatorsApy is a helper method to define mock.On call -// - ctx context.Context -func (_e *MockISuiAPI_Expecter) SuiXGetValidatorsApy(ctx interface{}) *MockISuiAPI_SuiXGetValidatorsApy_Call { - return &MockISuiAPI_SuiXGetValidatorsApy_Call{Call: _e.mock.On("SuiXGetValidatorsApy", ctx)} -} - -func (_c *MockISuiAPI_SuiXGetValidatorsApy_Call) Run(run func(ctx context.Context)) *MockISuiAPI_SuiXGetValidatorsApy_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - run( - arg0, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiXGetValidatorsApy_Call) Return(validatorsApy models.ValidatorsApy, err error) *MockISuiAPI_SuiXGetValidatorsApy_Call { - _c.Call.Return(validatorsApy, err) - return _c -} - -func (_c *MockISuiAPI_SuiXGetValidatorsApy_Call) RunAndReturn(run func(ctx context.Context) (models.ValidatorsApy, error)) *MockISuiAPI_SuiXGetValidatorsApy_Call { - _c.Call.Return(run) - return _c -} - -// SuiXQueryEvents provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiXQueryEvents(ctx context.Context, req models.SuiXQueryEventsRequest) (models.PaginatedEventsResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiXQueryEvents") - } - - var r0 models.PaginatedEventsResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXQueryEventsRequest) (models.PaginatedEventsResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXQueryEventsRequest) models.PaginatedEventsResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.PaginatedEventsResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiXQueryEventsRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiXQueryEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiXQueryEvents' -type MockISuiAPI_SuiXQueryEvents_Call struct { - *mock.Call -} - -// SuiXQueryEvents is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiXQueryEventsRequest -func (_e *MockISuiAPI_Expecter) SuiXQueryEvents(ctx interface{}, req interface{}) *MockISuiAPI_SuiXQueryEvents_Call { - return &MockISuiAPI_SuiXQueryEvents_Call{Call: _e.mock.On("SuiXQueryEvents", ctx, req)} -} - -func (_c *MockISuiAPI_SuiXQueryEvents_Call) Run(run func(ctx context.Context, req models.SuiXQueryEventsRequest)) *MockISuiAPI_SuiXQueryEvents_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiXQueryEventsRequest - if args[1] != nil { - arg1 = args[1].(models.SuiXQueryEventsRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiXQueryEvents_Call) Return(paginatedEventsResponse models.PaginatedEventsResponse, err error) *MockISuiAPI_SuiXQueryEvents_Call { - _c.Call.Return(paginatedEventsResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiXQueryEvents_Call) RunAndReturn(run func(ctx context.Context, req models.SuiXQueryEventsRequest) (models.PaginatedEventsResponse, error)) *MockISuiAPI_SuiXQueryEvents_Call { - _c.Call.Return(run) - return _c -} - -// SuiXQueryTransactionBlocks provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiXQueryTransactionBlocks(ctx context.Context, req models.SuiXQueryTransactionBlocksRequest) (models.SuiXQueryTransactionBlocksResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiXQueryTransactionBlocks") - } - - var r0 models.SuiXQueryTransactionBlocksResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXQueryTransactionBlocksRequest) (models.SuiXQueryTransactionBlocksResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXQueryTransactionBlocksRequest) models.SuiXQueryTransactionBlocksResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.SuiXQueryTransactionBlocksResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiXQueryTransactionBlocksRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiXQueryTransactionBlocks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiXQueryTransactionBlocks' -type MockISuiAPI_SuiXQueryTransactionBlocks_Call struct { - *mock.Call -} - -// SuiXQueryTransactionBlocks is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiXQueryTransactionBlocksRequest -func (_e *MockISuiAPI_Expecter) SuiXQueryTransactionBlocks(ctx interface{}, req interface{}) *MockISuiAPI_SuiXQueryTransactionBlocks_Call { - return &MockISuiAPI_SuiXQueryTransactionBlocks_Call{Call: _e.mock.On("SuiXQueryTransactionBlocks", ctx, req)} -} - -func (_c *MockISuiAPI_SuiXQueryTransactionBlocks_Call) Run(run func(ctx context.Context, req models.SuiXQueryTransactionBlocksRequest)) *MockISuiAPI_SuiXQueryTransactionBlocks_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiXQueryTransactionBlocksRequest - if args[1] != nil { - arg1 = args[1].(models.SuiXQueryTransactionBlocksRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiXQueryTransactionBlocks_Call) Return(suiXQueryTransactionBlocksResponse models.SuiXQueryTransactionBlocksResponse, err error) *MockISuiAPI_SuiXQueryTransactionBlocks_Call { - _c.Call.Return(suiXQueryTransactionBlocksResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiXQueryTransactionBlocks_Call) RunAndReturn(run func(ctx context.Context, req models.SuiXQueryTransactionBlocksRequest) (models.SuiXQueryTransactionBlocksResponse, error)) *MockISuiAPI_SuiXQueryTransactionBlocks_Call { - _c.Call.Return(run) - return _c -} - -// SuiXResolveNameServiceAddress provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiXResolveNameServiceAddress(ctx context.Context, req models.SuiXResolveNameServiceAddressRequest) (string, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiXResolveNameServiceAddress") - } - - var r0 string - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXResolveNameServiceAddressRequest) (string, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXResolveNameServiceAddressRequest) string); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(string) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiXResolveNameServiceAddressRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiXResolveNameServiceAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiXResolveNameServiceAddress' -type MockISuiAPI_SuiXResolveNameServiceAddress_Call struct { - *mock.Call -} - -// SuiXResolveNameServiceAddress is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiXResolveNameServiceAddressRequest -func (_e *MockISuiAPI_Expecter) SuiXResolveNameServiceAddress(ctx interface{}, req interface{}) *MockISuiAPI_SuiXResolveNameServiceAddress_Call { - return &MockISuiAPI_SuiXResolveNameServiceAddress_Call{Call: _e.mock.On("SuiXResolveNameServiceAddress", ctx, req)} -} - -func (_c *MockISuiAPI_SuiXResolveNameServiceAddress_Call) Run(run func(ctx context.Context, req models.SuiXResolveNameServiceAddressRequest)) *MockISuiAPI_SuiXResolveNameServiceAddress_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiXResolveNameServiceAddressRequest - if args[1] != nil { - arg1 = args[1].(models.SuiXResolveNameServiceAddressRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiXResolveNameServiceAddress_Call) Return(s string, err error) *MockISuiAPI_SuiXResolveNameServiceAddress_Call { - _c.Call.Return(s, err) - return _c -} - -func (_c *MockISuiAPI_SuiXResolveNameServiceAddress_Call) RunAndReturn(run func(ctx context.Context, req models.SuiXResolveNameServiceAddressRequest) (string, error)) *MockISuiAPI_SuiXResolveNameServiceAddress_Call { - _c.Call.Return(run) - return _c -} - -// SuiXResolveNameServiceNames provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) SuiXResolveNameServiceNames(ctx context.Context, req models.SuiXResolveNameServiceNamesRequest) (models.SuiXResolveNameServiceNamesResponse, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for SuiXResolveNameServiceNames") - } - - var r0 models.SuiXResolveNameServiceNamesResponse - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXResolveNameServiceNamesRequest) (models.SuiXResolveNameServiceNamesResponse, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.SuiXResolveNameServiceNamesRequest) models.SuiXResolveNameServiceNamesResponse); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.SuiXResolveNameServiceNamesResponse) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.SuiXResolveNameServiceNamesRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_SuiXResolveNameServiceNames_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuiXResolveNameServiceNames' -type MockISuiAPI_SuiXResolveNameServiceNames_Call struct { - *mock.Call -} - -// SuiXResolveNameServiceNames is a helper method to define mock.On call -// - ctx context.Context -// - req models.SuiXResolveNameServiceNamesRequest -func (_e *MockISuiAPI_Expecter) SuiXResolveNameServiceNames(ctx interface{}, req interface{}) *MockISuiAPI_SuiXResolveNameServiceNames_Call { - return &MockISuiAPI_SuiXResolveNameServiceNames_Call{Call: _e.mock.On("SuiXResolveNameServiceNames", ctx, req)} -} - -func (_c *MockISuiAPI_SuiXResolveNameServiceNames_Call) Run(run func(ctx context.Context, req models.SuiXResolveNameServiceNamesRequest)) *MockISuiAPI_SuiXResolveNameServiceNames_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.SuiXResolveNameServiceNamesRequest - if args[1] != nil { - arg1 = args[1].(models.SuiXResolveNameServiceNamesRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_SuiXResolveNameServiceNames_Call) Return(suiXResolveNameServiceNamesResponse models.SuiXResolveNameServiceNamesResponse, err error) *MockISuiAPI_SuiXResolveNameServiceNames_Call { - _c.Call.Return(suiXResolveNameServiceNamesResponse, err) - return _c -} - -func (_c *MockISuiAPI_SuiXResolveNameServiceNames_Call) RunAndReturn(run func(ctx context.Context, req models.SuiXResolveNameServiceNamesRequest) (models.SuiXResolveNameServiceNamesResponse, error)) *MockISuiAPI_SuiXResolveNameServiceNames_Call { - _c.Call.Return(run) - return _c -} - -// TransferObject provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) TransferObject(ctx context.Context, req models.TransferObjectRequest) (models.TxnMetaData, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for TransferObject") - } - - var r0 models.TxnMetaData - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.TransferObjectRequest) (models.TxnMetaData, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.TransferObjectRequest) models.TxnMetaData); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.TxnMetaData) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.TransferObjectRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_TransferObject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransferObject' -type MockISuiAPI_TransferObject_Call struct { - *mock.Call -} - -// TransferObject is a helper method to define mock.On call -// - ctx context.Context -// - req models.TransferObjectRequest -func (_e *MockISuiAPI_Expecter) TransferObject(ctx interface{}, req interface{}) *MockISuiAPI_TransferObject_Call { - return &MockISuiAPI_TransferObject_Call{Call: _e.mock.On("TransferObject", ctx, req)} -} - -func (_c *MockISuiAPI_TransferObject_Call) Run(run func(ctx context.Context, req models.TransferObjectRequest)) *MockISuiAPI_TransferObject_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.TransferObjectRequest - if args[1] != nil { - arg1 = args[1].(models.TransferObjectRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_TransferObject_Call) Return(txnMetaData models.TxnMetaData, err error) *MockISuiAPI_TransferObject_Call { - _c.Call.Return(txnMetaData, err) - return _c -} - -func (_c *MockISuiAPI_TransferObject_Call) RunAndReturn(run func(ctx context.Context, req models.TransferObjectRequest) (models.TxnMetaData, error)) *MockISuiAPI_TransferObject_Call { - _c.Call.Return(run) - return _c -} - -// TransferSui provides a mock function for the type MockISuiAPI -func (_mock *MockISuiAPI) TransferSui(ctx context.Context, req models.TransferSuiRequest) (models.TxnMetaData, error) { - ret := _mock.Called(ctx, req) - - if len(ret) == 0 { - panic("no return value specified for TransferSui") - } - - var r0 models.TxnMetaData - var r1 error - if returnFunc, ok := ret.Get(0).(func(context.Context, models.TransferSuiRequest) (models.TxnMetaData, error)); ok { - return returnFunc(ctx, req) - } - if returnFunc, ok := ret.Get(0).(func(context.Context, models.TransferSuiRequest) models.TxnMetaData); ok { - r0 = returnFunc(ctx, req) - } else { - r0 = ret.Get(0).(models.TxnMetaData) - } - if returnFunc, ok := ret.Get(1).(func(context.Context, models.TransferSuiRequest) error); ok { - r1 = returnFunc(ctx, req) - } else { - r1 = ret.Error(1) - } - return r0, r1 -} - -// MockISuiAPI_TransferSui_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransferSui' -type MockISuiAPI_TransferSui_Call struct { - *mock.Call -} - -// TransferSui is a helper method to define mock.On call -// - ctx context.Context -// - req models.TransferSuiRequest -func (_e *MockISuiAPI_Expecter) TransferSui(ctx interface{}, req interface{}) *MockISuiAPI_TransferSui_Call { - return &MockISuiAPI_TransferSui_Call{Call: _e.mock.On("TransferSui", ctx, req)} -} - -func (_c *MockISuiAPI_TransferSui_Call) Run(run func(ctx context.Context, req models.TransferSuiRequest)) *MockISuiAPI_TransferSui_Call { - _c.Call.Run(func(args mock.Arguments) { - var arg0 context.Context - if args[0] != nil { - arg0 = args[0].(context.Context) - } - var arg1 models.TransferSuiRequest - if args[1] != nil { - arg1 = args[1].(models.TransferSuiRequest) - } - run( - arg0, - arg1, - ) - }) - return _c -} - -func (_c *MockISuiAPI_TransferSui_Call) Return(txnMetaData models.TxnMetaData, err error) *MockISuiAPI_TransferSui_Call { - _c.Call.Return(txnMetaData, err) - return _c -} - -func (_c *MockISuiAPI_TransferSui_Call) RunAndReturn(run func(ctx context.Context, req models.TransferSuiRequest) (models.TxnMetaData, error)) *MockISuiAPI_TransferSui_Call { - _c.Call.Return(run) - return _c -} diff --git a/chain/sui/mocks/sui_ptb_client.go b/chain/sui/mocks/sui_ptb_client.go new file mode 100644 index 000000000..cb37b0cfd --- /dev/null +++ b/chain/sui/mocks/sui_ptb_client.go @@ -0,0 +1,2374 @@ +// Code generated by mockery; DO NOT EDIT. +// github.com/vektra/mockery +// template: testify + +package mocks + +import ( + "context" + "math/big" + + "github.com/block-vision/sui-go-sdk/models" + "github.com/block-vision/sui-go-sdk/pb/sui/rpc/v2" + "github.com/block-vision/sui-go-sdk/signer" + "github.com/block-vision/sui-go-sdk/transaction" + "github.com/patrickmn/go-cache" + "github.com/smartcontractkit/chainlink-sui/relayer/client" + mock "github.com/stretchr/testify/mock" +) + +// NewMockSuiPTBClient creates a new instance of MockSuiPTBClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewMockSuiPTBClient(t interface { + mock.TestingT + Cleanup(func()) +}) *MockSuiPTBClient { + mock := &MockSuiPTBClient{} + mock.Mock.Test(t) + + t.Cleanup(func() { mock.AssertExpectations(t) }) + + return mock +} + +// MockSuiPTBClient is an autogenerated mock type for the SuiPTBClient type +type MockSuiPTBClient struct { + mock.Mock +} + +type MockSuiPTBClient_Expecter struct { + mock *mock.Mock +} + +func (_m *MockSuiPTBClient) EXPECT() *MockSuiPTBClient_Expecter { + return &MockSuiPTBClient_Expecter{mock: &_m.Mock} +} + +// EstimateGas provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) EstimateGas(ctx context.Context, tx *transaction.Transaction) (uint64, error) { + ret := _mock.Called(ctx, tx) + + if len(ret) == 0 { + panic("no return value specified for EstimateGas") + } + + var r0 uint64 + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, *transaction.Transaction) (uint64, error)); ok { + return returnFunc(ctx, tx) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, *transaction.Transaction) uint64); ok { + r0 = returnFunc(ctx, tx) + } else { + r0 = ret.Get(0).(uint64) + } + if returnFunc, ok := ret.Get(1).(func(context.Context, *transaction.Transaction) error); ok { + r1 = returnFunc(ctx, tx) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_EstimateGas_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateGas' +type MockSuiPTBClient_EstimateGas_Call struct { + *mock.Call +} + +// EstimateGas is a helper method to define mock.On call +// - ctx context.Context +// - tx *transaction.Transaction +func (_e *MockSuiPTBClient_Expecter) EstimateGas(ctx interface{}, tx interface{}) *MockSuiPTBClient_EstimateGas_Call { + return &MockSuiPTBClient_EstimateGas_Call{Call: _e.mock.On("EstimateGas", ctx, tx)} +} + +func (_c *MockSuiPTBClient_EstimateGas_Call) Run(run func(ctx context.Context, tx *transaction.Transaction)) *MockSuiPTBClient_EstimateGas_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 *transaction.Transaction + if args[1] != nil { + arg1 = args[1].(*transaction.Transaction) + } + run( + arg0, + arg1, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_EstimateGas_Call) Return(v uint64, err error) *MockSuiPTBClient_EstimateGas_Call { + _c.Call.Return(v, err) + return _c +} + +func (_c *MockSuiPTBClient_EstimateGas_Call) RunAndReturn(run func(ctx context.Context, tx *transaction.Transaction) (uint64, error)) *MockSuiPTBClient_EstimateGas_Call { + _c.Call.Return(run) + return _c +} + +// FinishPTBAndSend provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) FinishPTBAndSend(ctx context.Context, txnSigner *signer.Signer, tx *transaction.Transaction, requestType client.TransactionRequestType) (*v2.ExecuteTransactionResponse, error) { + ret := _mock.Called(ctx, txnSigner, tx, requestType) + + if len(ret) == 0 { + panic("no return value specified for FinishPTBAndSend") + } + + var r0 *v2.ExecuteTransactionResponse + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, *signer.Signer, *transaction.Transaction, client.TransactionRequestType) (*v2.ExecuteTransactionResponse, error)); ok { + return returnFunc(ctx, txnSigner, tx, requestType) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, *signer.Signer, *transaction.Transaction, client.TransactionRequestType) *v2.ExecuteTransactionResponse); ok { + r0 = returnFunc(ctx, txnSigner, tx, requestType) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*v2.ExecuteTransactionResponse) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, *signer.Signer, *transaction.Transaction, client.TransactionRequestType) error); ok { + r1 = returnFunc(ctx, txnSigner, tx, requestType) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_FinishPTBAndSend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FinishPTBAndSend' +type MockSuiPTBClient_FinishPTBAndSend_Call struct { + *mock.Call +} + +// FinishPTBAndSend is a helper method to define mock.On call +// - ctx context.Context +// - txnSigner *signer.Signer +// - tx *transaction.Transaction +// - requestType client.TransactionRequestType +func (_e *MockSuiPTBClient_Expecter) FinishPTBAndSend(ctx interface{}, txnSigner interface{}, tx interface{}, requestType interface{}) *MockSuiPTBClient_FinishPTBAndSend_Call { + return &MockSuiPTBClient_FinishPTBAndSend_Call{Call: _e.mock.On("FinishPTBAndSend", ctx, txnSigner, tx, requestType)} +} + +func (_c *MockSuiPTBClient_FinishPTBAndSend_Call) Run(run func(ctx context.Context, txnSigner *signer.Signer, tx *transaction.Transaction, requestType client.TransactionRequestType)) *MockSuiPTBClient_FinishPTBAndSend_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 *signer.Signer + if args[1] != nil { + arg1 = args[1].(*signer.Signer) + } + var arg2 *transaction.Transaction + if args[2] != nil { + arg2 = args[2].(*transaction.Transaction) + } + var arg3 client.TransactionRequestType + if args[3] != nil { + arg3 = args[3].(client.TransactionRequestType) + } + run( + arg0, + arg1, + arg2, + arg3, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_FinishPTBAndSend_Call) Return(executeTransactionResponse *v2.ExecuteTransactionResponse, err error) *MockSuiPTBClient_FinishPTBAndSend_Call { + _c.Call.Return(executeTransactionResponse, err) + return _c +} + +func (_c *MockSuiPTBClient_FinishPTBAndSend_Call) RunAndReturn(run func(ctx context.Context, txnSigner *signer.Signer, tx *transaction.Transaction, requestType client.TransactionRequestType) (*v2.ExecuteTransactionResponse, error)) *MockSuiPTBClient_FinishPTBAndSend_Call { + _c.Call.Return(run) + return _c +} + +// GetBlockById provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) GetBlockById(ctx context.Context, checkpointDigest string) (*v2.Checkpoint, error) { + ret := _mock.Called(ctx, checkpointDigest) + + if len(ret) == 0 { + panic("no return value specified for GetBlockById") + } + + var r0 *v2.Checkpoint + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, string) (*v2.Checkpoint, error)); ok { + return returnFunc(ctx, checkpointDigest) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, string) *v2.Checkpoint); ok { + r0 = returnFunc(ctx, checkpointDigest) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*v2.Checkpoint) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok { + r1 = returnFunc(ctx, checkpointDigest) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_GetBlockById_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBlockById' +type MockSuiPTBClient_GetBlockById_Call struct { + *mock.Call +} + +// GetBlockById is a helper method to define mock.On call +// - ctx context.Context +// - checkpointDigest string +func (_e *MockSuiPTBClient_Expecter) GetBlockById(ctx interface{}, checkpointDigest interface{}) *MockSuiPTBClient_GetBlockById_Call { + return &MockSuiPTBClient_GetBlockById_Call{Call: _e.mock.On("GetBlockById", ctx, checkpointDigest)} +} + +func (_c *MockSuiPTBClient_GetBlockById_Call) Run(run func(ctx context.Context, checkpointDigest string)) *MockSuiPTBClient_GetBlockById_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 string + if args[1] != nil { + arg1 = args[1].(string) + } + run( + arg0, + arg1, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_GetBlockById_Call) Return(checkpoint *v2.Checkpoint, err error) *MockSuiPTBClient_GetBlockById_Call { + _c.Call.Return(checkpoint, err) + return _c +} + +func (_c *MockSuiPTBClient_GetBlockById_Call) RunAndReturn(run func(ctx context.Context, checkpointDigest string) (*v2.Checkpoint, error)) *MockSuiPTBClient_GetBlockById_Call { + _c.Call.Return(run) + return _c +} + +// GetCCIPPackageID provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) GetCCIPPackageID(ctx context.Context, offRampPackageID string) (string, error) { + ret := _mock.Called(ctx, offRampPackageID) + + if len(ret) == 0 { + panic("no return value specified for GetCCIPPackageID") + } + + var r0 string + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, string) (string, error)); ok { + return returnFunc(ctx, offRampPackageID) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, string) string); ok { + r0 = returnFunc(ctx, offRampPackageID) + } else { + r0 = ret.Get(0).(string) + } + if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok { + r1 = returnFunc(ctx, offRampPackageID) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_GetCCIPPackageID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCCIPPackageID' +type MockSuiPTBClient_GetCCIPPackageID_Call struct { + *mock.Call +} + +// GetCCIPPackageID is a helper method to define mock.On call +// - ctx context.Context +// - offRampPackageID string +func (_e *MockSuiPTBClient_Expecter) GetCCIPPackageID(ctx interface{}, offRampPackageID interface{}) *MockSuiPTBClient_GetCCIPPackageID_Call { + return &MockSuiPTBClient_GetCCIPPackageID_Call{Call: _e.mock.On("GetCCIPPackageID", ctx, offRampPackageID)} +} + +func (_c *MockSuiPTBClient_GetCCIPPackageID_Call) Run(run func(ctx context.Context, offRampPackageID string)) *MockSuiPTBClient_GetCCIPPackageID_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 string + if args[1] != nil { + arg1 = args[1].(string) + } + run( + arg0, + arg1, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_GetCCIPPackageID_Call) Return(s string, err error) *MockSuiPTBClient_GetCCIPPackageID_Call { + _c.Call.Return(s, err) + return _c +} + +func (_c *MockSuiPTBClient_GetCCIPPackageID_Call) RunAndReturn(run func(ctx context.Context, offRampPackageID string) (string, error)) *MockSuiPTBClient_GetCCIPPackageID_Call { + _c.Call.Return(run) + return _c +} + +// GetCache provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) GetCache() *cache.Cache { + ret := _mock.Called() + + if len(ret) == 0 { + panic("no return value specified for GetCache") + } + + var r0 *cache.Cache + if returnFunc, ok := ret.Get(0).(func() *cache.Cache); ok { + r0 = returnFunc() + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*cache.Cache) + } + } + return r0 +} + +// MockSuiPTBClient_GetCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCache' +type MockSuiPTBClient_GetCache_Call struct { + *mock.Call +} + +// GetCache is a helper method to define mock.On call +func (_e *MockSuiPTBClient_Expecter) GetCache() *MockSuiPTBClient_GetCache_Call { + return &MockSuiPTBClient_GetCache_Call{Call: _e.mock.On("GetCache")} +} + +func (_c *MockSuiPTBClient_GetCache_Call) Run(run func()) *MockSuiPTBClient_GetCache_Call { + _c.Call.Run(func(args mock.Arguments) { + run() + }) + return _c +} + +func (_c *MockSuiPTBClient_GetCache_Call) Return(cache1 *cache.Cache) *MockSuiPTBClient_GetCache_Call { + _c.Call.Return(cache1) + return _c +} + +func (_c *MockSuiPTBClient_GetCache_Call) RunAndReturn(run func() *cache.Cache) *MockSuiPTBClient_GetCache_Call { + _c.Call.Return(run) + return _c +} + +// GetCachedValue provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) GetCachedValue(key string) (any, bool) { + ret := _mock.Called(key) + + if len(ret) == 0 { + panic("no return value specified for GetCachedValue") + } + + var r0 any + var r1 bool + if returnFunc, ok := ret.Get(0).(func(string) (any, bool)); ok { + return returnFunc(key) + } + if returnFunc, ok := ret.Get(0).(func(string) any); ok { + r0 = returnFunc(key) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(any) + } + } + if returnFunc, ok := ret.Get(1).(func(string) bool); ok { + r1 = returnFunc(key) + } else { + r1 = ret.Get(1).(bool) + } + return r0, r1 +} + +// MockSuiPTBClient_GetCachedValue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCachedValue' +type MockSuiPTBClient_GetCachedValue_Call struct { + *mock.Call +} + +// GetCachedValue is a helper method to define mock.On call +// - key string +func (_e *MockSuiPTBClient_Expecter) GetCachedValue(key interface{}) *MockSuiPTBClient_GetCachedValue_Call { + return &MockSuiPTBClient_GetCachedValue_Call{Call: _e.mock.On("GetCachedValue", key)} +} + +func (_c *MockSuiPTBClient_GetCachedValue_Call) Run(run func(key string)) *MockSuiPTBClient_GetCachedValue_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 string + if args[0] != nil { + arg0 = args[0].(string) + } + run( + arg0, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_GetCachedValue_Call) Return(v any, b bool) *MockSuiPTBClient_GetCachedValue_Call { + _c.Call.Return(v, b) + return _c +} + +func (_c *MockSuiPTBClient_GetCachedValue_Call) RunAndReturn(run func(key string) (any, bool)) *MockSuiPTBClient_GetCachedValue_Call { + _c.Call.Return(run) + return _c +} + +// GetCachedValues provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) GetCachedValues(keys []string) (map[string]any, bool) { + ret := _mock.Called(keys) + + if len(ret) == 0 { + panic("no return value specified for GetCachedValues") + } + + var r0 map[string]any + var r1 bool + if returnFunc, ok := ret.Get(0).(func([]string) (map[string]any, bool)); ok { + return returnFunc(keys) + } + if returnFunc, ok := ret.Get(0).(func([]string) map[string]any); ok { + r0 = returnFunc(keys) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(map[string]any) + } + } + if returnFunc, ok := ret.Get(1).(func([]string) bool); ok { + r1 = returnFunc(keys) + } else { + r1 = ret.Get(1).(bool) + } + return r0, r1 +} + +// MockSuiPTBClient_GetCachedValues_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCachedValues' +type MockSuiPTBClient_GetCachedValues_Call struct { + *mock.Call +} + +// GetCachedValues is a helper method to define mock.On call +// - keys []string +func (_e *MockSuiPTBClient_Expecter) GetCachedValues(keys interface{}) *MockSuiPTBClient_GetCachedValues_Call { + return &MockSuiPTBClient_GetCachedValues_Call{Call: _e.mock.On("GetCachedValues", keys)} +} + +func (_c *MockSuiPTBClient_GetCachedValues_Call) Run(run func(keys []string)) *MockSuiPTBClient_GetCachedValues_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 []string + if args[0] != nil { + arg0 = args[0].([]string) + } + run( + arg0, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_GetCachedValues_Call) Return(stringToV map[string]any, b bool) *MockSuiPTBClient_GetCachedValues_Call { + _c.Call.Return(stringToV, b) + return _c +} + +func (_c *MockSuiPTBClient_GetCachedValues_Call) RunAndReturn(run func(keys []string) (map[string]any, bool)) *MockSuiPTBClient_GetCachedValues_Call { + _c.Call.Return(run) + return _c +} + +// GetCheckpointData provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) GetCheckpointData(ctx context.Context, checkpointSequenceNumber uint64) (*client.CheckpointData, error) { + ret := _mock.Called(ctx, checkpointSequenceNumber) + + if len(ret) == 0 { + panic("no return value specified for GetCheckpointData") + } + + var r0 *client.CheckpointData + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, uint64) (*client.CheckpointData, error)); ok { + return returnFunc(ctx, checkpointSequenceNumber) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, uint64) *client.CheckpointData); ok { + r0 = returnFunc(ctx, checkpointSequenceNumber) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*client.CheckpointData) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, uint64) error); ok { + r1 = returnFunc(ctx, checkpointSequenceNumber) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_GetCheckpointData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCheckpointData' +type MockSuiPTBClient_GetCheckpointData_Call struct { + *mock.Call +} + +// GetCheckpointData is a helper method to define mock.On call +// - ctx context.Context +// - checkpointSequenceNumber uint64 +func (_e *MockSuiPTBClient_Expecter) GetCheckpointData(ctx interface{}, checkpointSequenceNumber interface{}) *MockSuiPTBClient_GetCheckpointData_Call { + return &MockSuiPTBClient_GetCheckpointData_Call{Call: _e.mock.On("GetCheckpointData", ctx, checkpointSequenceNumber)} +} + +func (_c *MockSuiPTBClient_GetCheckpointData_Call) Run(run func(ctx context.Context, checkpointSequenceNumber uint64)) *MockSuiPTBClient_GetCheckpointData_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 uint64 + if args[1] != nil { + arg1 = args[1].(uint64) + } + run( + arg0, + arg1, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_GetCheckpointData_Call) Return(checkpointData *client.CheckpointData, err error) *MockSuiPTBClient_GetCheckpointData_Call { + _c.Call.Return(checkpointData, err) + return _c +} + +func (_c *MockSuiPTBClient_GetCheckpointData_Call) RunAndReturn(run func(ctx context.Context, checkpointSequenceNumber uint64) (*client.CheckpointData, error)) *MockSuiPTBClient_GetCheckpointData_Call { + _c.Call.Return(run) + return _c +} + +// GetCoinMetadata provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) GetCoinMetadata(ctx context.Context, coinType string) (models.CoinMetadataResponse, error) { + ret := _mock.Called(ctx, coinType) + + if len(ret) == 0 { + panic("no return value specified for GetCoinMetadata") + } + + var r0 models.CoinMetadataResponse + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, string) (models.CoinMetadataResponse, error)); ok { + return returnFunc(ctx, coinType) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, string) models.CoinMetadataResponse); ok { + r0 = returnFunc(ctx, coinType) + } else { + r0 = ret.Get(0).(models.CoinMetadataResponse) + } + if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok { + r1 = returnFunc(ctx, coinType) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_GetCoinMetadata_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCoinMetadata' +type MockSuiPTBClient_GetCoinMetadata_Call struct { + *mock.Call +} + +// GetCoinMetadata is a helper method to define mock.On call +// - ctx context.Context +// - coinType string +func (_e *MockSuiPTBClient_Expecter) GetCoinMetadata(ctx interface{}, coinType interface{}) *MockSuiPTBClient_GetCoinMetadata_Call { + return &MockSuiPTBClient_GetCoinMetadata_Call{Call: _e.mock.On("GetCoinMetadata", ctx, coinType)} +} + +func (_c *MockSuiPTBClient_GetCoinMetadata_Call) Run(run func(ctx context.Context, coinType string)) *MockSuiPTBClient_GetCoinMetadata_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 string + if args[1] != nil { + arg1 = args[1].(string) + } + run( + arg0, + arg1, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_GetCoinMetadata_Call) Return(coinMetadataResponse models.CoinMetadataResponse, err error) *MockSuiPTBClient_GetCoinMetadata_Call { + _c.Call.Return(coinMetadataResponse, err) + return _c +} + +func (_c *MockSuiPTBClient_GetCoinMetadata_Call) RunAndReturn(run func(ctx context.Context, coinType string) (models.CoinMetadataResponse, error)) *MockSuiPTBClient_GetCoinMetadata_Call { + _c.Call.Return(run) + return _c +} + +// GetCoinsByAddress provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) GetCoinsByAddress(ctx context.Context, address string) ([]*v2.Object, error) { + ret := _mock.Called(ctx, address) + + if len(ret) == 0 { + panic("no return value specified for GetCoinsByAddress") + } + + var r0 []*v2.Object + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, string) ([]*v2.Object, error)); ok { + return returnFunc(ctx, address) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, string) []*v2.Object); ok { + r0 = returnFunc(ctx, address) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).([]*v2.Object) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok { + r1 = returnFunc(ctx, address) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_GetCoinsByAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCoinsByAddress' +type MockSuiPTBClient_GetCoinsByAddress_Call struct { + *mock.Call +} + +// GetCoinsByAddress is a helper method to define mock.On call +// - ctx context.Context +// - address string +func (_e *MockSuiPTBClient_Expecter) GetCoinsByAddress(ctx interface{}, address interface{}) *MockSuiPTBClient_GetCoinsByAddress_Call { + return &MockSuiPTBClient_GetCoinsByAddress_Call{Call: _e.mock.On("GetCoinsByAddress", ctx, address)} +} + +func (_c *MockSuiPTBClient_GetCoinsByAddress_Call) Run(run func(ctx context.Context, address string)) *MockSuiPTBClient_GetCoinsByAddress_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 string + if args[1] != nil { + arg1 = args[1].(string) + } + run( + arg0, + arg1, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_GetCoinsByAddress_Call) Return(objects []*v2.Object, err error) *MockSuiPTBClient_GetCoinsByAddress_Call { + _c.Call.Return(objects, err) + return _c +} + +func (_c *MockSuiPTBClient_GetCoinsByAddress_Call) RunAndReturn(run func(ctx context.Context, address string) ([]*v2.Object, error)) *MockSuiPTBClient_GetCoinsByAddress_Call { + _c.Call.Return(run) + return _c +} + +// GetLatestCheckpoint provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) GetLatestCheckpoint(ctx context.Context) (*v2.Checkpoint, error) { + ret := _mock.Called(ctx) + + if len(ret) == 0 { + panic("no return value specified for GetLatestCheckpoint") + } + + var r0 *v2.Checkpoint + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context) (*v2.Checkpoint, error)); ok { + return returnFunc(ctx) + } + if returnFunc, ok := ret.Get(0).(func(context.Context) *v2.Checkpoint); ok { + r0 = returnFunc(ctx) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*v2.Checkpoint) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok { + r1 = returnFunc(ctx) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_GetLatestCheckpoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestCheckpoint' +type MockSuiPTBClient_GetLatestCheckpoint_Call struct { + *mock.Call +} + +// GetLatestCheckpoint is a helper method to define mock.On call +// - ctx context.Context +func (_e *MockSuiPTBClient_Expecter) GetLatestCheckpoint(ctx interface{}) *MockSuiPTBClient_GetLatestCheckpoint_Call { + return &MockSuiPTBClient_GetLatestCheckpoint_Call{Call: _e.mock.On("GetLatestCheckpoint", ctx)} +} + +func (_c *MockSuiPTBClient_GetLatestCheckpoint_Call) Run(run func(ctx context.Context)) *MockSuiPTBClient_GetLatestCheckpoint_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + run( + arg0, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_GetLatestCheckpoint_Call) Return(checkpoint *v2.Checkpoint, err error) *MockSuiPTBClient_GetLatestCheckpoint_Call { + _c.Call.Return(checkpoint, err) + return _c +} + +func (_c *MockSuiPTBClient_GetLatestCheckpoint_Call) RunAndReturn(run func(ctx context.Context) (*v2.Checkpoint, error)) *MockSuiPTBClient_GetLatestCheckpoint_Call { + _c.Call.Return(run) + return _c +} + +// GetLatestEpoch provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) GetLatestEpoch(ctx context.Context) (*v2.Epoch, error) { + ret := _mock.Called(ctx) + + if len(ret) == 0 { + panic("no return value specified for GetLatestEpoch") + } + + var r0 *v2.Epoch + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context) (*v2.Epoch, error)); ok { + return returnFunc(ctx) + } + if returnFunc, ok := ret.Get(0).(func(context.Context) *v2.Epoch); ok { + r0 = returnFunc(ctx) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*v2.Epoch) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok { + r1 = returnFunc(ctx) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_GetLatestEpoch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestEpoch' +type MockSuiPTBClient_GetLatestEpoch_Call struct { + *mock.Call +} + +// GetLatestEpoch is a helper method to define mock.On call +// - ctx context.Context +func (_e *MockSuiPTBClient_Expecter) GetLatestEpoch(ctx interface{}) *MockSuiPTBClient_GetLatestEpoch_Call { + return &MockSuiPTBClient_GetLatestEpoch_Call{Call: _e.mock.On("GetLatestEpoch", ctx)} +} + +func (_c *MockSuiPTBClient_GetLatestEpoch_Call) Run(run func(ctx context.Context)) *MockSuiPTBClient_GetLatestEpoch_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + run( + arg0, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_GetLatestEpoch_Call) Return(epoch *v2.Epoch, err error) *MockSuiPTBClient_GetLatestEpoch_Call { + _c.Call.Return(epoch, err) + return _c +} + +func (_c *MockSuiPTBClient_GetLatestEpoch_Call) RunAndReturn(run func(ctx context.Context) (*v2.Epoch, error)) *MockSuiPTBClient_GetLatestEpoch_Call { + _c.Call.Return(run) + return _c +} + +// GetLatestPackageId provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) GetLatestPackageId(ctx context.Context, packageId string, module string) (string, error) { + ret := _mock.Called(ctx, packageId, module) + + if len(ret) == 0 { + panic("no return value specified for GetLatestPackageId") + } + + var r0 string + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) (string, error)); ok { + return returnFunc(ctx, packageId, module) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) string); ok { + r0 = returnFunc(ctx, packageId, module) + } else { + r0 = ret.Get(0).(string) + } + if returnFunc, ok := ret.Get(1).(func(context.Context, string, string) error); ok { + r1 = returnFunc(ctx, packageId, module) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_GetLatestPackageId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestPackageId' +type MockSuiPTBClient_GetLatestPackageId_Call struct { + *mock.Call +} + +// GetLatestPackageId is a helper method to define mock.On call +// - ctx context.Context +// - packageId string +// - module string +func (_e *MockSuiPTBClient_Expecter) GetLatestPackageId(ctx interface{}, packageId interface{}, module interface{}) *MockSuiPTBClient_GetLatestPackageId_Call { + return &MockSuiPTBClient_GetLatestPackageId_Call{Call: _e.mock.On("GetLatestPackageId", ctx, packageId, module)} +} + +func (_c *MockSuiPTBClient_GetLatestPackageId_Call) Run(run func(ctx context.Context, packageId string, module string)) *MockSuiPTBClient_GetLatestPackageId_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 string + if args[1] != nil { + arg1 = args[1].(string) + } + var arg2 string + if args[2] != nil { + arg2 = args[2].(string) + } + run( + arg0, + arg1, + arg2, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_GetLatestPackageId_Call) Return(s string, err error) *MockSuiPTBClient_GetLatestPackageId_Call { + _c.Call.Return(s, err) + return _c +} + +func (_c *MockSuiPTBClient_GetLatestPackageId_Call) RunAndReturn(run func(ctx context.Context, packageId string, module string) (string, error)) *MockSuiPTBClient_GetLatestPackageId_Call { + _c.Call.Return(run) + return _c +} + +// GetNormalizedModule provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) GetNormalizedModule(ctx context.Context, packageId string, moduleId string) (models.GetNormalizedMoveModuleResponse, error) { + ret := _mock.Called(ctx, packageId, moduleId) + + if len(ret) == 0 { + panic("no return value specified for GetNormalizedModule") + } + + var r0 models.GetNormalizedMoveModuleResponse + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) (models.GetNormalizedMoveModuleResponse, error)); ok { + return returnFunc(ctx, packageId, moduleId) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) models.GetNormalizedMoveModuleResponse); ok { + r0 = returnFunc(ctx, packageId, moduleId) + } else { + r0 = ret.Get(0).(models.GetNormalizedMoveModuleResponse) + } + if returnFunc, ok := ret.Get(1).(func(context.Context, string, string) error); ok { + r1 = returnFunc(ctx, packageId, moduleId) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_GetNormalizedModule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNormalizedModule' +type MockSuiPTBClient_GetNormalizedModule_Call struct { + *mock.Call +} + +// GetNormalizedModule is a helper method to define mock.On call +// - ctx context.Context +// - packageId string +// - moduleId string +func (_e *MockSuiPTBClient_Expecter) GetNormalizedModule(ctx interface{}, packageId interface{}, moduleId interface{}) *MockSuiPTBClient_GetNormalizedModule_Call { + return &MockSuiPTBClient_GetNormalizedModule_Call{Call: _e.mock.On("GetNormalizedModule", ctx, packageId, moduleId)} +} + +func (_c *MockSuiPTBClient_GetNormalizedModule_Call) Run(run func(ctx context.Context, packageId string, moduleId string)) *MockSuiPTBClient_GetNormalizedModule_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 string + if args[1] != nil { + arg1 = args[1].(string) + } + var arg2 string + if args[2] != nil { + arg2 = args[2].(string) + } + run( + arg0, + arg1, + arg2, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_GetNormalizedModule_Call) Return(getNormalizedMoveModuleResponse models.GetNormalizedMoveModuleResponse, err error) *MockSuiPTBClient_GetNormalizedModule_Call { + _c.Call.Return(getNormalizedMoveModuleResponse, err) + return _c +} + +func (_c *MockSuiPTBClient_GetNormalizedModule_Call) RunAndReturn(run func(ctx context.Context, packageId string, moduleId string) (models.GetNormalizedMoveModuleResponse, error)) *MockSuiPTBClient_GetNormalizedModule_Call { + _c.Call.Return(run) + return _c +} + +// GetParentObjectID provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) GetParentObjectID(ctx context.Context, packageID string, moduleID string, pointerObjectName string) (string, error) { + ret := _mock.Called(ctx, packageID, moduleID, pointerObjectName) + + if len(ret) == 0 { + panic("no return value specified for GetParentObjectID") + } + + var r0 string + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, string, string, string) (string, error)); ok { + return returnFunc(ctx, packageID, moduleID, pointerObjectName) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, string, string, string) string); ok { + r0 = returnFunc(ctx, packageID, moduleID, pointerObjectName) + } else { + r0 = ret.Get(0).(string) + } + if returnFunc, ok := ret.Get(1).(func(context.Context, string, string, string) error); ok { + r1 = returnFunc(ctx, packageID, moduleID, pointerObjectName) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_GetParentObjectID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetParentObjectID' +type MockSuiPTBClient_GetParentObjectID_Call struct { + *mock.Call +} + +// GetParentObjectID is a helper method to define mock.On call +// - ctx context.Context +// - packageID string +// - moduleID string +// - pointerObjectName string +func (_e *MockSuiPTBClient_Expecter) GetParentObjectID(ctx interface{}, packageID interface{}, moduleID interface{}, pointerObjectName interface{}) *MockSuiPTBClient_GetParentObjectID_Call { + return &MockSuiPTBClient_GetParentObjectID_Call{Call: _e.mock.On("GetParentObjectID", ctx, packageID, moduleID, pointerObjectName)} +} + +func (_c *MockSuiPTBClient_GetParentObjectID_Call) Run(run func(ctx context.Context, packageID string, moduleID string, pointerObjectName string)) *MockSuiPTBClient_GetParentObjectID_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 string + if args[1] != nil { + arg1 = args[1].(string) + } + var arg2 string + if args[2] != nil { + arg2 = args[2].(string) + } + var arg3 string + if args[3] != nil { + arg3 = args[3].(string) + } + run( + arg0, + arg1, + arg2, + arg3, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_GetParentObjectID_Call) Return(s string, err error) *MockSuiPTBClient_GetParentObjectID_Call { + _c.Call.Return(s, err) + return _c +} + +func (_c *MockSuiPTBClient_GetParentObjectID_Call) RunAndReturn(run func(ctx context.Context, packageID string, moduleID string, pointerObjectName string) (string, error)) *MockSuiPTBClient_GetParentObjectID_Call { + _c.Call.Return(run) + return _c +} + +// GetReferenceGasPrice provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) GetReferenceGasPrice(ctx context.Context) (*big.Int, error) { + ret := _mock.Called(ctx) + + if len(ret) == 0 { + panic("no return value specified for GetReferenceGasPrice") + } + + var r0 *big.Int + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context) (*big.Int, error)); ok { + return returnFunc(ctx) + } + if returnFunc, ok := ret.Get(0).(func(context.Context) *big.Int); ok { + r0 = returnFunc(ctx) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*big.Int) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok { + r1 = returnFunc(ctx) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_GetReferenceGasPrice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReferenceGasPrice' +type MockSuiPTBClient_GetReferenceGasPrice_Call struct { + *mock.Call +} + +// GetReferenceGasPrice is a helper method to define mock.On call +// - ctx context.Context +func (_e *MockSuiPTBClient_Expecter) GetReferenceGasPrice(ctx interface{}) *MockSuiPTBClient_GetReferenceGasPrice_Call { + return &MockSuiPTBClient_GetReferenceGasPrice_Call{Call: _e.mock.On("GetReferenceGasPrice", ctx)} +} + +func (_c *MockSuiPTBClient_GetReferenceGasPrice_Call) Run(run func(ctx context.Context)) *MockSuiPTBClient_GetReferenceGasPrice_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + run( + arg0, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_GetReferenceGasPrice_Call) Return(intParam *big.Int, err error) *MockSuiPTBClient_GetReferenceGasPrice_Call { + _c.Call.Return(intParam, err) + return _c +} + +func (_c *MockSuiPTBClient_GetReferenceGasPrice_Call) RunAndReturn(run func(ctx context.Context) (*big.Int, error)) *MockSuiPTBClient_GetReferenceGasPrice_Call { + _c.Call.Return(run) + return _c +} + +// GetSUIBalance provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) GetSUIBalance(ctx context.Context, address string) (*v2.Balance, error) { + ret := _mock.Called(ctx, address) + + if len(ret) == 0 { + panic("no return value specified for GetSUIBalance") + } + + var r0 *v2.Balance + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, string) (*v2.Balance, error)); ok { + return returnFunc(ctx, address) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, string) *v2.Balance); ok { + r0 = returnFunc(ctx, address) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*v2.Balance) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok { + r1 = returnFunc(ctx, address) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_GetSUIBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSUIBalance' +type MockSuiPTBClient_GetSUIBalance_Call struct { + *mock.Call +} + +// GetSUIBalance is a helper method to define mock.On call +// - ctx context.Context +// - address string +func (_e *MockSuiPTBClient_Expecter) GetSUIBalance(ctx interface{}, address interface{}) *MockSuiPTBClient_GetSUIBalance_Call { + return &MockSuiPTBClient_GetSUIBalance_Call{Call: _e.mock.On("GetSUIBalance", ctx, address)} +} + +func (_c *MockSuiPTBClient_GetSUIBalance_Call) Run(run func(ctx context.Context, address string)) *MockSuiPTBClient_GetSUIBalance_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 string + if args[1] != nil { + arg1 = args[1].(string) + } + run( + arg0, + arg1, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_GetSUIBalance_Call) Return(balance *v2.Balance, err error) *MockSuiPTBClient_GetSUIBalance_Call { + _c.Call.Return(balance, err) + return _c +} + +func (_c *MockSuiPTBClient_GetSUIBalance_Call) RunAndReturn(run func(ctx context.Context, address string) (*v2.Balance, error)) *MockSuiPTBClient_GetSUIBalance_Call { + _c.Call.Return(run) + return _c +} + +// GetTransactionStatus provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) GetTransactionStatus(ctx context.Context, digest string) (client.TransactionResult, error) { + ret := _mock.Called(ctx, digest) + + if len(ret) == 0 { + panic("no return value specified for GetTransactionStatus") + } + + var r0 client.TransactionResult + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, string) (client.TransactionResult, error)); ok { + return returnFunc(ctx, digest) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, string) client.TransactionResult); ok { + r0 = returnFunc(ctx, digest) + } else { + r0 = ret.Get(0).(client.TransactionResult) + } + if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok { + r1 = returnFunc(ctx, digest) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_GetTransactionStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTransactionStatus' +type MockSuiPTBClient_GetTransactionStatus_Call struct { + *mock.Call +} + +// GetTransactionStatus is a helper method to define mock.On call +// - ctx context.Context +// - digest string +func (_e *MockSuiPTBClient_Expecter) GetTransactionStatus(ctx interface{}, digest interface{}) *MockSuiPTBClient_GetTransactionStatus_Call { + return &MockSuiPTBClient_GetTransactionStatus_Call{Call: _e.mock.On("GetTransactionStatus", ctx, digest)} +} + +func (_c *MockSuiPTBClient_GetTransactionStatus_Call) Run(run func(ctx context.Context, digest string)) *MockSuiPTBClient_GetTransactionStatus_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 string + if args[1] != nil { + arg1 = args[1].(string) + } + run( + arg0, + arg1, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_GetTransactionStatus_Call) Return(transactionResult client.TransactionResult, err error) *MockSuiPTBClient_GetTransactionStatus_Call { + _c.Call.Return(transactionResult, err) + return _c +} + +func (_c *MockSuiPTBClient_GetTransactionStatus_Call) RunAndReturn(run func(ctx context.Context, digest string) (client.TransactionResult, error)) *MockSuiPTBClient_GetTransactionStatus_Call { + _c.Call.Return(run) + return _c +} + +// GetValuesFromPackageOwnedObjectField provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) GetValuesFromPackageOwnedObjectField(ctx context.Context, packageID string, moduleID string, objectName string, fieldKeys []string) (map[string]string, error) { + ret := _mock.Called(ctx, packageID, moduleID, objectName, fieldKeys) + + if len(ret) == 0 { + panic("no return value specified for GetValuesFromPackageOwnedObjectField") + } + + var r0 map[string]string + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, string, string, string, []string) (map[string]string, error)); ok { + return returnFunc(ctx, packageID, moduleID, objectName, fieldKeys) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, string, string, string, []string) map[string]string); ok { + r0 = returnFunc(ctx, packageID, moduleID, objectName, fieldKeys) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(map[string]string) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, string, string, string, []string) error); ok { + r1 = returnFunc(ctx, packageID, moduleID, objectName, fieldKeys) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_GetValuesFromPackageOwnedObjectField_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetValuesFromPackageOwnedObjectField' +type MockSuiPTBClient_GetValuesFromPackageOwnedObjectField_Call struct { + *mock.Call +} + +// GetValuesFromPackageOwnedObjectField is a helper method to define mock.On call +// - ctx context.Context +// - packageID string +// - moduleID string +// - objectName string +// - fieldKeys []string +func (_e *MockSuiPTBClient_Expecter) GetValuesFromPackageOwnedObjectField(ctx interface{}, packageID interface{}, moduleID interface{}, objectName interface{}, fieldKeys interface{}) *MockSuiPTBClient_GetValuesFromPackageOwnedObjectField_Call { + return &MockSuiPTBClient_GetValuesFromPackageOwnedObjectField_Call{Call: _e.mock.On("GetValuesFromPackageOwnedObjectField", ctx, packageID, moduleID, objectName, fieldKeys)} +} + +func (_c *MockSuiPTBClient_GetValuesFromPackageOwnedObjectField_Call) Run(run func(ctx context.Context, packageID string, moduleID string, objectName string, fieldKeys []string)) *MockSuiPTBClient_GetValuesFromPackageOwnedObjectField_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 string + if args[1] != nil { + arg1 = args[1].(string) + } + var arg2 string + if args[2] != nil { + arg2 = args[2].(string) + } + var arg3 string + if args[3] != nil { + arg3 = args[3].(string) + } + var arg4 []string + if args[4] != nil { + arg4 = args[4].([]string) + } + run( + arg0, + arg1, + arg2, + arg3, + arg4, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_GetValuesFromPackageOwnedObjectField_Call) Return(stringToString map[string]string, err error) *MockSuiPTBClient_GetValuesFromPackageOwnedObjectField_Call { + _c.Call.Return(stringToString, err) + return _c +} + +func (_c *MockSuiPTBClient_GetValuesFromPackageOwnedObjectField_Call) RunAndReturn(run func(ctx context.Context, packageID string, moduleID string, objectName string, fieldKeys []string) (map[string]string, error)) *MockSuiPTBClient_GetValuesFromPackageOwnedObjectField_Call { + _c.Call.Return(run) + return _c +} + +// HashTxBytes provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) HashTxBytes(txBytes []byte) []byte { + ret := _mock.Called(txBytes) + + if len(ret) == 0 { + panic("no return value specified for HashTxBytes") + } + + var r0 []byte + if returnFunc, ok := ret.Get(0).(func([]byte) []byte); ok { + r0 = returnFunc(txBytes) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).([]byte) + } + } + return r0 +} + +// MockSuiPTBClient_HashTxBytes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HashTxBytes' +type MockSuiPTBClient_HashTxBytes_Call struct { + *mock.Call +} + +// HashTxBytes is a helper method to define mock.On call +// - txBytes []byte +func (_e *MockSuiPTBClient_Expecter) HashTxBytes(txBytes interface{}) *MockSuiPTBClient_HashTxBytes_Call { + return &MockSuiPTBClient_HashTxBytes_Call{Call: _e.mock.On("HashTxBytes", txBytes)} +} + +func (_c *MockSuiPTBClient_HashTxBytes_Call) Run(run func(txBytes []byte)) *MockSuiPTBClient_HashTxBytes_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 []byte + if args[0] != nil { + arg0 = args[0].([]byte) + } + run( + arg0, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_HashTxBytes_Call) Return(bytes []byte) *MockSuiPTBClient_HashTxBytes_Call { + _c.Call.Return(bytes) + return _c +} + +func (_c *MockSuiPTBClient_HashTxBytes_Call) RunAndReturn(run func(txBytes []byte) []byte) *MockSuiPTBClient_HashTxBytes_Call { + _c.Call.Return(run) + return _c +} + +// LoadModulePackageIds provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) LoadModulePackageIds(ctx context.Context, packageId string, module string) ([]string, error) { + ret := _mock.Called(ctx, packageId, module) + + if len(ret) == 0 { + panic("no return value specified for LoadModulePackageIds") + } + + var r0 []string + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) ([]string, error)); ok { + return returnFunc(ctx, packageId, module) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) []string); ok { + r0 = returnFunc(ctx, packageId, module) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).([]string) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, string, string) error); ok { + r1 = returnFunc(ctx, packageId, module) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_LoadModulePackageIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadModulePackageIds' +type MockSuiPTBClient_LoadModulePackageIds_Call struct { + *mock.Call +} + +// LoadModulePackageIds is a helper method to define mock.On call +// - ctx context.Context +// - packageId string +// - module string +func (_e *MockSuiPTBClient_Expecter) LoadModulePackageIds(ctx interface{}, packageId interface{}, module interface{}) *MockSuiPTBClient_LoadModulePackageIds_Call { + return &MockSuiPTBClient_LoadModulePackageIds_Call{Call: _e.mock.On("LoadModulePackageIds", ctx, packageId, module)} +} + +func (_c *MockSuiPTBClient_LoadModulePackageIds_Call) Run(run func(ctx context.Context, packageId string, module string)) *MockSuiPTBClient_LoadModulePackageIds_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 string + if args[1] != nil { + arg1 = args[1].(string) + } + var arg2 string + if args[2] != nil { + arg2 = args[2].(string) + } + run( + arg0, + arg1, + arg2, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_LoadModulePackageIds_Call) Return(strings []string, err error) *MockSuiPTBClient_LoadModulePackageIds_Call { + _c.Call.Return(strings, err) + return _c +} + +func (_c *MockSuiPTBClient_LoadModulePackageIds_Call) RunAndReturn(run func(ctx context.Context, packageId string, module string) ([]string, error)) *MockSuiPTBClient_LoadModulePackageIds_Call { + _c.Call.Return(run) + return _c +} + +// MoveCall provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) MoveCall(ctx context.Context, req client.MoveCallRequest) (client.TxnMetaData, error) { + ret := _mock.Called(ctx, req) + + if len(ret) == 0 { + panic("no return value specified for MoveCall") + } + + var r0 client.TxnMetaData + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, client.MoveCallRequest) (client.TxnMetaData, error)); ok { + return returnFunc(ctx, req) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, client.MoveCallRequest) client.TxnMetaData); ok { + r0 = returnFunc(ctx, req) + } else { + r0 = ret.Get(0).(client.TxnMetaData) + } + if returnFunc, ok := ret.Get(1).(func(context.Context, client.MoveCallRequest) error); ok { + r1 = returnFunc(ctx, req) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_MoveCall_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MoveCall' +type MockSuiPTBClient_MoveCall_Call struct { + *mock.Call +} + +// MoveCall is a helper method to define mock.On call +// - ctx context.Context +// - req client.MoveCallRequest +func (_e *MockSuiPTBClient_Expecter) MoveCall(ctx interface{}, req interface{}) *MockSuiPTBClient_MoveCall_Call { + return &MockSuiPTBClient_MoveCall_Call{Call: _e.mock.On("MoveCall", ctx, req)} +} + +func (_c *MockSuiPTBClient_MoveCall_Call) Run(run func(ctx context.Context, req client.MoveCallRequest)) *MockSuiPTBClient_MoveCall_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 client.MoveCallRequest + if args[1] != nil { + arg1 = args[1].(client.MoveCallRequest) + } + run( + arg0, + arg1, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_MoveCall_Call) Return(txnMetaData client.TxnMetaData, err error) *MockSuiPTBClient_MoveCall_Call { + _c.Call.Return(txnMetaData, err) + return _c +} + +func (_c *MockSuiPTBClient_MoveCall_Call) RunAndReturn(run func(ctx context.Context, req client.MoveCallRequest) (client.TxnMetaData, error)) *MockSuiPTBClient_MoveCall_Call { + _c.Call.Return(run) + return _c +} + +// QueryCoinsByAddress provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) QueryCoinsByAddress(ctx context.Context, address string, coinType string) ([]*v2.Object, error) { + ret := _mock.Called(ctx, address, coinType) + + if len(ret) == 0 { + panic("no return value specified for QueryCoinsByAddress") + } + + var r0 []*v2.Object + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) ([]*v2.Object, error)); ok { + return returnFunc(ctx, address, coinType) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) []*v2.Object); ok { + r0 = returnFunc(ctx, address, coinType) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).([]*v2.Object) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, string, string) error); ok { + r1 = returnFunc(ctx, address, coinType) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_QueryCoinsByAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryCoinsByAddress' +type MockSuiPTBClient_QueryCoinsByAddress_Call struct { + *mock.Call +} + +// QueryCoinsByAddress is a helper method to define mock.On call +// - ctx context.Context +// - address string +// - coinType string +func (_e *MockSuiPTBClient_Expecter) QueryCoinsByAddress(ctx interface{}, address interface{}, coinType interface{}) *MockSuiPTBClient_QueryCoinsByAddress_Call { + return &MockSuiPTBClient_QueryCoinsByAddress_Call{Call: _e.mock.On("QueryCoinsByAddress", ctx, address, coinType)} +} + +func (_c *MockSuiPTBClient_QueryCoinsByAddress_Call) Run(run func(ctx context.Context, address string, coinType string)) *MockSuiPTBClient_QueryCoinsByAddress_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 string + if args[1] != nil { + arg1 = args[1].(string) + } + var arg2 string + if args[2] != nil { + arg2 = args[2].(string) + } + run( + arg0, + arg1, + arg2, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_QueryCoinsByAddress_Call) Return(objects []*v2.Object, err error) *MockSuiPTBClient_QueryCoinsByAddress_Call { + _c.Call.Return(objects, err) + return _c +} + +func (_c *MockSuiPTBClient_QueryCoinsByAddress_Call) RunAndReturn(run func(ctx context.Context, address string, coinType string) ([]*v2.Object, error)) *MockSuiPTBClient_QueryCoinsByAddress_Call { + _c.Call.Return(run) + return _c +} + +// QueryEvents provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) QueryEvents(ctx context.Context, filter client.EventFilterByMoveEventModule, limit *uint, cursor *client.EventId, sortOptions *client.QuerySortOptions) (*models.PaginatedEventsResponse, error) { + ret := _mock.Called(ctx, filter, limit, cursor, sortOptions) + + if len(ret) == 0 { + panic("no return value specified for QueryEvents") + } + + var r0 *models.PaginatedEventsResponse + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, client.EventFilterByMoveEventModule, *uint, *client.EventId, *client.QuerySortOptions) (*models.PaginatedEventsResponse, error)); ok { + return returnFunc(ctx, filter, limit, cursor, sortOptions) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, client.EventFilterByMoveEventModule, *uint, *client.EventId, *client.QuerySortOptions) *models.PaginatedEventsResponse); ok { + r0 = returnFunc(ctx, filter, limit, cursor, sortOptions) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*models.PaginatedEventsResponse) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, client.EventFilterByMoveEventModule, *uint, *client.EventId, *client.QuerySortOptions) error); ok { + r1 = returnFunc(ctx, filter, limit, cursor, sortOptions) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_QueryEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryEvents' +type MockSuiPTBClient_QueryEvents_Call struct { + *mock.Call +} + +// QueryEvents is a helper method to define mock.On call +// - ctx context.Context +// - filter client.EventFilterByMoveEventModule +// - limit *uint +// - cursor *client.EventId +// - sortOptions *client.QuerySortOptions +func (_e *MockSuiPTBClient_Expecter) QueryEvents(ctx interface{}, filter interface{}, limit interface{}, cursor interface{}, sortOptions interface{}) *MockSuiPTBClient_QueryEvents_Call { + return &MockSuiPTBClient_QueryEvents_Call{Call: _e.mock.On("QueryEvents", ctx, filter, limit, cursor, sortOptions)} +} + +func (_c *MockSuiPTBClient_QueryEvents_Call) Run(run func(ctx context.Context, filter client.EventFilterByMoveEventModule, limit *uint, cursor *client.EventId, sortOptions *client.QuerySortOptions)) *MockSuiPTBClient_QueryEvents_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 client.EventFilterByMoveEventModule + if args[1] != nil { + arg1 = args[1].(client.EventFilterByMoveEventModule) + } + var arg2 *uint + if args[2] != nil { + arg2 = args[2].(*uint) + } + var arg3 *client.EventId + if args[3] != nil { + arg3 = args[3].(*client.EventId) + } + var arg4 *client.QuerySortOptions + if args[4] != nil { + arg4 = args[4].(*client.QuerySortOptions) + } + run( + arg0, + arg1, + arg2, + arg3, + arg4, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_QueryEvents_Call) Return(paginatedEventsResponse *models.PaginatedEventsResponse, err error) *MockSuiPTBClient_QueryEvents_Call { + _c.Call.Return(paginatedEventsResponse, err) + return _c +} + +func (_c *MockSuiPTBClient_QueryEvents_Call) RunAndReturn(run func(ctx context.Context, filter client.EventFilterByMoveEventModule, limit *uint, cursor *client.EventId, sortOptions *client.QuerySortOptions) (*models.PaginatedEventsResponse, error)) *MockSuiPTBClient_QueryEvents_Call { + _c.Call.Return(run) + return _c +} + +// QueryTransactions provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) QueryTransactions(ctx context.Context, fromAddress string, cursor *v2.Checkpoint, limit *uint64) ([]*v2.ExecutedTransaction, error) { + ret := _mock.Called(ctx, fromAddress, cursor, limit) + + if len(ret) == 0 { + panic("no return value specified for QueryTransactions") + } + + var r0 []*v2.ExecutedTransaction + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, string, *v2.Checkpoint, *uint64) ([]*v2.ExecutedTransaction, error)); ok { + return returnFunc(ctx, fromAddress, cursor, limit) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, string, *v2.Checkpoint, *uint64) []*v2.ExecutedTransaction); ok { + r0 = returnFunc(ctx, fromAddress, cursor, limit) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).([]*v2.ExecutedTransaction) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, string, *v2.Checkpoint, *uint64) error); ok { + r1 = returnFunc(ctx, fromAddress, cursor, limit) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_QueryTransactions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryTransactions' +type MockSuiPTBClient_QueryTransactions_Call struct { + *mock.Call +} + +// QueryTransactions is a helper method to define mock.On call +// - ctx context.Context +// - fromAddress string +// - cursor *v2.Checkpoint +// - limit *uint64 +func (_e *MockSuiPTBClient_Expecter) QueryTransactions(ctx interface{}, fromAddress interface{}, cursor interface{}, limit interface{}) *MockSuiPTBClient_QueryTransactions_Call { + return &MockSuiPTBClient_QueryTransactions_Call{Call: _e.mock.On("QueryTransactions", ctx, fromAddress, cursor, limit)} +} + +func (_c *MockSuiPTBClient_QueryTransactions_Call) Run(run func(ctx context.Context, fromAddress string, cursor *v2.Checkpoint, limit *uint64)) *MockSuiPTBClient_QueryTransactions_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 string + if args[1] != nil { + arg1 = args[1].(string) + } + var arg2 *v2.Checkpoint + if args[2] != nil { + arg2 = args[2].(*v2.Checkpoint) + } + var arg3 *uint64 + if args[3] != nil { + arg3 = args[3].(*uint64) + } + run( + arg0, + arg1, + arg2, + arg3, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_QueryTransactions_Call) Return(executedTransactions []*v2.ExecutedTransaction, err error) *MockSuiPTBClient_QueryTransactions_Call { + _c.Call.Return(executedTransactions, err) + return _c +} + +func (_c *MockSuiPTBClient_QueryTransactions_Call) RunAndReturn(run func(ctx context.Context, fromAddress string, cursor *v2.Checkpoint, limit *uint64) ([]*v2.ExecutedTransaction, error)) *MockSuiPTBClient_QueryTransactions_Call { + _c.Call.Return(run) + return _c +} + +// ReadFilterOwnedObjectIds provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) ReadFilterOwnedObjectIds(ctx context.Context, ownerAddress string, structType string, cursor []byte) ([]*v2.Object, error) { + ret := _mock.Called(ctx, ownerAddress, structType, cursor) + + if len(ret) == 0 { + panic("no return value specified for ReadFilterOwnedObjectIds") + } + + var r0 []*v2.Object + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, string, string, []byte) ([]*v2.Object, error)); ok { + return returnFunc(ctx, ownerAddress, structType, cursor) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, string, string, []byte) []*v2.Object); ok { + r0 = returnFunc(ctx, ownerAddress, structType, cursor) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).([]*v2.Object) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, string, string, []byte) error); ok { + r1 = returnFunc(ctx, ownerAddress, structType, cursor) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_ReadFilterOwnedObjectIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadFilterOwnedObjectIds' +type MockSuiPTBClient_ReadFilterOwnedObjectIds_Call struct { + *mock.Call +} + +// ReadFilterOwnedObjectIds is a helper method to define mock.On call +// - ctx context.Context +// - ownerAddress string +// - structType string +// - cursor []byte +func (_e *MockSuiPTBClient_Expecter) ReadFilterOwnedObjectIds(ctx interface{}, ownerAddress interface{}, structType interface{}, cursor interface{}) *MockSuiPTBClient_ReadFilterOwnedObjectIds_Call { + return &MockSuiPTBClient_ReadFilterOwnedObjectIds_Call{Call: _e.mock.On("ReadFilterOwnedObjectIds", ctx, ownerAddress, structType, cursor)} +} + +func (_c *MockSuiPTBClient_ReadFilterOwnedObjectIds_Call) Run(run func(ctx context.Context, ownerAddress string, structType string, cursor []byte)) *MockSuiPTBClient_ReadFilterOwnedObjectIds_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 string + if args[1] != nil { + arg1 = args[1].(string) + } + var arg2 string + if args[2] != nil { + arg2 = args[2].(string) + } + var arg3 []byte + if args[3] != nil { + arg3 = args[3].([]byte) + } + run( + arg0, + arg1, + arg2, + arg3, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_ReadFilterOwnedObjectIds_Call) Return(objects []*v2.Object, err error) *MockSuiPTBClient_ReadFilterOwnedObjectIds_Call { + _c.Call.Return(objects, err) + return _c +} + +func (_c *MockSuiPTBClient_ReadFilterOwnedObjectIds_Call) RunAndReturn(run func(ctx context.Context, ownerAddress string, structType string, cursor []byte) ([]*v2.Object, error)) *MockSuiPTBClient_ReadFilterOwnedObjectIds_Call { + _c.Call.Return(run) + return _c +} + +// ReadFunction provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) ReadFunction(ctx context.Context, packageId string, module string, function string, args []any, argTypes []string, typeArgs []string) ([]any, error) { + ret := _mock.Called(ctx, packageId, module, function, args, argTypes, typeArgs) + + if len(ret) == 0 { + panic("no return value specified for ReadFunction") + } + + var r0 []any + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, string, string, string, []any, []string, []string) ([]any, error)); ok { + return returnFunc(ctx, packageId, module, function, args, argTypes, typeArgs) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, string, string, string, []any, []string, []string) []any); ok { + r0 = returnFunc(ctx, packageId, module, function, args, argTypes, typeArgs) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).([]any) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, string, string, string, []any, []string, []string) error); ok { + r1 = returnFunc(ctx, packageId, module, function, args, argTypes, typeArgs) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_ReadFunction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadFunction' +type MockSuiPTBClient_ReadFunction_Call struct { + *mock.Call +} + +// ReadFunction is a helper method to define mock.On call +// - ctx context.Context +// - packageId string +// - module string +// - function string +// - args []any +// - argTypes []string +// - typeArgs []string +func (_e *MockSuiPTBClient_Expecter) ReadFunction(ctx interface{}, packageId interface{}, module interface{}, function interface{}, args interface{}, argTypes interface{}, typeArgs interface{}) *MockSuiPTBClient_ReadFunction_Call { + return &MockSuiPTBClient_ReadFunction_Call{Call: _e.mock.On("ReadFunction", ctx, packageId, module, function, args, argTypes, typeArgs)} +} + +func (_c *MockSuiPTBClient_ReadFunction_Call) Run(run func(ctx context.Context, packageId string, module string, function string, args []any, argTypes []string, typeArgs []string)) *MockSuiPTBClient_ReadFunction_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 string + if args[1] != nil { + arg1 = args[1].(string) + } + var arg2 string + if args[2] != nil { + arg2 = args[2].(string) + } + var arg3 string + if args[3] != nil { + arg3 = args[3].(string) + } + var arg4 []any + if args[4] != nil { + arg4 = args[4].([]any) + } + var arg5 []string + if args[5] != nil { + arg5 = args[5].([]string) + } + var arg6 []string + if args[6] != nil { + arg6 = args[6].([]string) + } + run( + arg0, + arg1, + arg2, + arg3, + arg4, + arg5, + arg6, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_ReadFunction_Call) Return(vs []any, err error) *MockSuiPTBClient_ReadFunction_Call { + _c.Call.Return(vs, err) + return _c +} + +func (_c *MockSuiPTBClient_ReadFunction_Call) RunAndReturn(run func(ctx context.Context, packageId string, module string, function string, args []any, argTypes []string, typeArgs []string) ([]any, error)) *MockSuiPTBClient_ReadFunction_Call { + _c.Call.Return(run) + return _c +} + +// ReadObjectId provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) ReadObjectId(ctx context.Context, objectId string) (*v2.Object, error) { + ret := _mock.Called(ctx, objectId) + + if len(ret) == 0 { + panic("no return value specified for ReadObjectId") + } + + var r0 *v2.Object + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, string) (*v2.Object, error)); ok { + return returnFunc(ctx, objectId) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, string) *v2.Object); ok { + r0 = returnFunc(ctx, objectId) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*v2.Object) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok { + r1 = returnFunc(ctx, objectId) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_ReadObjectId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadObjectId' +type MockSuiPTBClient_ReadObjectId_Call struct { + *mock.Call +} + +// ReadObjectId is a helper method to define mock.On call +// - ctx context.Context +// - objectId string +func (_e *MockSuiPTBClient_Expecter) ReadObjectId(ctx interface{}, objectId interface{}) *MockSuiPTBClient_ReadObjectId_Call { + return &MockSuiPTBClient_ReadObjectId_Call{Call: _e.mock.On("ReadObjectId", ctx, objectId)} +} + +func (_c *MockSuiPTBClient_ReadObjectId_Call) Run(run func(ctx context.Context, objectId string)) *MockSuiPTBClient_ReadObjectId_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 string + if args[1] != nil { + arg1 = args[1].(string) + } + run( + arg0, + arg1, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_ReadObjectId_Call) Return(object *v2.Object, err error) *MockSuiPTBClient_ReadObjectId_Call { + _c.Call.Return(object, err) + return _c +} + +func (_c *MockSuiPTBClient_ReadObjectId_Call) RunAndReturn(run func(ctx context.Context, objectId string) (*v2.Object, error)) *MockSuiPTBClient_ReadObjectId_Call { + _c.Call.Return(run) + return _c +} + +// ReadOwnedObjects provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) ReadOwnedObjects(ctx context.Context, ownerAddress string, cursor []byte) ([]*v2.Object, error) { + ret := _mock.Called(ctx, ownerAddress, cursor) + + if len(ret) == 0 { + panic("no return value specified for ReadOwnedObjects") + } + + var r0 []*v2.Object + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, string, []byte) ([]*v2.Object, error)); ok { + return returnFunc(ctx, ownerAddress, cursor) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, string, []byte) []*v2.Object); ok { + r0 = returnFunc(ctx, ownerAddress, cursor) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).([]*v2.Object) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, string, []byte) error); ok { + r1 = returnFunc(ctx, ownerAddress, cursor) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_ReadOwnedObjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadOwnedObjects' +type MockSuiPTBClient_ReadOwnedObjects_Call struct { + *mock.Call +} + +// ReadOwnedObjects is a helper method to define mock.On call +// - ctx context.Context +// - ownerAddress string +// - cursor []byte +func (_e *MockSuiPTBClient_Expecter) ReadOwnedObjects(ctx interface{}, ownerAddress interface{}, cursor interface{}) *MockSuiPTBClient_ReadOwnedObjects_Call { + return &MockSuiPTBClient_ReadOwnedObjects_Call{Call: _e.mock.On("ReadOwnedObjects", ctx, ownerAddress, cursor)} +} + +func (_c *MockSuiPTBClient_ReadOwnedObjects_Call) Run(run func(ctx context.Context, ownerAddress string, cursor []byte)) *MockSuiPTBClient_ReadOwnedObjects_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 string + if args[1] != nil { + arg1 = args[1].(string) + } + var arg2 []byte + if args[2] != nil { + arg2 = args[2].([]byte) + } + run( + arg0, + arg1, + arg2, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_ReadOwnedObjects_Call) Return(objects []*v2.Object, err error) *MockSuiPTBClient_ReadOwnedObjects_Call { + _c.Call.Return(objects, err) + return _c +} + +func (_c *MockSuiPTBClient_ReadOwnedObjects_Call) RunAndReturn(run func(ctx context.Context, ownerAddress string, cursor []byte) ([]*v2.Object, error)) *MockSuiPTBClient_ReadOwnedObjects_Call { + _c.Call.Return(run) + return _c +} + +// SendTransaction provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) SendTransaction(ctx context.Context, execRequest *v2.ExecuteTransactionRequest) (*v2.ExecuteTransactionResponse, error) { + ret := _mock.Called(ctx, execRequest) + + if len(ret) == 0 { + panic("no return value specified for SendTransaction") + } + + var r0 *v2.ExecuteTransactionResponse + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, *v2.ExecuteTransactionRequest) (*v2.ExecuteTransactionResponse, error)); ok { + return returnFunc(ctx, execRequest) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, *v2.ExecuteTransactionRequest) *v2.ExecuteTransactionResponse); ok { + r0 = returnFunc(ctx, execRequest) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*v2.ExecuteTransactionResponse) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, *v2.ExecuteTransactionRequest) error); ok { + r1 = returnFunc(ctx, execRequest) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_SendTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendTransaction' +type MockSuiPTBClient_SendTransaction_Call struct { + *mock.Call +} + +// SendTransaction is a helper method to define mock.On call +// - ctx context.Context +// - execRequest *v2.ExecuteTransactionRequest +func (_e *MockSuiPTBClient_Expecter) SendTransaction(ctx interface{}, execRequest interface{}) *MockSuiPTBClient_SendTransaction_Call { + return &MockSuiPTBClient_SendTransaction_Call{Call: _e.mock.On("SendTransaction", ctx, execRequest)} +} + +func (_c *MockSuiPTBClient_SendTransaction_Call) Run(run func(ctx context.Context, execRequest *v2.ExecuteTransactionRequest)) *MockSuiPTBClient_SendTransaction_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 *v2.ExecuteTransactionRequest + if args[1] != nil { + arg1 = args[1].(*v2.ExecuteTransactionRequest) + } + run( + arg0, + arg1, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_SendTransaction_Call) Return(executeTransactionResponse *v2.ExecuteTransactionResponse, err error) *MockSuiPTBClient_SendTransaction_Call { + _c.Call.Return(executeTransactionResponse, err) + return _c +} + +func (_c *MockSuiPTBClient_SendTransaction_Call) RunAndReturn(run func(ctx context.Context, execRequest *v2.ExecuteTransactionRequest) (*v2.ExecuteTransactionResponse, error)) *MockSuiPTBClient_SendTransaction_Call { + _c.Call.Return(run) + return _c +} + +// SetCachedValue provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) SetCachedValue(key string, value any) { + _mock.Called(key, value) + return +} + +// MockSuiPTBClient_SetCachedValue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCachedValue' +type MockSuiPTBClient_SetCachedValue_Call struct { + *mock.Call +} + +// SetCachedValue is a helper method to define mock.On call +// - key string +// - value any +func (_e *MockSuiPTBClient_Expecter) SetCachedValue(key interface{}, value interface{}) *MockSuiPTBClient_SetCachedValue_Call { + return &MockSuiPTBClient_SetCachedValue_Call{Call: _e.mock.On("SetCachedValue", key, value)} +} + +func (_c *MockSuiPTBClient_SetCachedValue_Call) Run(run func(key string, value any)) *MockSuiPTBClient_SetCachedValue_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 string + if args[0] != nil { + arg0 = args[0].(string) + } + var arg1 any + if args[1] != nil { + arg1 = args[1].(any) + } + run( + arg0, + arg1, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_SetCachedValue_Call) Return() *MockSuiPTBClient_SetCachedValue_Call { + _c.Call.Return() + return _c +} + +func (_c *MockSuiPTBClient_SetCachedValue_Call) RunAndReturn(run func(key string, value any)) *MockSuiPTBClient_SetCachedValue_Call { + _c.Run(run) + return _c +} + +// SetCachedValues provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) SetCachedValues(keyValues map[string]any) { + _mock.Called(keyValues) + return +} + +// MockSuiPTBClient_SetCachedValues_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCachedValues' +type MockSuiPTBClient_SetCachedValues_Call struct { + *mock.Call +} + +// SetCachedValues is a helper method to define mock.On call +// - keyValues map[string]any +func (_e *MockSuiPTBClient_Expecter) SetCachedValues(keyValues interface{}) *MockSuiPTBClient_SetCachedValues_Call { + return &MockSuiPTBClient_SetCachedValues_Call{Call: _e.mock.On("SetCachedValues", keyValues)} +} + +func (_c *MockSuiPTBClient_SetCachedValues_Call) Run(run func(keyValues map[string]any)) *MockSuiPTBClient_SetCachedValues_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 map[string]any + if args[0] != nil { + arg0 = args[0].(map[string]any) + } + run( + arg0, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_SetCachedValues_Call) Return() *MockSuiPTBClient_SetCachedValues_Call { + _c.Call.Return() + return _c +} + +func (_c *MockSuiPTBClient_SetCachedValues_Call) RunAndReturn(run func(keyValues map[string]any)) *MockSuiPTBClient_SetCachedValues_Call { + _c.Run(run) + return _c +} + +// SignAndSendTransaction provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) SignAndSendTransaction(ctx context.Context, txBytesRaw string, signerPublicKey []byte) (*v2.ExecuteTransactionResponse, error) { + ret := _mock.Called(ctx, txBytesRaw, signerPublicKey) + + if len(ret) == 0 { + panic("no return value specified for SignAndSendTransaction") + } + + var r0 *v2.ExecuteTransactionResponse + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, string, []byte) (*v2.ExecuteTransactionResponse, error)); ok { + return returnFunc(ctx, txBytesRaw, signerPublicKey) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, string, []byte) *v2.ExecuteTransactionResponse); ok { + r0 = returnFunc(ctx, txBytesRaw, signerPublicKey) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*v2.ExecuteTransactionResponse) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, string, []byte) error); ok { + r1 = returnFunc(ctx, txBytesRaw, signerPublicKey) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_SignAndSendTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignAndSendTransaction' +type MockSuiPTBClient_SignAndSendTransaction_Call struct { + *mock.Call +} + +// SignAndSendTransaction is a helper method to define mock.On call +// - ctx context.Context +// - txBytesRaw string +// - signerPublicKey []byte +func (_e *MockSuiPTBClient_Expecter) SignAndSendTransaction(ctx interface{}, txBytesRaw interface{}, signerPublicKey interface{}) *MockSuiPTBClient_SignAndSendTransaction_Call { + return &MockSuiPTBClient_SignAndSendTransaction_Call{Call: _e.mock.On("SignAndSendTransaction", ctx, txBytesRaw, signerPublicKey)} +} + +func (_c *MockSuiPTBClient_SignAndSendTransaction_Call) Run(run func(ctx context.Context, txBytesRaw string, signerPublicKey []byte)) *MockSuiPTBClient_SignAndSendTransaction_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 string + if args[1] != nil { + arg1 = args[1].(string) + } + var arg2 []byte + if args[2] != nil { + arg2 = args[2].([]byte) + } + run( + arg0, + arg1, + arg2, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_SignAndSendTransaction_Call) Return(executeTransactionResponse *v2.ExecuteTransactionResponse, err error) *MockSuiPTBClient_SignAndSendTransaction_Call { + _c.Call.Return(executeTransactionResponse, err) + return _c +} + +func (_c *MockSuiPTBClient_SignAndSendTransaction_Call) RunAndReturn(run func(ctx context.Context, txBytesRaw string, signerPublicKey []byte) (*v2.ExecuteTransactionResponse, error)) *MockSuiPTBClient_SignAndSendTransaction_Call { + _c.Call.Return(run) + return _c +} + +// SimulatePTB provides a mock function for the type MockSuiPTBClient +func (_mock *MockSuiPTBClient) SimulatePTB(ctx context.Context, bcsBytes []byte) ([]any, error) { + ret := _mock.Called(ctx, bcsBytes) + + if len(ret) == 0 { + panic("no return value specified for SimulatePTB") + } + + var r0 []any + var r1 error + if returnFunc, ok := ret.Get(0).(func(context.Context, []byte) ([]any, error)); ok { + return returnFunc(ctx, bcsBytes) + } + if returnFunc, ok := ret.Get(0).(func(context.Context, []byte) []any); ok { + r0 = returnFunc(ctx, bcsBytes) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).([]any) + } + } + if returnFunc, ok := ret.Get(1).(func(context.Context, []byte) error); ok { + r1 = returnFunc(ctx, bcsBytes) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiPTBClient_SimulatePTB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SimulatePTB' +type MockSuiPTBClient_SimulatePTB_Call struct { + *mock.Call +} + +// SimulatePTB is a helper method to define mock.On call +// - ctx context.Context +// - bcsBytes []byte +func (_e *MockSuiPTBClient_Expecter) SimulatePTB(ctx interface{}, bcsBytes interface{}) *MockSuiPTBClient_SimulatePTB_Call { + return &MockSuiPTBClient_SimulatePTB_Call{Call: _e.mock.On("SimulatePTB", ctx, bcsBytes)} +} + +func (_c *MockSuiPTBClient_SimulatePTB_Call) Run(run func(ctx context.Context, bcsBytes []byte)) *MockSuiPTBClient_SimulatePTB_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 context.Context + if args[0] != nil { + arg0 = args[0].(context.Context) + } + var arg1 []byte + if args[1] != nil { + arg1 = args[1].([]byte) + } + run( + arg0, + arg1, + ) + }) + return _c +} + +func (_c *MockSuiPTBClient_SimulatePTB_Call) Return(vs []any, err error) *MockSuiPTBClient_SimulatePTB_Call { + _c.Call.Return(vs, err) + return _c +} + +func (_c *MockSuiPTBClient_SimulatePTB_Call) RunAndReturn(run func(ctx context.Context, bcsBytes []byte) ([]any, error)) *MockSuiPTBClient_SimulatePTB_Call { + _c.Call.Return(run) + return _c +} diff --git a/chain/sui/mocks/sui_signer.go b/chain/sui/mocks/sui_signer.go new file mode 100644 index 000000000..0bf9898c8 --- /dev/null +++ b/chain/sui/mocks/sui_signer.go @@ -0,0 +1,151 @@ +// Code generated by mockery; DO NOT EDIT. +// github.com/vektra/mockery +// template: testify + +package mocks + +import ( + mock "github.com/stretchr/testify/mock" +) + +// NewMockSuiSigner creates a new instance of MockSuiSigner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewMockSuiSigner(t interface { + mock.TestingT + Cleanup(func()) +}) *MockSuiSigner { + mock := &MockSuiSigner{} + mock.Mock.Test(t) + + t.Cleanup(func() { mock.AssertExpectations(t) }) + + return mock +} + +// MockSuiSigner is an autogenerated mock type for the SuiSigner type +type MockSuiSigner struct { + mock.Mock +} + +type MockSuiSigner_Expecter struct { + mock *mock.Mock +} + +func (_m *MockSuiSigner) EXPECT() *MockSuiSigner_Expecter { + return &MockSuiSigner_Expecter{mock: &_m.Mock} +} + +// GetAddress provides a mock function for the type MockSuiSigner +func (_mock *MockSuiSigner) GetAddress() (string, error) { + ret := _mock.Called() + + if len(ret) == 0 { + panic("no return value specified for GetAddress") + } + + var r0 string + var r1 error + if returnFunc, ok := ret.Get(0).(func() (string, error)); ok { + return returnFunc() + } + if returnFunc, ok := ret.Get(0).(func() string); ok { + r0 = returnFunc() + } else { + r0 = ret.Get(0).(string) + } + if returnFunc, ok := ret.Get(1).(func() error); ok { + r1 = returnFunc() + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiSigner_GetAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAddress' +type MockSuiSigner_GetAddress_Call struct { + *mock.Call +} + +// GetAddress is a helper method to define mock.On call +func (_e *MockSuiSigner_Expecter) GetAddress() *MockSuiSigner_GetAddress_Call { + return &MockSuiSigner_GetAddress_Call{Call: _e.mock.On("GetAddress")} +} + +func (_c *MockSuiSigner_GetAddress_Call) Run(run func()) *MockSuiSigner_GetAddress_Call { + _c.Call.Run(func(args mock.Arguments) { + run() + }) + return _c +} + +func (_c *MockSuiSigner_GetAddress_Call) Return(s string, err error) *MockSuiSigner_GetAddress_Call { + _c.Call.Return(s, err) + return _c +} + +func (_c *MockSuiSigner_GetAddress_Call) RunAndReturn(run func() (string, error)) *MockSuiSigner_GetAddress_Call { + _c.Call.Return(run) + return _c +} + +// Sign provides a mock function for the type MockSuiSigner +func (_mock *MockSuiSigner) Sign(message []byte) ([]string, error) { + ret := _mock.Called(message) + + if len(ret) == 0 { + panic("no return value specified for Sign") + } + + var r0 []string + var r1 error + if returnFunc, ok := ret.Get(0).(func([]byte) ([]string, error)); ok { + return returnFunc(message) + } + if returnFunc, ok := ret.Get(0).(func([]byte) []string); ok { + r0 = returnFunc(message) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).([]string) + } + } + if returnFunc, ok := ret.Get(1).(func([]byte) error); ok { + r1 = returnFunc(message) + } else { + r1 = ret.Error(1) + } + return r0, r1 +} + +// MockSuiSigner_Sign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sign' +type MockSuiSigner_Sign_Call struct { + *mock.Call +} + +// Sign is a helper method to define mock.On call +// - message []byte +func (_e *MockSuiSigner_Expecter) Sign(message interface{}) *MockSuiSigner_Sign_Call { + return &MockSuiSigner_Sign_Call{Call: _e.mock.On("Sign", message)} +} + +func (_c *MockSuiSigner_Sign_Call) Run(run func(message []byte)) *MockSuiSigner_Sign_Call { + _c.Call.Run(func(args mock.Arguments) { + var arg0 []byte + if args[0] != nil { + arg0 = args[0].([]byte) + } + run( + arg0, + ) + }) + return _c +} + +func (_c *MockSuiSigner_Sign_Call) Return(strings []string, err error) *MockSuiSigner_Sign_Call { + _c.Call.Return(strings, err) + return _c +} + +func (_c *MockSuiSigner_Sign_Call) RunAndReturn(run func(message []byte) ([]string, error)) *MockSuiSigner_Sign_Call { + _c.Call.Return(run) + return _c +} diff --git a/go.mod b/go.mod index 156542f3b..6977a0ff9 100644 --- a/go.mod +++ b/go.mod @@ -4,10 +4,6 @@ go 1.26.2 replace github.com/fbsobreira/gotron-sdk => github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.20250422175525-b7575d96bd4d -replace github.com/smartcontractkit/chainlink-sui => ../chainlink-sui - -replace github.com/smartcontractkit/mcms => ../mcms - require ( github.com/Masterminds/semver/v3 v3.5.0 github.com/aptos-labs/aptos-go-sdk v1.13.0 @@ -31,11 +27,12 @@ require ( github.com/google/uuid v1.6.0 github.com/jarcoal/httpmock v1.4.1 github.com/olekukonko/tablewriter v0.0.5 + github.com/patrickmn/go-cache v2.1.0+incompatible github.com/pelletier/go-toml/v2 v2.3.0 github.com/samber/lo v1.53.0 github.com/segmentio/ksuid v1.0.4 github.com/smartcontractkit/ccip-owner-contracts v0.1.0 - github.com/smartcontractkit/chain-selectors v1.0.101 + github.com/smartcontractkit/chain-selectors v1.0.102 github.com/smartcontractkit/chainlink-aptos v0.0.0-20260428085939-5c70de12dbfc github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260512180815-d7a89b0a5784 github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260129103204-4c8453dd8139 @@ -43,13 +40,13 @@ require ( github.com/smartcontractkit/chainlink-common v0.11.2-0.20260506120607-7f10be016c89 github.com/smartcontractkit/chainlink-protos/job-distributor v0.18.0 github.com/smartcontractkit/chainlink-protos/op-catalog v0.1.0 - github.com/smartcontractkit/chainlink-testing-framework/framework v0.16.4 + github.com/smartcontractkit/chainlink-testing-framework/framework v0.16.5 github.com/smartcontractkit/chainlink-testing-framework/seth v1.51.5 github.com/smartcontractkit/chainlink-ton v1.0.5-0.20260514223130-48bc90aca745 github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20251014143056-a0c6328c91e9 github.com/smartcontractkit/freeport v0.1.3-0.20250828155247-add56fa28aad github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e - github.com/smartcontractkit/mcms v0.45.0 + github.com/smartcontractkit/mcms v0.45.1 github.com/spf13/cobra v1.10.2 github.com/spf13/pflag v1.0.10 github.com/spf13/viper v1.21.0 @@ -89,7 +86,6 @@ require ( github.com/grafana/otel-profiling-go v0.5.1 // indirect github.com/grafana/pyroscope-go v1.2.8 // indirect github.com/grafana/pyroscope-go/godeltaprof v0.1.9 // indirect - github.com/grafana/regexp v0.0.0-20240518133315-a468a5bfb3bc // indirect github.com/jackc/pgx/v5 v5.9.2 // indirect github.com/jackc/puddle/v2 v2.2.2 // indirect github.com/josharian/intern v1.0.0 // indirect @@ -102,13 +98,10 @@ require ( github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect github.com/onsi/ginkgo/v2 v2.22.1 // indirect github.com/onsi/gomega v1.36.2 // indirect - github.com/patrickmn/go-cache v2.1.0+incompatible // indirect - github.com/smartcontractkit/chainlink-canton v0.0.0-20260602133237-99f834640c9d // indirect github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.10 // indirect github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20260505131349-78e491b80735 // indirect github.com/smartcontractkit/chainlink-protos/linking-service/go v0.0.0-20251002192024-d2ad9222409b // indirect github.com/smartcontractkit/chainlink-protos/node-platform v0.0.0-20260211172625-dff40e83b3c9 // indirect - github.com/smartcontractkit/go-daml v0.0.0-20260604143752-c6f6567940ba // indirect github.com/stellar/go-xdr v0.0.0-20260312225820-cc2b0611aabf // indirect go.uber.org/goleak v1.3.0 // indirect go.yaml.in/yaml/v3 v3.0.4 // indirect @@ -149,7 +142,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/sso v1.30.13 // indirect github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.17 // indirect github.com/aws/aws-sdk-go-v2/service/sts v1.41.9 // indirect - github.com/aws/smithy-go v1.27.0 // indirect + github.com/aws/smithy-go v1.27.1 // indirect github.com/bahlo/generic-list-go v0.2.0 // indirect github.com/benbjohnson/clock v1.3.5 // indirect github.com/beorn7/perks v1.0.1 // indirect @@ -198,7 +191,7 @@ require ( github.com/go-ole/go-ole v1.3.0 // indirect github.com/go-playground/locales v0.14.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect - github.com/go-playground/validator/v10 v10.30.2 // indirect + github.com/go-playground/validator/v10 v10.30.3 // indirect github.com/go-viper/mapstructure/v2 v2.5.0 github.com/gofrs/flock v0.12.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect @@ -271,7 +264,7 @@ require ( github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect github.com/prometheus/client_golang v1.23.2 // indirect github.com/prometheus/client_model v0.6.2 // indirect - github.com/prometheus/common v1.20.99 // indirect + github.com/prometheus/common v0.68.1 // indirect github.com/prometheus/procfs v0.16.1 // indirect github.com/rivo/uniseg v0.4.7 // indirect github.com/rogpeppe/go-internal v1.14.1 // indirect diff --git a/go.sum b/go.sum index aa44b7bf6..d00d1b08e 100644 --- a/go.sum +++ b/go.sum @@ -72,8 +72,8 @@ github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.17 h1:jzKAXIlhZhJbnYwHbvUQZEB github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.17/go.mod h1:Al9fFsXjv4KfbzQHGe6V4NZSZQXecFcvaIF4e70FoRA= github.com/aws/aws-sdk-go-v2/service/sts v1.41.9 h1:Cng+OOwCHmFljXIxpEVXAGMnBia8MSU6Ch5i9PgBkcU= github.com/aws/aws-sdk-go-v2/service/sts v1.41.9/go.mod h1:LrlIndBDdjA/EeXeyNBle+gyCwTlizzW5ycgWnvIxkk= -github.com/aws/smithy-go v1.27.0 h1:ZoFioDKJxkSIW2otF9T0aPtNlUwhdVCcuZh/rzH9Hus= -github.com/aws/smithy-go v1.27.0/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc= +github.com/aws/smithy-go v1.27.1 h1:4T340VFndXtADGF52gYa1POyL7s9E4Z1OeZ1hCscIw8= +github.com/aws/smithy-go v1.27.1/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc= github.com/bahlo/generic-list-go v0.2.0 h1:5sz/EEAK+ls5wF+NeqDpk5+iNdMDXrh3z3nPnH1Wvgk= github.com/bahlo/generic-list-go v0.2.0/go.mod h1:2KvAjgMlE5NNynlg/5iLrrCCZ2+5xWbdbCW3pNTGyYg= github.com/barkimedes/go-deepcopy v0.0.0-20220514131651-17c30cfc62df h1:GSoSVRLoBaFpOOds6QyY1L8AX7uoY+Ln3BHc22W40X0= @@ -293,8 +293,8 @@ github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/o github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY= github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY= -github.com/go-playground/validator/v10 v10.30.2 h1:JiFIMtSSHb2/XBUbWM4i/MpeQm9ZK2xqPNk8vgvu5JQ= -github.com/go-playground/validator/v10 v10.30.2/go.mod h1:mAf2pIOVXjTEBrwUMGKkCWKKPs9NheYGabeB04txQSc= +github.com/go-playground/validator/v10 v10.30.3 h1:4MU6YkEwx7GbcPJOZxrtbu+QfF3pJLJuaYTeAH0DYy8= +github.com/go-playground/validator/v10 v10.30.3/go.mod h1:4Axh7oCNGcoGkqLoE4YWt6n20mcEIsPRlB7vPk3lpyc= github.com/go-resty/resty/v2 v2.17.2 h1:FQW5oHYcIlkCNrMD2lloGScxcHJ0gkjshV3qcQAyHQk= github.com/go-resty/resty/v2 v2.17.2/go.mod h1:kCKZ3wWmwJaNc7S29BRtUhJwy7iqmn+2mLtQrOyQlVA= github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y= @@ -372,8 +372,6 @@ github.com/grafana/pyroscope-go v1.2.8 h1:UvCwIhlx9DeV7F6TW/z8q1Mi4PIm3vuUJ2ZlCE github.com/grafana/pyroscope-go v1.2.8/go.mod h1:SSi59eQ1/zmKoY/BKwa5rSFsJaq+242Bcrr4wPix1g8= github.com/grafana/pyroscope-go/godeltaprof v0.1.9 h1:c1Us8i6eSmkW+Ez05d3co8kasnuOY813tbMN8i/a3Og= github.com/grafana/pyroscope-go/godeltaprof v0.1.9/go.mod h1:2+l7K7twW49Ct4wFluZD3tZ6e0SjanjcUUBPVD/UuGU= -github.com/grafana/regexp v0.0.0-20240518133315-a468a5bfb3bc h1:GN2Lv3MGO7AS6PrRoT6yV5+wkrOpcszoIsO4+4ds248= -github.com/grafana/regexp v0.0.0-20240518133315-a468a5bfb3bc/go.mod h1:+JKpmjMGhpgPL+rXZ5nsZieVzvarn86asRlBg4uNGnk= github.com/graph-gophers/graphql-go v1.5.0 h1:fDqblo50TEpD0LY7RXk/LFVYEVqo3+tXMNMPSVXA1yc= github.com/graph-gophers/graphql-go v1.5.0/go.mod h1:YtmJZDLbF1YYNrlNAuiO5zAStUWc3XZT07iGsVqe1Os= github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1 h1:qnpSQwGEnkcRpTqNOIR6bJbR0gAorgP9CSALpRcKoAA= @@ -622,8 +620,8 @@ github.com/prometheus/client_golang v1.23.2/go.mod h1:Tb1a6LWHB3/SPIzCoaDXI4I8UH github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.6.2 h1:oBsgwpGs7iVziMvrGhE53c/GrLUsZdHnqNwqPLxwZyk= github.com/prometheus/client_model v0.6.2/go.mod h1:y3m2F6Gdpfy6Ut/GBsUqTWZqCUvMVzSfMLjcu6wAwpE= -github.com/prometheus/common v1.20.99 h1:vZEybF3CT0t6L0UjsOtHRML7vuIglHocmvJMMH/se4M= -github.com/prometheus/common v1.20.99/go.mod h1:VX44Tebe4qpuTK+MQWg25h4fJGKBqzObSdxuB7y8K/Y= +github.com/prometheus/common v0.68.1 h1:omjRRl4QP4komogpXuhfeOiisQg7xdy8VM1UY+pStaY= +github.com/prometheus/common v0.68.1/go.mod h1:ZzL3f6u94qUxh9p+tJTrF+FvBS1XXbbRAZCQkytAL0Y= github.com/prometheus/procfs v0.16.1 h1:hZ15bTNuirocR6u0JZ6BAHHmwS1p8B4P6MRqxtzMyRg= github.com/prometheus/procfs v0.16.1/go.mod h1:teAbpZRB1iIAJYREa1LsoWUXykVXA1KlTmWl8x/U+Is= github.com/prysmaticlabs/gohashtree v0.0.4-beta h1:H/EbCuXPeTV3lpKeXGPpEV9gsUpkqOOVnWapUyeWro4= @@ -667,12 +665,10 @@ github.com/sirupsen/logrus v1.9.4 h1:TsZE7l11zFCLZnZ+teH4Umoq5BhEIfIzfRDZ1Uzql2w github.com/sirupsen/logrus v1.9.4/go.mod h1:ftWc9WdOfJ0a92nsE2jF5u5ZwH8Bv2zdeOC42RjbV2g= github.com/smartcontractkit/ccip-owner-contracts v0.1.0 h1:GiBDtlx7539o7AKlDV+9LsA7vTMPv+0n7ClhSFnZFAk= github.com/smartcontractkit/ccip-owner-contracts v0.1.0/go.mod h1:NnT6w4Kj42OFFXhSx99LvJZWPpMjmo4+CpDEWfw61xY= -github.com/smartcontractkit/chain-selectors v1.0.101 h1:TF4ma9h3QeyIZ8XoEmgI5lrUvZfzHAz8tfR0pV0+GCA= -github.com/smartcontractkit/chain-selectors v1.0.101/go.mod h1:qy7whtgG5g+7z0jt0nRyii9bLND9m15NZTzuQPkMZ5w= +github.com/smartcontractkit/chain-selectors v1.0.102 h1:qYP4+72HfvogCHR5ymwRFee36WH77514ZBj299SVCBA= +github.com/smartcontractkit/chain-selectors v1.0.102/go.mod h1:qy7whtgG5g+7z0jt0nRyii9bLND9m15NZTzuQPkMZ5w= github.com/smartcontractkit/chainlink-aptos v0.0.0-20260428085939-5c70de12dbfc h1:Um9FBcf0JNSFuGbxgccDG1vM3cNrMGy0SdJ7r6VbX0o= github.com/smartcontractkit/chainlink-aptos v0.0.0-20260428085939-5c70de12dbfc/go.mod h1:zfE2R7887kiwXkGTHKPe5NBgwhFwIC3pnA2uAxrbvig= -github.com/smartcontractkit/chainlink-canton v0.0.0-20260602133237-99f834640c9d h1:aBQYdlGQvqftkcUo0GIgtaLDs/84FQzBYpF4tZUfPA0= -github.com/smartcontractkit/chainlink-canton v0.0.0-20260602133237-99f834640c9d/go.mod h1:/oTkN9bVrQ1ROUNtIJJSNdffl3NReClq+qINNkGAwlY= github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260428205619-2db1389501a1 h1:p0nFrTYrOQzDhWYm6suaM5CoWiXV5NV7llHnp6/Kn/8= github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260428205619-2db1389501a1/go.mod h1:1XxxpkgCmG/z6y30yRuVrcxre6zixIVX3xzi706Db/8= github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260512180815-d7a89b0a5784 h1:s0rW7GaIKf9m+kfv0dFJPdSbHaMqQiv3xamQP2RVWNE= @@ -695,8 +691,10 @@ github.com/smartcontractkit/chainlink-protos/node-platform v0.0.0-20260211172625 github.com/smartcontractkit/chainlink-protos/node-platform v0.0.0-20260211172625-dff40e83b3c9/go.mod h1:dkR2uYg9XYJuT1JASkPzWE51jjFkVb86P7a/yXe5/GM= github.com/smartcontractkit/chainlink-protos/op-catalog v0.1.0 h1:hGEJFD2X3oNIPXQbtIPxCJyg5CcKglRCYBmESS+gmeQ= github.com/smartcontractkit/chainlink-protos/op-catalog v0.1.0/go.mod h1:PjZD54vr6rIKEKQj6HNA4hllvYI/QpT+Zefj3tqkFAs= -github.com/smartcontractkit/chainlink-testing-framework/framework v0.16.4 h1:8M+2pA0qx9rXaxmpKouUHj983vQCGzztHkG0XjE5Eew= -github.com/smartcontractkit/chainlink-testing-framework/framework v0.16.4/go.mod h1:nyOjn4ADJGqRMe3+4ZXSV+J/7nWb1H2Vx8Qk57eLRYA= +github.com/smartcontractkit/chainlink-sui v0.0.0-20260605165559-eb9893a9718c h1:yxtijM3BzD82Pw/CtCRhjWih2SdEtmCyhFwMgNa265w= +github.com/smartcontractkit/chainlink-sui v0.0.0-20260605165559-eb9893a9718c/go.mod h1:Y2kTVIsAUjqqSNGiEQomsaVH5XsBJzxov4j07MaDJOw= +github.com/smartcontractkit/chainlink-testing-framework/framework v0.16.5 h1:EiQx0LCPzxlfO9piSPeMCVSZAnp/BxAsPIGh/jBal18= +github.com/smartcontractkit/chainlink-testing-framework/framework v0.16.5/go.mod h1:nyOjn4ADJGqRMe3+4ZXSV+J/7nWb1H2Vx8Qk57eLRYA= github.com/smartcontractkit/chainlink-testing-framework/seth v1.51.5 h1:RwZXxdIAOyjp6cwc9Quxgr38k8r7ACz+Lxh9o/A6oH0= github.com/smartcontractkit/chainlink-testing-framework/seth v1.51.5/go.mod h1:kHYJnZUqiPF7/xN5273prV+srrLJkS77GbBXHLKQpx0= github.com/smartcontractkit/chainlink-ton v1.0.5-0.20260514223130-48bc90aca745 h1:eieKLvYuzwBPh/FdbUS1gnIanI86zgWby1L10o90g4o= @@ -707,12 +705,12 @@ github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.202504221 github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.20250422175525-b7575d96bd4d/go.mod h1:4WhGgCA0smBbBud5mK+jnDb2wwndMvoqaWBJ3OV/7Bw= github.com/smartcontractkit/freeport v0.1.3-0.20250828155247-add56fa28aad h1:lgHxTHuzJIF3Vj6LSMOnjhqKgRqYW+0MV2SExtCYL1Q= github.com/smartcontractkit/freeport v0.1.3-0.20250828155247-add56fa28aad/go.mod h1:T4zH9R8R8lVWKfU7tUvYz2o2jMv1OpGCdpY2j2QZXzU= -github.com/smartcontractkit/go-daml v0.0.0-20260604143752-c6f6567940ba h1:peYJwUWOv54aigdk1VFzkmXdZmZK4xixfxv0Af1l6/I= -github.com/smartcontractkit/go-daml v0.0.0-20260604143752-c6f6567940ba/go.mod h1:SqWfl3Bp9NleC9jhzFUaOGzOZeKfldpY4QOW6A6NSNM= github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 h1:12ijqMM9tvYVEm+nR826WsrNi6zCKpwBhuApq127wHs= github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7/go.mod h1:FX7/bVdoep147QQhsOPkYsPEXhGZjeYx6lBSaSXtZOA= github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e h1:poXTj5cFVM6XfC4HICIDYkDVc/A6OYB0eeID0wU2JQE= github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e/go.mod h1:PLdNK6GlqfxIWXzziPkU7dCAVlVFeYkyyW7AQY0R+4Q= +github.com/smartcontractkit/mcms v0.45.1 h1:5MtXCefsuzB4JbGi33n2WPp2Foi8V/bo7G2DWaAr+PU= +github.com/smartcontractkit/mcms v0.45.1/go.mod h1:CVCcFHDXdq7h8NXt71Dbop15rFDsOo2O/EvdWEXq/sQ= github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 h1:+jumHNA0Wrelhe64i8F6HNlS8pkoyMv5sreGx2Ry5Rw= github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8/go.mod h1:3n1Cwaq1E1/1lhQhtRK2ts/ZwZEhjcQeJQ1RuC6Q/8U= github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I= @@ -877,6 +875,8 @@ go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.21.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= go.uber.org/zap v1.28.0 h1:IZzaP1Fv73/T/pBMLk4VutPl36uNC+OSUh3JLG3FIjo= go.uber.org/zap v1.28.0/go.mod h1:rDLpOi171uODNm/mxFcuYWxDsqWSAVkFdX4XojSKg/Q= +go.yaml.in/yaml/v2 v2.4.4 h1:tuyd0P+2Ont/d6e2rl3be67goVK4R6deVxCUX5vyPaQ= +go.yaml.in/yaml/v2 v2.4.4/go.mod h1:gMZqIpDtDqOfM0uNfy0SkpRhvUryYH0Z6wdMYcacYXQ= go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc= go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= From e08b1908df7dadbc901418053dc104b283fd12e0 Mon Sep 17 00:00:00 2001 From: faisal-link Date: Mon, 8 Jun 2026 20:39:54 +0400 Subject: [PATCH 05/15] update deps in /deployment --- chain/sui/sui_chain_test.go | 2 +- go.mod | 7 +++++-- go.sum | 16 ++++++++++------ 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/chain/sui/sui_chain_test.go b/chain/sui/sui_chain_test.go index d818ecfbb..56ddc72dd 100644 --- a/chain/sui/sui_chain_test.go +++ b/chain/sui/sui_chain_test.go @@ -77,7 +77,7 @@ func TestChain_ReadOnly(t *testing.T) { // read with read-only client should work balance, err := roSuiChain.Client.GetSUIBalance(t.Context(), signer) require.NoError(t, err) - require.Equal(t, "1000000000000", balance.GetBalance()) + require.Equal(t, 1000000000000, balance.GetBalance()) // write with read-write client should work opts := &bind.CallOpts{WaitForExecution: true, GasBudget: pointer.To(uint64(400_000_000)), Signer: suiChain.Signer} diff --git a/go.mod b/go.mod index 6977a0ff9..d65d3b904 100644 --- a/go.mod +++ b/go.mod @@ -46,7 +46,7 @@ require ( github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20251014143056-a0c6328c91e9 github.com/smartcontractkit/freeport v0.1.3-0.20250828155247-add56fa28aad github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e - github.com/smartcontractkit/mcms v0.45.1 + github.com/smartcontractkit/mcms v0.46.1-0.20260608155800-50bf251a7bd6 github.com/spf13/cobra v1.10.2 github.com/spf13/pflag v1.0.10 github.com/spf13/viper v1.21.0 @@ -86,6 +86,7 @@ require ( github.com/grafana/otel-profiling-go v0.5.1 // indirect github.com/grafana/pyroscope-go v1.2.8 // indirect github.com/grafana/pyroscope-go/godeltaprof v0.1.9 // indirect + github.com/grafana/regexp v0.0.0-20240518133315-a468a5bfb3bc // indirect github.com/jackc/pgx/v5 v5.9.2 // indirect github.com/jackc/puddle/v2 v2.2.2 // indirect github.com/josharian/intern v1.0.0 // indirect @@ -98,10 +99,12 @@ require ( github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect github.com/onsi/ginkgo/v2 v2.22.1 // indirect github.com/onsi/gomega v1.36.2 // indirect + github.com/smartcontractkit/chainlink-canton v0.0.0-20260602133237-99f834640c9d // indirect github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.10 // indirect github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20260505131349-78e491b80735 // indirect github.com/smartcontractkit/chainlink-protos/linking-service/go v0.0.0-20251002192024-d2ad9222409b // indirect github.com/smartcontractkit/chainlink-protos/node-platform v0.0.0-20260211172625-dff40e83b3c9 // indirect + github.com/smartcontractkit/go-daml v0.0.0-20260604143752-c6f6567940ba // indirect github.com/stellar/go-xdr v0.0.0-20260312225820-cc2b0611aabf // indirect go.uber.org/goleak v1.3.0 // indirect go.yaml.in/yaml/v3 v3.0.4 // indirect @@ -264,7 +267,7 @@ require ( github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect github.com/prometheus/client_golang v1.23.2 // indirect github.com/prometheus/client_model v0.6.2 // indirect - github.com/prometheus/common v0.68.1 // indirect + github.com/prometheus/common v1.20.99 // indirect github.com/prometheus/procfs v0.16.1 // indirect github.com/rivo/uniseg v0.4.7 // indirect github.com/rogpeppe/go-internal v1.14.1 // indirect diff --git a/go.sum b/go.sum index d00d1b08e..c339b9fd5 100644 --- a/go.sum +++ b/go.sum @@ -372,6 +372,8 @@ github.com/grafana/pyroscope-go v1.2.8 h1:UvCwIhlx9DeV7F6TW/z8q1Mi4PIm3vuUJ2ZlCE github.com/grafana/pyroscope-go v1.2.8/go.mod h1:SSi59eQ1/zmKoY/BKwa5rSFsJaq+242Bcrr4wPix1g8= github.com/grafana/pyroscope-go/godeltaprof v0.1.9 h1:c1Us8i6eSmkW+Ez05d3co8kasnuOY813tbMN8i/a3Og= github.com/grafana/pyroscope-go/godeltaprof v0.1.9/go.mod h1:2+l7K7twW49Ct4wFluZD3tZ6e0SjanjcUUBPVD/UuGU= +github.com/grafana/regexp v0.0.0-20240518133315-a468a5bfb3bc h1:GN2Lv3MGO7AS6PrRoT6yV5+wkrOpcszoIsO4+4ds248= +github.com/grafana/regexp v0.0.0-20240518133315-a468a5bfb3bc/go.mod h1:+JKpmjMGhpgPL+rXZ5nsZieVzvarn86asRlBg4uNGnk= github.com/graph-gophers/graphql-go v1.5.0 h1:fDqblo50TEpD0LY7RXk/LFVYEVqo3+tXMNMPSVXA1yc= github.com/graph-gophers/graphql-go v1.5.0/go.mod h1:YtmJZDLbF1YYNrlNAuiO5zAStUWc3XZT07iGsVqe1Os= github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1 h1:qnpSQwGEnkcRpTqNOIR6bJbR0gAorgP9CSALpRcKoAA= @@ -620,8 +622,8 @@ github.com/prometheus/client_golang v1.23.2/go.mod h1:Tb1a6LWHB3/SPIzCoaDXI4I8UH github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.6.2 h1:oBsgwpGs7iVziMvrGhE53c/GrLUsZdHnqNwqPLxwZyk= github.com/prometheus/client_model v0.6.2/go.mod h1:y3m2F6Gdpfy6Ut/GBsUqTWZqCUvMVzSfMLjcu6wAwpE= -github.com/prometheus/common v0.68.1 h1:omjRRl4QP4komogpXuhfeOiisQg7xdy8VM1UY+pStaY= -github.com/prometheus/common v0.68.1/go.mod h1:ZzL3f6u94qUxh9p+tJTrF+FvBS1XXbbRAZCQkytAL0Y= +github.com/prometheus/common v1.20.99 h1:vZEybF3CT0t6L0UjsOtHRML7vuIglHocmvJMMH/se4M= +github.com/prometheus/common v1.20.99/go.mod h1:VX44Tebe4qpuTK+MQWg25h4fJGKBqzObSdxuB7y8K/Y= github.com/prometheus/procfs v0.16.1 h1:hZ15bTNuirocR6u0JZ6BAHHmwS1p8B4P6MRqxtzMyRg= github.com/prometheus/procfs v0.16.1/go.mod h1:teAbpZRB1iIAJYREa1LsoWUXykVXA1KlTmWl8x/U+Is= github.com/prysmaticlabs/gohashtree v0.0.4-beta h1:H/EbCuXPeTV3lpKeXGPpEV9gsUpkqOOVnWapUyeWro4= @@ -669,6 +671,8 @@ github.com/smartcontractkit/chain-selectors v1.0.102 h1:qYP4+72HfvogCHR5ymwRFee3 github.com/smartcontractkit/chain-selectors v1.0.102/go.mod h1:qy7whtgG5g+7z0jt0nRyii9bLND9m15NZTzuQPkMZ5w= github.com/smartcontractkit/chainlink-aptos v0.0.0-20260428085939-5c70de12dbfc h1:Um9FBcf0JNSFuGbxgccDG1vM3cNrMGy0SdJ7r6VbX0o= github.com/smartcontractkit/chainlink-aptos v0.0.0-20260428085939-5c70de12dbfc/go.mod h1:zfE2R7887kiwXkGTHKPe5NBgwhFwIC3pnA2uAxrbvig= +github.com/smartcontractkit/chainlink-canton v0.0.0-20260602133237-99f834640c9d h1:aBQYdlGQvqftkcUo0GIgtaLDs/84FQzBYpF4tZUfPA0= +github.com/smartcontractkit/chainlink-canton v0.0.0-20260602133237-99f834640c9d/go.mod h1:/oTkN9bVrQ1ROUNtIJJSNdffl3NReClq+qINNkGAwlY= github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260428205619-2db1389501a1 h1:p0nFrTYrOQzDhWYm6suaM5CoWiXV5NV7llHnp6/Kn/8= github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260428205619-2db1389501a1/go.mod h1:1XxxpkgCmG/z6y30yRuVrcxre6zixIVX3xzi706Db/8= github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260512180815-d7a89b0a5784 h1:s0rW7GaIKf9m+kfv0dFJPdSbHaMqQiv3xamQP2RVWNE= @@ -705,12 +709,14 @@ github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.202504221 github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.20250422175525-b7575d96bd4d/go.mod h1:4WhGgCA0smBbBud5mK+jnDb2wwndMvoqaWBJ3OV/7Bw= github.com/smartcontractkit/freeport v0.1.3-0.20250828155247-add56fa28aad h1:lgHxTHuzJIF3Vj6LSMOnjhqKgRqYW+0MV2SExtCYL1Q= github.com/smartcontractkit/freeport v0.1.3-0.20250828155247-add56fa28aad/go.mod h1:T4zH9R8R8lVWKfU7tUvYz2o2jMv1OpGCdpY2j2QZXzU= +github.com/smartcontractkit/go-daml v0.0.0-20260604143752-c6f6567940ba h1:peYJwUWOv54aigdk1VFzkmXdZmZK4xixfxv0Af1l6/I= +github.com/smartcontractkit/go-daml v0.0.0-20260604143752-c6f6567940ba/go.mod h1:SqWfl3Bp9NleC9jhzFUaOGzOZeKfldpY4QOW6A6NSNM= github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 h1:12ijqMM9tvYVEm+nR826WsrNi6zCKpwBhuApq127wHs= github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7/go.mod h1:FX7/bVdoep147QQhsOPkYsPEXhGZjeYx6lBSaSXtZOA= github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e h1:poXTj5cFVM6XfC4HICIDYkDVc/A6OYB0eeID0wU2JQE= github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e/go.mod h1:PLdNK6GlqfxIWXzziPkU7dCAVlVFeYkyyW7AQY0R+4Q= -github.com/smartcontractkit/mcms v0.45.1 h1:5MtXCefsuzB4JbGi33n2WPp2Foi8V/bo7G2DWaAr+PU= -github.com/smartcontractkit/mcms v0.45.1/go.mod h1:CVCcFHDXdq7h8NXt71Dbop15rFDsOo2O/EvdWEXq/sQ= +github.com/smartcontractkit/mcms v0.46.1-0.20260608155800-50bf251a7bd6 h1:szQii1gJxkKN48g/I+7gSr32wUw5N1whR6kRU5Rhb+c= +github.com/smartcontractkit/mcms v0.46.1-0.20260608155800-50bf251a7bd6/go.mod h1:oL11nq1enQcZzbbheoo/Qzz8TCJRn8D440aApUSPwBk= github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 h1:+jumHNA0Wrelhe64i8F6HNlS8pkoyMv5sreGx2Ry5Rw= github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8/go.mod h1:3n1Cwaq1E1/1lhQhtRK2ts/ZwZEhjcQeJQ1RuC6Q/8U= github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I= @@ -875,8 +881,6 @@ go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.21.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= go.uber.org/zap v1.28.0 h1:IZzaP1Fv73/T/pBMLk4VutPl36uNC+OSUh3JLG3FIjo= go.uber.org/zap v1.28.0/go.mod h1:rDLpOi171uODNm/mxFcuYWxDsqWSAVkFdX4XojSKg/Q= -go.yaml.in/yaml/v2 v2.4.4 h1:tuyd0P+2Ont/d6e2rl3be67goVK4R6deVxCUX5vyPaQ= -go.yaml.in/yaml/v2 v2.4.4/go.mod h1:gMZqIpDtDqOfM0uNfy0SkpRhvUryYH0Z6wdMYcacYXQ= go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc= go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= From 0f4bdb0628a9c934a4b8803e6684b59c6a321f1f Mon Sep 17 00:00:00 2001 From: faisal-link Date: Mon, 8 Jun 2026 20:45:24 +0400 Subject: [PATCH 06/15] update Sui balance check test --- chain/sui/sui_chain_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chain/sui/sui_chain_test.go b/chain/sui/sui_chain_test.go index 56ddc72dd..3e75ec748 100644 --- a/chain/sui/sui_chain_test.go +++ b/chain/sui/sui_chain_test.go @@ -77,7 +77,9 @@ func TestChain_ReadOnly(t *testing.T) { // read with read-only client should work balance, err := roSuiChain.Client.GetSUIBalance(t.Context(), signer) require.NoError(t, err) - require.Equal(t, 1000000000000, balance.GetBalance()) + expectedBalance := uint64(1000000000000) + actualBalance := balance.GetBalance() + require.Equal(t, expectedBalance, actualBalance) // write with read-write client should work opts := &bind.CallOpts{WaitForExecution: true, GasBudget: pointer.To(uint64(400_000_000)), Signer: suiChain.Signer} From 7431cbe26f76c50f4afdc86e38ea159da2eeba4d Mon Sep 17 00:00:00 2001 From: faisal-link Date: Tue, 9 Jun 2026 20:13:08 +0400 Subject: [PATCH 07/15] update chainlink-sui dep ref --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index bcf92c99e..fd3984418 100644 --- a/go.mod +++ b/go.mod @@ -283,7 +283,7 @@ require ( github.com/shopspring/decimal v1.4.0 // indirect github.com/sigurn/crc16 v0.0.0-20211026045750-20ab5afb07e3 // indirect github.com/sirupsen/logrus v1.9.4 // indirect - github.com/smartcontractkit/chainlink-sui v0.0.0-20260605165559-eb9893a9718c + github.com/smartcontractkit/chainlink-sui v0.0.0-20260609161114-b771e8901720 github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 // indirect github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 // indirect github.com/spf13/afero v1.15.0 // indirect diff --git a/go.sum b/go.sum index 4724aa1af..926693bf1 100644 --- a/go.sum +++ b/go.sum @@ -697,8 +697,8 @@ github.com/smartcontractkit/chainlink-protos/node-platform v0.0.0-20260211172625 github.com/smartcontractkit/chainlink-protos/node-platform v0.0.0-20260211172625-dff40e83b3c9/go.mod h1:dkR2uYg9XYJuT1JASkPzWE51jjFkVb86P7a/yXe5/GM= github.com/smartcontractkit/chainlink-protos/op-catalog v0.1.0 h1:hGEJFD2X3oNIPXQbtIPxCJyg5CcKglRCYBmESS+gmeQ= github.com/smartcontractkit/chainlink-protos/op-catalog v0.1.0/go.mod h1:PjZD54vr6rIKEKQj6HNA4hllvYI/QpT+Zefj3tqkFAs= -github.com/smartcontractkit/chainlink-sui v0.0.0-20260605165559-eb9893a9718c h1:yxtijM3BzD82Pw/CtCRhjWih2SdEtmCyhFwMgNa265w= -github.com/smartcontractkit/chainlink-sui v0.0.0-20260605165559-eb9893a9718c/go.mod h1:Y2kTVIsAUjqqSNGiEQomsaVH5XsBJzxov4j07MaDJOw= +github.com/smartcontractkit/chainlink-sui v0.0.0-20260609161114-b771e8901720 h1:eiyOUn7If5QDoO3JnkEd3Do7WarB83iFj0h2ZEnYdlU= +github.com/smartcontractkit/chainlink-sui v0.0.0-20260609161114-b771e8901720/go.mod h1:Y2kTVIsAUjqqSNGiEQomsaVH5XsBJzxov4j07MaDJOw= github.com/smartcontractkit/chainlink-testing-framework/framework v0.16.5 h1:EiQx0LCPzxlfO9piSPeMCVSZAnp/BxAsPIGh/jBal18= github.com/smartcontractkit/chainlink-testing-framework/framework v0.16.5/go.mod h1:nyOjn4ADJGqRMe3+4ZXSV+J/7nWb1H2Vx8Qk57eLRYA= github.com/smartcontractkit/chainlink-testing-framework/seth v1.51.5 h1:RwZXxdIAOyjp6cwc9Quxgr38k8r7ACz+Lxh9o/A6oH0= From e3d6291bc09926af52311cae07f10cf6d3a3b8b0 Mon Sep 17 00:00:00 2001 From: faisal-link Date: Tue, 9 Jun 2026 20:14:56 +0400 Subject: [PATCH 08/15] update mcms dep ref --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index fd3984418..2caf155af 100644 --- a/go.mod +++ b/go.mod @@ -48,7 +48,7 @@ require ( github.com/smartcontractkit/freeport v0.1.3-0.20250828155247-add56fa28aad github.com/smartcontractkit/go-daml v0.0.0-20260604143752-c6f6567940ba github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e - github.com/smartcontractkit/mcms v0.46.1-0.20260608155800-50bf251a7bd6 + github.com/smartcontractkit/mcms v0.47.1-0.20260609161231-2e33fc6eb369 github.com/spf13/cobra v1.10.2 github.com/spf13/pflag v1.0.10 github.com/spf13/viper v1.21.0 diff --git a/go.sum b/go.sum index 926693bf1..dd43d7d8a 100644 --- a/go.sum +++ b/go.sum @@ -717,8 +717,8 @@ github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 h1:12i github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7/go.mod h1:FX7/bVdoep147QQhsOPkYsPEXhGZjeYx6lBSaSXtZOA= github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e h1:poXTj5cFVM6XfC4HICIDYkDVc/A6OYB0eeID0wU2JQE= github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e/go.mod h1:PLdNK6GlqfxIWXzziPkU7dCAVlVFeYkyyW7AQY0R+4Q= -github.com/smartcontractkit/mcms v0.46.1-0.20260608155800-50bf251a7bd6 h1:szQii1gJxkKN48g/I+7gSr32wUw5N1whR6kRU5Rhb+c= -github.com/smartcontractkit/mcms v0.46.1-0.20260608155800-50bf251a7bd6/go.mod h1:oL11nq1enQcZzbbheoo/Qzz8TCJRn8D440aApUSPwBk= +github.com/smartcontractkit/mcms v0.47.1-0.20260609161231-2e33fc6eb369 h1:q9VwcJ5XGzjYikG21u4wYR5BjI3rxl0UEixGUdV0uUA= +github.com/smartcontractkit/mcms v0.47.1-0.20260609161231-2e33fc6eb369/go.mod h1:35TsT8/otKh06CWIMIaFkjqgto5wR2oJo7ni9d8FrqI= github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 h1:+jumHNA0Wrelhe64i8F6HNlS8pkoyMv5sreGx2Ry5Rw= github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8/go.mod h1:3n1Cwaq1E1/1lhQhtRK2ts/ZwZEhjcQeJQ1RuC6Q/8U= github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I= From cd72a9e85cfac2e483bc3fe4d5cef1b99e96afb9 Mon Sep 17 00:00:00 2001 From: faisal-link Date: Thu, 11 Jun 2026 18:30:00 +0400 Subject: [PATCH 09/15] update mcms and chainlink-sui deps --- chain/sui/client.go | 1 + chain/sui/provider/ctf_provider.go | 2 +- go.mod | 8 ++++---- go.sum | 16 ++++++++-------- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/chain/sui/client.go b/chain/sui/client.go index 35280c9c9..122fbd99d 100644 --- a/chain/sui/client.go +++ b/chain/sui/client.go @@ -7,6 +7,7 @@ import ( "time" "github.com/smartcontractkit/chainlink-common/pkg/logger" + cslclient "github.com/smartcontractkit/chainlink-sui/relayer/client" ) diff --git a/chain/sui/provider/ctf_provider.go b/chain/sui/provider/ctf_provider.go index 1464959dc..20d57b256 100644 --- a/chain/sui/provider/ctf_provider.go +++ b/chain/sui/provider/ctf_provider.go @@ -13,9 +13,9 @@ import ( "github.com/avast/retry-go/v4" "github.com/block-vision/sui-go-sdk/models" "github.com/go-resty/resty/v2" + chainsel "github.com/smartcontractkit/chain-selectors" "github.com/smartcontractkit/chainlink-common/pkg/logger" cslclient "github.com/smartcontractkit/chainlink-sui/relayer/client" - chainsel "github.com/smartcontractkit/chain-selectors" "github.com/smartcontractkit/chainlink-testing-framework/framework" "github.com/smartcontractkit/chainlink-testing-framework/framework/components/blockchain" "github.com/smartcontractkit/freeport" diff --git a/go.mod b/go.mod index 2caf155af..82db4d933 100644 --- a/go.mod +++ b/go.mod @@ -34,8 +34,8 @@ require ( github.com/smartcontractkit/ccip-owner-contracts v0.1.0 github.com/smartcontractkit/chain-selectors v1.0.102 github.com/smartcontractkit/chainlink-aptos v0.0.0-20260428085939-5c70de12dbfc - github.com/smartcontractkit/chainlink-canton v0.0.0-20260602133237-99f834640c9d - github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260512180815-d7a89b0a5784 + github.com/smartcontractkit/chainlink-canton v0.0.0-20260609155219-dcbe77d4a320 + github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260608180601-efa81bfdfda9 github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260129103204-4c8453dd8139 github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20260129103204-4c8453dd8139 github.com/smartcontractkit/chainlink-common v0.11.2-0.20260506120607-7f10be016c89 @@ -48,7 +48,7 @@ require ( github.com/smartcontractkit/freeport v0.1.3-0.20250828155247-add56fa28aad github.com/smartcontractkit/go-daml v0.0.0-20260604143752-c6f6567940ba github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e - github.com/smartcontractkit/mcms v0.47.1-0.20260609161231-2e33fc6eb369 + github.com/smartcontractkit/mcms v0.47.1 github.com/spf13/cobra v1.10.2 github.com/spf13/pflag v1.0.10 github.com/spf13/viper v1.21.0 @@ -283,7 +283,7 @@ require ( github.com/shopspring/decimal v1.4.0 // indirect github.com/sigurn/crc16 v0.0.0-20211026045750-20ab5afb07e3 // indirect github.com/sirupsen/logrus v1.9.4 // indirect - github.com/smartcontractkit/chainlink-sui v0.0.0-20260609161114-b771e8901720 + github.com/smartcontractkit/chainlink-sui v0.0.0-20260610194843-349ea43d69ce github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 // indirect github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 // indirect github.com/spf13/afero v1.15.0 // indirect diff --git a/go.sum b/go.sum index dd43d7d8a..b539486a1 100644 --- a/go.sum +++ b/go.sum @@ -673,12 +673,12 @@ github.com/smartcontractkit/chain-selectors v1.0.102 h1:qYP4+72HfvogCHR5ymwRFee3 github.com/smartcontractkit/chain-selectors v1.0.102/go.mod h1:qy7whtgG5g+7z0jt0nRyii9bLND9m15NZTzuQPkMZ5w= github.com/smartcontractkit/chainlink-aptos v0.0.0-20260428085939-5c70de12dbfc h1:Um9FBcf0JNSFuGbxgccDG1vM3cNrMGy0SdJ7r6VbX0o= github.com/smartcontractkit/chainlink-aptos v0.0.0-20260428085939-5c70de12dbfc/go.mod h1:zfE2R7887kiwXkGTHKPe5NBgwhFwIC3pnA2uAxrbvig= -github.com/smartcontractkit/chainlink-canton v0.0.0-20260602133237-99f834640c9d h1:aBQYdlGQvqftkcUo0GIgtaLDs/84FQzBYpF4tZUfPA0= -github.com/smartcontractkit/chainlink-canton v0.0.0-20260602133237-99f834640c9d/go.mod h1:/oTkN9bVrQ1ROUNtIJJSNdffl3NReClq+qINNkGAwlY= +github.com/smartcontractkit/chainlink-canton v0.0.0-20260609155219-dcbe77d4a320 h1:ix4tCtSTB7S2XGll+uqnhrqAQ+2iW/Zk/vnPjBMYRB0= +github.com/smartcontractkit/chainlink-canton v0.0.0-20260609155219-dcbe77d4a320/go.mod h1:WKmNUX4oy8IvB66ukudrE99uaXjlZ7WghCDwHOTyB1c= github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260428205619-2db1389501a1 h1:p0nFrTYrOQzDhWYm6suaM5CoWiXV5NV7llHnp6/Kn/8= github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260428205619-2db1389501a1/go.mod h1:1XxxpkgCmG/z6y30yRuVrcxre6zixIVX3xzi706Db/8= -github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260512180815-d7a89b0a5784 h1:s0rW7GaIKf9m+kfv0dFJPdSbHaMqQiv3xamQP2RVWNE= -github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260512180815-d7a89b0a5784/go.mod h1:0dcvbCc+HRK+nIweRSHu3FjkNTV9gi+irBIB3mUUe68= +github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260608180601-efa81bfdfda9 h1:rLU5tQ/1BaQOjnYj9WWNlbqXCqd61oqasOXJ7upaKaM= +github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260608180601-efa81bfdfda9/go.mod h1:TfYlPkIj2wa35qqWLrk5//HkLoee5jzokxZ7PhK0tgk= github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260129103204-4c8453dd8139 h1:jkChf04hhdiMBApbb+lLDxHMY62Md6UeM7v++GSw3K8= github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260129103204-4c8453dd8139/go.mod h1:wuhagkM/lU0GbV2YcrROOH0GlsfXJYwm6qmpa4CK70w= github.com/smartcontractkit/chainlink-ccip/chains/solana/gobindings v0.0.0-20260129103204-4c8453dd8139 h1:tw3K4UkH5XfW5SoyYkvAlbzrccoGSLdz/XkxD6nyGC8= @@ -697,8 +697,8 @@ github.com/smartcontractkit/chainlink-protos/node-platform v0.0.0-20260211172625 github.com/smartcontractkit/chainlink-protos/node-platform v0.0.0-20260211172625-dff40e83b3c9/go.mod h1:dkR2uYg9XYJuT1JASkPzWE51jjFkVb86P7a/yXe5/GM= github.com/smartcontractkit/chainlink-protos/op-catalog v0.1.0 h1:hGEJFD2X3oNIPXQbtIPxCJyg5CcKglRCYBmESS+gmeQ= github.com/smartcontractkit/chainlink-protos/op-catalog v0.1.0/go.mod h1:PjZD54vr6rIKEKQj6HNA4hllvYI/QpT+Zefj3tqkFAs= -github.com/smartcontractkit/chainlink-sui v0.0.0-20260609161114-b771e8901720 h1:eiyOUn7If5QDoO3JnkEd3Do7WarB83iFj0h2ZEnYdlU= -github.com/smartcontractkit/chainlink-sui v0.0.0-20260609161114-b771e8901720/go.mod h1:Y2kTVIsAUjqqSNGiEQomsaVH5XsBJzxov4j07MaDJOw= +github.com/smartcontractkit/chainlink-sui v0.0.0-20260610194843-349ea43d69ce h1:Xglr7eM24+Y9eMOhgK//QjXLDjPuT1oUAtdvsGqY8P0= +github.com/smartcontractkit/chainlink-sui v0.0.0-20260610194843-349ea43d69ce/go.mod h1:Y2kTVIsAUjqqSNGiEQomsaVH5XsBJzxov4j07MaDJOw= github.com/smartcontractkit/chainlink-testing-framework/framework v0.16.5 h1:EiQx0LCPzxlfO9piSPeMCVSZAnp/BxAsPIGh/jBal18= github.com/smartcontractkit/chainlink-testing-framework/framework v0.16.5/go.mod h1:nyOjn4ADJGqRMe3+4ZXSV+J/7nWb1H2Vx8Qk57eLRYA= github.com/smartcontractkit/chainlink-testing-framework/seth v1.51.5 h1:RwZXxdIAOyjp6cwc9Quxgr38k8r7ACz+Lxh9o/A6oH0= @@ -717,8 +717,8 @@ github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 h1:12i github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7/go.mod h1:FX7/bVdoep147QQhsOPkYsPEXhGZjeYx6lBSaSXtZOA= github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e h1:poXTj5cFVM6XfC4HICIDYkDVc/A6OYB0eeID0wU2JQE= github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e/go.mod h1:PLdNK6GlqfxIWXzziPkU7dCAVlVFeYkyyW7AQY0R+4Q= -github.com/smartcontractkit/mcms v0.47.1-0.20260609161231-2e33fc6eb369 h1:q9VwcJ5XGzjYikG21u4wYR5BjI3rxl0UEixGUdV0uUA= -github.com/smartcontractkit/mcms v0.47.1-0.20260609161231-2e33fc6eb369/go.mod h1:35TsT8/otKh06CWIMIaFkjqgto5wR2oJo7ni9d8FrqI= +github.com/smartcontractkit/mcms v0.47.1 h1:dKX/yapkHxwHJsWcVRgLdr1lhziBQDMVlsm/jDzqYAg= +github.com/smartcontractkit/mcms v0.47.1/go.mod h1:7ZPOnN9CeoiiZkGQSPsyk23X+XFEtxQYpIx7kKy2ZP0= github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 h1:+jumHNA0Wrelhe64i8F6HNlS8pkoyMv5sreGx2Ry5Rw= github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8/go.mod h1:3n1Cwaq1E1/1lhQhtRK2ts/ZwZEhjcQeJQ1RuC6Q/8U= github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I= From a392659b17f8e2babb9217b007f75c9fa6de0504 Mon Sep 17 00:00:00 2001 From: faisal-link Date: Thu, 11 Jun 2026 18:32:10 +0400 Subject: [PATCH 10/15] tidy --- go.sum | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/go.sum b/go.sum index f5e2dbc2a..f71de7d3e 100644 --- a/go.sum +++ b/go.sum @@ -675,11 +675,8 @@ github.com/smartcontractkit/chainlink-aptos v0.0.0-20260428085939-5c70de12dbfc h github.com/smartcontractkit/chainlink-aptos v0.0.0-20260428085939-5c70de12dbfc/go.mod h1:zfE2R7887kiwXkGTHKPe5NBgwhFwIC3pnA2uAxrbvig= github.com/smartcontractkit/chainlink-canton v0.0.0-20260609155219-dcbe77d4a320 h1:ix4tCtSTB7S2XGll+uqnhrqAQ+2iW/Zk/vnPjBMYRB0= github.com/smartcontractkit/chainlink-canton v0.0.0-20260609155219-dcbe77d4a320/go.mod h1:WKmNUX4oy8IvB66ukudrE99uaXjlZ7WghCDwHOTyB1c= -<<<<<<< chore/sui-grpc-client-migration github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260428205619-2db1389501a1 h1:p0nFrTYrOQzDhWYm6suaM5CoWiXV5NV7llHnp6/Kn/8= github.com/smartcontractkit/chainlink-ccip v0.1.1-solana.0.20260428205619-2db1389501a1/go.mod h1:1XxxpkgCmG/z6y30yRuVrcxre6zixIVX3xzi706Db/8= -======= ->>>>>>> main github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260608180601-efa81bfdfda9 h1:rLU5tQ/1BaQOjnYj9WWNlbqXCqd61oqasOXJ7upaKaM= github.com/smartcontractkit/chainlink-ccip/chains/evm v0.0.0-20260608180601-efa81bfdfda9/go.mod h1:TfYlPkIj2wa35qqWLrk5//HkLoee5jzokxZ7PhK0tgk= github.com/smartcontractkit/chainlink-ccip/chains/solana v0.0.0-20260129103204-4c8453dd8139 h1:jkChf04hhdiMBApbb+lLDxHMY62Md6UeM7v++GSw3K8= @@ -700,13 +697,8 @@ github.com/smartcontractkit/chainlink-protos/node-platform v0.0.0-20260211172625 github.com/smartcontractkit/chainlink-protos/node-platform v0.0.0-20260211172625-dff40e83b3c9/go.mod h1:dkR2uYg9XYJuT1JASkPzWE51jjFkVb86P7a/yXe5/GM= github.com/smartcontractkit/chainlink-protos/op-catalog v0.1.0 h1:hGEJFD2X3oNIPXQbtIPxCJyg5CcKglRCYBmESS+gmeQ= github.com/smartcontractkit/chainlink-protos/op-catalog v0.1.0/go.mod h1:PjZD54vr6rIKEKQj6HNA4hllvYI/QpT+Zefj3tqkFAs= -<<<<<<< chore/sui-grpc-client-migration github.com/smartcontractkit/chainlink-sui v0.0.0-20260610194843-349ea43d69ce h1:Xglr7eM24+Y9eMOhgK//QjXLDjPuT1oUAtdvsGqY8P0= github.com/smartcontractkit/chainlink-sui v0.0.0-20260610194843-349ea43d69ce/go.mod h1:Y2kTVIsAUjqqSNGiEQomsaVH5XsBJzxov4j07MaDJOw= -======= -github.com/smartcontractkit/chainlink-sui v0.0.0-20260527160341-aa3adc0abf67 h1:NNvPOgvf5vbOYVLxLST+5E88iPOAnpmzZGPihEx8DFc= -github.com/smartcontractkit/chainlink-sui v0.0.0-20260527160341-aa3adc0abf67/go.mod h1:k1HSbHyPaQWPOj6lXDIAe04EuwbC5ge1nK+cpG2E8hE= ->>>>>>> main github.com/smartcontractkit/chainlink-testing-framework/framework v0.16.5 h1:EiQx0LCPzxlfO9piSPeMCVSZAnp/BxAsPIGh/jBal18= github.com/smartcontractkit/chainlink-testing-framework/framework v0.16.5/go.mod h1:nyOjn4ADJGqRMe3+4ZXSV+J/7nWb1H2Vx8Qk57eLRYA= github.com/smartcontractkit/chainlink-testing-framework/seth v1.51.5 h1:RwZXxdIAOyjp6cwc9Quxgr38k8r7ACz+Lxh9o/A6oH0= @@ -725,13 +717,8 @@ github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 h1:12i github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7/go.mod h1:FX7/bVdoep147QQhsOPkYsPEXhGZjeYx6lBSaSXtZOA= github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e h1:poXTj5cFVM6XfC4HICIDYkDVc/A6OYB0eeID0wU2JQE= github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e/go.mod h1:PLdNK6GlqfxIWXzziPkU7dCAVlVFeYkyyW7AQY0R+4Q= -<<<<<<< chore/sui-grpc-client-migration github.com/smartcontractkit/mcms v0.47.1 h1:dKX/yapkHxwHJsWcVRgLdr1lhziBQDMVlsm/jDzqYAg= github.com/smartcontractkit/mcms v0.47.1/go.mod h1:7ZPOnN9CeoiiZkGQSPsyk23X+XFEtxQYpIx7kKy2ZP0= -======= -github.com/smartcontractkit/mcms v0.47.1-0.20260610155329-856384f2ce70 h1:SBtw4WjSxS7AvFoFdWxLGju1GRIqi7ic2rgFXBUbwmo= -github.com/smartcontractkit/mcms v0.47.1-0.20260610155329-856384f2ce70/go.mod h1:7ZPOnN9CeoiiZkGQSPsyk23X+XFEtxQYpIx7kKy2ZP0= ->>>>>>> main github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 h1:+jumHNA0Wrelhe64i8F6HNlS8pkoyMv5sreGx2Ry5Rw= github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8/go.mod h1:3n1Cwaq1E1/1lhQhtRK2ts/ZwZEhjcQeJQ1RuC6Q/8U= github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I= From 3f627a3fffe1d753de7e6ef5d77df34c96c10ee3 Mon Sep 17 00:00:00 2001 From: faisal-link Date: Thu, 11 Jun 2026 19:10:22 +0400 Subject: [PATCH 11/15] update MCMS ref --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 6b6a9ef2e..b52a51cad 100644 --- a/go.mod +++ b/go.mod @@ -48,7 +48,7 @@ require ( github.com/smartcontractkit/freeport v0.1.3-0.20250828155247-add56fa28aad github.com/smartcontractkit/go-daml v0.0.0-20260604143752-c6f6567940ba github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e - github.com/smartcontractkit/mcms v0.47.1 + github.com/smartcontractkit/mcms v0.47.2-0.20260611004209-3f43937dcffd github.com/spf13/cobra v1.10.2 github.com/spf13/pflag v1.0.10 github.com/spf13/viper v1.21.0 diff --git a/go.sum b/go.sum index f71de7d3e..c41e57bb2 100644 --- a/go.sum +++ b/go.sum @@ -717,8 +717,8 @@ github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 h1:12i github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7/go.mod h1:FX7/bVdoep147QQhsOPkYsPEXhGZjeYx6lBSaSXtZOA= github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e h1:poXTj5cFVM6XfC4HICIDYkDVc/A6OYB0eeID0wU2JQE= github.com/smartcontractkit/libocr v0.0.0-20260304194147-a03701e2c02e/go.mod h1:PLdNK6GlqfxIWXzziPkU7dCAVlVFeYkyyW7AQY0R+4Q= -github.com/smartcontractkit/mcms v0.47.1 h1:dKX/yapkHxwHJsWcVRgLdr1lhziBQDMVlsm/jDzqYAg= -github.com/smartcontractkit/mcms v0.47.1/go.mod h1:7ZPOnN9CeoiiZkGQSPsyk23X+XFEtxQYpIx7kKy2ZP0= +github.com/smartcontractkit/mcms v0.47.2-0.20260611004209-3f43937dcffd h1:5G3V6voYht7bxD3EDiM/w7B/9O7nJkE9kaqxZnVeXS4= +github.com/smartcontractkit/mcms v0.47.2-0.20260611004209-3f43937dcffd/go.mod h1:qyDpiJC7Yo2FouVBQL3rc3wB4VB/8tw8xAcypOb4FT8= github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 h1:+jumHNA0Wrelhe64i8F6HNlS8pkoyMv5sreGx2Ry5Rw= github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8/go.mod h1:3n1Cwaq1E1/1lhQhtRK2ts/ZwZEhjcQeJQ1RuC6Q/8U= github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I= From d2a5c25c8a7fc7cf512b94fa3be1a2c423547a5c Mon Sep 17 00:00:00 2001 From: faisal-link Date: Thu, 11 Jun 2026 20:15:20 +0400 Subject: [PATCH 12/15] lint fixes --- chain/sui/client.go | 1 + chain/sui/provider/ctf_provider_test.go | 2 +- chain/sui/provider/rpc_provider_test.go | 2 +- chain/sui/sui_chain_test.go | 8 ++++---- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/chain/sui/client.go b/chain/sui/client.go index 122fbd99d..819b61c0e 100644 --- a/chain/sui/client.go +++ b/chain/sui/client.go @@ -53,5 +53,6 @@ func grpcTargetFromNodeURL(nodeURL string) (string, error) { if strings.Contains(host, ":") && !strings.HasPrefix(host, "[") { return fmt.Sprintf("[%s]:%s", host, port), nil } + return fmt.Sprintf("%s:%s", host, port), nil } diff --git a/chain/sui/provider/ctf_provider_test.go b/chain/sui/provider/ctf_provider_test.go index 9c3fd5c06..6e44a1279 100644 --- a/chain/sui/provider/ctf_provider_test.go +++ b/chain/sui/provider/ctf_provider_test.go @@ -121,7 +121,7 @@ func Test_CTFChainProvider_Initialize(t *testing.T) { // Check that the chain is of type sui.Chain and has the expected fields gotChain, ok := got.(sui.Chain) require.True(t, ok, "expected got to be of type sui.Chain") - assert.Equal(t, tt.giveSelector, gotChain.ChainMetadata.Selector) + assert.Equal(t, tt.giveSelector, gotChain.Selector) assert.NotEmpty(t, gotChain.Client) assert.NotEmpty(t, gotChain.Signer) assert.NotEmpty(t, gotChain.URL) diff --git a/chain/sui/provider/rpc_provider_test.go b/chain/sui/provider/rpc_provider_test.go index 452a5a0a8..1ac265992 100644 --- a/chain/sui/provider/rpc_provider_test.go +++ b/chain/sui/provider/rpc_provider_test.go @@ -118,7 +118,7 @@ func Test_RPCChainProvider_Initialize(t *testing.T) { gotChain, ok := got.(sui.Chain) require.True(t, ok, "expected got to be of type sui.Chain") - assert.Equal(t, tt.giveSelector, gotChain.ChainMetadata.Selector) + assert.Equal(t, tt.giveSelector, gotChain.Selector) assert.NotEmpty(t, gotChain.Client) assert.NotEmpty(t, gotChain.Signer) assert.Equal(t, tt.giveConfig.RPCURL, gotChain.URL) diff --git a/chain/sui/sui_chain_test.go b/chain/sui/sui_chain_test.go index 3e75ec748..b476608c5 100644 --- a/chain/sui/sui_chain_test.go +++ b/chain/sui/sui_chain_test.go @@ -42,10 +42,10 @@ func TestChain_ChainInfot(t *testing.T) { c := sui.Chain{ ChainMetadata: sui.ChainMetadata{Selector: tt.selector}, } - assert.Equal(t, tt.selector, c.ChainMetadata.ChainSelector()) - assert.Equal(t, tt.wantString, c.ChainMetadata.String()) - assert.Equal(t, tt.wantName, c.ChainMetadata.Name()) - assert.Equal(t, tt.wantFamily, c.ChainMetadata.Family()) + assert.Equal(t, tt.selector, c.ChainSelector()) + assert.Equal(t, tt.wantString, c.String()) + assert.Equal(t, tt.wantName, c.Name()) + assert.Equal(t, tt.wantFamily, c.Family()) }) } } From b143dda84e95b46968e7ae7a36806e08bb63c2cd Mon Sep 17 00:00:00 2001 From: faisal-link Date: Thu, 11 Jun 2026 20:34:17 +0400 Subject: [PATCH 13/15] add sui client test to address code cov --- chain/sui/client_test.go | 102 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 chain/sui/client_test.go diff --git a/chain/sui/client_test.go b/chain/sui/client_test.go new file mode 100644 index 000000000..3fa84916f --- /dev/null +++ b/chain/sui/client_test.go @@ -0,0 +1,102 @@ +package sui + +import ( + "testing" + + "github.com/smartcontractkit/chainlink-common/pkg/logger" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestGrpcTargetFromNodeURL(t *testing.T) { + t.Parallel() + + tests := []struct { + name string + nodeURL string + want string + wantErr string + }{ + { + name: "host with explicit port", + nodeURL: "http://127.0.0.1:9000", + want: "127.0.0.1:9000", + }, + { + name: "http scheme defaults to port 9000", + nodeURL: "http://example.com", + want: "example.com:9000", + }, + { + name: "https scheme defaults to port 443", + nodeURL: "https://example.com", + want: "example.com:443", + }, + { + name: "ipv6 host with port gets bracketed", + nodeURL: "http://[::1]:9000", + want: "[::1]:9000", + }, + { + name: "ipv6 host without port gets bracketed and defaulted", + nodeURL: "http://[::1]", + want: "[::1]:9000", + }, + { + name: "invalid URL returns error", + nodeURL: "http://\x7f", + wantErr: "parse node URL", + }, + { + name: "missing host returns error", + nodeURL: "http:///path", + wantErr: "has no host", + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + t.Parallel() + + got, err := grpcTargetFromNodeURL(tt.nodeURL) + if tt.wantErr != "" { + require.Error(t, err) + assert.Contains(t, err.Error(), tt.wantErr) + return + } + require.NoError(t, err) + assert.Equal(t, tt.want, got) + }) + } +} + +func TestNewPTBClientFromNodeURL(t *testing.T) { + t.Parallel() + + log, err := logger.New() + require.NoError(t, err) + + t.Run("valid URL with empty token uses default", func(t *testing.T) { + t.Parallel() + + client, err := NewPTBClientFromNodeURL(log, "http://127.0.0.1:9000", "") + require.NoError(t, err) + require.NotNil(t, client) + }) + + t.Run("valid URL with explicit token", func(t *testing.T) { + t.Parallel() + + client, err := NewPTBClientFromNodeURL(log, "http://127.0.0.1:9000", "my-token") + require.NoError(t, err) + require.NotNil(t, client) + }) + + t.Run("invalid URL returns error", func(t *testing.T) { + t.Parallel() + + client, err := NewPTBClientFromNodeURL(log, "http://\x7f", "") + require.Error(t, err) + require.Nil(t, client) + }) +} From 3ad0d1b54a0f52553021e7f5b111859e87c8dd0a Mon Sep 17 00:00:00 2001 From: Faisal Date: Thu, 11 Jun 2026 20:35:25 +0400 Subject: [PATCH 14/15] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- datastore/catalog/remote/main_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datastore/catalog/remote/main_test.go b/datastore/catalog/remote/main_test.go index 559dd858b..55ee8695b 100644 --- a/datastore/catalog/remote/main_test.go +++ b/datastore/catalog/remote/main_test.go @@ -64,7 +64,7 @@ func TestMain(m *testing.M) { cleanupCtx, cleanupCancel := context.WithTimeout(context.Background(), 2*time.Minute) defer cleanupCancel() - if err := globalTestSetup.CatalogContainer.Terminate(cleanupCtx); err != nil { + if err := globalTestSetup.Teardown(cleanupCtx); err != nil { log.Printf("Warning: Failed to teardown testcontainers: %v", err) } From ef0b7f8fcde27f4dce18caf768f321f2dee92c9a Mon Sep 17 00:00:00 2001 From: faisal-link Date: Thu, 11 Jun 2026 20:40:46 +0400 Subject: [PATCH 15/15] lint fixes --- chain/sui/client_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/chain/sui/client_test.go b/chain/sui/client_test.go index 3fa84916f..f6580d2c5 100644 --- a/chain/sui/client_test.go +++ b/chain/sui/client_test.go @@ -62,6 +62,7 @@ func TestGrpcTargetFromNodeURL(t *testing.T) { if tt.wantErr != "" { require.Error(t, err) assert.Contains(t, err.Error(), tt.wantErr) + return } require.NoError(t, err)