models

package
v0.0.0-...-05bfa8f Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetCreate

type AssetCreate struct {
	CreatorAddr   string `json:"creatorAddr"`
	AssetName     string `json:"assetName"`
	UnitName      string `json:"unitName"`
	TotalIssuance uint64 `json:"totalIssuance"`
	Decimals      uint32 `json:"decimals"`
	DefaultFrozen bool   `json:"defaultFrozen"`
	URL           string `json:"url"`
	MetaDataHash  string `json:"metadataHash"`
	ManagerAddr   string `json:"managerAddr"`
	ReserveAddr   string `json:"reserveAddr"`
	FreezeAddr    string `json:"freezeAddr"`
	ClawbackAddr  string `json:"clawbackAddr"`
}

AssetCreate is the structure received from web for creating a new asset

type AssetDestroy

type AssetDestroy struct {
	AssetID     uint64 `json:"assetId"`
	ManagerAddr string `json:"managerAddr"`
}

AssetDestroy is the structure passed to the destroy transaction for destroying an asset

type AssetFreeze

type AssetFreeze struct {
	AssetID       uint64 `json:"assetId"`
	FreezeAddr    string `json:"freezeAddr"`
	TargetAddr    string `json:"targetAddr"`
	FreezeSetting bool   `json:"freezeSetting"`
}

AssetFreeze is the structure passed to the freeze transaction for freezing an asset

type AssetListing

type AssetListing struct {
	AssetID string `json:"assetId"`
}

AssetListing is an asset listing

type AssetModify

type AssetModify struct {
	AssetID         uint64 `json:"assetId"`
	CurrManagerAddr string `json:"currManagerAddr"`
	NewManagerAddr  string `json:"newManagerAddr"`
	NewReserveAddr  string `json:"newReserveAddr"`
	NewFreezeAddr   string `json:"newFreezeAddr"`
	NewClawbackAddr string `json:"newClawbackAddr"`
}

AssetModify is the structure passed to the modify transaction for modifying an asset

type AssetRevoke

type AssetRevoke struct {
	AssetID       uint64 `json:"assetId"`
	ClawbackAddr  string `json:"clawbackAddr"`
	TargetAddr    string `json:"targetAddr"`
	RecipientAddr string `json:"recipientAddr"`
	Amount        uint64 `json:"amount"`
}

AssetRevoke is the structure passed to the revoke transaction for revoking an asset

type OwnedAssets

type OwnedAssets struct {
	CreatorAddress  string `pg:",pk" json:"creatorAddr"`
	ManagerAddress  string `json:"managerAddr"`
	ReserveAddress  string `json:"reserveAddr`
	FreezeAddress   string `json:"freezeAddr"`
	ClawbackAddress string `json:"clawbackAddr"`
	AssetId         string `json:"assetId"`
}

OwnedAssets is the mapping between an Algorand account and assets owned by them

Jump to

Keyboard shortcuts

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