From fd47afc7a22edb7a64639a5192c18e3da2b2b091 Mon Sep 17 00:00:00 2001 From: leonlai257 Date: Tue, 3 Dec 2024 22:46:12 -0500 Subject: [PATCH] added the remaining blueprint utils --- .../snippets/mesh/mesh-blueprint-utils.json | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/snippet-extension/snippets/mesh/mesh-blueprint-utils.json b/snippet-extension/snippets/mesh/mesh-blueprint-utils.json index af0cd14..7dfc2ff 100644 --- a/snippet-extension/snippets/mesh/mesh-blueprint-utils.json +++ b/snippet-extension/snippets/mesh/mesh-blueprint-utils.json @@ -1,7 +1,6 @@ { "MintingBlueprint": { "prefix": [ - "Minting", "MintingBlueprint" ], "body": [ @@ -9,5 +8,25 @@ "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" } } \ No newline at end of file