xasset

package
v1.0.45 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 NewAssetOperCli(cfg *config.XassetCliConfig, logger logs.LogDriver) (*AssetOper, error)

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 (*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 (*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 (*AssetOper) GetAddrByUnionId added in v1.0.12

func (t *AssetOper) GetAddrByUnionId(uid string) (*xbase.GetAddrByUnionIdResp, *xbase.RequestRes, error)

func (*AssetOper) GetEvidenceInfo

func (*AssetOper) GetStoken

func (*AssetOper) GrantAsset

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 (*AssetOper) ListAssetHistory added in v1.0.4

func (*AssetOper) ListAssetsByAddr added in v1.0.3

func (*AssetOper) ListDiffByAddr added in v1.0.10

func (*AssetOper) ListShardsByAddr

func (*AssetOper) ListShardsByAsset added in v1.0.3

func (*AssetOper) LockShard added in v1.0.33

func (*AssetOper) PublishAsset

func (t *AssetOper) PublishAsset(param *xbase.PublishAssetParam) (*xbase.BaseResp, *xbase.RequestRes, error)

func (*AssetOper) QueryAsset

func (*AssetOper) QueryShard

func (*AssetOper) SceneHasAssetByAddr added in v1.0.12

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 (*AssetOper) SceneListShardByAddr added in v1.0.9

SceneListShardByAddr list shards under scene authorization.

func (*AssetOper) SceneQueryShard added in v1.0.9

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 (*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 (*AssetOper) VilgText2ImgV2 added in v1.0.38

Jump to

Keyboard shortcuts

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