Documentation ¶
Index ¶
- Constants
- Variables
- func INSCONSTRUCTOR_New(data []byte) ([]byte, []byte, error)
- func INSMETHOD_AddDeposit(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_Call(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_FindDeposit(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetAccount(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetBurnAddress(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetCode(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetDeposits(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetName(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetPrototype(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetPublicKey(object []byte, data []byte) ([]byte, []byte, error)
- func INSMETHOD_GetWallet(object []byte, data []byte) ([]byte, []byte, error)
- func INS_META_INFO() []map[string]string
- func Initialize() XXX_insolar.ContractWrapper
- type CreateResponse
- type DepositMigrationResult
- type GetBalanceResponse
- type GetResponse
- type Member
- func (m *Member) AddDeposit(txId string, deposit insolar.Reference) error
- func (m *Member) Call(signedRequest []byte) (interface{}, error)
- func (m *Member) FindDeposit(transactionsHash string) (bool, insolar.Reference, error)
- func (m Member) GetAccount(assetName string) (*insolar.Reference, error)
- func (m Member) GetBurnAddress() (string, error)
- func (m Member) GetDeposits() (map[string]interface{}, error)
- func (m Member) GetName() (string, error)
- func (m Member) GetPublicKey() (string, error)
- func (m Member) GetWallet() (*insolar.Reference, error)
- type MigrationCreateResponse
- type Params
- type Request
- type TransferResponse
Constants ¶
View Source
const XNS = "XNS"
Variables ¶
View Source
var INSATTR_Call_API = true
View Source
var INSATTR_GetPublicKey_API = true
Functions ¶
func INSMETHOD_AddDeposit ¶
func INSMETHOD_FindDeposit ¶
func INSMETHOD_GetAccount ¶
func INSMETHOD_GetDeposits ¶
func INSMETHOD_GetPrototype ¶
func INSMETHOD_GetPublicKey ¶
func INSMETHOD_GetWallet ¶
func INS_META_INFO ¶
func Initialize ¶
func Initialize() XXX_insolar.ContractWrapper
Types ¶
type CreateResponse ¶
type CreateResponse struct {
Reference string `json:"reference"`
}
Create member methods.
type DepositMigrationResult ¶
type DepositMigrationResult struct {
Reference string `json:"memberReference"`
}
Migration methods.
type GetBalanceResponse ¶
type GetResponse ¶
type Member ¶
type Member struct { foundation.BaseContract RootDomain insolar.Reference Deposits map[string]insolar.Reference Name string PublicKey string MigrationAddress string Wallet insolar.Reference }
Member - basic member contract.
func New ¶
func New(rootDomain insolar.Reference, name string, key string, burnAddress string, walletRef insolar.Reference) (*Member, error)
New creates new member.
func (*Member) AddDeposit ¶
SetDeposit method stores deposit reference in member it belongs to
func (*Member) FindDeposit ¶
FindDeposit finds deposit for this member with this transaction hash. ins:immutable
func (Member) GetAccount ¶
GetAccount gets account. ins:immutable
func (Member) GetDeposits ¶
GetDeposits get all deposits for this member ins:immutable
func (Member) GetPublicKey ¶
GetPublicKey gets public key. ins:immutable
type MigrationCreateResponse ¶
type TransferResponse ¶
type TransferResponse struct {
Fee string `json:"fee"`
}
Click to show internal directories.
Click to hide internal directories.