treas

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountCreateReq

type AccountCreateReq struct {
}

type AccountCreateResp

type AccountCreateResp struct {
}

type AccountGetReq

type AccountGetReq struct {
	By   load.ByCode     `json:"by"`
	Lead *uc.AccountLead `json:"lead"`
}

type AccountLoadReq

type AccountLoadReq struct {
	Owners []uc.AccountOwner `json:"owners"`
	Page   *load.Page        `json:"page"`
}

type AccountLoadResp

type AccountLoadResp struct {
	Paging *load.Paging  `bson:"paging" json:"paging"`
	Items  []*uc.Account `bson:"items" json:"items"`
}

type AlterLoadReq

type AlterLoadReq struct {
	Lead *uc.AccountLead `json:"lead"`
	Page *load.Page      `json:"page"`
}

type AlterLoadResp

type AlterLoadResp struct {
	Paging *load.Paging `bson:"paging" json:"paging"`
	Items  []*uc.Alter  `bson:"items" json:"items"`
}

type CoinGetReq

type CoinGetReq struct {
	By   load.ByCode `json:"by"`
	Coin uc.Code     `json:"coin"`
}

type CoinIssueReq

type CoinIssueReq struct {
	Token    string  `json:"token"`
	Issuer   vn.ID   `json:"issuer"`
	Coin     uc.Code `json:"coin"`
	Wei      uc.WEI  `json:"wei"`
	Issuance int64   `json:"issuance"`
}

type CoinIssueResp

type CoinIssueResp struct {
	Coin *uc.Coin `json:"coin"`
}

type Service

type Service interface {
	CoinIssue(req CoinIssueReq) (*CoinIssueResp, *errors.Error)
	CoinGet(req CoinGetReq) (*uc.Coin, *errors.Error)
	AccountCreate(req AccountCreateReq) (*AccountCreateResp, *errors.Error)
	AccountGet(req AccountGetReq) (*uc.Account, *errors.Error)
	AccountLoad(req AccountLoadReq) (*AccountLoadResp, *errors.Error)
	AlterLoad(req AlterLoadReq) (*AlterLoadResp, *errors.Error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL