Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CeloMethodToRegistryKey = map[*CeloMethod]*wrapper.RegistryKey{ &CreateAccount: &wrapper.AccountsRegistryId, &LockGold: &wrapper.LockedGoldRegistryId, &UnlockGold: &wrapper.LockedGoldRegistryId, &RelockGold: &wrapper.LockedGoldRegistryId, &WithdrawGold: &wrapper.LockedGoldRegistryId, &Vote: &wrapper.ElectionRegistryId, &ActivateVotes: &wrapper.ElectionRegistryId, &RevokePendingVotes: &wrapper.ElectionRegistryId, &RevokeActiveVotes: &wrapper.ElectionRegistryId, } )
Functions ¶
This section is empty.
Types ¶
type CeloMethod ¶
type CeloMethod string
var ( CreateAccount CeloMethod = "createAccount" LockGold CeloMethod = "lock" UnlockGold CeloMethod = "unlock" RelockGold CeloMethod = "relock" WithdrawGold CeloMethod = "withdraw" Vote CeloMethod = "vote" ActivateVotes CeloMethod = "activate" RevokePendingVotes CeloMethod = "revokePending" RevokeActiveVotes CeloMethod = "revokeActive" )
values taken from contract method names for ABI usage
func (CeloMethod) String ¶
func (tt CeloMethod) String() string
type GenericMetadata ¶
type GenericMetadata struct {
From common.Address
Nonce uint64 `json:"nonce" `
GasPrice *big.Int `json:"gasPrice"`
GatewayFeeRecipient *common.Address `json:"gatewayFeeRecipient" rlp:"nil"` // nil means no gateway fee is paid
GatewayFee *big.Int `json:"gatewayFee" rlp:"nil"` // nil means no gateway fee is paid
}
[note]: non cGLD fee currencies currently unsupported
type OfflineBuilder ¶
type OfflineBuilder struct {
// contains filtered or unexported fields
}
func NewOfflineBuilder ¶
func NewOfflineBuilder() *OfflineBuilder
type OnlineBuilder ¶
type OnlineBuilder struct {
*OfflineBuilder
// contains filtered or unexported fields
}
func NewOnlineBuilder ¶
func NewOnlineBuilder(client *client.CeloClient) (*OnlineBuilder, error)
func (*OnlineBuilder) FetchTransactionMetadata ¶
func (b *OnlineBuilder) FetchTransactionMetadata(ctx context.Context, options *TransactionOptions) (*TransactionMetadata, error)
type TransactionMetadata ¶
type TransactionMetadata struct {
Generic *GenericMetadata
To *common.Address
Value *big.Int
Gas uint64
Data []byte
}
func (*TransactionMetadata) AsTransaction ¶
func (tm *TransactionMetadata) AsTransaction() *types.Transaction
type TransactionOptions ¶
Click to show internal directories.
Click to hide internal directories.