Documentation ¶
Index ¶
- func HexStringToByte32Array(str string) ([32]byte, error)
- type BaseTokenSession
- func (ts *BaseTokenSession) Address() common.Address
- func (ts *BaseTokenSession) ApproveSync(spender common.Address, value *big.Int) (*types.Transaction, error)
- func (ts *BaseTokenSession) GetLastTransferValueSync(ctx context.Context, signedTx *types.Transaction) (*big.Int, error)
- func (ts *BaseTokenSession) MintRaw(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (ts *BaseTokenSession) MintRawSync(ctx context.Context, to common.Address, amount *big.Int) (*big.Int, error)
- func (ts *BaseTokenSession) MintSync(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (ts *BaseTokenSession) TransferFromSync(sender common.Address, recipient common.Address, value *big.Int) (*types.Transaction, error)
- func (ts *BaseTokenSession) TransferSync(recipient common.Address, value *big.Int) (*types.Transaction, error)
- type Client
- func (ec *Client) NewBaseTokenSession(ctx context.Context, contractOwnerPrivateKey string, ...) (*BaseTokenSession, error)
- func (ec *Client) NewERC20BridgeSession(ctx context.Context, contractOwnerPrivateKey string, ...) (*ERC20BridgeSession, error)
- func (ec *Client) NewStakingBridgeSession(ctx context.Context, contractOwnerPrivateKey string, ...) (*StakingBridgeSession, error)
- type ERC20BridgeSession
- type StakingBridgeSession
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HexStringToByte32Array ¶
Types ¶
type BaseTokenSession ¶
type BaseTokenSession struct { generated.BaseTokenSession // contains filtered or unexported fields }
func (*BaseTokenSession) Address ¶
func (ts *BaseTokenSession) Address() common.Address
func (*BaseTokenSession) ApproveSync ¶
func (ts *BaseTokenSession) ApproveSync(spender common.Address, value *big.Int) (*types.Transaction, error)
func (*BaseTokenSession) GetLastTransferValueSync ¶
func (ts *BaseTokenSession) GetLastTransferValueSync(ctx context.Context, signedTx *types.Transaction) (*big.Int, error)
func (*BaseTokenSession) MintRaw ¶
func (ts *BaseTokenSession) MintRaw(to common.Address, amount *big.Int) (*types.Transaction, error)
MintRaw is an experimental way of minting new tokens. It attempts to execute an on-chain transaction that runs a Yul script which loops over the "faucet" method until either of the following happens:
- the target balance is reached,
- the caller runs out of gas.
Use this method only if the "mint" contract method is not available, or a non-owner account is the caller.
func (*BaseTokenSession) MintRawSync ¶
func (ts *BaseTokenSession) MintRawSync(ctx context.Context, to common.Address, amount *big.Int) (*big.Int, error)
MintRawSync is an experimental way of minting new tokens. It attempts to execute an on-chain transaction that runs a Yul script which loops over the "faucet" method until either of the following happens:
- the target balance is reached,
- the caller runs out of gas.
Use this method only if the "mint" contract method is not available, or a non-owner account is the caller. The execution time is very slow so the (context) timeout for it should be higher than for other methods.
func (*BaseTokenSession) MintSync ¶
func (ts *BaseTokenSession) MintSync(to common.Address, amount *big.Int) (*types.Transaction, error)
func (*BaseTokenSession) TransferFromSync ¶
func (ts *BaseTokenSession) TransferFromSync(sender common.Address, recipient common.Address, value *big.Int) (*types.Transaction, error)
func (*BaseTokenSession) TransferSync ¶
func (ts *BaseTokenSession) TransferSync(recipient common.Address, value *big.Int) (*types.Transaction, error)
type ERC20BridgeSession ¶
type ERC20BridgeSession struct { generated.ERC20BridgeSession // contains filtered or unexported fields }
func (ERC20BridgeSession) Address ¶
func (bs ERC20BridgeSession) Address() common.Address
func (ERC20BridgeSession) DepositAssetSync ¶
func (bs ERC20BridgeSession) DepositAssetSync(asset_source common.Address, amount *big.Int, vega_public_key [32]byte) (*types.Transaction, error)
type StakingBridgeSession ¶
type StakingBridgeSession struct { generated.StakingBridgeSession // contains filtered or unexported fields }
func (StakingBridgeSession) Address ¶
func (ss StakingBridgeSession) Address() common.Address