Documentation
¶
Index ¶
- func AlphabetEmit(cli *client.Client, con util.Uint160) error
- func AlphabetIndex(cli *client.Client, key *ecdsa.PublicKey) (int32, error)
- func AlphabetUpdate(cli *client.Client, con util.Uint160, fee MainFeeProvider, id []byte, ...) error
- func AlphabetVote(cli *client.Client, con util.Uint160, fee SideFeeProvider, epoch uint64, ...) error
- func ApprovePeer(cli *client.Client, con util.Uint160, fee SideFeeProvider, peer []byte) error
- func BalancePrecision(cli *client.Client, con util.Uint160) (uint32, error)
- func Burn(cli *client.Client, con util.Uint160, fee SideFeeProvider, p *MintBurnParams) error
- func CashOutCheque(cli *client.Client, con util.Uint160, fee MainFeeProvider, p *ChequeParams) error
- func Epoch(cli *client.Client, con util.Uint160) (int64, error)
- func InnerRingIndex(cli *client.Client, key *ecdsa.PublicKey) (int32, int32, error)
- func LockAsset(cli *client.Client, con util.Uint160, fee SideFeeProvider, p *LockParams) error
- func Mint(cli *client.Client, con util.Uint160, fee SideFeeProvider, p *MintBurnParams) error
- func NetmapSnapshot(cli *client.Client, con util.Uint160) (*netmap.Netmap, error)
- func NewAuditClient(cli *client.Client, contract util.Uint160, fee SideFeeProvider) (*auditWrapper.ClientWrapper, error)
- func NewBalanceClient(cli *client.Client, contract util.Uint160, fee SideFeeProvider) (*balanceWrapper.Wrapper, error)
- func NewContainerClient(cli *client.Client, contract util.Uint160, fee SideFeeProvider) (*wrapContainer.Wrapper, error)
- func NewNetmapClient(cli *client.Client, contract util.Uint160, fee SideFeeProvider) (*wrapNetmap.Wrapper, error)
- func NewReputationClient(cli *client.Client, contract util.Uint160, fee SideFeeProvider) (*reputationWrapper.ClientWrapper, error)
- func RegisterContainer(cli *client.Client, con util.Uint160, fee SideFeeProvider, p *ContainerParams) error
- func RemoveContainer(cli *client.Client, con util.Uint160, fee SideFeeProvider, ...) error
- func SetConfig(cli *client.Client, con util.Uint160, fee SideFeeProvider, args *SetConfigArgs) error
- func SetInnerRing(cli *client.Client, con util.Uint160, fee SideFeeProvider, ...) error
- func SetNewEpoch(cli *client.Client, con util.Uint160, fee SideFeeProvider, epoch uint64) error
- func UpdatePeerState(cli *client.Client, con util.Uint160, fee SideFeeProvider, ...) error
- type ChequeParams
- type ContainerParams
- type LockParams
- type MainFeeProvider
- type MintBurnParams
- type RemoveContainerParams
- type SetConfigArgs
- type SideFeeProvider
- type UpdatePeerArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlphabetEmit ¶ added in v0.12.0
AlphabetEmit invokes emit method on alphabet contract.
func AlphabetIndex ¶ added in v0.18.0
AlphabetIndex returns index of the `key` in the alphabet key list from sidechain If key is not in the inner ring list, then returns `-1` as index.
func AlphabetUpdate ¶ added in v0.18.0
func AlphabetUpdate(cli *client.Client, con util.Uint160, fee MainFeeProvider, id []byte, list keys.PublicKeys) error
AlphabetUpdate invokes alphabetUpdate method.
func AlphabetVote ¶ added in v0.13.0
func AlphabetVote(cli *client.Client, con util.Uint160, fee SideFeeProvider, epoch uint64, keys keys.PublicKeys) error
AlphabetVote invokes vote method on alphabet contract.
func ApprovePeer ¶ added in v0.12.0
ApprovePeer invokes addPeer method.
func BalancePrecision ¶ added in v0.12.0
BalancePrecision invokes Decimal method that returns precision of NEP-5 contract.
func Burn ¶ added in v0.12.0
func Burn(cli *client.Client, con util.Uint160, fee SideFeeProvider, p *MintBurnParams) error
Burn minted assets.
func CashOutCheque ¶
func CashOutCheque(cli *client.Client, con util.Uint160, fee MainFeeProvider, p *ChequeParams) error
CashOutCheque invokes Cheque method.
func InnerRingIndex ¶ added in v0.12.0
InnerRingIndex returns index of the `key` in the inner ring list from sidechain along with total size of inner ring list. If key is not in the inner ring list, then returns `-1` as index.
func LockAsset ¶
func LockAsset(cli *client.Client, con util.Uint160, fee SideFeeProvider, p *LockParams) error
LockAsset invokes Lock method.
func Mint ¶ added in v0.12.0
func Mint(cli *client.Client, con util.Uint160, fee SideFeeProvider, p *MintBurnParams) error
Mint assets in contract.
func NetmapSnapshot ¶ added in v0.12.0
NetmapSnapshot returns current netmap node infos. Consider using pkg/morph/client/netmap for this.
func NewAuditClient ¶ added in v0.15.0
func NewAuditClient(cli *client.Client, contract util.Uint160, fee SideFeeProvider) (*auditWrapper.ClientWrapper, error)
NewAuditClient creates wrapper to work with Audit contract.
func NewBalanceClient ¶ added in v0.15.0
func NewBalanceClient(cli *client.Client, contract util.Uint160, fee SideFeeProvider) (*balanceWrapper.Wrapper, error)
NewBalanceClient creates wrapper to work with Balance contract.
func NewContainerClient ¶ added in v0.15.0
func NewContainerClient(cli *client.Client, contract util.Uint160, fee SideFeeProvider) (*wrapContainer.Wrapper, error)
NewContainerClient creates wrapper to access data from container contract.
func NewNetmapClient ¶ added in v0.15.0
func NewNetmapClient(cli *client.Client, contract util.Uint160, fee SideFeeProvider) (*wrapNetmap.Wrapper, error)
NewNetmapClient creates wrapper to access data from netmap contract.
func NewReputationClient ¶ added in v0.19.0
func NewReputationClient(cli *client.Client, contract util.Uint160, fee SideFeeProvider) (*reputationWrapper.ClientWrapper, error)
NewReputationClient creates wrapper to work with reputation contract.
func RegisterContainer ¶ added in v0.12.0
func RegisterContainer(cli *client.Client, con util.Uint160, fee SideFeeProvider, p *ContainerParams) error
RegisterContainer invokes Put method.
func RemoveContainer ¶ added in v0.12.0
func RemoveContainer(cli *client.Client, con util.Uint160, fee SideFeeProvider, p *RemoveContainerParams) error
RemoveContainer invokes Delete method.
func SetConfig ¶ added in v0.12.0
func SetConfig(cli *client.Client, con util.Uint160, fee SideFeeProvider, args *SetConfigArgs) error
SetConfig invokes setConfig method.
func SetInnerRing ¶ added in v0.19.0
func SetInnerRing(cli *client.Client, con util.Uint160, fee SideFeeProvider, list keys.PublicKeys) error
SetInnerRing invokes update inner ring method. This should be used only without notary support.
func SetNewEpoch ¶
SetNewEpoch invokes newEpoch method.
func UpdatePeerState ¶ added in v0.12.0
func UpdatePeerState(cli *client.Client, con util.Uint160, fee SideFeeProvider, args *UpdatePeerArgs) error
UpdatePeerState invokes addPeer method.
Types ¶
type ChequeParams ¶
type ChequeParams struct {
ID []byte
Amount int64 // Fixed8
User util.Uint160
LockAccount util.Uint160
}
ChequeParams for CashOutCheque invocation.
type ContainerParams ¶ added in v0.12.0
ContainerParams for container put invocation.
type LockParams ¶
type LockParams struct {
ID []byte
User util.Uint160
LockAccount util.Uint160
Amount int64 // in Fixed16
Until uint64 // epochs
}
LockParams for LockAsset invocation.
type MainFeeProvider ¶ added in v0.19.0
MainFeeProvider is an interface that used by invoker package method to get extra fee for all non notary smart contract invocations in main chain.
type MintBurnParams ¶ added in v0.12.0
MintBurnParams for Mint and Burn invocations.
type RemoveContainerParams ¶ added in v0.12.0
RemoveContainerParams for container delete invocation.
type SetConfigArgs ¶ added in v0.12.0
type SideFeeProvider ¶ added in v0.19.0
SideFeeProvider is an interface that used by invoker package method to get extra fee for all non notary smart contract invocations in side chain.