Documentation ¶
Index ¶
- Constants
- func GetDataFromContext(ctx *cli.Context) (int, interface{}, *cli.ExitError)
- func GetSignersAccounts(wall *wallet.Wallet, signers []transaction.Signer) ([]client.SignerAccount, error)
- func GetSignersFromContext(ctx *cli.Context, offset int) ([]transaction.Signer, *cli.ExitError)
- func ParseParams(args []string, calledFromMain bool) (int, []smartcontract.Parameter, error)
Constants ¶
View Source
const ( // CosignersSeparator marks the start of cosigners cli args. CosignersSeparator = "--" // ArrayStartSeparator marks the start of array cli arg. ArrayStartSeparator = "[" // ArrayEndSeparator marks the end of array cli arg. ArrayEndSeparator = "]" )
Variables ¶
This section is empty.
Functions ¶
func GetDataFromContext ¶
GetDataFromContext returns data parameter from context args.
func GetSignersAccounts ¶
func GetSignersAccounts(wall *wallet.Wallet, signers []transaction.Signer) ([]client.SignerAccount, error)
GetSignersAccounts returns the list of signers combined with the corresponding accounts from the provided wallet.
func GetSignersFromContext ¶
GetSignersFromContext returns signers parsed from context args starting from the specified offset.
func ParseParams ¶
ParseParams extracts array of smartcontract.Parameter from the given args and returns the number of handled words, the array itself and an error. `calledFromMain` denotes whether the method was called from the outside or recursively and used to check if CosignersSeparator and ArrayEndSeparator are allowed to be in `args` sequence.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.