Test bridge
export AUTHOR=$KYLIN_TEST_ACCOUNT
export COLLECTION_NAME=nftauthcoll2 # create a different one because this one's taken
export ALLOW_NOTIFY=1
export AUTHORIZED_ACCOUNTS=[$KYLIN_TEST_ACCOUNT] # add additional accounts if necessary
export NOTIFY_ACCOUNTS=[""]
export MARKET_FEE=0.01 # cause we're fair people
export DATA=[]
export SCHEMA_NAME=nftauthschem
export SCHEMA_FORMAT=[ {name: "name", type: "string"}, {name: "series", type: "string"}, {name: "moment", type: "string"}, {name: "description", type: "string"}, {name: "img", type: "image"}, {name: "backimg", type: "string"}, {name: "rarity", type: "string"} ]
# not working, if you know how to make it (passing array as variable) work, please edit!!
# cleos -u $KYLIN_ENDPOINT push action $KYLIN_TOKEN_ACCOUNT createcol "[\"$AUTHOR\",\"$COLLECTION_NAME\",\"$ALLOW_NOTIFY\",\"$AUTHORIZED_ACCOUNTS\",\"$NOTIFY_ACCOUNTS\",\"$MARKET_FEE\",\"$DATA\"]" -p $KYLIN_TEST_ACCOUNT@active
# create collection
cleos -u $KYLIN_ENDPOINT push transaction '{
"delay_sec": 0,
"max_cpu_usage_ms": 0,
"actions": [
{
"account": "bridgeassets",
"name": "createcol",
"data": {
"author": "natdeveloper",
"collection_name": "nftauthcoll2",
"allow_notify": true,
"authorized_accounts": [
"natdeveloper"
],
"notify_accounts": [],
"market_fee": 0.01,
"data": []
},
"authorization": [
{
"actor": "natdeveloper",
"permission": "active"
}
]
}
]
}'
# create schema
cleos -u $KYLIN_ENDPOINT push transaction '{
"delay_sec": 0,
"max_cpu_usage_ms": 0,
"actions": [
{
"account": "bridgeassets",
"name": "createschema",
"data": {
"authorized_creator": "natdeveloper",
"collection_name": "nftauthcoll2",
"schema_name": "nftauthschem",
"schema_format": [
{
"name": "name",
"type": "string"
},
{
"name": "series",
"type": "string"
},
{
"name": "moment",
"type": "string"
},
{
"name": "description",
"type": "string"
},
{
"name": "img",
"type": "image"
},
{
"name": "backimg",
"type": "string"
},
{
"name": "rarity",
"type": "string"
}
]
},
"authorization": [
{
"actor": "natdeveloper",
"permission": "active"
}
]
}
]
}'




Last updated
Was this helpful?