Documentation
¶
Index ¶
- type GasData
- type ObjectStringRef
- type Transaction
- func (txb *Transaction) Build(sender string) (*sui_types.TransactionData, []byte, error)
- func (txb *Transaction) Client() *client.SuiClient
- func (txb *Transaction) Context() context.Context
- func (txb *Transaction) DevInspectTransactionBlock() (*types.DevInspectResults, error)
- func (txb *Transaction) DryRunTransactionBlock() (*types.DryRunTransactionBlockResponse, error)
- func (txb *Transaction) Gas() *TransactionInputGasCoin
- func (txb *Transaction) MergeCoins(destination interface{}, sources []interface{}) (err error)
- func (txb *Transaction) MoveCall(target string, arguments []interface{}, typeArguments []string) (returnArguments []*sui_types.Argument, err error)
- func (txb *Transaction) SetGasBudget(budget uint64)
- func (txb *Transaction) SetGasBudgetIfNotSet(budget uint64)
- func (txb *Transaction) SetGasOwner(owner string)
- func (txb *Transaction) SetGasPayment(payments []*sui_types.ObjectRef)
- func (txb *Transaction) SetGasPrice(price uint64)
- func (txb *Transaction) SetSender(sender string)
- func (txb *Transaction) SetSenderIfNotSet(sender string)
- func (txb *Transaction) SplitCoins(coin interface{}, amounts []interface{}) (returnArguments []*sui_types.Argument, err error)
- func (txb *Transaction) TransactionBuilder() *sui_types.ProgrammableTransactionBuilder
- func (txb *Transaction) TransferObjects(objects []interface{}, address interface{}) error
- type TransactionInputGasCoin
- type UnresolvedArgument
- type UnresolvedArguments
- type UnresolvedObject
- type UnresolvedParameter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectStringRef ¶
type ObjectStringRef struct {
ObjectId string `json:"objectId"`
Version string `json:"version"`
Digest string `json:"digest"`
}
func (ObjectStringRef) ToObjectRef ¶ added in v0.0.35
func (ref ObjectStringRef) ToObjectRef() (*sui_types.ObjectRef, error)
type Transaction ¶
type Transaction struct {
Sender *sui_types.SuiAddress `json:"sender"`
GasConfig *GasData `json:"gasConfig"`
// contains filtered or unexported fields
}
func NewTransaction ¶
func NewTransaction(client *client.SuiClient) *Transaction
func (*Transaction) Build ¶
func (txb *Transaction) Build(sender string) (*sui_types.TransactionData, []byte, error)
func (*Transaction) Client ¶
func (txb *Transaction) Client() *client.SuiClient
func (*Transaction) Context ¶
func (txb *Transaction) Context() context.Context
func (*Transaction) DevInspectTransactionBlock ¶
func (txb *Transaction) DevInspectTransactionBlock() (*types.DevInspectResults, error)
func (*Transaction) DryRunTransactionBlock ¶
func (txb *Transaction) DryRunTransactionBlock() (*types.DryRunTransactionBlockResponse, error)
func (*Transaction) Gas ¶
func (txb *Transaction) Gas() *TransactionInputGasCoin
func (*Transaction) MergeCoins ¶
func (txb *Transaction) MergeCoins(destination interface{}, sources []interface{}) (err error)
Merge Coins into one
func (*Transaction) SetGasBudget ¶
func (txb *Transaction) SetGasBudget(budget uint64)
func (*Transaction) SetGasBudgetIfNotSet ¶
func (txb *Transaction) SetGasBudgetIfNotSet(budget uint64)
func (*Transaction) SetGasOwner ¶
func (txb *Transaction) SetGasOwner(owner string)
func (*Transaction) SetGasPayment ¶
func (txb *Transaction) SetGasPayment(payments []*sui_types.ObjectRef)
func (*Transaction) SetGasPrice ¶
func (txb *Transaction) SetGasPrice(price uint64)
func (*Transaction) SetSender ¶
func (txb *Transaction) SetSender(sender string)
func (*Transaction) SetSenderIfNotSet ¶
func (txb *Transaction) SetSenderIfNotSet(sender string)
func (*Transaction) SplitCoins ¶
func (txb *Transaction) SplitCoins(coin interface{}, amounts []interface{}) (returnArguments []*sui_types.Argument, err error)
Split coins into multiple parts
func (*Transaction) TransactionBuilder ¶
func (txb *Transaction) TransactionBuilder() *sui_types.ProgrammableTransactionBuilder
func (*Transaction) TransferObjects ¶
func (txb *Transaction) TransferObjects(objects []interface{}, address interface{}) error
Transfer objects to address
type TransactionInputGasCoin ¶
type TransactionInputGasCoin struct {
GasCoin bool `json:"gasCoin"`
}
type UnresolvedArgument ¶
type UnresolvedArguments ¶
type UnresolvedArguments []*UnresolvedArgument
type UnresolvedObject ¶
type UnresolvedParameter ¶
type UnresolvedParameter struct {
Arguments UnresolvedArguments `json:"argument"`
Objects map[int]UnresolvedObject `json:"object"` // map key is index of argument
}
func NewUnresolvedParameter ¶
func NewUnresolvedParameter(count int) *UnresolvedParameter
Click to show internal directories.
Click to hide internal directories.