-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzencode_ocean.lua
35 lines (29 loc) · 1022 Bytes
/
zencode_ocean.lua
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
28
29
30
31
32
33
34
35
python = require("python")
python.eval("print('Executing Ocean Smart Contracts from within Zenroom')")
Given("that the wallet is ''", function(publickey)
ACK.publickey = publickey
end)
Given("that the wallet password is ''", function(boolean)
ACK.password_set = boolean -- boolean result
end)
Given("that the ocean configuration is ''", function(boolean)
ACK.configuration_set = boolean -- boolean result
end)
Given("that the token name is ''", function(name)
ACK.token_name = name
end)Given("that the token id is ''", function(id)
ACK.token_id = id
end)Given("that the token type is ''", function(type)
ACK.token_type = type
end)
Given("that the license is ''", function(license)
ACK.license = license
end)
Then("create asset token", function()
OUT = "Hello, " .. "! The result is: " .. " Ethereum contract executed, successfully."
end)
Then("print contract did", function()
print(OUT)
-- python.eval("print(\"" .. OUT .. "\")")
python.eval("run_scenario()")
end)