Documentation ¶
Index ¶
- type AssetOper
- func (t *AssetOper) AlterAsset(param *xbase.AlterAssetParam) (*xbase.BaseResp, *xbase.RequestRes, error)
- func (t *AssetOper) BdBoxBind(param *xbase.BdBoxBindParam) (*xbase.BaseResp, *xbase.RequestRes, error)
- func (t *AssetOper) BdBoxRegister(param *xbase.BdBoxRegisterParam) (*xbase.BdBoxRegisterResp, *xbase.RequestRes, error)
- func (t *AssetOper) BindByUnionId(param *xbase.BindByUnionIdParam) (*xbase.BaseResp, *xbase.RequestRes, error)
- func (t *AssetOper) ComposeShard(consumeList []*xbase.AssetShardPair, param *xbase.ComposeParam) (*xbase.ComposeResp, *xbase.RequestRes, error)
- func (t *AssetOper) ConsumeShard(param *xbase.ConsumeShardParam) (*xbase.BaseResp, *xbase.RequestRes, error)
- func (t *AssetOper) CreateAsset(param *xbase.CreateAssetParam) (*xbase.CreateAssetResp, *xbase.RequestRes, error)
- func (t *AssetOper) FreezeAsset(param *xbase.FreezeAssetParam) (*xbase.BaseResp, *xbase.RequestRes, error)
- func (t *AssetOper) FreezeShard(param *xbase.LockOrFreezeShardParam) (*xbase.BaseResp, *xbase.RequestRes, error)
- func (t *AssetOper) GetAddrByUnionId(uid string) (*xbase.GetAddrByUnionIdResp, *xbase.RequestRes, error)
- func (t *AssetOper) GetEvidenceInfo(param *xbase.GetEvidenceInfoParam) (*xbase.GetEvidenceInfoResp, *xbase.RequestRes, error)
- func (t *AssetOper) GetStoken(param *xbase.GetStokenParam) (*xbase.GetStokenResp, *xbase.RequestRes, error)
- func (t *AssetOper) GrantAsset(param *xbase.GrantAssetParam) (*xbase.GrantAssetResp, *xbase.RequestRes, error)
- func (t *AssetOper) GrantBox(param *xbase.GrantBoxParam) (*xbase.GrantBoxResp, *xbase.RequestRes, error)
- func (t *AssetOper) ListAssetHistory(param *xbase.ListAssetHisParam) (*xbase.ListAssetHistoryResp, *xbase.RequestRes, error)
- func (t *AssetOper) ListAssetsByAddr(param *xbase.ListAssetsByAddrParam) (*xbase.ListAssetsByAddrResp, *xbase.RequestRes, error)
- func (t *AssetOper) ListDiffByAddr(param *xbase.ListDiffByAddrParam) (*xbase.ListDiffByAddrResp, *xbase.RequestRes, error)
- func (t *AssetOper) ListShardsByAddr(param *xbase.ListShardsByAddrParam) (*xbase.ListShardsByAddrResp, *xbase.RequestRes, error)
- func (t *AssetOper) ListShardsByAsset(param *xbase.ListShardsByAssetParam) (*xbase.ListShardsByAssetResp, *xbase.RequestRes, error)
- func (t *AssetOper) LockShard(param *xbase.LockOrFreezeShardParam) (*xbase.BaseResp, *xbase.RequestRes, error)
- func (t *AssetOper) PublishAsset(param *xbase.PublishAssetParam) (*xbase.BaseResp, *xbase.RequestRes, error)
- func (t *AssetOper) QueryAsset(param *xbase.QueryAssetParam) (*xbase.QueryAssetResp, *xbase.RequestRes, error)
- func (t *AssetOper) QueryShard(param *xbase.QueryShardParam) (*xbase.QueryShardResp, *xbase.RequestRes, error)
- func (t *AssetOper) SceneHasAssetByAddr(param *xbase.SceneHasAssetByAddrParam) (*xbase.SceneHasAssetByAddrResp, *xbase.RequestRes, error)
- func (t *AssetOper) SceneListAddr(uid string) (*xbase.SceneListAddrResp, *xbase.RequestRes, error)
- func (t *AssetOper) SceneListDiffByAddr(param *xbase.SceneListDiffByAddrParam) (*xbase.ListDiffByAddrResp, *xbase.RequestRes, error)
- func (t *AssetOper) SceneListShardByAddr(param *xbase.SceneListShardByAddrParam) (*xbase.SceneListShardByAddrResp, *xbase.RequestRes, error)
- func (t *AssetOper) SceneQueryShard(param *xbase.SceneQueryShardParam) (*xbase.SceneQueryShardResp, *xbase.RequestRes, error)
- func (t *AssetOper) SelectBoxAst(param *xbase.SelBoxAstParam) (*xbase.SelBoxAstResp, *xbase.RequestRes, error)
- func (t *AssetOper) SelectMaterial(param *xbase.SelMaterialParam) (*xbase.SelMaterialResp, *xbase.RequestRes, error)
- func (t *AssetOper) TransferAsset(param *xbase.TransferAssetParam) (*xbase.BaseResp, *xbase.RequestRes, error)
- func (t *AssetOper) UnFreezeShard(param *xbase.LockOrFreezeShardParam) (*xbase.BaseResp, *xbase.RequestRes, error)
- func (t *AssetOper) UpgradeAst(param *xbase.UpgradeAstParam) (*xbase.BaseResp, *xbase.RequestRes, error)
- func (t *AssetOper) UpgradeSds(param *xbase.UpgradeSdsParam) (*xbase.BaseResp, *xbase.RequestRes, error)
- func (t *AssetOper) UploadFile(param *xbase.UploadFileParam) (*xbase.UploadFileResp, *xbase.RequestRes, error)
- func (t *AssetOper) VilgBalance() (*xbase.VilgBalanceResp, *xbase.RequestRes, error)
- func (t *AssetOper) VilgGetImg(taskId int64) (*xbase.VilgGetImgResp, *xbase.RequestRes, error)
- func (t *AssetOper) VilgText2Img(param *xbase.VilgText2ImgParam) (*xbase.VilgText2ImgResp, *xbase.RequestRes, error)
- func (t *AssetOper) VilgText2ImgV2(param *xbase.VilgText2ImgV2Param) (*xbase.VilgText2ImgResp, *xbase.RequestRes, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetOper ¶
type AssetOper struct {
xbase.XassetBaseClient
}
func NewAssetOperCli ¶
func (*AssetOper) AlterAsset ¶
func (t *AssetOper) AlterAsset(param *xbase.AlterAssetParam) (*xbase.BaseResp, *xbase.RequestRes, error)
AlterAsset Empty price makes the asset with a zero price value. If you don't want to alter the price parameter, set price to -1. Empty amount makes the asset with an endless supply of shards. If you don't want to alter the amount parameter, set amount to -1.
func (*AssetOper) BdBoxBind ¶ added in v1.0.12
func (t *AssetOper) BdBoxBind(param *xbase.BdBoxBindParam) (*xbase.BaseResp, *xbase.RequestRes, error)
func (*AssetOper) BdBoxRegister ¶ added in v1.0.12
func (t *AssetOper) BdBoxRegister(param *xbase.BdBoxRegisterParam) (*xbase.BdBoxRegisterResp, *xbase.RequestRes, error)
func (*AssetOper) BindByUnionId ¶ added in v1.0.12
func (t *AssetOper) BindByUnionId(param *xbase.BindByUnionIdParam) (*xbase.BaseResp, *xbase.RequestRes, error)
func (*AssetOper) ComposeShard ¶ added in v1.0.26
func (t *AssetOper) ComposeShard(consumeList []*xbase.AssetShardPair, param *xbase.ComposeParam) (*xbase.ComposeResp, *xbase.RequestRes, error)
func (*AssetOper) ConsumeShard ¶ added in v1.0.4
func (t *AssetOper) ConsumeShard(param *xbase.ConsumeShardParam) (*xbase.BaseResp, *xbase.RequestRes, error)
ConsumeShard consumes shards where any other action is forbidden.
func (*AssetOper) CreateAsset ¶
func (t *AssetOper) CreateAsset(param *xbase.CreateAssetParam) (*xbase.CreateAssetResp, *xbase.RequestRes, error)
func (*AssetOper) FreezeAsset ¶ added in v1.0.4
func (t *AssetOper) FreezeAsset(param *xbase.FreezeAssetParam) (*xbase.BaseResp, *xbase.RequestRes, error)
FreezeAsset freeze assets where granting action is forbidden.
func (*AssetOper) FreezeShard ¶ added in v1.0.33
func (t *AssetOper) FreezeShard(param *xbase.LockOrFreezeShardParam) (*xbase.BaseResp, *xbase.RequestRes, error)
func (*AssetOper) GetAddrByUnionId ¶ added in v1.0.12
func (t *AssetOper) GetAddrByUnionId(uid string) (*xbase.GetAddrByUnionIdResp, *xbase.RequestRes, error)
func (*AssetOper) GetEvidenceInfo ¶
func (t *AssetOper) GetEvidenceInfo(param *xbase.GetEvidenceInfoParam) (*xbase.GetEvidenceInfoResp, *xbase.RequestRes, error)
func (*AssetOper) GetStoken ¶
func (t *AssetOper) GetStoken(param *xbase.GetStokenParam) (*xbase.GetStokenResp, *xbase.RequestRes, error)
func (*AssetOper) GrantAsset ¶
func (t *AssetOper) GrantAsset(param *xbase.GrantAssetParam) (*xbase.GrantAssetResp, *xbase.RequestRes, error)
GrantAsset grants a random shard to the specific address for the very first time after the maker publishes its asset.
func (*AssetOper) GrantBox ¶ added in v1.0.25
func (t *AssetOper) GrantBox(param *xbase.GrantBoxParam) (*xbase.GrantBoxResp, *xbase.RequestRes, error)
func (*AssetOper) ListAssetHistory ¶ added in v1.0.4
func (t *AssetOper) ListAssetHistory(param *xbase.ListAssetHisParam) (*xbase.ListAssetHistoryResp, *xbase.RequestRes, error)
func (*AssetOper) ListAssetsByAddr ¶ added in v1.0.3
func (t *AssetOper) ListAssetsByAddr(param *xbase.ListAssetsByAddrParam) (*xbase.ListAssetsByAddrResp, *xbase.RequestRes, error)
func (*AssetOper) ListDiffByAddr ¶ added in v1.0.10
func (t *AssetOper) ListDiffByAddr(param *xbase.ListDiffByAddrParam) (*xbase.ListDiffByAddrResp, *xbase.RequestRes, error)
func (*AssetOper) ListShardsByAddr ¶
func (t *AssetOper) ListShardsByAddr(param *xbase.ListShardsByAddrParam) (*xbase.ListShardsByAddrResp, *xbase.RequestRes, error)
func (*AssetOper) ListShardsByAsset ¶ added in v1.0.3
func (t *AssetOper) ListShardsByAsset(param *xbase.ListShardsByAssetParam) (*xbase.ListShardsByAssetResp, *xbase.RequestRes, error)
func (*AssetOper) LockShard ¶ added in v1.0.33
func (t *AssetOper) LockShard(param *xbase.LockOrFreezeShardParam) (*xbase.BaseResp, *xbase.RequestRes, error)
func (*AssetOper) PublishAsset ¶
func (t *AssetOper) PublishAsset(param *xbase.PublishAssetParam) (*xbase.BaseResp, *xbase.RequestRes, error)
func (*AssetOper) QueryAsset ¶
func (t *AssetOper) QueryAsset(param *xbase.QueryAssetParam) (*xbase.QueryAssetResp, *xbase.RequestRes, error)
func (*AssetOper) QueryShard ¶
func (t *AssetOper) QueryShard(param *xbase.QueryShardParam) (*xbase.QueryShardResp, *xbase.RequestRes, error)
func (*AssetOper) SceneHasAssetByAddr ¶ added in v1.0.12
func (t *AssetOper) SceneHasAssetByAddr(param *xbase.SceneHasAssetByAddrParam) (*xbase.SceneHasAssetByAddrResp, *xbase.RequestRes, error)
func (*AssetOper) SceneListAddr ¶ added in v1.0.12
func (t *AssetOper) SceneListAddr(uid string) (*xbase.SceneListAddrResp, *xbase.RequestRes, error)
func (*AssetOper) SceneListDiffByAddr ¶ added in v1.0.10
func (t *AssetOper) SceneListDiffByAddr(param *xbase.SceneListDiffByAddrParam) (*xbase.ListDiffByAddrResp, *xbase.RequestRes, error)
func (*AssetOper) SceneListShardByAddr ¶ added in v1.0.9
func (t *AssetOper) SceneListShardByAddr(param *xbase.SceneListShardByAddrParam) (*xbase.SceneListShardByAddrResp, *xbase.RequestRes, error)
SceneListShardByAddr list shards under scene authorization.
func (*AssetOper) SceneQueryShard ¶ added in v1.0.9
func (t *AssetOper) SceneQueryShard(param *xbase.SceneQueryShardParam) (*xbase.SceneQueryShardResp, *xbase.RequestRes, error)
SceneQueryShard query shard under scene authorization.
func (*AssetOper) SelectBoxAst ¶ added in v1.0.25
func (t *AssetOper) SelectBoxAst(param *xbase.SelBoxAstParam) (*xbase.SelBoxAstResp, *xbase.RequestRes, error)
func (*AssetOper) SelectMaterial ¶ added in v1.0.26
func (t *AssetOper) SelectMaterial(param *xbase.SelMaterialParam) (*xbase.SelMaterialResp, *xbase.RequestRes, error)
func (*AssetOper) TransferAsset ¶
func (t *AssetOper) TransferAsset(param *xbase.TransferAssetParam) (*xbase.BaseResp, *xbase.RequestRes, error)
GrantAsset transfer th specific shard from address A to address B.
func (*AssetOper) UnFreezeShard ¶ added in v1.0.33
func (t *AssetOper) UnFreezeShard(param *xbase.LockOrFreezeShardParam) (*xbase.BaseResp, *xbase.RequestRes, error)
func (*AssetOper) UpgradeAst ¶ added in v1.0.32
func (t *AssetOper) UpgradeAst(param *xbase.UpgradeAstParam) (*xbase.BaseResp, *xbase.RequestRes, error)
func (*AssetOper) UpgradeSds ¶ added in v1.0.32
func (t *AssetOper) UpgradeSds(param *xbase.UpgradeSdsParam) (*xbase.BaseResp, *xbase.RequestRes, error)
func (*AssetOper) UploadFile ¶
func (t *AssetOper) UploadFile(param *xbase.UploadFileParam) (*xbase.UploadFileResp, *xbase.RequestRes, error)
func (*AssetOper) VilgBalance ¶ added in v1.0.25
func (t *AssetOper) VilgBalance() (*xbase.VilgBalanceResp, *xbase.RequestRes, error)
func (*AssetOper) VilgGetImg ¶ added in v1.0.25
func (t *AssetOper) VilgGetImg(taskId int64) (*xbase.VilgGetImgResp, *xbase.RequestRes, error)
func (*AssetOper) VilgText2Img ¶ added in v1.0.25
func (t *AssetOper) VilgText2Img(param *xbase.VilgText2ImgParam) (*xbase.VilgText2ImgResp, *xbase.RequestRes, error)
func (*AssetOper) VilgText2ImgV2 ¶ added in v1.0.38
func (t *AssetOper) VilgText2ImgV2(param *xbase.VilgText2ImgV2Param) (*xbase.VilgText2ImgResp, *xbase.RequestRes, error)