Documentation ¶
Index ¶
- type AccGetRequest
- type AccLoadTransferRequest
- type Account
- type Addr
- type AirdropRequest
- type Benchmark
- type Coin
- type Information
- type MintageRequest
- type Service
- type Transfer
- type Unique
- type Wallet
- type WalletAddAccRequest
- type WalletCreateConfirmRequest
- type WalletGetRequest
- type WalletImportAccRequest
- type WalletLoadAccRequest
- type WalletMnemonicCheckRequest
- type WalletMnemonicCheckResponse
- type WalletPreCreateRequest
- type WalletPreCreateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccGetRequest ¶
type AccGetRequest struct { Scope ref.Scope `bson:"scope" json:"scope"` //[*]所属域 AccountUnique Unique `bson:"account_unique" json:"account_unique"` With *struct { PrivateKey bool `bson:"private_key" json:"private_key"` PublicKey bool `bson:"public_key" json:"public_key"` Mnemonic bool `bson:"mnemonic" json:"mnemonic"` } `bson:"with" json:"with"` }
type AccLoadTransferRequest ¶
type Account ¶
type Account struct { Lead ref.Lead `bson:"lead" json:"lead"` Addr Addr `bson:"addr" json:"addr"` Coin Coin `bson:"coin" json:"coin"` Balance money.Amount `bson:"balance" json:"balance"` PublicKey string `bson:"public_key" json:"public_key"` Mnemonic string `bson:"mnemonic" json:"mnemonic"` PrivateKey string `bson:"private_key" json:"private_key"` }
type AirdropRequest ¶
type AirdropRequest struct { Scope ref.Scope `bson:"scope" json:"scope"` //[*]所属域 Lead ref.Lead `bson:"lead" json:"lead"` //[id|key]所属账户lead Amount money.Amount `bson:"amount" json:"amount"` //[*]注入金额 Issue ref.Collar `bson:"issue,omitempty" json:"issue,omitempty"` //[*]对应事件 Memo string `bson:"memo,omitempty" json:"memo,omitempty"` //[-]备注 }
type Benchmark ¶
type Benchmark struct { Provisions int64 `bson:"provisions" json:"provisions"` Currency string `bson:"currency" json:"currency"` }
Benchmark 游戏币的基准价值
type Information ¶
type Information struct { VN string `bson:"vn" json:"vn"` //所属价值网络 Coin string `bson:"coin" json:"coin"` //COIN 编码|全网唯一 Name string `bson:"name" json:"name"` //COIN NAME Icon media.Media `bson:"icon" json:"icon"` //图标 Issuance int64 `bson:"issuance" json:"issuance"` //发行量 Circulation int64 `bson:"circulation" json:"circulation"` //流通量 Info more.More `bson:"info" json:"info"` //展示信息 Media media.More `bson:"media" json:"media"` //图文视频信息 Available bool `bson:"available" json:"available"` //是否通行 BirthAt time.Time `bson:"birth_at" json:"birth_at"` //创建时间 ModifiedAt time.Time `bson:"modified_at" json:"modified_at"` //最后修改时间 }
Information 游戏币定义 只有VN守护者才有发行游戏币的资格,单个价值网络中发行的游戏币种类不超过10种
type MintageRequest ¶
type MintageRequest struct { Coin Coin `bson:"coin" json:"coin"` Quantity int64 `bson:"quantity" json:"quantity"` }
MintageRequest 铸币
type Service ¶
type Service interface { WalletPreCreate(req WalletPreCreateRequest) (WalletPreCreateResponse, *errors.Error) WalletMnemonicCheck(req WalletMnemonicCheckRequest) (WalletMnemonicCheckResponse, *errors.Error) WalletCreateConfirm(req WalletCreateConfirmRequest) (*Wallet, *errors.Error) WalletAddAccount(req WalletAddAccRequest) (*Account, *errors.Error) WalletGet(req WalletGetRequest) (*Wallet, *errors.Error) WalletLoadAccount(req WalletLoadAccRequest) ([]*Account, *errors.Error) AccLoadTransfer(req AccLoadTransferRequest) ([]*Transfer, *load.Paging, *errors.Error) Airdrop(req AirdropRequest) (transferID string, err *errors.Error) AccGet(req AccGetRequest) (*Account, *errors.Error) }
type WalletAddAccRequest ¶
type WalletGetRequest ¶
type WalletImportAccRequest ¶
type WalletImportAccRequest struct { Scope ref.Scope `bson:"scope" json:"scope"` //[*]所属域 WalletUnique Unique `bson:"wallet_unique" json:"wallet_unique"` Coin Coin `bson:"coin" json:"coin"` }
WalletImportAccRequest todo
type WalletLoadAccRequest ¶
type WalletMnemonicCheckResponse ¶
type WalletMnemonicCheckResponse struct {
Correct bool `bson:"correct" json:"correct"`
}
type WalletPreCreateRequest ¶
type WalletPreCreateResponse ¶
Click to show internal directories.
Click to hide internal directories.