Documentation ¶
Index ¶
- Constants
- Variables
- func SetBaseFee(bf *big.Int)
- func SetChainID(id *big.Int)
- func SetGasPrice(gp *big.Int)
- func TransferUnsignedTx(c *client.Client, from common.Address, to common.Address, value *big.Int) (common.Hash, error)
- func UnlockAccount(c *client.Client, addr common.Address, pwd string)
- type AccGroup
- type AccLoader
- type AccMgr
- type Account
- func GetAccountFromKey(id int, key string) *Account
- func NewAccount(id int) *Account
- func NewAccountOnNode(id int, endpoint string) *Account
- func NewAccountOnly(id int) *Account
- func NewKlaytnAccount(id int) *Account
- func NewKlaytnAccountWithAddr(id int, addr common.Address) *Account
- func NewKlaytnMultisigAccount(id int) *Account
- func (self *Account) AddMinter(c *client.Client, minterCandidate *Account, smartContractAddr common.Address) (*types.Transaction, error)
- func (a *Account) CheckBalance(expectedBalance *big.Int, cli *client.Client) error
- func (self *Account) DeployERC20(c *client.Client, to *Account, value *big.Int, humanReadable bool) (common.Address, *types.Transaction, *big.Int, error)
- func (self *Account) DeployERC721(c *client.Client, to *Account, value *big.Int, humanReadable bool) (common.Address, *types.Transaction, *big.Int, error)
- func (self *Account) DeployStorageTrieWrite(c *client.Client, to *Account, value *big.Int, humanReadable bool) (common.Address, *types.Transaction, *big.Int, error)
- func (self *Account) ExecuteStorageTrieStore(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (acc *Account) GetAddress() common.Address
- func (a *Account) GetBalance(c *client.Client) (*big.Int, error)
- func (acc *Account) GetKey() *ecdsa.PrivateKey
- func (acc *Account) GetNonce(c *client.Client) uint64
- func (acc *Account) GetNonceFromBlock(c *client.Client) uint64
- func (acc *Account) GetPrivateKey() string
- func (a *Account) GetReceipt(c *client.Client, txHash common.Hash) (*types.Receipt, error)
- func (account *Account) ImportUnLockAccount(endpoint string)
- func (acc *Account) Lock()
- func (self *Account) MintERC721ToTestAccounts(c *client.Client, accGrp []*Account, smartContractAddr common.Address, ...)
- func (self *Account) TransferERC20(initialCharge bool, c *client.Client, tokenContractAddr common.Address, ...) (*types.Transaction, *big.Int, error)
- func (self *Account) TransferERC721(initialCharge bool, c *client.Client, tokenContractAddr common.Address, ...) (*types.Transaction, *big.Int, error)
- func (self *Account) TransferNewAccountCreationTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewAccountUpdateTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewCancelTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewEthAccessListTxWithEth(c *client.Client, endpoint string, to *Account, value *big.Int, input string, ...) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewEthDynamicFeeTxWithEth(c *client.Client, endpoint string, to *Account, value *big.Int, input string, ...) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewEthereumAccessListTx(c *client.Client, to *Account, value *big.Int, input []byte) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewEthereumDynamicFeeTx(c *client.Client, to *Account, value *big.Int, input []byte) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewFeeDelegatedAccountUpdateTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewFeeDelegatedAccountUpdateWithRatioTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewFeeDelegatedCancelTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewFeeDelegatedCancelWithRatioTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewFeeDelegatedSmartContractDeployTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewFeeDelegatedSmartContractDeployWithRatioTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewFeeDelegatedSmartContractExecutionTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewFeeDelegatedSmartContractExecutionWithRatioTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewFeeDelegatedValueTransferMemoTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewFeeDelegatedValueTransferMemoWithRatioTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewFeeDelegatedValueTransferTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewFeeDelegatedValueTransferWithRatioTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewLegacyTxWithEth(c *client.Client, endpoint string, to *Account, value *big.Int, input string, ...) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewSmartContractDeployTx(c *client.Client, to *Account, value *big.Int) (common.Address, *types.Transaction, *big.Int, error)
- func (self *Account) TransferNewSmartContractDeployTxHumanReadable(c *client.Client, to *Account, value *big.Int, humanReadable bool) (common.Address, *types.Transaction, *big.Int, error)
- func (self *Account) TransferNewSmartContractExecutionTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewValueTransferBigRandomStringMemoTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewValueTransferLargeMemoTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewValueTransferMemoTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewValueTransferSmallMemoTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewValueTransferTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferNewValueTransferWithCancelTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferSignedTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferSignedTxReturnTx(withLock bool, c *client.Client, to *Account, value *big.Int) (*types.Transaction, *big.Int, error)
- func (self *Account) TransferSignedTxWithoutLock(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
- func (self *Account) TransferUnsignedTx(c *client.Client, to *Account, value *big.Int) (common.Hash, error)
- func (acc *Account) UnLock()
- func (acc *Account) UpdateNonce()
Constants ¶
View Source
const Letters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
Variables ¶
View Source
var AlreadyDeployedErr = errors.New("contract seems to already have been deployed")
View Source
var ERC721Ledger map[common.Address]chan *big.Int // each index indicates ERC721 tokens, which the corresponding account in accGrp owns
Functions ¶
func SetBaseFee ¶
func SetChainID ¶
func SetGasPrice ¶
func TransferUnsignedTx ¶
Types ¶
type AccMgr ¶
type AccMgr struct {
// contains filtered or unexported fields
}
func (*AccMgr) BuildAccount ¶
func (*AccMgr) ChargeAccounts ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func GetAccountFromKey ¶
func NewAccount ¶
func NewAccountOnNode ¶
func NewAccountOnly ¶
func NewKlaytnAccount ¶
func (*Account) CheckBalance ¶
func (*Account) DeployERC20 ¶
func (*Account) DeployERC721 ¶
func (*Account) DeployStorageTrieWrite ¶
func (*Account) ExecuteStorageTrieStore ¶
func (*Account) GetAddress ¶
func (*Account) GetKey ¶
func (acc *Account) GetKey() *ecdsa.PrivateKey
func (*Account) GetPrivateKey ¶
func (*Account) GetReceipt ¶
func (*Account) ImportUnLockAccount ¶
func (*Account) MintERC721ToTestAccounts ¶
func (*Account) TransferERC20 ¶
func (*Account) TransferERC721 ¶
func (*Account) TransferNewAccountCreationTx ¶
func (*Account) TransferNewAccountUpdateTx ¶
func (*Account) TransferNewCancelTx ¶
func (*Account) TransferNewEthAccessListTxWithEth ¶
func (*Account) TransferNewEthDynamicFeeTxWithEth ¶
func (*Account) TransferNewEthereumAccessListTx ¶
func (*Account) TransferNewEthereumDynamicFeeTx ¶
func (*Account) TransferNewFeeDelegatedAccountUpdateTx ¶
func (*Account) TransferNewFeeDelegatedAccountUpdateWithRatioTx ¶
func (*Account) TransferNewFeeDelegatedCancelTx ¶
func (*Account) TransferNewFeeDelegatedCancelWithRatioTx ¶
func (*Account) TransferNewFeeDelegatedSmartContractDeployTx ¶
func (*Account) TransferNewFeeDelegatedSmartContractDeployWithRatioTx ¶
func (*Account) TransferNewFeeDelegatedSmartContractExecutionTx ¶
func (*Account) TransferNewFeeDelegatedSmartContractExecutionWithRatioTx ¶
func (*Account) TransferNewFeeDelegatedValueTransferMemoTx ¶
func (*Account) TransferNewFeeDelegatedValueTransferMemoWithRatioTx ¶
func (*Account) TransferNewFeeDelegatedValueTransferTx ¶
func (*Account) TransferNewFeeDelegatedValueTransferWithRatioTx ¶
func (*Account) TransferNewLegacyTxWithEth ¶
func (*Account) TransferNewSmartContractDeployTx ¶
func (*Account) TransferNewSmartContractDeployTxHumanReadable ¶
func (*Account) TransferNewSmartContractExecutionTx ¶
func (*Account) TransferNewValueTransferBigRandomStringMemoTx ¶
func (*Account) TransferNewValueTransferLargeMemoTx ¶
func (self *Account) TransferNewValueTransferLargeMemoTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
create 2000 strings of memo
func (*Account) TransferNewValueTransferMemoTx ¶
func (*Account) TransferNewValueTransferSmallMemoTx ¶
func (self *Account) TransferNewValueTransferSmallMemoTx(c *client.Client, to *Account, value *big.Int) (common.Hash, *big.Int, error)
create 200 strings of memo
func (*Account) TransferNewValueTransferTx ¶
func (*Account) TransferNewValueTransferWithCancelTx ¶
func (*Account) TransferSignedTx ¶
func (*Account) TransferSignedTxReturnTx ¶
func (*Account) TransferSignedTxWithoutLock ¶
func (*Account) TransferUnsignedTx ¶
func (*Account) UpdateNonce ¶
func (acc *Account) UpdateNonce()
Click to show internal directories.
Click to hide internal directories.