Documentation
¶
Overview ¶
Package container contains RPC wrappers for NeoFS Container contract.
Index ¶
- Constants
- type Actor
- type AttributeChangedEvent
- type CORSRule
- type ContainerAPIVersion
- type ContainerAttribute
- type ContainerEpochBillingStat
- type ContainerInfo
- type ContainerInfoWithRevision
- type ContainerNodeReport
- type ContainerNodeReportSummary
- type ContainerQuota
- type ContainerQuotaSetEvent
- type ContainerUpdatedEvent
- type Contract
- func (c *Contract) AddNextEpochNodes(cID util.Uint256, placementVector *big.Int, publicKeys keys.PublicKeys) (util.Uint256, uint32, error)
- func (c *Contract) AddNextEpochNodesTransaction(cID util.Uint256, placementVector *big.Int, publicKeys keys.PublicKeys) (*transaction.Transaction, error)
- func (c *Contract) AddNextEpochNodesUnsigned(cID util.Uint256, placementVector *big.Int, publicKeys keys.PublicKeys) (*transaction.Transaction, error)
- func (c *Contract) CommitContainerListUpdate(cID util.Uint256, replicas []byte) (util.Uint256, uint32, error)
- func (c *Contract) CommitContainerListUpdateTransaction(cID util.Uint256, replicas []byte) (*transaction.Transaction, error)
- func (c *Contract) CommitContainerListUpdateUnsigned(cID util.Uint256, replicas []byte) (*transaction.Transaction, error)
- func (c *Contract) CreateV2(cnr *ContainerInfo, invocScript []byte, verifScript []byte, ...) (util.Uint256, uint32, error)
- func (c *Contract) CreateV2Transaction(cnr *ContainerInfo, invocScript []byte, verifScript []byte, ...) (*transaction.Transaction, error)
- func (c *Contract) CreateV2Unsigned(cnr *ContainerInfo, invocScript []byte, verifScript []byte, ...) (*transaction.Transaction, error)
- func (c *Contract) CreateV22(cnr *ContainerInfo, originalRequest []byte) (util.Uint256, uint32, error)
- func (c *Contract) CreateV22Transaction(cnr *ContainerInfo, originalRequest []byte) (*transaction.Transaction, error)
- func (c *Contract) CreateV22Unsigned(cnr *ContainerInfo, originalRequest []byte) (*transaction.Transaction, error)
- func (c *Contract) PutEACL(eACL []byte, invocScript []byte, verifScript []byte, sessionToken []byte) (util.Uint256, uint32, error)
- func (c *Contract) PutEACL2(eACL []byte, originalRequest []byte) (util.Uint256, uint32, error)
- func (c *Contract) PutEACL2Transaction(eACL []byte, originalRequest []byte) (*transaction.Transaction, error)
- func (c *Contract) PutEACL2Unsigned(eACL []byte, originalRequest []byte) (*transaction.Transaction, error)
- func (c *Contract) PutEACLTransaction(eACL []byte, invocScript []byte, verifScript []byte, sessionToken []byte) (*transaction.Transaction, error)
- func (c *Contract) PutEACLUnsigned(eACL []byte, invocScript []byte, verifScript []byte, sessionToken []byte) (*transaction.Transaction, error)
- func (c *Contract) PutReport(cid util.Uint256, sizeBytes *big.Int, objsNumber *big.Int, ...) (util.Uint256, uint32, error)
- func (c *Contract) PutReportTransaction(cid util.Uint256, sizeBytes *big.Int, objsNumber *big.Int, ...) (*transaction.Transaction, error)
- func (c *Contract) PutReportUnsigned(cid util.Uint256, sizeBytes *big.Int, objsNumber *big.Int, ...) (*transaction.Transaction, error)
- func (c *Contract) Remove(id []byte, invocScript []byte, verifScript []byte, sessionToken []byte) (util.Uint256, uint32, error)
- func (c *Contract) Remove2(id []byte, originalRequest []byte) (util.Uint256, uint32, error)
- func (c *Contract) Remove2Transaction(id []byte, originalRequest []byte) (*transaction.Transaction, error)
- func (c *Contract) Remove2Unsigned(id []byte, originalRequest []byte) (*transaction.Transaction, error)
- func (c *Contract) RemoveAttribute(cID util.Uint256, name string, validUntil *big.Int, invocScript []byte, ...) (util.Uint256, uint32, error)
- func (c *Contract) RemoveAttributeTransaction(cID util.Uint256, name string, validUntil *big.Int, invocScript []byte, ...) (*transaction.Transaction, error)
- func (c *Contract) RemoveAttributeUnsigned(cID util.Uint256, name string, validUntil *big.Int, invocScript []byte, ...) (*transaction.Transaction, error)
- func (c *Contract) RemoveTransaction(id []byte, invocScript []byte, verifScript []byte, sessionToken []byte) (*transaction.Transaction, error)
- func (c *Contract) RemoveUnsigned(id []byte, invocScript []byte, verifScript []byte, sessionToken []byte) (*transaction.Transaction, error)
- func (c *Contract) SetAttribute(cID util.Uint256, name string, value string, validUntil *big.Int, ...) (util.Uint256, uint32, error)
- func (c *Contract) SetAttributeTransaction(cID util.Uint256, name string, value string, validUntil *big.Int, ...) (*transaction.Transaction, error)
- func (c *Contract) SetAttributeUnsigned(cID util.Uint256, name string, value string, validUntil *big.Int, ...) (*transaction.Transaction, error)
- func (c *Contract) SetHardContainerQuota(cID util.Uint256, size *big.Int) (util.Uint256, uint32, error)
- func (c *Contract) SetHardContainerQuotaTransaction(cID util.Uint256, size *big.Int) (*transaction.Transaction, error)
- func (c *Contract) SetHardContainerQuotaUnsigned(cID util.Uint256, size *big.Int) (*transaction.Transaction, error)
- func (c *Contract) SetHardUserQuota(user []byte, size *big.Int) (util.Uint256, uint32, error)
- func (c *Contract) SetHardUserQuotaTransaction(user []byte, size *big.Int) (*transaction.Transaction, error)
- func (c *Contract) SetHardUserQuotaUnsigned(user []byte, size *big.Int) (*transaction.Transaction, error)
- func (c *Contract) SetSoftContainerQuota(cID util.Uint256, size *big.Int) (util.Uint256, uint32, error)
- func (c *Contract) SetSoftContainerQuotaTransaction(cID util.Uint256, size *big.Int) (*transaction.Transaction, error)
- func (c *Contract) SetSoftContainerQuotaUnsigned(cID util.Uint256, size *big.Int) (*transaction.Transaction, error)
- func (c *Contract) SetSoftUserQuota(user []byte, size *big.Int) (util.Uint256, uint32, error)
- func (c *Contract) SetSoftUserQuotaTransaction(user []byte, size *big.Int) (*transaction.Transaction, error)
- func (c *Contract) SetSoftUserQuotaUnsigned(user []byte, size *big.Int) (*transaction.Transaction, error)
- type ContractReader
- func (c *ContractReader) Alias(cid []byte) (string, error)
- func (c *ContractReader) ContainerQuota(cID util.Uint256) (*ContainerQuota, error)
- func (c *ContractReader) ContainersOf(owner []byte) (uuid.UUID, result.Iterator, error)
- func (c *ContractReader) ContainersOfExpanded(owner []byte, _numOfIteratorItems int) ([]stackitem.Item, error)
- func (c *ContractReader) Count() (*big.Int, error)
- func (c *ContractReader) GetBillingStatByNode(cid util.Uint256, pubKey *keys.PublicKey) (*ContainerEpochBillingStat, error)
- func (c *ContractReader) GetEACLData(id []byte) ([]byte, error)
- func (c *ContractReader) GetInfo(id util.Uint256) (*ContainerInfo, error)
- func (c *ContractReader) GetNodeReportSummary(cid util.Uint256) (*ContainerNodeReportSummary, error)
- func (c *ContractReader) GetReportByAccount(cid util.Uint256, acc util.Uint160) (*ContainerNodeReport, error)
- func (c *ContractReader) GetReportByNode(cid util.Uint256, pubKey *keys.PublicKey) (*ContainerNodeReport, error)
- func (c *ContractReader) GetRevisionedInfo(id util.Uint256) (*ContainerInfoWithRevision, error)
- func (c *ContractReader) GetTakenSpaceByUser(user []byte) (*big.Int, error)
- func (c *ContractReader) IterateAllReportSummaries() (uuid.UUID, result.Iterator, error)
- func (c *ContractReader) IterateAllReportSummariesExpanded(_numOfIteratorItems int) ([]stackitem.Item, error)
- func (c *ContractReader) IterateBillingStats(cid util.Uint256) (uuid.UUID, result.Iterator, error)
- func (c *ContractReader) IterateBillingStatsExpanded(cid util.Uint256, _numOfIteratorItems int) ([]stackitem.Item, error)
- func (c *ContractReader) IterateReports(cid util.Uint256) (uuid.UUID, result.Iterator, error)
- func (c *ContractReader) IterateReportsExpanded(cid util.Uint256, _numOfIteratorItems int) ([]stackitem.Item, error)
- func (c *ContractReader) Nodes(cID util.Uint256, placementVector *big.Int) (uuid.UUID, result.Iterator, error)
- func (c *ContractReader) NodesExpanded(cID util.Uint256, placementVector *big.Int, _numOfIteratorItems int) ([]stackitem.Item, error)
- func (c *ContractReader) Owner(containerID []byte) ([]byte, error)
- func (c *ContractReader) ReplicasNumbers(cID util.Uint256) (uuid.UUID, result.Iterator, error)
- func (c *ContractReader) ReplicasNumbersExpanded(cID util.Uint256, _numOfIteratorItems int) ([]stackitem.Item, error)
- func (c *ContractReader) UserQuota(user []byte) (*ContainerQuota, error)
- func (c *ContractReader) VerifyPlacementSignatures(cid util.Uint256, msg []byte, sigs [][][]byte) (bool, error)
- func (c *ContractReader) Version() (*big.Int, error)
- type EACLChangedEvent
- type Invoker
- type NEP22Contract
- type NodesUpdateEvent
- type UserQuotaSetEvent
Constants ¶
const ( // RegistrationFeeKey is a key in netmap config which contains fee for container registration. RegistrationFeeKey = containerconst.RegistrationFeeKey // AliasFeeKey is a key in netmap config which contains fee for nice-name registration. AliasFeeKey = containerconst.AliasFeeKey // NotFoundError is returned if container is missing. NotFoundError = containerconst.NotFoundError // ErrorLocked is returned on locked container. ErrorLocked = containerconst.ErrorLocked )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actor ¶
type Actor interface {
Invoker
nep11.Actor
MakeCall(contract util.Uint160, method string, params ...any) (*transaction.Transaction, error)
MakeRun(script []byte) (*transaction.Transaction, error)
MakeUnsignedCall(contract util.Uint160, method string, attrs []transaction.Attribute, params ...any) (*transaction.Transaction, error)
MakeUnsignedRun(script []byte, attrs []transaction.Attribute) (*transaction.Transaction, error)
SendCall(contract util.Uint160, method string, params ...any) (util.Uint256, uint32, error)
SendRun(script []byte) (util.Uint256, uint32, error)
}
Actor is used by Contract to call state-changing methods.
type AttributeChangedEvent ¶ added in v0.26.0
AttributeChangedEvent represents "AttributeChanged" event emitted by the contract.
func AttributeChangedEventsFromApplicationLog ¶ added in v0.26.0
func AttributeChangedEventsFromApplicationLog(log *result.ApplicationLog) ([]*AttributeChangedEvent, error)
AttributeChangedEventsFromApplicationLog retrieves a set of all emitted events with "AttributeChanged" name from the provided result.ApplicationLog.
func (*AttributeChangedEvent) FromStackItem ¶ added in v0.26.0
func (e *AttributeChangedEvent) FromStackItem(item *stackitem.Array) error
FromStackItem converts provided stackitem.Array to AttributeChangedEvent or returns an error if it's not possible to do to so.
type CORSRule ¶ added in v0.26.0
type CORSRule struct {
AllowedMethods []string
AllowedOrigins []string
AllowedHeaders []string
ExposeHeaders []string
MaxAgeSeconds int64
}
CORSRule describes one rule for the container’s CORS attribute.
type ContainerAPIVersion ¶ added in v0.26.0
ContainerAPIVersion is a contract-specific container.APIVersion type used by its methods.
func (*ContainerAPIVersion) FromStackItem ¶ added in v0.26.0
func (res *ContainerAPIVersion) FromStackItem(item stackitem.Item) error
FromStackItem retrieves fields of ContainerAPIVersion from the given stackitem.Item or returns an error if it's not possible to do to so. It implements stackitem.Convertible interface.
func (*ContainerAPIVersion) ToSCParameter ¶ added in v0.26.0
func (res *ContainerAPIVersion) ToSCParameter() (smartcontract.Parameter, error)
ToSCParameter creates smartcontract.Parameter representing ContainerAPIVersion. It implements smartcontract.Convertible interface so that ContainerAPIVersion could be used with invokers.
func (*ContainerAPIVersion) ToStackItem ¶ added in v0.26.0
func (res *ContainerAPIVersion) ToStackItem() (stackitem.Item, error)
ToStackItem creates stackitem.Item representing ContainerAPIVersion. It implements stackitem.Convertible interface.
type ContainerAttribute ¶ added in v0.26.0
ContainerAttribute is a contract-specific container.Attribute type used by its methods.
func (*ContainerAttribute) FromStackItem ¶ added in v0.26.0
func (res *ContainerAttribute) FromStackItem(item stackitem.Item) error
FromStackItem retrieves fields of ContainerAttribute from the given stackitem.Item or returns an error if it's not possible to do to so. It implements stackitem.Convertible interface.
func (*ContainerAttribute) ToSCParameter ¶ added in v0.26.0
func (res *ContainerAttribute) ToSCParameter() (smartcontract.Parameter, error)
ToSCParameter creates smartcontract.Parameter representing ContainerAttribute. It implements smartcontract.Convertible interface so that ContainerAttribute could be used with invokers.
func (*ContainerAttribute) ToStackItem ¶ added in v0.26.0
func (res *ContainerAttribute) ToStackItem() (stackitem.Item, error)
ToStackItem creates stackitem.Item representing ContainerAttribute. It implements stackitem.Convertible interface.
type ContainerEpochBillingStat ¶ added in v0.25.0
type ContainerEpochBillingStat struct {
Account util.Uint160
LatestContainerSize *big.Int
LatestEpoch *big.Int
LastUpdateTime *big.Int
LatestEpochAverageSize *big.Int
PreviousContainerSize *big.Int
PreviousEpoch *big.Int
PreviousEpochAverageSize *big.Int
}
ContainerEpochBillingStat is a contract-specific container.EpochBillingStat type used by its methods.
func (*ContainerEpochBillingStat) FromStackItem ¶ added in v0.25.0
func (res *ContainerEpochBillingStat) FromStackItem(item stackitem.Item) error
FromStackItem retrieves fields of ContainerEpochBillingStat from the given stackitem.Item or returns an error if it's not possible to do to so. It implements stackitem.Convertible interface.
func (*ContainerEpochBillingStat) ToSCParameter ¶ added in v0.25.0
func (res *ContainerEpochBillingStat) ToSCParameter() (smartcontract.Parameter, error)
ToSCParameter creates smartcontract.Parameter representing ContainerEpochBillingStat. It implements smartcontract.Convertible interface so that ContainerEpochBillingStat could be used with invokers.
func (*ContainerEpochBillingStat) ToStackItem ¶ added in v0.25.0
func (res *ContainerEpochBillingStat) ToStackItem() (stackitem.Item, error)
ToStackItem creates stackitem.Item representing ContainerEpochBillingStat. It implements stackitem.Convertible interface.
type ContainerInfo ¶ added in v0.26.0
type ContainerInfo struct {
Version *ContainerAPIVersion
Owner util.Uint160
Nonce []byte
BasicACL *big.Int
Attributes []*ContainerAttribute
StoragePolicy []byte
}
ContainerInfo is a contract-specific container.Info type used by its methods.
func (*ContainerInfo) FromStackItem ¶ added in v0.26.0
func (res *ContainerInfo) FromStackItem(item stackitem.Item) error
FromStackItem retrieves fields of ContainerInfo from the given stackitem.Item or returns an error if it's not possible to do to so. It implements stackitem.Convertible interface.
func (*ContainerInfo) ToSCParameter ¶ added in v0.26.0
func (res *ContainerInfo) ToSCParameter() (smartcontract.Parameter, error)
ToSCParameter creates smartcontract.Parameter representing ContainerInfo. It implements smartcontract.Convertible interface so that ContainerInfo could be used with invokers.
func (*ContainerInfo) ToStackItem ¶ added in v0.26.0
func (res *ContainerInfo) ToStackItem() (stackitem.Item, error)
ToStackItem creates stackitem.Item representing ContainerInfo. It implements stackitem.Convertible interface.
type ContainerInfoWithRevision ¶ added in v0.27.0
type ContainerInfoWithRevision struct {
Info *ContainerInfo
Revision *big.Int
}
ContainerInfoWithRevision is a contract-specific container.InfoWithRevision type used by its methods.
func (*ContainerInfoWithRevision) FromStackItem ¶ added in v0.27.0
func (res *ContainerInfoWithRevision) FromStackItem(item stackitem.Item) error
FromStackItem retrieves fields of ContainerInfoWithRevision from the given stackitem.Item or returns an error if it's not possible to do to so. It implements stackitem.Convertible interface.
func (*ContainerInfoWithRevision) ToSCParameter ¶ added in v0.27.0
func (res *ContainerInfoWithRevision) ToSCParameter() (smartcontract.Parameter, error)
ToSCParameter creates smartcontract.Parameter representing ContainerInfoWithRevision. It implements smartcontract.Convertible interface so that ContainerInfoWithRevision could be used with invokers.
func (*ContainerInfoWithRevision) ToStackItem ¶ added in v0.27.0
func (res *ContainerInfoWithRevision) ToStackItem() (stackitem.Item, error)
ToStackItem creates stackitem.Item representing ContainerInfoWithRevision. It implements stackitem.Convertible interface.
type ContainerNodeReport ¶ added in v0.24.0
type ContainerNodeReport struct {
PublicKey *keys.PublicKey
ContainerSize *big.Int
NumberOfObjects *big.Int
NumberOfReports *big.Int
LastUpdateEpoch *big.Int
}
ContainerNodeReport is a contract-specific container.NodeReport type used by its methods.
func (*ContainerNodeReport) FromStackItem ¶ added in v0.24.0
func (res *ContainerNodeReport) FromStackItem(item stackitem.Item) error
FromStackItem retrieves fields of ContainerNodeReport from the given stackitem.Item or returns an error if it's not possible to do to so. It implements stackitem.Convertible interface.
func (*ContainerNodeReport) ToSCParameter ¶ added in v0.24.0
func (res *ContainerNodeReport) ToSCParameter() (smartcontract.Parameter, error)
ToSCParameter creates smartcontract.Parameter representing ContainerNodeReport. It implements smartcontract.Convertible interface so that ContainerNodeReport could be used with invokers.
func (*ContainerNodeReport) ToStackItem ¶ added in v0.24.0
func (res *ContainerNodeReport) ToStackItem() (stackitem.Item, error)
ToStackItem creates stackitem.Item representing ContainerNodeReport. It implements stackitem.Convertible interface.
type ContainerNodeReportSummary ¶ added in v0.24.0
ContainerNodeReportSummary is a contract-specific container.NodeReportSummary type used by its methods.
func (*ContainerNodeReportSummary) FromStackItem ¶ added in v0.24.0
func (res *ContainerNodeReportSummary) FromStackItem(item stackitem.Item) error
FromStackItem retrieves fields of ContainerNodeReportSummary from the given stackitem.Item or returns an error if it's not possible to do to so. It implements stackitem.Convertible interface.
func (*ContainerNodeReportSummary) ToSCParameter ¶ added in v0.24.0
func (res *ContainerNodeReportSummary) ToSCParameter() (smartcontract.Parameter, error)
ToSCParameter creates smartcontract.Parameter representing ContainerNodeReportSummary. It implements smartcontract.Convertible interface so that ContainerNodeReportSummary could be used with invokers.
func (*ContainerNodeReportSummary) ToStackItem ¶ added in v0.24.0
func (res *ContainerNodeReportSummary) ToStackItem() (stackitem.Item, error)
ToStackItem creates stackitem.Item representing ContainerNodeReportSummary. It implements stackitem.Convertible interface.
type ContainerQuota ¶ added in v0.24.0
ContainerQuota is a contract-specific container.Quota type used by its methods.
func (*ContainerQuota) FromStackItem ¶ added in v0.24.0
func (res *ContainerQuota) FromStackItem(item stackitem.Item) error
FromStackItem retrieves fields of ContainerQuota from the given stackitem.Item or returns an error if it's not possible to do to so. It implements stackitem.Convertible interface.
func (*ContainerQuota) ToSCParameter ¶ added in v0.24.0
func (res *ContainerQuota) ToSCParameter() (smartcontract.Parameter, error)
ToSCParameter creates smartcontract.Parameter representing ContainerQuota. It implements smartcontract.Convertible interface so that ContainerQuota could be used with invokers.
func (*ContainerQuota) ToStackItem ¶ added in v0.24.0
func (res *ContainerQuota) ToStackItem() (stackitem.Item, error)
ToStackItem creates stackitem.Item representing ContainerQuota. It implements stackitem.Convertible interface.
type ContainerQuotaSetEvent ¶ added in v0.24.0
ContainerQuotaSetEvent represents "ContainerQuotaSet" event emitted by the contract.
func ContainerQuotaSetEventsFromApplicationLog ¶ added in v0.24.0
func ContainerQuotaSetEventsFromApplicationLog(log *result.ApplicationLog) ([]*ContainerQuotaSetEvent, error)
ContainerQuotaSetEventsFromApplicationLog retrieves a set of all emitted events with "ContainerQuotaSet" name from the provided result.ApplicationLog.
func (*ContainerQuotaSetEvent) FromStackItem ¶ added in v0.24.0
func (e *ContainerQuotaSetEvent) FromStackItem(item *stackitem.Array) error
FromStackItem converts provided stackitem.Array to ContainerQuotaSetEvent or returns an error if it's not possible to do to so.
type ContainerUpdatedEvent ¶ added in v0.27.0
ContainerUpdatedEvent represents "ContainerUpdated" event emitted by the contract.
func ContainerUpdatedEventsFromApplicationLog ¶ added in v0.27.0
func ContainerUpdatedEventsFromApplicationLog(log *result.ApplicationLog) ([]*ContainerUpdatedEvent, error)
ContainerUpdatedEventsFromApplicationLog retrieves a set of all emitted events with "ContainerUpdated" name from the provided result.ApplicationLog.
func (*ContainerUpdatedEvent) FromStackItem ¶ added in v0.27.0
func (e *ContainerUpdatedEvent) FromStackItem(item *stackitem.Array) error
FromStackItem converts provided stackitem.Array to ContainerUpdatedEvent or returns an error if it's not possible to do to so.
type Contract ¶
type Contract struct {
ContractReader
nep11.BaseWriter
NEP22Contract
// contains filtered or unexported fields
}
Contract implements all contract methods.
func (*Contract) AddNextEpochNodes ¶ added in v0.21.0
func (c *Contract) AddNextEpochNodes(cID util.Uint256, placementVector *big.Int, publicKeys keys.PublicKeys) (util.Uint256, uint32, error)
AddNextEpochNodes creates a transaction invoking `addNextEpochNodes` method of the contract. This transaction is signed and immediately sent to the network. The values returned are its hash, ValidUntilBlock value and error if any.
func (*Contract) AddNextEpochNodesTransaction ¶ added in v0.21.0
func (c *Contract) AddNextEpochNodesTransaction(cID util.Uint256, placementVector *big.Int, publicKeys keys.PublicKeys) (*transaction.Transaction, error)
AddNextEpochNodesTransaction creates a transaction invoking `addNextEpochNodes` method of the contract. This transaction is signed, but not sent to the network, instead it's returned to the caller.
func (*Contract) AddNextEpochNodesUnsigned ¶ added in v0.21.0
func (c *Contract) AddNextEpochNodesUnsigned(cID util.Uint256, placementVector *big.Int, publicKeys keys.PublicKeys) (*transaction.Transaction, error)
AddNextEpochNodesUnsigned creates a transaction invoking `addNextEpochNodes` method of the contract. This transaction is not signed, it's simply returned to the caller. Any fields of it that do not affect fees can be changed (ValidUntilBlock, Nonce), fee values (NetworkFee, SystemFee) can be increased as well.
func (*Contract) CommitContainerListUpdate ¶ added in v0.21.0
func (c *Contract) CommitContainerListUpdate(cID util.Uint256, replicas []byte) (util.Uint256, uint32, error)
CommitContainerListUpdate creates a transaction invoking `commitContainerListUpdate` method of the contract. This transaction is signed and immediately sent to the network. The values returned are its hash, ValidUntilBlock value and error if any.
func (*Contract) CommitContainerListUpdateTransaction ¶ added in v0.21.0
func (c *Contract) CommitContainerListUpdateTransaction(cID util.Uint256, replicas []byte) (*transaction.Transaction, error)
CommitContainerListUpdateTransaction creates a transaction invoking `commitContainerListUpdate` method of the contract. This transaction is signed, but not sent to the network, instead it's returned to the caller.
func (*Contract) CommitContainerListUpdateUnsigned ¶ added in v0.21.0
func (c *Contract) CommitContainerListUpdateUnsigned(cID util.Uint256, replicas []byte) (*transaction.Transaction, error)
CommitContainerListUpdateUnsigned creates a transaction invoking `commitContainerListUpdate` method of the contract. This transaction is not signed, it's simply returned to the caller. Any fields of it that do not affect fees can be changed (ValidUntilBlock, Nonce), fee values (NetworkFee, SystemFee) can be increased as well.
func (*Contract) CreateV2 ¶ added in v0.26.0
func (c *Contract) CreateV2(cnr *ContainerInfo, invocScript []byte, verifScript []byte, sessionToken []byte) (util.Uint256, uint32, error)
CreateV2 creates a transaction invoking `createV2` method of the contract. This transaction is signed and immediately sent to the network. The values returned are its hash, ValidUntilBlock value and error if any.
func (*Contract) CreateV2Transaction ¶ added in v0.26.0
func (c *Contract) CreateV2Transaction(cnr *ContainerInfo, invocScript []byte, verifScript []byte, sessionToken []byte) (*transaction.Transaction, error)
CreateV2Transaction creates a transaction invoking `createV2` method of the contract. This transaction is signed, but not sent to the network, instead it's returned to the caller.
func (*Contract) CreateV2Unsigned ¶ added in v0.26.0
func (c *Contract) CreateV2Unsigned(cnr *ContainerInfo, invocScript []byte, verifScript []byte, sessionToken []byte) (*transaction.Transaction, error)
CreateV2Unsigned creates a transaction invoking `createV2` method of the contract. This transaction is not signed, it's simply returned to the caller. Any fields of it that do not affect fees can be changed (ValidUntilBlock, Nonce), fee values (NetworkFee, SystemFee) can be increased as well.
func (*Contract) CreateV22 ¶ added in v0.28.0
func (c *Contract) CreateV22(cnr *ContainerInfo, originalRequest []byte) (util.Uint256, uint32, error)
CreateV22 creates a transaction invoking `createV2` method of the contract. This transaction is signed and immediately sent to the network. The values returned are its hash, ValidUntilBlock value and error if any.
func (*Contract) CreateV22Transaction ¶ added in v0.28.0
func (c *Contract) CreateV22Transaction(cnr *ContainerInfo, originalRequest []byte) (*transaction.Transaction, error)
CreateV22Transaction creates a transaction invoking `createV2` method of the contract. This transaction is signed, but not sent to the network, instead it's returned to the caller.
func (*Contract) CreateV22Unsigned ¶ added in v0.28.0
func (c *Contract) CreateV22Unsigned(cnr *ContainerInfo, originalRequest []byte) (*transaction.Transaction, error)
CreateV22Unsigned creates a transaction invoking `createV2` method of the contract. This transaction is not signed, it's simply returned to the caller. Any fields of it that do not affect fees can be changed (ValidUntilBlock, Nonce), fee values (NetworkFee, SystemFee) can be increased as well.
func (*Contract) PutEACL ¶ added in v0.22.0
func (c *Contract) PutEACL(eACL []byte, invocScript []byte, verifScript []byte, sessionToken []byte) (util.Uint256, uint32, error)
PutEACL creates a transaction invoking `putEACL` method of the contract. This transaction is signed and immediately sent to the network. The values returned are its hash, ValidUntilBlock value and error if any.
func (*Contract) PutEACL2 ¶ added in v0.28.0
PutEACL2 creates a transaction invoking `putEACL` method of the contract. This transaction is signed and immediately sent to the network. The values returned are its hash, ValidUntilBlock value and error if any.
func (*Contract) PutEACL2Transaction ¶ added in v0.28.0
func (c *Contract) PutEACL2Transaction(eACL []byte, originalRequest []byte) (*transaction.Transaction, error)
PutEACL2Transaction creates a transaction invoking `putEACL` method of the contract. This transaction is signed, but not sent to the network, instead it's returned to the caller.
func (*Contract) PutEACL2Unsigned ¶ added in v0.28.0
func (c *Contract) PutEACL2Unsigned(eACL []byte, originalRequest []byte) (*transaction.Transaction, error)
PutEACL2Unsigned creates a transaction invoking `putEACL` method of the contract. This transaction is not signed, it's simply returned to the caller. Any fields of it that do not affect fees can be changed (ValidUntilBlock, Nonce), fee values (NetworkFee, SystemFee) can be increased as well.
func (*Contract) PutEACLTransaction ¶ added in v0.22.0
func (c *Contract) PutEACLTransaction(eACL []byte, invocScript []byte, verifScript []byte, sessionToken []byte) (*transaction.Transaction, error)
PutEACLTransaction creates a transaction invoking `putEACL` method of the contract. This transaction is signed, but not sent to the network, instead it's returned to the caller.
func (*Contract) PutEACLUnsigned ¶ added in v0.22.0
func (c *Contract) PutEACLUnsigned(eACL []byte, invocScript []byte, verifScript []byte, sessionToken []byte) (*transaction.Transaction, error)
PutEACLUnsigned creates a transaction invoking `putEACL` method of the contract. This transaction is not signed, it's simply returned to the caller. Any fields of it that do not affect fees can be changed (ValidUntilBlock, Nonce), fee values (NetworkFee, SystemFee) can be increased as well.
func (*Contract) PutReport ¶ added in v0.24.0
func (c *Contract) PutReport(cid util.Uint256, sizeBytes *big.Int, objsNumber *big.Int, pubKey *keys.PublicKey) (util.Uint256, uint32, error)
PutReport creates a transaction invoking `putReport` method of the contract. This transaction is signed and immediately sent to the network. The values returned are its hash, ValidUntilBlock value and error if any.
func (*Contract) PutReportTransaction ¶ added in v0.24.0
func (c *Contract) PutReportTransaction(cid util.Uint256, sizeBytes *big.Int, objsNumber *big.Int, pubKey *keys.PublicKey) (*transaction.Transaction, error)
PutReportTransaction creates a transaction invoking `putReport` method of the contract. This transaction is signed, but not sent to the network, instead it's returned to the caller.
func (*Contract) PutReportUnsigned ¶ added in v0.24.0
func (c *Contract) PutReportUnsigned(cid util.Uint256, sizeBytes *big.Int, objsNumber *big.Int, pubKey *keys.PublicKey) (*transaction.Transaction, error)
PutReportUnsigned creates a transaction invoking `putReport` method of the contract. This transaction is not signed, it's simply returned to the caller. Any fields of it that do not affect fees can be changed (ValidUntilBlock, Nonce), fee values (NetworkFee, SystemFee) can be increased as well.
func (*Contract) Remove ¶ added in v0.22.0
func (c *Contract) Remove(id []byte, invocScript []byte, verifScript []byte, sessionToken []byte) (util.Uint256, uint32, error)
Remove creates a transaction invoking `remove` method of the contract. This transaction is signed and immediately sent to the network. The values returned are its hash, ValidUntilBlock value and error if any.
func (*Contract) Remove2 ¶ added in v0.28.0
Remove2 creates a transaction invoking `remove` method of the contract. This transaction is signed and immediately sent to the network. The values returned are its hash, ValidUntilBlock value and error if any.
func (*Contract) Remove2Transaction ¶ added in v0.28.0
func (c *Contract) Remove2Transaction(id []byte, originalRequest []byte) (*transaction.Transaction, error)
Remove2Transaction creates a transaction invoking `remove` method of the contract. This transaction is signed, but not sent to the network, instead it's returned to the caller.
func (*Contract) Remove2Unsigned ¶ added in v0.28.0
func (c *Contract) Remove2Unsigned(id []byte, originalRequest []byte) (*transaction.Transaction, error)
Remove2Unsigned creates a transaction invoking `remove` method of the contract. This transaction is not signed, it's simply returned to the caller. Any fields of it that do not affect fees can be changed (ValidUntilBlock, Nonce), fee values (NetworkFee, SystemFee) can be increased as well.
func (*Contract) RemoveAttribute ¶ added in v0.26.0
func (c *Contract) RemoveAttribute(cID util.Uint256, name string, validUntil *big.Int, invocScript []byte, verifScript []byte, sessionToken []byte) (util.Uint256, uint32, error)
RemoveAttribute creates a transaction invoking `removeAttribute` method of the contract. This transaction is signed and immediately sent to the network. The values returned are its hash, ValidUntilBlock value and error if any.
func (*Contract) RemoveAttributeTransaction ¶ added in v0.26.0
func (c *Contract) RemoveAttributeTransaction(cID util.Uint256, name string, validUntil *big.Int, invocScript []byte, verifScript []byte, sessionToken []byte) (*transaction.Transaction, error)
RemoveAttributeTransaction creates a transaction invoking `removeAttribute` method of the contract. This transaction is signed, but not sent to the network, instead it's returned to the caller.
func (*Contract) RemoveAttributeUnsigned ¶ added in v0.26.0
func (c *Contract) RemoveAttributeUnsigned(cID util.Uint256, name string, validUntil *big.Int, invocScript []byte, verifScript []byte, sessionToken []byte) (*transaction.Transaction, error)
RemoveAttributeUnsigned creates a transaction invoking `removeAttribute` method of the contract. This transaction is not signed, it's simply returned to the caller. Any fields of it that do not affect fees can be changed (ValidUntilBlock, Nonce), fee values (NetworkFee, SystemFee) can be increased as well.
func (*Contract) RemoveTransaction ¶ added in v0.22.0
func (c *Contract) RemoveTransaction(id []byte, invocScript []byte, verifScript []byte, sessionToken []byte) (*transaction.Transaction, error)
RemoveTransaction creates a transaction invoking `remove` method of the contract. This transaction is signed, but not sent to the network, instead it's returned to the caller.
func (*Contract) RemoveUnsigned ¶ added in v0.22.0
func (c *Contract) RemoveUnsigned(id []byte, invocScript []byte, verifScript []byte, sessionToken []byte) (*transaction.Transaction, error)
RemoveUnsigned creates a transaction invoking `remove` method of the contract. This transaction is not signed, it's simply returned to the caller. Any fields of it that do not affect fees can be changed (ValidUntilBlock, Nonce), fee values (NetworkFee, SystemFee) can be increased as well.
func (*Contract) SetAttribute ¶ added in v0.26.0
func (c *Contract) SetAttribute(cID util.Uint256, name string, value string, validUntil *big.Int, invocScript []byte, verifScript []byte, sessionToken []byte) (util.Uint256, uint32, error)
SetAttribute creates a transaction invoking `setAttribute` method of the contract. This transaction is signed and immediately sent to the network. The values returned are its hash, ValidUntilBlock value and error if any.
func (*Contract) SetAttributeTransaction ¶ added in v0.26.0
func (c *Contract) SetAttributeTransaction(cID util.Uint256, name string, value string, validUntil *big.Int, invocScript []byte, verifScript []byte, sessionToken []byte) (*transaction.Transaction, error)
SetAttributeTransaction creates a transaction invoking `setAttribute` method of the contract. This transaction is signed, but not sent to the network, instead it's returned to the caller.
func (*Contract) SetAttributeUnsigned ¶ added in v0.26.0
func (c *Contract) SetAttributeUnsigned(cID util.Uint256, name string, value string, validUntil *big.Int, invocScript []byte, verifScript []byte, sessionToken []byte) (*transaction.Transaction, error)
SetAttributeUnsigned creates a transaction invoking `setAttribute` method of the contract. This transaction is not signed, it's simply returned to the caller. Any fields of it that do not affect fees can be changed (ValidUntilBlock, Nonce), fee values (NetworkFee, SystemFee) can be increased as well.
func (*Contract) SetHardContainerQuota ¶ added in v0.24.0
func (c *Contract) SetHardContainerQuota(cID util.Uint256, size *big.Int) (util.Uint256, uint32, error)
SetHardContainerQuota creates a transaction invoking `setHardContainerQuota` method of the contract. This transaction is signed and immediately sent to the network. The values returned are its hash, ValidUntilBlock value and error if any.
func (*Contract) SetHardContainerQuotaTransaction ¶ added in v0.24.0
func (c *Contract) SetHardContainerQuotaTransaction(cID util.Uint256, size *big.Int) (*transaction.Transaction, error)
SetHardContainerQuotaTransaction creates a transaction invoking `setHardContainerQuota` method of the contract. This transaction is signed, but not sent to the network, instead it's returned to the caller.
func (*Contract) SetHardContainerQuotaUnsigned ¶ added in v0.24.0
func (c *Contract) SetHardContainerQuotaUnsigned(cID util.Uint256, size *big.Int) (*transaction.Transaction, error)
SetHardContainerQuotaUnsigned creates a transaction invoking `setHardContainerQuota` method of the contract. This transaction is not signed, it's simply returned to the caller. Any fields of it that do not affect fees can be changed (ValidUntilBlock, Nonce), fee values (NetworkFee, SystemFee) can be increased as well.
func (*Contract) SetHardUserQuota ¶ added in v0.24.0
SetHardUserQuota creates a transaction invoking `setHardUserQuota` method of the contract. This transaction is signed and immediately sent to the network. The values returned are its hash, ValidUntilBlock value and error if any.
func (*Contract) SetHardUserQuotaTransaction ¶ added in v0.24.0
func (c *Contract) SetHardUserQuotaTransaction(user []byte, size *big.Int) (*transaction.Transaction, error)
SetHardUserQuotaTransaction creates a transaction invoking `setHardUserQuota` method of the contract. This transaction is signed, but not sent to the network, instead it's returned to the caller.
func (*Contract) SetHardUserQuotaUnsigned ¶ added in v0.24.0
func (c *Contract) SetHardUserQuotaUnsigned(user []byte, size *big.Int) (*transaction.Transaction, error)
SetHardUserQuotaUnsigned creates a transaction invoking `setHardUserQuota` method of the contract. This transaction is not signed, it's simply returned to the caller. Any fields of it that do not affect fees can be changed (ValidUntilBlock, Nonce), fee values (NetworkFee, SystemFee) can be increased as well.
func (*Contract) SetSoftContainerQuota ¶ added in v0.24.0
func (c *Contract) SetSoftContainerQuota(cID util.Uint256, size *big.Int) (util.Uint256, uint32, error)
SetSoftContainerQuota creates a transaction invoking `setSoftContainerQuota` method of the contract. This transaction is signed and immediately sent to the network. The values returned are its hash, ValidUntilBlock value and error if any.
func (*Contract) SetSoftContainerQuotaTransaction ¶ added in v0.24.0
func (c *Contract) SetSoftContainerQuotaTransaction(cID util.Uint256, size *big.Int) (*transaction.Transaction, error)
SetSoftContainerQuotaTransaction creates a transaction invoking `setSoftContainerQuota` method of the contract. This transaction is signed, but not sent to the network, instead it's returned to the caller.
func (*Contract) SetSoftContainerQuotaUnsigned ¶ added in v0.24.0
func (c *Contract) SetSoftContainerQuotaUnsigned(cID util.Uint256, size *big.Int) (*transaction.Transaction, error)
SetSoftContainerQuotaUnsigned creates a transaction invoking `setSoftContainerQuota` method of the contract. This transaction is not signed, it's simply returned to the caller. Any fields of it that do not affect fees can be changed (ValidUntilBlock, Nonce), fee values (NetworkFee, SystemFee) can be increased as well.
func (*Contract) SetSoftUserQuota ¶ added in v0.24.0
SetSoftUserQuota creates a transaction invoking `setSoftUserQuota` method of the contract. This transaction is signed and immediately sent to the network. The values returned are its hash, ValidUntilBlock value and error if any.
func (*Contract) SetSoftUserQuotaTransaction ¶ added in v0.24.0
func (c *Contract) SetSoftUserQuotaTransaction(user []byte, size *big.Int) (*transaction.Transaction, error)
SetSoftUserQuotaTransaction creates a transaction invoking `setSoftUserQuota` method of the contract. This transaction is signed, but not sent to the network, instead it's returned to the caller.
func (*Contract) SetSoftUserQuotaUnsigned ¶ added in v0.24.0
func (c *Contract) SetSoftUserQuotaUnsigned(user []byte, size *big.Int) (*transaction.Transaction, error)
SetSoftUserQuotaUnsigned creates a transaction invoking `setSoftUserQuota` method of the contract. This transaction is not signed, it's simply returned to the caller. Any fields of it that do not affect fees can be changed (ValidUntilBlock, Nonce), fee values (NetworkFee, SystemFee) can be increased as well.
type ContractReader ¶
type ContractReader struct {
nep11.NonDivisibleReader
// contains filtered or unexported fields
}
ContractReader implements safe contract methods.
func NewReader ¶
func NewReader(invoker Invoker, hash util.Uint160) *ContractReader
NewReader creates an instance of ContractReader using provided contract hash and the given Invoker.
func (*ContractReader) Alias ¶
func (c *ContractReader) Alias(cid []byte) (string, error)
Alias invokes `alias` method of contract.
func (*ContractReader) ContainerQuota ¶ added in v0.24.0
func (c *ContractReader) ContainerQuota(cID util.Uint256) (*ContainerQuota, error)
ContainerQuota invokes `containerQuota` method of contract.
func (*ContractReader) ContainersOf ¶
ContainersOf invokes `containersOf` method of contract.
func (*ContractReader) ContainersOfExpanded ¶
func (c *ContractReader) ContainersOfExpanded(owner []byte, _numOfIteratorItems int) ([]stackitem.Item, error)
ContainersOfExpanded is similar to ContainersOf (uses the same contract method), but can be useful if the server used doesn't support sessions and doesn't expand iterators. It creates a script that will get the specified number of result items from the iterator right in the VM and return them to you. It's only limited by VM stack and GAS available for RPC invocations.
func (*ContractReader) Count ¶
func (c *ContractReader) Count() (*big.Int, error)
Count invokes `count` method of contract.
func (*ContractReader) GetBillingStatByNode ¶ added in v0.25.0
func (c *ContractReader) GetBillingStatByNode(cid util.Uint256, pubKey *keys.PublicKey) (*ContainerEpochBillingStat, error)
GetBillingStatByNode invokes `getBillingStatByNode` method of contract.
func (*ContractReader) GetEACLData ¶ added in v0.22.0
func (c *ContractReader) GetEACLData(id []byte) ([]byte, error)
GetEACLData invokes `getEACLData` method of contract.
func (*ContractReader) GetInfo ¶ added in v0.26.0
func (c *ContractReader) GetInfo(id util.Uint256) (*ContainerInfo, error)
GetInfo invokes `getInfo` method of contract.
func (*ContractReader) GetNodeReportSummary ¶ added in v0.24.0
func (c *ContractReader) GetNodeReportSummary(cid util.Uint256) (*ContainerNodeReportSummary, error)
GetNodeReportSummary invokes `getNodeReportSummary` method of contract.
func (*ContractReader) GetReportByAccount ¶ added in v0.26.0
func (c *ContractReader) GetReportByAccount(cid util.Uint256, acc util.Uint160) (*ContainerNodeReport, error)
GetReportByAccount invokes `getReportByAccount` method of contract.
func (*ContractReader) GetReportByNode ¶ added in v0.24.0
func (c *ContractReader) GetReportByNode(cid util.Uint256, pubKey *keys.PublicKey) (*ContainerNodeReport, error)
GetReportByNode invokes `getReportByNode` method of contract.
func (*ContractReader) GetRevisionedInfo ¶ added in v0.27.0
func (c *ContractReader) GetRevisionedInfo(id util.Uint256) (*ContainerInfoWithRevision, error)
GetRevisionedInfo invokes `getRevisionedInfo` method of contract.
func (*ContractReader) GetTakenSpaceByUser ¶ added in v0.24.0
func (c *ContractReader) GetTakenSpaceByUser(user []byte) (*big.Int, error)
GetTakenSpaceByUser invokes `getTakenSpaceByUser` method of contract.
func (*ContractReader) IterateAllReportSummaries ¶ added in v0.24.0
IterateAllReportSummaries invokes `iterateAllReportSummaries` method of contract.
func (*ContractReader) IterateAllReportSummariesExpanded ¶ added in v0.24.0
func (c *ContractReader) IterateAllReportSummariesExpanded(_numOfIteratorItems int) ([]stackitem.Item, error)
IterateAllReportSummariesExpanded is similar to IterateAllReportSummaries (uses the same contract method), but can be useful if the server used doesn't support sessions and doesn't expand iterators. It creates a script that will get the specified number of result items from the iterator right in the VM and return them to you. It's only limited by VM stack and GAS available for RPC invocations.
func (*ContractReader) IterateBillingStats ¶ added in v0.25.0
IterateBillingStats invokes `iterateBillingStats` method of contract.
func (*ContractReader) IterateBillingStatsExpanded ¶ added in v0.25.0
func (c *ContractReader) IterateBillingStatsExpanded(cid util.Uint256, _numOfIteratorItems int) ([]stackitem.Item, error)
IterateBillingStatsExpanded is similar to IterateBillingStats (uses the same contract method), but can be useful if the server used doesn't support sessions and doesn't expand iterators. It creates a script that will get the specified number of result items from the iterator right in the VM and return them to you. It's only limited by VM stack and GAS available for RPC invocations.
func (*ContractReader) IterateReports ¶ added in v0.24.0
IterateReports invokes `iterateReports` method of contract.
func (*ContractReader) IterateReportsExpanded ¶ added in v0.24.0
func (c *ContractReader) IterateReportsExpanded(cid util.Uint256, _numOfIteratorItems int) ([]stackitem.Item, error)
IterateReportsExpanded is similar to IterateReports (uses the same contract method), but can be useful if the server used doesn't support sessions and doesn't expand iterators. It creates a script that will get the specified number of result items from the iterator right in the VM and return them to you. It's only limited by VM stack and GAS available for RPC invocations.
func (*ContractReader) Nodes ¶ added in v0.21.0
func (c *ContractReader) Nodes(cID util.Uint256, placementVector *big.Int) (uuid.UUID, result.Iterator, error)
Nodes invokes `nodes` method of contract.
func (*ContractReader) NodesExpanded ¶ added in v0.21.0
func (c *ContractReader) NodesExpanded(cID util.Uint256, placementVector *big.Int, _numOfIteratorItems int) ([]stackitem.Item, error)
NodesExpanded is similar to Nodes (uses the same contract method), but can be useful if the server used doesn't support sessions and doesn't expand iterators. It creates a script that will get the specified number of result items from the iterator right in the VM and return them to you. It's only limited by VM stack and GAS available for RPC invocations.
func (*ContractReader) Owner ¶
func (c *ContractReader) Owner(containerID []byte) ([]byte, error)
Owner invokes `owner` method of contract.
func (*ContractReader) ReplicasNumbers ¶ added in v0.21.0
ReplicasNumbers invokes `replicasNumbers` method of contract.
func (*ContractReader) ReplicasNumbersExpanded ¶ added in v0.21.0
func (c *ContractReader) ReplicasNumbersExpanded(cID util.Uint256, _numOfIteratorItems int) ([]stackitem.Item, error)
ReplicasNumbersExpanded is similar to ReplicasNumbers (uses the same contract method), but can be useful if the server used doesn't support sessions and doesn't expand iterators. It creates a script that will get the specified number of result items from the iterator right in the VM and return them to you. It's only limited by VM stack and GAS available for RPC invocations.
func (*ContractReader) UserQuota ¶ added in v0.24.0
func (c *ContractReader) UserQuota(user []byte) (*ContainerQuota, error)
UserQuota invokes `userQuota` method of contract.
func (*ContractReader) VerifyPlacementSignatures ¶ added in v0.21.0
func (c *ContractReader) VerifyPlacementSignatures(cid util.Uint256, msg []byte, sigs [][][]byte) (bool, error)
VerifyPlacementSignatures invokes `verifyPlacementSignatures` method of contract.
type EACLChangedEvent ¶ added in v0.22.0
EACLChangedEvent represents "EACLChanged" event emitted by the contract.
func EACLChangedEventsFromApplicationLog ¶ added in v0.22.0
func EACLChangedEventsFromApplicationLog(log *result.ApplicationLog) ([]*EACLChangedEvent, error)
EACLChangedEventsFromApplicationLog retrieves a set of all emitted events with "EACLChanged" name from the provided result.ApplicationLog.
func (*EACLChangedEvent) FromStackItem ¶ added in v0.22.0
func (e *EACLChangedEvent) FromStackItem(item *stackitem.Array) error
FromStackItem converts provided stackitem.Array to EACLChangedEvent or returns an error if it's not possible to do to so.
type NEP22Contract ¶ added in v0.25.0
NEP22Contract is an alias for nep22.Contract.
type NodesUpdateEvent ¶ added in v0.21.0
NodesUpdateEvent represents "NodesUpdate" event emitted by the contract.
func NodesUpdateEventsFromApplicationLog ¶ added in v0.21.0
func NodesUpdateEventsFromApplicationLog(log *result.ApplicationLog) ([]*NodesUpdateEvent, error)
NodesUpdateEventsFromApplicationLog retrieves a set of all emitted events with "NodesUpdate" name from the provided result.ApplicationLog.
func (*NodesUpdateEvent) FromStackItem ¶ added in v0.21.0
func (e *NodesUpdateEvent) FromStackItem(item *stackitem.Array) error
FromStackItem converts provided stackitem.Array to NodesUpdateEvent or returns an error if it's not possible to do to so.
type UserQuotaSetEvent ¶ added in v0.24.0
UserQuotaSetEvent represents "UserQuotaSet" event emitted by the contract.
func UserQuotaSetEventsFromApplicationLog ¶ added in v0.24.0
func UserQuotaSetEventsFromApplicationLog(log *result.ApplicationLog) ([]*UserQuotaSetEvent, error)
UserQuotaSetEventsFromApplicationLog retrieves a set of all emitted events with "UserQuotaSet" name from the provided result.ApplicationLog.
func (*UserQuotaSetEvent) FromStackItem ¶ added in v0.24.0
func (e *UserQuotaSetEvent) FromStackItem(item *stackitem.Array) error
FromStackItem converts provided stackitem.Array to UserQuotaSetEvent or returns an error if it's not possible to do to so.