Versions in this module Expand all Collapse all v0 v0.19.3 Jun 4, 2024 v0.19.2 Apr 4, 2024 v0.19.1 Mar 14, 2024 v0.19.0 Feb 20, 2024 Changes in this version + const IAMARNKey + const IAMCreatedTimeKey + const IAMModifiedTimeKey + const IAMPathKey + type Client struct + func New(ra actor.RPCActor, acc *wallet.Account, contract util.Uint160, opt Options) (*Client, error) + func NewSimple(act *actor.Actor, contract util.Uint160) *Client + func (c Client) AddSubjectKey(addr util.Uint160, key *keys.PublicKey) (tx util.Uint256, vub uint32, err error) + func (c Client) AddSubjectKeyCall(addr util.Uint160, key *keys.PublicKey) (method string, args []any) + func (c Client) AddSubjectToGroup(addr util.Uint160, groupID int64) (tx util.Uint256, vub uint32, err error) + func (c Client) AddSubjectToGroupCall(addr util.Uint160, groupID int64) (method string, args []any) + func (c Client) ClearAdmin() (tx util.Uint256, vub uint32, err error) + func (c Client) ClearAdminCall() (method string, args []any) + func (c Client) CreateGroup(namespace, group string) (tx util.Uint256, vub uint32, err error) + func (c Client) CreateGroupCall(namespace, group string) (method string, args []any) + func (c Client) CreateNamespace(namespace string) (tx util.Uint256, vub uint32, err error) + func (c Client) CreateNamespaceCall(namespace string) (method string, args []any) + func (c Client) CreateSubject(ns string, key *keys.PublicKey) (tx util.Uint256, vub uint32, err error) + func (c Client) CreateSubjectCall(ns string, key *keys.PublicKey) (method string, args []any) + func (c Client) DeleteGroup(namespace string, groupID int64) (tx util.Uint256, vub uint32, err error) + func (c Client) DeleteGroupCall(namespace string, groupID int64) (method string, args []any) + func (c Client) DeleteGroupKV(namespace string, groupID int64, key string) (tx util.Uint256, vub uint32, err error) + func (c Client) DeleteGroupKVCall(namespace string, groupID int64, key string) (method string, args []any) + func (c Client) DeleteSubject(addr util.Uint160) (tx util.Uint256, vub uint32, err error) + func (c Client) DeleteSubjectCall(addr util.Uint160) (method string, args []any) + func (c Client) DeleteSubjectKV(addr util.Uint160, key string) (tx util.Uint256, vub uint32, err error) + func (c Client) DeleteSubjectKVCall(addr util.Uint160, key string) (method string, args []any) + func (c Client) GetAdmin() (util.Uint160, bool, error) + func (c Client) GetGroup(namespace string, groupID int64) (*Group, error) + func (c Client) GetGroupByName(namespace, groupName string) (*Group, error) + func (c Client) GetGroupExtended(namespace string, groupID int64) (*GroupExtended, error) + func (c Client) GetGroupIDByName(namespace, groupName string) (int64, error) + func (c Client) GetNamespace(namespace string) (*Namespace, error) + func (c Client) GetNamespaceExtended(namespace string) (*NamespaceExtended, error) + func (c Client) GetSubject(addr util.Uint160) (*Subject, error) + func (c Client) GetSubjectByKey(key *keys.PublicKey) (*Subject, error) + func (c Client) GetSubjectByName(namespace, subjectName string) (*Subject, error) + func (c Client) GetSubjectExtended(addr util.Uint160) (*SubjectExtended, error) + func (c Client) GetSubjectKeyByName(namespace, subjectName string) (*keys.PublicKey, error) + func (c Client) ListGroupSubjects(namespace string, groupID int64) ([]util.Uint160, error) + func (c Client) ListGroups(namespace string) ([]*Group, error) + func (c Client) ListNamespaceSubjects(namespace string) ([]util.Uint160, error) + func (c Client) ListNamespaces() ([]*Namespace, error) + func (c Client) ListNonEmptyGroups(namespace string) ([]string, error) + func (c Client) ListNonEmptyNamespaces() ([]string, error) + func (c Client) ListSubjects() ([]util.Uint160, error) + func (c Client) ParseGroupID(res *state.AppExecResult, err error) (int64, error) + func (c Client) RemoveSubjectFromGroup(addr util.Uint160, groupID int64) (tx util.Uint256, vub uint32, err error) + func (c Client) RemoveSubjectFromGroupCall(addr util.Uint160, groupID int64) (method string, args []any) + func (c Client) RemoveSubjectKey(addr util.Uint160, key *keys.PublicKey) (tx util.Uint256, vub uint32, err error) + func (c Client) RemoveSubjectKeyCall(addr util.Uint160, key *keys.PublicKey) (method string, args []any) + func (c Client) SendTx(txn *commonclient.Transaction) (tx util.Uint256, vub uint32, err error) + func (c Client) SetAdmin(owner util.Uint160) (tx util.Uint256, vub uint32, err error) + func (c Client) SetAdminCall(owner util.Uint160) (method string, args []any) + func (c Client) SetGroupKV(namespace string, groupID int64, key, val string) (tx util.Uint256, vub uint32, err error) + func (c Client) SetGroupKVCall(namespace string, groupID int64, key, val string) (method string, args []any) + func (c Client) SetGroupName(namespace string, groupID int64, name string) (tx util.Uint256, vub uint32, err error) + func (c Client) SetGroupNameCall(namespace string, groupID int64, name string) (method string, args []any) + func (c Client) SetSubjectKV(addr util.Uint160, key, val string) (tx util.Uint256, vub uint32, err error) + func (c Client) SetSubjectKVCall(addr util.Uint160, key, val string) (method string, args []any) + func (c Client) SetSubjectName(addr util.Uint160, name string) (tx util.Uint256, vub uint32, err error) + func (c Client) SetSubjectNameCall(addr util.Uint160, name string) (method string, args []any) + func (c Client) StartTx() *commonclient.Transaction + func (c Client) Version() (int64, error) + func (c Client) Wait(tx util.Uint256, vub uint32, err error) (*state.AppExecResult, error) + func (c Client) Waiter() waiter.Waiter + type Group struct + ID int64 + KV map[string]string + Name string + Namespace string + type GroupExtended struct + ID int64 + KV map[string]string + Name string + Namespace string + SubjectsCount int64 + type Namespace struct + Name string + type NamespaceExtended struct + GroupsCount int64 + Name string + SubjectsCount int64 + type Options struct + ProxyContract util.Uint160 + type Subject struct + AdditionalKeys keys.PublicKeys + KV map[string]string + Name string + Namespace string + PrimaryKey *keys.PublicKey + type SubjectExtended struct + AdditionalKeys keys.PublicKeys + Groups []*Group + KV map[string]string + Name string + Namespace string + PrimaryKey *keys.PublicKey