-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathplanetmint_store_asset_amount.zen
More file actions
27 lines (21 loc) · 886 Bytes
/
planetmint_store_asset_amount.zen
File metadata and controls
27 lines (21 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Rule unknown ignore
Scenario 'eddsa': Create the key
Scenario 'planetmint': Create the key
# Restroom onBefore
Given I have a planetmint endpoint named 'endpoint'
Given I prepare the planetmint transaction to store 'quantity' of 'asset' from 'eddsa_public_key'
# Zenroom
Given I have the 'keyring'
Given I have a 'base58' named 'eddsa public key'
Given I have a 'string dictionary' named 'asset'
Given I have a 'string' named 'endpoint'
Given I have a 'string' named 'quantity'
Given I have a 'string' named 'planetmint transaction'
When I create the hash of 'asset'
When I create the planetmint signatures of 'planetmint transaction'
# Zenroom
Then print the data
Then print the 'keyring'
# Restrom onSuccess
Then I prepare the signed planetmint transaction of 'planetmint_transaction' from 'eddsa_public_key'
Then ask planetmint to broadcast the 'signed_planetmint_transaction'