Documentation
¶
Index ¶
- type BlockResp
- type Client
- func (c *Client) Address() (string, string, error)
- func (c *Client) Balance(addr string) (*big.Int, error)
- func (c *Client) BlockByNumber(blockNumber int64) (*zktypes.Block, error)
- func (c *Client) ChainID() uint64
- func (c *Client) ConvertAddressForIn(addr string) string
- func (c *Client) ConvertAddressForOut(addr string) string
- func (c *Client) DeployContract(prkHex string, dataBin string, contructorHex string) (string, string, error)
- func (c *Client) DeployTransparentUpgradeableProxy(prkHex string, logic common.Address, admin common.Address, data []byte) (string, string, error)
- func (c *Client) Erc1155SetApprovalForAll(erc1155Addr string, prkHex string, toAddr string, wait bool) (string, error)
- func (c *Client) Erc1155Transfer(erc20Addr string, prkHex string, toAddr string, tokenId string, ...) (string, error)
- func (c *Client) Erc20Allowance(erc20Addr string, addr string, spender string) (*big.Int, error)
- func (c *Client) Erc20ApproveMax(erc20Addr string, prkHex string, toAddr string, wait bool) (string, error)
- func (c *Client) Erc20Balance(erc20Addr string, addr string) (*big.Int, error)
- func (c *Client) Erc20Info(erc20Addr string) (*Erc20InfoResp, error)
- func (c *Client) Erc20Symbol(erc20Addr string) (string, error)
- func (c *Client) Erc20Transfer(erc20Addr string, prkHex string, toAddr string, amount *big.Int) (string, error)
- func (c *Client) Erc721Transfer(contractAddr string, prkHex string, toAddr string, tokenId *big.Int) (string, error)
- func (c *Client) GetCachedGasPriceAndTipCap() (*big.Int, *big.Int, error)
- func (c *Client) GetChainID() (uint64, error)
- func (c *Client) GetLastBlockNumber() (int64, error)
- func (c *Client) GetPaymasterParams() (*zktypes.PaymasterParams, error)
- func (c *Client) GetPaymasterParamsWithFee(fee *big.Int) (*zktypes.PaymasterParams, error)
- func (c *Client) HybridModelInfer(contractAddress string, prkHex string, inferData string) (string, error)
- func (c *Client) ImageHubChargeSubscription(contractAddress string, prkHex string, userAddress string, ...) (string, error)
- func (c *Client) InscribeTxs(txHashs []string) (string, error)
- func (c *Client) NftOwnerOf(nftAddr string, tokenID string) (string, error)
- func (c *Client) PaymasterParams() *zktypes.PaymasterParams
- func (c *Client) PopulateTransaction(ctx context.Context, address common.Address, tx accounts.Transaction) (*zktypes.Transaction712, error)
- func (c *Client) SetPaymasterParams(tx *accounts.Transaction) error
- func (c *Client) SignTransaction(signer accounts.Signer, tx *zktypes.Transaction712) ([]byte, error)
- func (c *Client) SystemPromptManagerInfer(contractAddress string, prkHex string, agentId int64, inferData string, ...) (string, error)
- func (c *Client) SystemPromptManagerMint(contractAddress string, prkHex string, to common.Address, uri string, ...) (string, error)
- func (c *Client) Transact(contractAddr string, prkHex string, dataBytes []byte, value *big.Int) (string, error)
- func (c *Client) TransactionConfirmed(hash string) error
- func (c *Client) Transfer(prkHex string, toAddr string, amount string, includeFee bool, wait bool) (string, error)
- func (c *Client) ValidateMessageSignature(msg string, signatureHex string, signer string) error
- func (c *Client) WaitMined(hash string) error
- func (c *Client) ZksyncNonfungiblePositionManagerMint(contractAddr string, privateHex string, weth9 common.Address, ...) (string, error)
- type Erc20InfoResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { evmapi.BaseClient BaseURL string BlockMap map[uint64]*BlockResp BlockMapMtx sync.Mutex MinGasPrice string PaymasterFeeZero bool PaymasterAddress string PaymasterToken string // contains filtered or unexported fields }
func (*Client) BlockByNumber ¶
func (*Client) ConvertAddressForIn ¶
func (*Client) ConvertAddressForOut ¶
func (*Client) DeployContract ¶
func (*Client) DeployTransparentUpgradeableProxy ¶
func (*Client) Erc1155SetApprovalForAll ¶
func (*Client) Erc1155Transfer ¶
func (*Client) Erc20Allowance ¶
func (*Client) Erc20ApproveMax ¶
func (*Client) Erc20Balance ¶
func (*Client) Erc20Transfer ¶
func (*Client) Erc721Transfer ¶
func (*Client) GetCachedGasPriceAndTipCap ¶
func (*Client) GetChainID ¶
func (*Client) GetLastBlockNumber ¶
func (*Client) GetPaymasterParams ¶
func (c *Client) GetPaymasterParams() (*zktypes.PaymasterParams, error)
func (*Client) GetPaymasterParamsWithFee ¶
func (*Client) HybridModelInfer ¶
func (*Client) ImageHubChargeSubscription ¶
func (*Client) NftOwnerOf ¶
func (*Client) PaymasterParams ¶
func (c *Client) PaymasterParams() *zktypes.PaymasterParams
func (*Client) PopulateTransaction ¶
func (c *Client) PopulateTransaction(ctx context.Context, address common.Address, tx accounts.Transaction) (*zktypes.Transaction712, error)
func (*Client) SetPaymasterParams ¶
func (c *Client) SetPaymasterParams(tx *accounts.Transaction) error
func (*Client) SignTransaction ¶
func (*Client) SystemPromptManagerInfer ¶
func (*Client) SystemPromptManagerMint ¶
func (*Client) TransactionConfirmed ¶
func (*Client) ValidateMessageSignature ¶
func (*Client) ZksyncNonfungiblePositionManagerMint ¶
Click to show internal directories.
Click to hide internal directories.