Skip to content

Commit

Permalink
added the remaining blueprint utils
Browse files Browse the repository at this point in the history
  • Loading branch information
leonlai257 committed Dec 4, 2024
1 parent 9fd1fa7 commit fd47afc
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion snippet-extension/snippets/mesh/mesh-blueprint-utils.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,32 @@
{
"MintingBlueprint": {
"prefix": [
"Minting",
"MintingBlueprint"
],
"body": [
"const blueprint = new MintingBlueprint(\"V3\");",
"blueprint.paramScript(\"${compiledCode:CborHex}\", [\"${params:params}\"], \"${paramsType:Mesh}\");"
],
"description": "Initialize a Minting Blueprint"
},
"SpendingBlueprint": {
"prefix": [
"SpendingBlueprint"
],
"body": [
"const blueprint = new SpendingBlueprint(\"V3\", ${networkId:0}, \"${stakeHash:\"stakeHash\"}\");",
"blueprint.paramScript(\"${compiledCode:CborHex}\", [\"${params:params}\"], \"${paramsType:Mesh}\");"
],
"description": "Initialize a Spending Blueprint"
},
"WithdrawalBlueprint": {
"prefix": [
"WithdrawalBlueprint"
],
"body": [
"const blueprint = new WithdrawalBlueprint(\"V3\", \"${networkId:0}\");",
"blueprint.paramScript(\"${compiledCode:CborHex}\", [\"${params:params}\"], \"${paramsType:Mesh}\");"
],
"description": "Initialize a Withdrawal Blueprint"
}
}

0 comments on commit fd47afc

Please sign in to comment.