Documentation
¶
Index ¶
- type AccessKeyFunctionCallPermission
- type AccessKeyPermission
- type Action
- func NewAddKey(publicKey key.PublicKey, nonce types.Nonce, permission AccessKeyPermission) Action
- func NewCreateAccount() Action
- func NewDeleteAccount(beneficiaryID types.AccountID) Action
- func NewDeleteKey(publicKey key.PublicKey) Action
- func NewDeployContract(code []byte) Action
- func NewFunctionCall(methodName string, args []byte, gas types.Gas, deposit types.Balance) Action
- func NewStake(stake types.Balance, publicKey key.PublicKey) Action
- func NewTransfer(deposit types.Balance) Action
- type ActionAddKey
- type ActionAddKeyAccessKey
- type ActionCreateAccount
- type ActionDeleteAccount
- type ActionDeleteKey
- type ActionDeployContract
- type ActionFunctionCall
- type ActionStake
- type ActionTransfer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessKeyFunctionCallPermission ¶
type AccessKeyFunctionCallPermission struct { Allowance *types.Balance `json:"allowance"` ReceiverID types.AccountID `json:"receiver_id"` MethodNames []string `json:"method_names"` }
func (AccessKeyFunctionCallPermission) String ¶
func (a AccessKeyFunctionCallPermission) String() string
type AccessKeyPermission ¶
type AccessKeyPermission struct { Enum borsh.Enum `borsh_enum:"true"` FunctionCallPermission AccessKeyFunctionCallPermission FullAccessPermission struct{} }
func NewFullAccessPermission ¶
func NewFullAccessPermission() AccessKeyPermission
func NewFunctionCallUnlimitedAllowancePermission ¶
func NewFunctionCallUnlimitedAllowancePermission(receiverID types.AccountID, methodNames []string) AccessKeyPermission
func (*AccessKeyPermission) IsFullAccess ¶
func (a *AccessKeyPermission) IsFullAccess() bool
func (*AccessKeyPermission) IsFunctionCall ¶
func (a *AccessKeyPermission) IsFunctionCall() bool
func (AccessKeyPermission) MarshalJSON ¶
func (a AccessKeyPermission) MarshalJSON() (b []byte, err error)
func (AccessKeyPermission) String ¶
func (a AccessKeyPermission) String() string
func (*AccessKeyPermission) UnmarshalJSON ¶
func (a *AccessKeyPermission) UnmarshalJSON(b []byte) (err error)
type Action ¶
type Action struct { Enum borsh.Enum `borsh_enum:"true"` CreateAccount ActionCreateAccount DeployContract ActionDeployContract FunctionCall ActionFunctionCall Transfer ActionTransfer Stake ActionStake AddKey ActionAddKey DeleteKey ActionDeleteKey DeleteAccount ActionDeleteAccount }
func NewCreateAccount ¶
func NewCreateAccount() Action
Create an (sub)account using a transaction `receiver_id` as an ID for a new account
func NewDeleteAccount ¶
func NewDeleteKey ¶
func NewDeployContract ¶
func NewFunctionCall ¶
func NewTransfer ¶
func (*Action) DepositBalance ¶
func (*Action) PrepaidGas ¶
func (*Action) UnderlyingValue ¶
func (a *Action) UnderlyingValue() interface{}
func (*Action) UnmarshalJSON ¶
type ActionAddKey ¶
type ActionAddKey struct { PublicKey key.PublicKey `json:"public_key"` AccessKey ActionAddKeyAccessKey `json:"access_key"` }
func (ActionAddKey) MarshalJSON ¶
func (a ActionAddKey) MarshalJSON() (b []byte, err error)
func (*ActionAddKey) UnmarshalJSON ¶
func (a *ActionAddKey) UnmarshalJSON(b []byte) (err error)
type ActionAddKeyAccessKey ¶
type ActionAddKeyAccessKey struct { Nonce types.Nonce `json:"nonce"` Permission AccessKeyPermission `json:"permission"` }
type ActionCreateAccount ¶
type ActionCreateAccount struct { }
type ActionDeleteAccount ¶
type ActionDeleteKey ¶
func (ActionDeleteKey) MarshalJSON ¶
func (a ActionDeleteKey) MarshalJSON() (b []byte, err error)
func (*ActionDeleteKey) UnmarshalJSON ¶
func (a *ActionDeleteKey) UnmarshalJSON(b []byte) (err error)
type ActionDeployContract ¶
type ActionDeployContract struct {
Code []byte `json:"code"`
}
type ActionFunctionCall ¶
type ActionFunctionCall struct { MethodName string `json:"method_name"` Args []byte `json:"args"` Gas types.Gas `json:"gas"` Deposit types.Balance `json:"deposit"` }
func (ActionFunctionCall) String ¶
func (f ActionFunctionCall) String() string
type ActionStake ¶
type ActionTransfer ¶
func (ActionTransfer) String ¶
func (t ActionTransfer) String() string
Click to show internal directories.
Click to hide internal directories.