Skip to content
This repository was archived by the owner on Jan 5, 2019. It is now read-only.

Commit d020c77

Browse files
committed
Regenerate interface
1 parent f7be3d9 commit d020c77

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

include/wast-async.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace evm2wasm
2020
}
2121
},{
2222
opcodeEnum::GAS, {
23-
.wast = ";; generated by ./wasm/generateInterface.js\n(func $GAS (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getGasLeft))\n\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
23+
.wast = ";; generated by ./wasm/generateInterface.js\n(func $GAS (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getGasLeft))\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
2424
.imports = "(import \"ethereum\" \"getGasLeft\" (func $getGasLeft (result i64)))"
2525
}
2626
},{
@@ -95,12 +95,12 @@ namespace evm2wasm
9595
}
9696
},{
9797
opcodeEnum::TIMESTAMP, {
98-
.wast = ";; generated by ./wasm/generateInterface.js\n(func $TIMESTAMP (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockTimestamp))\n\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
98+
.wast = ";; generated by ./wasm/generateInterface.js\n(func $TIMESTAMP (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockTimestamp))\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
9999
.imports = "(import \"ethereum\" \"getBlockTimestamp\" (func $getBlockTimestamp (result i64)))"
100100
}
101101
},{
102102
opcodeEnum::NUMBER, {
103-
.wast = ";; generated by ./wasm/generateInterface.js\n(func $NUMBER (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockNumber))\n\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
103+
.wast = ";; generated by ./wasm/generateInterface.js\n(func $NUMBER (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockNumber))\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
104104
.imports = "(import \"ethereum\" \"getBlockNumber\" (func $getBlockNumber (result i64)))"
105105
}
106106
},{
@@ -110,7 +110,7 @@ namespace evm2wasm
110110
}
111111
},{
112112
opcodeEnum::GASLIMIT, {
113-
.wast = ";; generated by ./wasm/generateInterface.js\n(func $GASLIMIT (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockGasLimit))\n\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
113+
.wast = ";; generated by ./wasm/generateInterface.js\n(func $GASLIMIT (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockGasLimit))\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
114114
.imports = "(import \"ethereum\" \"getBlockGasLimit\" (func $getBlockGasLimit (result i64)))"
115115
}
116116
},{

include/wast.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace evm2wasm
2020
}
2121
},{
2222
opcodeEnum::GAS, {
23-
.wast = ";; generated by ./wasm/generateInterface.js\n(func $GAS (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getGasLeft))\n\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
23+
.wast = ";; generated by ./wasm/generateInterface.js\n(func $GAS (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getGasLeft))\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
2424
.imports = "(import \"ethereum\" \"getGasLeft\" (func $getGasLeft (result i64)))"
2525
}
2626
},{
@@ -95,12 +95,12 @@ namespace evm2wasm
9595
}
9696
},{
9797
opcodeEnum::TIMESTAMP, {
98-
.wast = ";; generated by ./wasm/generateInterface.js\n(func $TIMESTAMP (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockTimestamp))\n\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
98+
.wast = ";; generated by ./wasm/generateInterface.js\n(func $TIMESTAMP (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockTimestamp))\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
9999
.imports = "(import \"ethereum\" \"getBlockTimestamp\" (func $getBlockTimestamp (result i64)))"
100100
}
101101
},{
102102
opcodeEnum::NUMBER, {
103-
.wast = ";; generated by ./wasm/generateInterface.js\n(func $NUMBER (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockNumber))\n\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
103+
.wast = ";; generated by ./wasm/generateInterface.js\n(func $NUMBER (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockNumber))\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
104104
.imports = "(import \"ethereum\" \"getBlockNumber\" (func $getBlockNumber (result i64)))"
105105
}
106106
},{
@@ -110,7 +110,7 @@ namespace evm2wasm
110110
}
111111
},{
112112
opcodeEnum::GASLIMIT, {
113-
.wast = ";; generated by ./wasm/generateInterface.js\n(func $GASLIMIT (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockGasLimit))\n\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
113+
.wast = ";; generated by ./wasm/generateInterface.js\n(func $GASLIMIT (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockGasLimit))\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
114114
.imports = "(import \"ethereum\" \"getBlockGasLimit\" (func $getBlockGasLimit (result i64)))"
115115
}
116116
},{

wasm/wast-async.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"imports": "(import \"ethereum\" \"callDataCopy\" (func $callDataCopy (param i32 i32 i32) ))"
99
},
1010
"GAS": {
11-
"wast": ";; generated by ./wasm/generateInterface.js\n(func $GAS (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getGasLeft))\n\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
11+
"wast": ";; generated by ./wasm/generateInterface.js\n(func $GAS (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getGasLeft))\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
1212
"imports": "(import \"ethereum\" \"getGasLeft\" (func $getGasLeft (result i64)))"
1313
},
1414
"ADDRESS": {
@@ -68,19 +68,19 @@
6868
"imports": "(import \"ethereum\" \"getBlockCoinbase\" (func $getBlockCoinbase (param i32) ))"
6969
},
7070
"TIMESTAMP": {
71-
"wast": ";; generated by ./wasm/generateInterface.js\n(func $TIMESTAMP (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockTimestamp))\n\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
71+
"wast": ";; generated by ./wasm/generateInterface.js\n(func $TIMESTAMP (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockTimestamp))\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
7272
"imports": "(import \"ethereum\" \"getBlockTimestamp\" (func $getBlockTimestamp (result i64)))"
7373
},
7474
"NUMBER": {
75-
"wast": ";; generated by ./wasm/generateInterface.js\n(func $NUMBER (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockNumber))\n\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
75+
"wast": ";; generated by ./wasm/generateInterface.js\n(func $NUMBER (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockNumber))\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
7676
"imports": "(import \"ethereum\" \"getBlockNumber\" (func $getBlockNumber (result i64)))"
7777
},
7878
"DIFFICULTY": {
7979
"wast": ";; generated by ./wasm/generateInterface.js\n(func $DIFFICULTY (call $getBlockDifficulty(i32.add (get_global $sp) (i32.const 32))))",
8080
"imports": "(import \"ethereum\" \"getBlockDifficulty\" (func $getBlockDifficulty (param i32) ))"
8181
},
8282
"GASLIMIT": {
83-
"wast": ";; generated by ./wasm/generateInterface.js\n(func $GASLIMIT (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockGasLimit))\n\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
83+
"wast": ";; generated by ./wasm/generateInterface.js\n(func $GASLIMIT (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockGasLimit))\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
8484
"imports": "(import \"ethereum\" \"getBlockGasLimit\" (func $getBlockGasLimit (result i64)))"
8585
},
8686
"CREATE": {

wasm/wast.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"imports": "(import \"ethereum\" \"callDataCopy\" (func $callDataCopy (param i32 i32 i32) ))"
99
},
1010
"GAS": {
11-
"wast": ";; generated by ./wasm/generateInterface.js\n(func $GAS (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getGasLeft))\n\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
11+
"wast": ";; generated by ./wasm/generateInterface.js\n(func $GAS (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getGasLeft))\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
1212
"imports": "(import \"ethereum\" \"getGasLeft\" (func $getGasLeft (result i64)))"
1313
},
1414
"ADDRESS": {
@@ -68,19 +68,19 @@
6868
"imports": "(import \"ethereum\" \"getBlockCoinbase\" (func $getBlockCoinbase (param i32) ))"
6969
},
7070
"TIMESTAMP": {
71-
"wast": ";; generated by ./wasm/generateInterface.js\n(func $TIMESTAMP (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockTimestamp))\n\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
71+
"wast": ";; generated by ./wasm/generateInterface.js\n(func $TIMESTAMP (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockTimestamp))\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
7272
"imports": "(import \"ethereum\" \"getBlockTimestamp\" (func $getBlockTimestamp (result i64)))"
7373
},
7474
"NUMBER": {
75-
"wast": ";; generated by ./wasm/generateInterface.js\n(func $NUMBER (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockNumber))\n\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
75+
"wast": ";; generated by ./wasm/generateInterface.js\n(func $NUMBER (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockNumber))\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
7676
"imports": "(import \"ethereum\" \"getBlockNumber\" (func $getBlockNumber (result i64)))"
7777
},
7878
"DIFFICULTY": {
7979
"wast": ";; generated by ./wasm/generateInterface.js\n(func $DIFFICULTY (call $getBlockDifficulty(i32.add (get_global $sp) (i32.const 32))))",
8080
"imports": "(import \"ethereum\" \"getBlockDifficulty\" (func $getBlockDifficulty (param i32) ))"
8181
},
8282
"GASLIMIT": {
83-
"wast": ";; generated by ./wasm/generateInterface.js\n(func $GASLIMIT (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockGasLimit))\n\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
83+
"wast": ";; generated by ./wasm/generateInterface.js\n(func $GASLIMIT (i64.store (i32.add (get_global $sp) (i32.const 32)) (call $getBlockGasLimit))\n ;; zero out mem\n (i64.store (i32.add (get_global $sp) (i32.const 56)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 48)) (i64.const 0))\n (i64.store (i32.add (get_global $sp) (i32.const 40)) (i64.const 0)))",
8484
"imports": "(import \"ethereum\" \"getBlockGasLimit\" (func $getBlockGasLimit (result i64)))"
8585
},
8686
"CREATE": {

0 commit comments

Comments
 (0)