Documentation
¶
Index ¶
- Constants
- Variables
- func AcceptOfferWrongBatch(index int)
- func CreateCollectionCorrectBatch(index int)
- func CreateCollectionWrongBatch(index int)
- func MakeBuyOfferCorrect(index int)
- func MakeOfferCorrectBatch(index int)
- func MakeOfferWrongBatch(index int)
- func MintNftCorrectOnce(index int)
- func MintNftCorrectWrongBatch(index int)
- func SignAndSendCreateCollectionTx(keyManager sdk.KeyManager, tx *sdk.CreateCollectionTxInfo, ShortName string, ...) (*sdk.RespCreateCollection, error)
- func SignAndSendMintNftTx(...) (*sdk.RespCreateAsset, error)
- func SignAndSendTransferNftTx(keyManager sdk.KeyManager, AssetId, txInfoSdk string) (*sdk.RespSendTransferNft, error)
- func TransferNftCorrectOnce(index int)
- func TransferNftWrongBatch(index int)
- func WithdrawNftCorrectOnce(index int)
- func WithdrawNftWrongBatch(index int)
- type Config
- type MintNftTxInfo
- type TransferNftTxInfo
Constants ¶
View Source
const ( DefaultGasLimit = 5000000 NameSuffix = ".zec" MinGasFee = 100000000000000 // 0.0001BNB BNBAssetId = 0 LEGAssetId = 1 PerMinute = 1000 )
Variables ¶
View Source
var Client *sdk.Client
View Source
var ConfigFile = flag.String("f",
"/Users/user0/work/zecrey-marketplace-go-sdk/sdk/test/config.yaml", "the config file")
Functions ¶
func AcceptOfferWrongBatch ¶
func AcceptOfferWrongBatch(index int)
func CreateCollectionCorrectBatch ¶
func CreateCollectionCorrectBatch(index int)
func CreateCollectionWrongBatch ¶
func CreateCollectionWrongBatch(index int)
func MakeBuyOfferCorrect ¶
func MakeBuyOfferCorrect(index int)
func MakeOfferCorrectBatch ¶
func MakeOfferCorrectBatch(index int)
func MakeOfferWrongBatch ¶
func MakeOfferWrongBatch(index int)
func MintNftCorrectOnce ¶
func MintNftCorrectOnce(index int)
MintNftCorrectOnce nft media just once chance
func MintNftCorrectWrongBatch ¶
func MintNftCorrectWrongBatch(index int)
func SignAndSendCreateCollectionTx ¶
func SignAndSendCreateCollectionTx(keyManager sdk.KeyManager, tx *sdk.CreateCollectionTxInfo, ShortName string, CategoryId string, CreatorEarningRate string, ops ...model.CollectionOption) (*sdk.RespCreateCollection, error)
func SignAndSendMintNftTx ¶
func SignAndSendMintNftTx(CollectionId, NftUrl, Name, Description, Media, _PropertiesByte, _LevelsByte, _StatsByte string, txInfo *sdk.MintNftTxInfo) (*sdk.RespCreateAsset, error)
func SignAndSendTransferNftTx ¶
func SignAndSendTransferNftTx(keyManager sdk.KeyManager, AssetId, txInfoSdk string) (*sdk.RespSendTransferNft, error)
func TransferNftCorrectOnce ¶
func TransferNftCorrectOnce(index int)
func TransferNftWrongBatch ¶
func TransferNftWrongBatch(index int)
func WithdrawNftCorrectOnce ¶
func WithdrawNftCorrectOnce(index int)
func WithdrawNftWrongBatch ¶
func WithdrawNftWrongBatch(index int)
Types ¶
type Config ¶
type Config struct {
AccountName string
ShortName string
Seed string
CategoryId string
CollectionUrl string
ExternalLink string
TwitterLink string
InstagramLink string
TelegramLink string
DiscordLink string
LogoImage string
FeaturedImage string
BannerImage string
Description string
CreatorEarningRate string
BoundaryStr string
BoundaryStr2 string
BoundaryStr3 string
NftDescription string
Properties string
Levels string
Stats string
CollectionId int64
NftName string
NftUrl string
NftMedia string
NftMediaWrong string
SellAssetId int64
BuyAssetId int64
WithdrawAssetId int64
TransferAssetId int64
Tol1Address string
ToAccountName string
AssetAmount int64
}
var Cfg Config
type MintNftTxInfo ¶
type TransferNftTxInfo ¶
type TransferNftTxInfo struct {
ToAccountName,
AssetId string
}
Click to show internal directories.
Click to hide internal directories.