client

package
v1.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDiamondRouter

type MockDiamondRouter struct {
	mock.Mock
}

func (*MockDiamondRouter) Erc721Fee

func (m *MockDiamondRouter) Erc721Fee(opts *bind.CallOpts, _erc721 common.Address) (*big.Int, error)

func (*MockDiamondRouter) Erc721Payment

func (m *MockDiamondRouter) Erc721Payment(opts *bind.CallOpts, _erc721 common.Address) (common.Address, error)

func (*MockDiamondRouter) HasValidSignaturesLength

func (m *MockDiamondRouter) HasValidSignaturesLength(opts *bind.CallOpts, _n *big.Int) (bool, error)

func (*MockDiamondRouter) MemberAt

func (m *MockDiamondRouter) MemberAt(opts *bind.CallOpts, _index *big.Int) (common.Address, error)

func (*MockDiamondRouter) MembersCount

func (m *MockDiamondRouter) MembersCount(opts *bind.CallOpts) (*big.Int, error)

func (*MockDiamondRouter) ParseBurn

func (m *MockDiamondRouter) ParseBurn(log types.Log) (*router.RouterBurn, error)

func (*MockDiamondRouter) ParseBurnERC721

func (m *MockDiamondRouter) ParseBurnERC721(log types.Log) (*router.RouterBurnERC721, error)

func (*MockDiamondRouter) ParseLock

func (m *MockDiamondRouter) ParseLock(log types.Log) (*router.RouterLock, error)

func (*MockDiamondRouter) ParseMint

func (m *MockDiamondRouter) ParseMint(log types.Log) (*router.RouterMint, error)

func (*MockDiamondRouter) ParseUnlock

func (m *MockDiamondRouter) ParseUnlock(log types.Log) (*router.RouterUnlock, error)

func (*MockDiamondRouter) TokenFeeData

func (m *MockDiamondRouter) TokenFeeData(opts *bind.CallOpts, _token common.Address) (struct {
	ServiceFeePercentage *big.Int
	FeesAccrued          *big.Int
	PreviousAccrued      *big.Int
	Accumulator          *big.Int
}, error)

func (*MockDiamondRouter) WatchBurn

func (m *MockDiamondRouter) WatchBurn(opts *bind.WatchOpts, sink chan<- *router.RouterBurn) (event.Subscription, error)

func (*MockDiamondRouter) WatchLock

func (m *MockDiamondRouter) WatchLock(opts *bind.WatchOpts, sink chan<- *router.RouterLock) (event.Subscription, error)

type MockEVM

type MockEVM struct {
	mock.Mock
}

func (*MockEVM) BlockConfirmations

func (m *MockEVM) BlockConfirmations() uint64

func (*MockEVM) BlockNumber

func (m *MockEVM) BlockNumber(ctx context.Context) (uint64, error)

func (*MockEVM) CallContract

func (m *MockEVM) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)

func (*MockEVM) ChainID

func (m *MockEVM) ChainID(ctx context.Context) (*big.Int, error)

func (*MockEVM) CodeAt

func (m *MockEVM) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)

func (*MockEVM) EstimateGas

func (m *MockEVM) EstimateGas(ctx context.Context, call ethereum.CallMsg) (gas uint64, err error)

func (*MockEVM) FilterLogs

func (m *MockEVM) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)

func (*MockEVM) GetBlockTimestamp

func (m *MockEVM) GetBlockTimestamp(blockNumber *big.Int) uint64

func (*MockEVM) GetChainID

func (m *MockEVM) GetChainID() uint64

func (*MockEVM) GetClient

func (m *MockEVM) GetClient() client.Core

func (*MockEVM) GetPrivateKey

func (m *MockEVM) GetPrivateKey() string

func (*MockEVM) HeaderByNumber

func (m *MockEVM) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)

func (*MockEVM) PendingCodeAt

func (m *MockEVM) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)

func (*MockEVM) PendingNonceAt

func (m *MockEVM) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)

func (*MockEVM) RetryBlockNumber

func (m *MockEVM) RetryBlockNumber() (uint64, error)

func (*MockEVM) RetryFilterLogs

func (m *MockEVM) RetryFilterLogs(q ethereum.FilterQuery) ([]types.Log, error)

func (*MockEVM) RetryTransactionByHash

func (m *MockEVM) RetryTransactionByHash(hash common.Hash) (*types.Transaction, error)

func (*MockEVM) SendTransaction

func (m *MockEVM) SendTransaction(ctx context.Context, tx *types.Transaction) error

func (*MockEVM) SetChainID

func (m *MockEVM) SetChainID(chainId uint64)

func (*MockEVM) SubscribeFilterLogs

func (m *MockEVM) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)

func (*MockEVM) SuggestGasPrice

func (m *MockEVM) SuggestGasPrice(ctx context.Context) (*big.Int, error)

func (*MockEVM) SuggestGasTipCap

func (m *MockEVM) SuggestGasTipCap(ctx context.Context) (*big.Int, error)

func (*MockEVM) ValidateContractDeployedAt

func (m *MockEVM) ValidateContractDeployedAt(contractAddress string) (*common.Address, error)

func (*MockEVM) WaitForConfirmations

func (m *MockEVM) WaitForConfirmations(raw types.Log) error

func (*MockEVM) WaitForTransactionCallback

func (m *MockEVM) WaitForTransactionCallback(hex string, onSuccess, onRevert func(), onError func(err error))

func (*MockEVM) WaitForTransactionReceipt

func (m *MockEVM) WaitForTransactionReceipt(hash common.Hash) (txReceipt *types.Receipt, err error)

type MockEVMCore

type MockEVMCore struct {
	mock.Mock
}

func (*MockEVMCore) BlockByHash

func (m *MockEVMCore) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)

func (*MockEVMCore) BlockByNumber

func (m *MockEVMCore) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)

func (*MockEVMCore) BlockNumber

func (m *MockEVMCore) BlockNumber(ctx context.Context) (uint64, error)

func (*MockEVMCore) CallContract

func (m *MockEVMCore) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)

func (*MockEVMCore) ChainID

func (m *MockEVMCore) ChainID(ctx context.Context) (*big.Int, error)

func (*MockEVMCore) CodeAt

func (m *MockEVMCore) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)

func (*MockEVMCore) EstimateGas

func (m *MockEVMCore) EstimateGas(ctx context.Context, call ethereum.CallMsg) (gas uint64, err error)

func (*MockEVMCore) FilterLogs

func (m *MockEVMCore) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)

func (*MockEVMCore) HeaderByNumber

func (m *MockEVMCore) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)

func (*MockEVMCore) PendingCodeAt

func (m *MockEVMCore) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)

func (*MockEVMCore) PendingNonceAt

func (m *MockEVMCore) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)

func (*MockEVMCore) SendTransaction

func (m *MockEVMCore) SendTransaction(ctx context.Context, tx *types.Transaction) error

func (*MockEVMCore) SubscribeFilterLogs

func (m *MockEVMCore) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)

func (*MockEVMCore) SuggestGasPrice

func (m *MockEVMCore) SuggestGasPrice(ctx context.Context) (*big.Int, error)

func (*MockEVMCore) SuggestGasTipCap

func (m *MockEVMCore) SuggestGasTipCap(ctx context.Context) (*big.Int, error)

func (*MockEVMCore) TransactionByHash

func (m *MockEVMCore) TransactionByHash(ctx context.Context, hash common.Hash) (tx *types.Transaction, isPending bool, err error)

func (*MockEVMCore) TransactionReceipt

func (m *MockEVMCore) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)

type MockEvmFungibleToken

type MockEvmFungibleToken struct {
	mock.Mock
}

func (*MockEvmFungibleToken) BalanceOf

func (m *MockEvmFungibleToken) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

func (*MockEvmFungibleToken) Decimals

func (m *MockEvmFungibleToken) Decimals(opts *bind.CallOpts) (uint8, error)

func (*MockEvmFungibleToken) Name

func (m *MockEvmFungibleToken) Name(opts *bind.CallOpts) (string, error)

func (*MockEvmFungibleToken) Symbol

func (m *MockEvmFungibleToken) Symbol(opts *bind.CallOpts) (string, error)

func (*MockEvmFungibleToken) TotalSupply

func (m *MockEvmFungibleToken) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

type MockEvmNonFungibleToken

type MockEvmNonFungibleToken struct {
	mock.Mock
}

func (*MockEvmNonFungibleToken) BalanceOf

func (m *MockEvmNonFungibleToken) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)

func (*MockEvmNonFungibleToken) Name

func (m *MockEvmNonFungibleToken) Name(opts *bind.CallOpts) (string, error)

func (*MockEvmNonFungibleToken) Symbol

func (m *MockEvmNonFungibleToken) Symbol(opts *bind.CallOpts) (string, error)

type MockHederaMirror

type MockHederaMirror struct {
	mock.Mock
}

func (*MockHederaMirror) AccountExists

func (m *MockHederaMirror) AccountExists(accountID hedera.AccountID) bool

func (*MockHederaMirror) GetAccount

func (m *MockHederaMirror) GetAccount(accountID string) (*account.AccountsResponse, error)

func (*MockHederaMirror) GetAccountByPublicKey added in v1.5.2

func (m *MockHederaMirror) GetAccountByPublicKey(publicKey string) (*account.AccountsQueryResponse, error)

func (*MockHederaMirror) GetAccountCreditTransactionsAfterTimestamp

func (m *MockHederaMirror) GetAccountCreditTransactionsAfterTimestamp(accountId hedera.AccountID, milestoneTimestamp int64) (*transaction.Response, error)

func (*MockHederaMirror) GetAccountCreditTransactionsAfterTimestampString

func (m *MockHederaMirror) GetAccountCreditTransactionsAfterTimestampString(accountId hedera.AccountID, from string) (*transaction.Response, error)

func (*MockHederaMirror) GetAccountCreditTransactionsBetween

func (m *MockHederaMirror) GetAccountCreditTransactionsBetween(accountId hedera.AccountID, from, to int64) ([]transaction.Transaction, error)

func (*MockHederaMirror) GetAccountDebitTransactionsAfterTimestampString

func (m *MockHederaMirror) GetAccountDebitTransactionsAfterTimestampString(accountId hedera.AccountID, from string) (*transaction.Response, error)

func (*MockHederaMirror) GetAccountTokenBurnTransactionsAfterTimestamp

func (m *MockHederaMirror) GetAccountTokenBurnTransactionsAfterTimestamp(accountId hedera.AccountID, from int64) (*transaction.Response, error)

func (*MockHederaMirror) GetAccountTokenBurnTransactionsAfterTimestampString

func (m *MockHederaMirror) GetAccountTokenBurnTransactionsAfterTimestampString(accountId hedera.AccountID, from string) (*transaction.Response, error)

func (*MockHederaMirror) GetAccountTokenMintTransactionsAfterTimestamp

func (m *MockHederaMirror) GetAccountTokenMintTransactionsAfterTimestamp(accountId hedera.AccountID, from int64) (*transaction.Response, error)

func (*MockHederaMirror) GetAccountTokenMintTransactionsAfterTimestampString

func (m *MockHederaMirror) GetAccountTokenMintTransactionsAfterTimestampString(accountId hedera.AccountID, from string) (*transaction.Response, error)

func (*MockHederaMirror) GetHBARUsdPrice

func (m *MockHederaMirror) GetHBARUsdPrice() (price decimal.Decimal, err error)

func (*MockHederaMirror) GetLatestMessages

func (m *MockHederaMirror) GetLatestMessages(topicId hedera.TopicID, limit int64) ([]message.Message, error)

func (*MockHederaMirror) GetMessageBySequenceNumber

func (m *MockHederaMirror) GetMessageBySequenceNumber(topicId hedera.TopicID, sequenceNumber int64) (*message.Message, error)

func (*MockHederaMirror) GetMessagesAfterTimestamp

func (m *MockHederaMirror) GetMessagesAfterTimestamp(topicId hedera.TopicID, from int64, limit int64) ([]message.Message, error)

func (*MockHederaMirror) GetMessagesForTopicBetween

func (m *MockHederaMirror) GetMessagesForTopicBetween(topicId hedera.TopicID, from, to int64) ([]message.Message, error)

func (*MockHederaMirror) GetNft

func (m *MockHederaMirror) GetNft(tokenID string, serialNum int64) (*transaction.Nft, error)

func (*MockHederaMirror) GetNftTransactions

func (m *MockHederaMirror) GetNftTransactions(tokenID string, serialNum int64) (transaction.NftTransactionsResponse, error)

func (*MockHederaMirror) GetSchedule

func (m *MockHederaMirror) GetSchedule(scheduleID string) (*transaction.Schedule, error)

func (*MockHederaMirror) GetScheduledTransaction

func (m *MockHederaMirror) GetScheduledTransaction(transactionID string) (*transaction.Response, error)

func (*MockHederaMirror) GetStateProof

func (m *MockHederaMirror) GetStateProof(transactionID string) ([]byte, error)

func (*MockHederaMirror) GetSuccessfulTransaction

func (m *MockHederaMirror) GetSuccessfulTransaction(transactionID string) (transaction.Transaction, error)

GetSuccessfulTransaction gets the success transaction by transaction id or returns an error

func (*MockHederaMirror) GetToken

func (m *MockHederaMirror) GetToken(tokenID string) (*token.TokenResponse, error)

func (*MockHederaMirror) GetTransaction

func (m *MockHederaMirror) GetTransaction(transactionID string) (*transaction.Response, error)

func (*MockHederaMirror) GetTransactionsAfterTimestamp

func (m *MockHederaMirror) GetTransactionsAfterTimestamp(accountId hedera.AccountID, startTimestamp int64, transactionType string) ([]transaction.Transaction, error)

func (*MockHederaMirror) QueryDefaultLimit

func (m *MockHederaMirror) QueryDefaultLimit() int64

func (*MockHederaMirror) QueryMaxLimit

func (m *MockHederaMirror) QueryMaxLimit() int64

func (*MockHederaMirror) TopicExists

func (m *MockHederaMirror) TopicExists(topicID hedera.TopicID) bool

func (*MockHederaMirror) WaitForScheduledTransaction

func (m *MockHederaMirror) WaitForScheduledTransaction(txId string, onSuccess, onFailure func())

func (*MockHederaMirror) WaitForTransaction

func (m *MockHederaMirror) WaitForTransaction(txId string, onSuccess, onFailure func())

type MockHederaNode

type MockHederaNode struct {
	mock.Mock
}

func (*MockHederaNode) GetClient

func (m *MockHederaNode) GetClient() *hedera.Client

func (*MockHederaNode) SubmitScheduleSign

func (m *MockHederaNode) SubmitScheduleSign(scheduleID hedera.ScheduleID) (*hedera.TransactionResponse, error)

func (*MockHederaNode) SubmitScheduledHbarTransferTransaction

func (m *MockHederaNode) SubmitScheduledHbarTransferTransaction(
	transfers []transfer.Hedera,
	payerAccountID hedera.AccountID,
	memo string) (*hedera.TransactionResponse, error)

func (*MockHederaNode) SubmitScheduledNftApproveTransaction

func (m *MockHederaNode) SubmitScheduledNftApproveTransaction(payer hedera.AccountID, memo string, nftId hedera.NftID, owner, spender hedera.AccountID) (*hedera.TransactionResponse, error)

func (*MockHederaNode) SubmitScheduledNftTransferTransaction

func (m *MockHederaNode) SubmitScheduledNftTransferTransaction(nftID hedera.NftID, payerAccount hedera.AccountID, sender hedera.AccountID, receiving hedera.AccountID, memo string, approved bool) (*hedera.TransactionResponse, error)

func (*MockHederaNode) SubmitScheduledTokenBurnTransaction

func (m *MockHederaNode) SubmitScheduledTokenBurnTransaction(id hedera.TokenID, amount int64, account hedera.AccountID, memo string) (*hedera.TransactionResponse, error)

func (*MockHederaNode) SubmitScheduledTokenMintTransaction

func (m *MockHederaNode) SubmitScheduledTokenMintTransaction(tokenID hedera.TokenID, amount int64, payerAccountID hedera.AccountID, memo string) (*hedera.TransactionResponse, error)

func (*MockHederaNode) SubmitScheduledTokenTransferTransaction

func (m *MockHederaNode) SubmitScheduledTokenTransferTransaction(
	tokenID hedera.TokenID,
	transfers []transfer.Hedera,
	payerAccountID hedera.AccountID,
	memo string) (*hedera.TransactionResponse, error)

func (*MockHederaNode) SubmitTopicConsensusMessage

func (m *MockHederaNode) SubmitTopicConsensusMessage(topicId hedera.TopicID, message []byte) (*hedera.TransactionID, error)

func (*MockHederaNode) TransactionReceiptQuery

func (m *MockHederaNode) TransactionReceiptQuery(transactionID hedera.TransactionID, nodeAccIds []hedera.AccountID) (hedera.TransactionReceipt, error)

type MockHttp

type MockHttp struct {
	mock.Mock
}

func (*MockHttp) Do

func (m *MockHttp) Do(req *http.Request) (*http.Response, error)

func (*MockHttp) Get

func (m *MockHttp) Get(url string) (resp *http.Response, err error)

type MockPricingClient

type MockPricingClient struct {
	mock.Mock
}

func (*MockPricingClient) GetUsdPrices

func (m *MockPricingClient) GetUsdPrices(idsByNetworkAndAddress map[uint64]map[string]string) (pricesByNetworkAndAddress map[uint64]map[string]decimal.Decimal, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL