Documentation ¶
Index ¶
- func CleanupCreationByteCode(bytecode string) string
- func ConfirmContractDeployed(ctx context.Context, client bind.DeployBackend, tx *ethTypes.Transaction, ...) error
- func EtherToWei(eth *big.Float) *big.Int
- func GetByteCodeHash(byteCode []byte) (*string, error)
- func GetGoBindings(abi string, pkgName string, creationHexByteCode string) (*string, error)
- func GetNextNonce(ethClient *ethclient.Client, privateKey *ecdsa.PrivateKey) (uint64, error)
- func GetTransactOpts(ethClient *ethclient.Client, privateKey *ecdsa.PrivateKey) (*bind.TransactOpts, error)
- func GetTransactOptsWithNonce(ethClient *ethclient.Client, privateKey *ecdsa.PrivateKey, nonce uint64) (*bind.TransactOpts, error)
- func PullAndStoreSmartContractImmutableData(hexAddress string, ethNetwork types.ETHNetwork, name string, dir string, ...) error
- func TimestampNonce() uint64
- func TokenFromFullTokens(amount *big.Float, decimals uint8) *big.Int
- func TokenToFullTokens(amount *big.Int, decimals uint8) *big.Float
- func TransferEth(ethClient *ethclient.Client, fromPrivateKey *ecdsa.PrivateKey, ...) error
- func TransferEthNoWait(ethClient *ethclient.Client, fromPrivateKey *ecdsa.PrivateKey, ...) (*ethTypes.Transaction, error)
- func TransferEthNoWaitWithNonce(ethClient *ethclient.Client, fromPrivateKey *ecdsa.PrivateKey, ...) (*ethTypes.Transaction, error)
- func VegaPubKeyToByte32(pubKey string) (byte32PubKey [32]byte, err error)
- func VegaTokenFromFullTokens(amount *big.Float) *big.Int
- func VegaTokenToFullTokens(amount *big.Int) *big.Float
- func WaitForTransaction(ethClient *ethclient.Client, tx *types.Transaction, timeout time.Duration) error
- func WeiToEther(wei *big.Int) *big.Float
- type EthereumClientManager
- func (m *EthereumClientManager) GetEthClient(ethNetwork types.ETHNetwork) (*ethclient.Client, error)
- func (m *EthereumClientManager) GetEthereumURL(ethNetwork types.ETHNetwork) (string, error)
- func (m *EthereumClientManager) GetEtherscanClient(ethNetwork types.ETHNetwork) (*etherscan.EtherscanClient, error)
- type SmartContractImmutableData
- type TransactionData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupCreationByteCode ¶
func ConfirmContractDeployed ¶
func ConfirmContractDeployed( ctx context.Context, client bind.DeployBackend, tx *ethTypes.Transaction, address common.Address, ) error
func GetByteCodeHash ¶
func GetGoBindings ¶
func GetNextNonce ¶
func GetTransactOpts ¶
func GetTransactOpts( ethClient *ethclient.Client, privateKey *ecdsa.PrivateKey, ) (*bind.TransactOpts, error)
func GetTransactOptsWithNonce ¶
func GetTransactOptsWithNonce( ethClient *ethclient.Client, privateKey *ecdsa.PrivateKey, nonce uint64, ) (*bind.TransactOpts, error)
func PullAndStoreSmartContractImmutableData ¶
func PullAndStoreSmartContractImmutableData( hexAddress string, ethNetwork types.ETHNetwork, name string, dir string, ethereumClientManager *EthereumClientManager, ) error
func TimestampNonce ¶
func TimestampNonce() uint64
func TransferEth ¶
func TransferEthNoWait ¶
func VegaPubKeyToByte32 ¶
func WaitForTransaction ¶
Types ¶
type EthereumClientManager ¶
type EthereumClientManager struct {
// contains filtered or unexported fields
}
func NewEthereumClientManager ¶
func NewEthereumClientManager( serviceSecrets secrets.ServiceSecretStore, ) *EthereumClientManager
func (*EthereumClientManager) GetEthClient ¶
func (m *EthereumClientManager) GetEthClient(ethNetwork types.ETHNetwork) (*ethclient.Client, error)
func (*EthereumClientManager) GetEthereumURL ¶
func (m *EthereumClientManager) GetEthereumURL(ethNetwork types.ETHNetwork) (string, error)
func (*EthereumClientManager) GetEtherscanClient ¶
func (m *EthereumClientManager) GetEtherscanClient(ethNetwork types.ETHNetwork) (*etherscan.EtherscanClient, error)
type SmartContractImmutableData ¶
type SmartContractImmutableData struct { SourceCode map[string]string Name string ByteCode []byte ByteCodeHash string CreationHexByteCode string ABI string GoBindings string DownloadURL string }
func PullSmartContractImmutableData ¶
func PullSmartContractImmutableData( ethClient *ethclient.Client, etherscanClient *etherscan.EtherscanClient, name string, hexAddress string, ) (*SmartContractImmutableData, error)
type TransactionData ¶
type TransactionData struct {
// contains filtered or unexported fields
}
func GetNextTransactionData ¶
func GetNextTransactionData(ethClient *ethclient.Client) (*TransactionData, error)
Get post London Fork transaction data
Click to show internal directories.
Click to hide internal directories.