Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetChainClient ¶
func GetChainClient() *primitive_backend.ApiClient
func MakePrimitiveContracts ¶
func MakePrimitiveContracts(contractClient bind.ContractBackend, chainClient *primitive_backend.ApiClient) map[common.Address]vm.PrimitiveContract
func RegisterPrimitiveContracts ¶
func RegisterPrimitiveContracts()
Types ¶
type ContractAPI ¶
type ContractAPI interface { CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error) CallContract(ctx context.Context, call cpchain.CallMsg, blockNumber *big.Int) ([]byte, error) PendingCodeAt(ctx context.Context, contract common.Address) ([]byte, error) PendingCallContract(ctx context.Context, call cpchain.CallMsg) ([]byte, error) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error) SuggestGasPrice(ctx context.Context) (*big.Int, error) EstimateGas(ctx context.Context, call cpchain.CallMsg) (gas uint64, err error) SendTransaction(ctx context.Context, tx *types.Transaction) error FilterLogs(ctx context.Context, query cpchain.FilterQuery) ([]types.Log, error) SubscribeFilterLogs(ctx context.Context, query cpchain.FilterQuery, ch chan<- types.Log) (cpchain.Subscription, error) }
this ContractAPI only use read contract can't Write or Event filtering
Click to show internal directories.
Click to hide internal directories.