@cartesi/devnet 1.8.0 → 2.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/anvil_state.json +1 -1
- package/deployments/localhost/ApplicationFactory.json +227 -0
- package/deployments/localhost/AuthorityFactory.json +55 -44
- package/deployments/localhost/ERC1155BatchPortal.json +26 -26
- package/deployments/localhost/ERC1155SinglePortal.json +25 -25
- package/deployments/localhost/ERC20Portal.json +35 -23
- package/deployments/localhost/ERC721Portal.json +23 -23
- package/deployments/localhost/EtherPortal.json +21 -21
- package/deployments/localhost/InputBox.json +64 -58
- package/deployments/localhost/QuorumFactory.json +188 -0
- package/deployments/localhost/SafeERC20Transfer.json +118 -0
- package/deployments/localhost/SelfHostedApplicationFactory.json +71 -70
- package/deployments/localhost/TestMultiToken.json +7 -7
- package/deployments/localhost/TestNFT.json +7 -7
- package/deployments/localhost/TestToken.json +10 -10
- package/export/abi/localhost.json +231 -599
- package/package.json +9 -9
- package/deployments/localhost/AuthorityHistoryPairFactory.json +0 -276
- package/deployments/localhost/Bitmask.json +0 -44
- package/deployments/localhost/CartesiDAppFactory.json +0 -231
- package/deployments/localhost/CartesiMathV2.json +0 -213
- package/deployments/localhost/DAppAddressRelay.json +0 -102
- package/deployments/localhost/HistoryFactory.json +0 -177
- package/deployments/localhost/MerkleV2.json +0 -217
- package/deployments/localhost/UnrolledCordic.json +0 -54
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"address": "
|
|
2
|
+
"address": "0x4a218D331C0933d7E3EB496ac901669f28D94981",
|
|
3
3
|
"abi": [
|
|
4
4
|
{
|
|
5
5
|
"inputs": [
|
|
6
6
|
{
|
|
7
7
|
"internalType": "contract IInputBox",
|
|
8
|
-
"name": "
|
|
8
|
+
"name": "inputBox",
|
|
9
9
|
"type": "address"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
@@ -16,32 +16,32 @@
|
|
|
16
16
|
"inputs": [
|
|
17
17
|
{
|
|
18
18
|
"internalType": "contract IERC1155",
|
|
19
|
-
"name": "
|
|
19
|
+
"name": "token",
|
|
20
20
|
"type": "address"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"internalType": "address",
|
|
24
|
-
"name": "
|
|
24
|
+
"name": "appContract",
|
|
25
25
|
"type": "address"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"internalType": "uint256[]",
|
|
29
|
-
"name": "
|
|
29
|
+
"name": "tokenIds",
|
|
30
30
|
"type": "uint256[]"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"internalType": "uint256[]",
|
|
34
|
-
"name": "
|
|
34
|
+
"name": "values",
|
|
35
35
|
"type": "uint256[]"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"internalType": "bytes",
|
|
39
|
-
"name": "
|
|
39
|
+
"name": "baseLayerData",
|
|
40
40
|
"type": "bytes"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"internalType": "bytes",
|
|
44
|
-
"name": "
|
|
44
|
+
"name": "execLayerData",
|
|
45
45
|
"type": "bytes"
|
|
46
46
|
}
|
|
47
47
|
],
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"type": "function"
|
|
65
65
|
}
|
|
66
66
|
],
|
|
67
|
-
"transactionHash": "
|
|
67
|
+
"transactionHash": "0x903699d6a654cc6e733ee8ee9bf66d81a915b7f6726f7964946b710c4f8ff8eb",
|
|
68
68
|
"receipt": {
|
|
69
69
|
"to": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
|
|
70
70
|
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
@@ -72,37 +72,37 @@
|
|
|
72
72
|
"transactionIndex": 0,
|
|
73
73
|
"gasUsed": "370950",
|
|
74
74
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
75
|
-
"blockHash": "
|
|
76
|
-
"transactionHash": "
|
|
75
|
+
"blockHash": "0x520dd8300a24e383b69c99a98400898f9f508f2afcd49b156c23a80b0d13eb19",
|
|
76
|
+
"transactionHash": "0x903699d6a654cc6e733ee8ee9bf66d81a915b7f6726f7964946b710c4f8ff8eb",
|
|
77
77
|
"logs": [],
|
|
78
|
-
"blockNumber":
|
|
78
|
+
"blockNumber": 8,
|
|
79
79
|
"cumulativeGasUsed": "370950",
|
|
80
80
|
"status": 1,
|
|
81
81
|
"byzantium": true
|
|
82
82
|
},
|
|
83
83
|
"args": [
|
|
84
|
-
"
|
|
84
|
+
"0x593E5BCf894D6829Dd26D0810DA7F064406aebB6"
|
|
85
85
|
],
|
|
86
86
|
"numDeployments": 1,
|
|
87
|
-
"bytecode": "
|
|
88
|
-
"deployedBytecode": "
|
|
87
|
+
"bytecode": "0x60a060405234801561001057600080fd5b5060405161064538038061064583398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b6080516105b461009160003960008181603c015261012601526105b46000f3fe608060405234801561001057600080fd5b50600436106100355760003560e01c8062aace9a1461003a57806324d15c6714610077575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006040516001600160a01b03909116815260200160405180910390f35b61008a6100853660046102c1565b61008c565b005b604051631759616b60e11b81526001600160a01b038b1690632eb2c2d6906100c69033908d908d908d908d908d908d908d90600401610404565b600060405180830381600087803b1580156100e057600080fd5b505af11580156100f4573d6000803e3d6000fd5b50505050600061010c8b338b8b8b8b8b8b8b8b6101ae565b604051631789cd6360e01b81529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631789cd639061015d908d90859060040161048c565b6020604051808303816000875af115801561017c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101a091906104ce565b505050505050505050505050565b6060600089898989898989896040516020016101d19897969594939291906104e7565b60405160208183030381529060405290508b8b826040516020016101f793929190610538565b6040516020818303038152906040529150509a9950505050505050505050565b80356001600160a01b038116811461022e57600080fd5b919050565b60008083601f84011261024557600080fd5b50813567ffffffffffffffff81111561025d57600080fd5b6020830191508360208260051b850101111561027857600080fd5b9250929050565b60008083601f84011261029157600080fd5b50813567ffffffffffffffff8111156102a957600080fd5b60208301915083602082850101111561027857600080fd5b60008060008060008060008060008060c08b8d0312156102e057600080fd5b6102e98b610217565b99506102f760208c01610217565b985060408b013567ffffffffffffffff8082111561031457600080fd5b6103208e838f01610233565b909a50985060608d013591508082111561033957600080fd5b6103458e838f01610233565b909850965060808d013591508082111561035e57600080fd5b61036a8e838f0161027f565b909650945060a08d013591508082111561038357600080fd5b506103908d828e0161027f565b915080935050809150509295989b9194979a5092959850565b81835260006001600160fb1b038311156103c257600080fd5b8260051b80836020870137939093016020019392505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b0389811682528816602082015260a060408201819052600090610431908301888a6103a9565b82810360608401526104448187896103a9565b905082810360808401526104598185876103db565b9b9a5050505050505050505050565b60005b8381101561048357818101518382015260200161046b565b50506000910152565b60018060a01b038316815260406020820152600082518060408401526104b9816060850160208701610468565b601f01601f1916919091016060019392505050565b6000602082840312156104e057600080fd5b5051919050565b6080815260006104fb608083018a8c6103a9565b828103602084015261050e81898b6103a9565b905082810360408401526105238187896103db565b905082810360608401526104598185876103db565b60006bffffffffffffffffffffffff19808660601b168352808560601b16601484015250825161056f816028850160208701610468565b9190910160280194935050505056fea264697066735822122035db86f04505cf3f941203bf956d2dde8c705c85e4bb9bdbc3fdac6c5b1e565564736f6c63430008170033",
|
|
88
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100355760003560e01c8062aace9a1461003a57806324d15c6714610077575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006040516001600160a01b03909116815260200160405180910390f35b61008a6100853660046102c1565b61008c565b005b604051631759616b60e11b81526001600160a01b038b1690632eb2c2d6906100c69033908d908d908d908d908d908d908d90600401610404565b600060405180830381600087803b1580156100e057600080fd5b505af11580156100f4573d6000803e3d6000fd5b50505050600061010c8b338b8b8b8b8b8b8b8b6101ae565b604051631789cd6360e01b81529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631789cd639061015d908d90859060040161048c565b6020604051808303816000875af115801561017c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101a091906104ce565b505050505050505050505050565b6060600089898989898989896040516020016101d19897969594939291906104e7565b60405160208183030381529060405290508b8b826040516020016101f793929190610538565b6040516020818303038152906040529150509a9950505050505050505050565b80356001600160a01b038116811461022e57600080fd5b919050565b60008083601f84011261024557600080fd5b50813567ffffffffffffffff81111561025d57600080fd5b6020830191508360208260051b850101111561027857600080fd5b9250929050565b60008083601f84011261029157600080fd5b50813567ffffffffffffffff8111156102a957600080fd5b60208301915083602082850101111561027857600080fd5b60008060008060008060008060008060c08b8d0312156102e057600080fd5b6102e98b610217565b99506102f760208c01610217565b985060408b013567ffffffffffffffff8082111561031457600080fd5b6103208e838f01610233565b909a50985060608d013591508082111561033957600080fd5b6103458e838f01610233565b909850965060808d013591508082111561035e57600080fd5b61036a8e838f0161027f565b909650945060a08d013591508082111561038357600080fd5b506103908d828e0161027f565b915080935050809150509295989b9194979a5092959850565b81835260006001600160fb1b038311156103c257600080fd5b8260051b80836020870137939093016020019392505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b0389811682528816602082015260a060408201819052600090610431908301888a6103a9565b82810360608401526104448187896103a9565b905082810360808401526104598185876103db565b9b9a5050505050505050505050565b60005b8381101561048357818101518382015260200161046b565b50506000910152565b60018060a01b038316815260406020820152600082518060408401526104b9816060850160208701610468565b601f01601f1916919091016060019392505050565b6000602082840312156104e057600080fd5b5051919050565b6080815260006104fb608083018a8c6103a9565b828103602084015261050e81898b6103a9565b905082810360408401526105238187896103db565b905082810360608401526104598185876103db565b60006bffffffffffffffffffffffff19808660601b168352808560601b16601484015250825161056f816028850160208701610468565b9190910160280194935050505056fea264697066735822122035db86f04505cf3f941203bf956d2dde8c705c85e4bb9bdbc3fdac6c5b1e565564736f6c63430008170033",
|
|
89
89
|
"devdoc": {
|
|
90
90
|
"kind": "dev",
|
|
91
91
|
"methods": {
|
|
92
92
|
"constructor": {
|
|
93
93
|
"params": {
|
|
94
|
-
"
|
|
94
|
+
"inputBox": "The input box used by the portal"
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
"depositBatchERC1155Token(address,address,uint256[],uint256[],bytes,bytes)": {
|
|
98
|
-
"details": "Please make sure `
|
|
98
|
+
"details": "Please make sure the arrays `tokenIds` and `values` have the same length.",
|
|
99
99
|
"params": {
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
100
|
+
"appContract": "The application contract address",
|
|
101
|
+
"baseLayerData": "Additional data to be interpreted by the base layer",
|
|
102
|
+
"execLayerData": "Additional data to be interpreted by the execution layer",
|
|
103
|
+
"token": "The ERC-1155 token contract",
|
|
104
|
+
"tokenIds": "The identifiers of the tokens being transferred",
|
|
105
|
+
"values": "Transfer amounts per token type"
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
"getInputBox()": {
|
|
@@ -121,13 +121,13 @@
|
|
|
121
121
|
"notice": "Constructs the portal."
|
|
122
122
|
},
|
|
123
123
|
"depositBatchERC1155Token(address,address,uint256[],uint256[],bytes,bytes)": {
|
|
124
|
-
"notice": "Transfer a batch of ERC-1155 tokens to
|
|
124
|
+
"notice": "Transfer a batch of ERC-1155 tokens of multiple types to an application contract and add an input to the application's input box to signal such operation. The caller must enable approval for the portal to manage all of their tokens beforehand, by calling the `setApprovalForAll` function in the token contract."
|
|
125
125
|
},
|
|
126
126
|
"getInputBox()": {
|
|
127
|
-
"notice": "Get the input box used by this
|
|
127
|
+
"notice": "Get the input box used by this portal."
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
|
-
"notice": "This contract allows anyone to perform batch transfers of ERC-1155 tokens to
|
|
130
|
+
"notice": "This contract allows anyone to perform batch transfers of ERC-1155 tokens to an application contract while informing the off-chain machine.",
|
|
131
131
|
"version": 1
|
|
132
132
|
}
|
|
133
133
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"address": "
|
|
2
|
+
"address": "0x2f0D587DD6EcF67d25C558f2e9c3839c579e5e38",
|
|
3
3
|
"abi": [
|
|
4
4
|
{
|
|
5
5
|
"inputs": [
|
|
6
6
|
{
|
|
7
7
|
"internalType": "contract IInputBox",
|
|
8
|
-
"name": "
|
|
8
|
+
"name": "inputBox",
|
|
9
9
|
"type": "address"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
@@ -16,32 +16,32 @@
|
|
|
16
16
|
"inputs": [
|
|
17
17
|
{
|
|
18
18
|
"internalType": "contract IERC1155",
|
|
19
|
-
"name": "
|
|
19
|
+
"name": "token",
|
|
20
20
|
"type": "address"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"internalType": "address",
|
|
24
|
-
"name": "
|
|
24
|
+
"name": "appContract",
|
|
25
25
|
"type": "address"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"internalType": "uint256",
|
|
29
|
-
"name": "
|
|
29
|
+
"name": "tokenId",
|
|
30
30
|
"type": "uint256"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"internalType": "uint256",
|
|
34
|
-
"name": "
|
|
34
|
+
"name": "value",
|
|
35
35
|
"type": "uint256"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"internalType": "bytes",
|
|
39
|
-
"name": "
|
|
39
|
+
"name": "baseLayerData",
|
|
40
40
|
"type": "bytes"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"internalType": "bytes",
|
|
44
|
-
"name": "
|
|
44
|
+
"name": "execLayerData",
|
|
45
45
|
"type": "bytes"
|
|
46
46
|
}
|
|
47
47
|
],
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"type": "function"
|
|
65
65
|
}
|
|
66
66
|
],
|
|
67
|
-
"transactionHash": "
|
|
67
|
+
"transactionHash": "0x2635fac7f842404d2d602c43e4832bb9e5628dbf4d667bcaffa0d3c5689e12a1",
|
|
68
68
|
"receipt": {
|
|
69
69
|
"to": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
|
|
70
70
|
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
@@ -72,36 +72,36 @@
|
|
|
72
72
|
"transactionIndex": 0,
|
|
73
73
|
"gasUsed": "317542",
|
|
74
74
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
75
|
-
"blockHash": "
|
|
76
|
-
"transactionHash": "
|
|
75
|
+
"blockHash": "0xf5f85dbbee75292b0742e3032d5457adb4d900ed3cdeccdee8328948b1c4e31e",
|
|
76
|
+
"transactionHash": "0x2635fac7f842404d2d602c43e4832bb9e5628dbf4d667bcaffa0d3c5689e12a1",
|
|
77
77
|
"logs": [],
|
|
78
|
-
"blockNumber":
|
|
78
|
+
"blockNumber": 7,
|
|
79
79
|
"cumulativeGasUsed": "317542",
|
|
80
80
|
"status": 1,
|
|
81
81
|
"byzantium": true
|
|
82
82
|
},
|
|
83
83
|
"args": [
|
|
84
|
-
"
|
|
84
|
+
"0x593E5BCf894D6829Dd26D0810DA7F064406aebB6"
|
|
85
85
|
],
|
|
86
86
|
"numDeployments": 1,
|
|
87
|
-
"bytecode": "
|
|
88
|
-
"deployedBytecode": "
|
|
87
|
+
"bytecode": "0x60a060405234801561001057600080fd5b5060405161054e38038061054e83398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b6080516104bd61009160003960008181603c015261012001526104bd6000f3fe608060405234801561001057600080fd5b50600436106100355760003560e01c8062aace9a1461003a578063dec07dca14610077575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006040516001600160a01b03909116815260200160405180910390f35b61008a61008536600461026a565b61008c565b005b604051637921219560e11b81526001600160a01b0389169063f242432a906100c29033908b908b908b908b908b9060040161033b565b600060405180830381600087803b1580156100dc57600080fd5b505af11580156100f0573d6000803e3d6000fd5b50505050600061010689338989898989896101a6565b604051631789cd6360e01b81529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631789cd6390610157908b9085906004016103a6565b6020604051808303816000875af1158015610176573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019a91906103e8565b50505050505050505050565b60606000858585856040516020016101c19493929190610401565b604051602081830303815290604052905089898989846040516020016101eb959493929190610433565b60405160208183030381529060405291505098975050505050505050565b6001600160a01b038116811461021e57600080fd5b50565b60008083601f84011261023357600080fd5b50813567ffffffffffffffff81111561024b57600080fd5b60208301915083602082850101111561026357600080fd5b9250929050565b60008060008060008060008060c0898b03121561028657600080fd5b883561029181610209565b975060208901356102a181610209565b96506040890135955060608901359450608089013567ffffffffffffffff808211156102cc57600080fd5b6102d88c838d01610221565b909650945060a08b01359150808211156102f157600080fd5b506102fe8b828c01610221565b999c989b5096995094979396929594505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b03878116825286166020820152604081018590526060810184905260a0608082018190526000906103769083018486610312565b98975050505050505050565b60005b8381101561039d578181015183820152602001610385565b50506000910152565b60018060a01b038316815260406020820152600082518060408401526103d3816060850160208701610382565b601f01601f1916919091016060019392505050565b6000602082840312156103fa57600080fd5b5051919050565b604081526000610415604083018688610312565b8281036020840152610428818587610312565b979650505050505050565b60006bffffffffffffffffffffffff19808860601b168352808760601b166014840152508460288301528360488301528251610476816068850160208701610382565b91909101606801969550505050505056fea2646970667358221220d41fd809f8973ec185f1d3497cbb7b9e865e5fedf38a2c16ada1c6b0ec7c11ee64736f6c63430008170033",
|
|
88
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100355760003560e01c8062aace9a1461003a578063dec07dca14610077575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006040516001600160a01b03909116815260200160405180910390f35b61008a61008536600461026a565b61008c565b005b604051637921219560e11b81526001600160a01b0389169063f242432a906100c29033908b908b908b908b908b9060040161033b565b600060405180830381600087803b1580156100dc57600080fd5b505af11580156100f0573d6000803e3d6000fd5b50505050600061010689338989898989896101a6565b604051631789cd6360e01b81529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631789cd6390610157908b9085906004016103a6565b6020604051808303816000875af1158015610176573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019a91906103e8565b50505050505050505050565b60606000858585856040516020016101c19493929190610401565b604051602081830303815290604052905089898989846040516020016101eb959493929190610433565b60405160208183030381529060405291505098975050505050505050565b6001600160a01b038116811461021e57600080fd5b50565b60008083601f84011261023357600080fd5b50813567ffffffffffffffff81111561024b57600080fd5b60208301915083602082850101111561026357600080fd5b9250929050565b60008060008060008060008060c0898b03121561028657600080fd5b883561029181610209565b975060208901356102a181610209565b96506040890135955060608901359450608089013567ffffffffffffffff808211156102cc57600080fd5b6102d88c838d01610221565b909650945060a08b01359150808211156102f157600080fd5b506102fe8b828c01610221565b999c989b5096995094979396929594505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b03878116825286166020820152604081018590526060810184905260a0608082018190526000906103769083018486610312565b98975050505050505050565b60005b8381101561039d578181015183820152602001610385565b50506000910152565b60018060a01b038316815260406020820152600082518060408401526103d3816060850160208701610382565b601f01601f1916919091016060019392505050565b6000602082840312156103fa57600080fd5b5051919050565b604081526000610415604083018688610312565b8281036020840152610428818587610312565b979650505050505050565b60006bffffffffffffffffffffffff19808860601b168352808760601b166014840152508460288301528360488301528251610476816068850160208701610382565b91909101606801969550505050505056fea2646970667358221220d41fd809f8973ec185f1d3497cbb7b9e865e5fedf38a2c16ada1c6b0ec7c11ee64736f6c63430008170033",
|
|
89
89
|
"devdoc": {
|
|
90
90
|
"kind": "dev",
|
|
91
91
|
"methods": {
|
|
92
92
|
"constructor": {
|
|
93
93
|
"params": {
|
|
94
|
-
"
|
|
94
|
+
"inputBox": "The input box used by the portal"
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
"depositSingleERC1155Token(address,address,uint256,uint256,bytes,bytes)": {
|
|
98
98
|
"params": {
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
99
|
+
"appContract": "The application contract address",
|
|
100
|
+
"baseLayerData": "Additional data to be interpreted by the base layer",
|
|
101
|
+
"execLayerData": "Additional data to be interpreted by the execution layer",
|
|
102
|
+
"token": "The ERC-1155 token contract",
|
|
103
|
+
"tokenId": "The identifier of the token being transferred",
|
|
104
|
+
"value": "Transfer amount"
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
"getInputBox()": {
|
|
@@ -120,13 +120,13 @@
|
|
|
120
120
|
"notice": "Constructs the portal."
|
|
121
121
|
},
|
|
122
122
|
"depositSingleERC1155Token(address,address,uint256,uint256,bytes,bytes)": {
|
|
123
|
-
"notice": "Transfer
|
|
123
|
+
"notice": "Transfer ERC-1155 tokens of a single type to an application contract and add an input to the application's input box to signal such operation. The caller must enable approval for the portal to manage all of their tokens beforehand, by calling the `setApprovalForAll` function in the token contract."
|
|
124
124
|
},
|
|
125
125
|
"getInputBox()": {
|
|
126
|
-
"notice": "Get the input box used by this
|
|
126
|
+
"notice": "Get the input box used by this portal."
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
|
-
"notice": "This contract allows anyone to perform single transfers of ERC-1155 tokens to
|
|
129
|
+
"notice": "This contract allows anyone to perform single transfers of ERC-1155 tokens to an application contract while informing the off-chain machine.",
|
|
130
130
|
"version": 1
|
|
131
131
|
}
|
|
132
132
|
}
|
|
@@ -1,37 +1,42 @@
|
|
|
1
1
|
{
|
|
2
|
-
"address": "
|
|
2
|
+
"address": "0xB0e28881FF7ee9CD5B1229d570540d74bce23D39",
|
|
3
3
|
"abi": [
|
|
4
4
|
{
|
|
5
5
|
"inputs": [
|
|
6
6
|
{
|
|
7
7
|
"internalType": "contract IInputBox",
|
|
8
|
-
"name": "
|
|
8
|
+
"name": "inputBox",
|
|
9
9
|
"type": "address"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"stateMutability": "nonpayable",
|
|
13
13
|
"type": "constructor"
|
|
14
14
|
},
|
|
15
|
+
{
|
|
16
|
+
"inputs": [],
|
|
17
|
+
"name": "ERC20TransferFailed",
|
|
18
|
+
"type": "error"
|
|
19
|
+
},
|
|
15
20
|
{
|
|
16
21
|
"inputs": [
|
|
17
22
|
{
|
|
18
23
|
"internalType": "contract IERC20",
|
|
19
|
-
"name": "
|
|
24
|
+
"name": "token",
|
|
20
25
|
"type": "address"
|
|
21
26
|
},
|
|
22
27
|
{
|
|
23
28
|
"internalType": "address",
|
|
24
|
-
"name": "
|
|
29
|
+
"name": "appContract",
|
|
25
30
|
"type": "address"
|
|
26
31
|
},
|
|
27
32
|
{
|
|
28
33
|
"internalType": "uint256",
|
|
29
|
-
"name": "
|
|
34
|
+
"name": "value",
|
|
30
35
|
"type": "uint256"
|
|
31
36
|
},
|
|
32
37
|
{
|
|
33
38
|
"internalType": "bytes",
|
|
34
|
-
"name": "
|
|
39
|
+
"name": "execLayerData",
|
|
35
40
|
"type": "bytes"
|
|
36
41
|
}
|
|
37
42
|
],
|
|
@@ -54,42 +59,42 @@
|
|
|
54
59
|
"type": "function"
|
|
55
60
|
}
|
|
56
61
|
],
|
|
57
|
-
"transactionHash": "
|
|
62
|
+
"transactionHash": "0xf74870a6f4c47e7358d96e19e7bc9c76a0defa095e0764c909ce38589dc0de22",
|
|
58
63
|
"receipt": {
|
|
59
64
|
"to": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
|
|
60
65
|
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
61
66
|
"contractAddress": null,
|
|
62
67
|
"transactionIndex": 0,
|
|
63
|
-
"gasUsed": "
|
|
68
|
+
"gasUsed": "269088",
|
|
64
69
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
65
|
-
"blockHash": "
|
|
66
|
-
"transactionHash": "
|
|
70
|
+
"blockHash": "0xcc9e82295ca4738089d790799b369342948e91411ef8dcfc46c5ff96a19cd4ab",
|
|
71
|
+
"transactionHash": "0xf74870a6f4c47e7358d96e19e7bc9c76a0defa095e0764c909ce38589dc0de22",
|
|
67
72
|
"logs": [],
|
|
68
|
-
"blockNumber":
|
|
69
|
-
"cumulativeGasUsed": "
|
|
73
|
+
"blockNumber": 5,
|
|
74
|
+
"cumulativeGasUsed": "269088",
|
|
70
75
|
"status": 1,
|
|
71
76
|
"byzantium": true
|
|
72
77
|
},
|
|
73
78
|
"args": [
|
|
74
|
-
"
|
|
79
|
+
"0x593E5BCf894D6829Dd26D0810DA7F064406aebB6"
|
|
75
80
|
],
|
|
76
81
|
"numDeployments": 1,
|
|
77
|
-
"bytecode": "
|
|
78
|
-
"deployedBytecode": "
|
|
82
|
+
"bytecode": "0x60a060405234801561001057600080fd5b5060405161046e38038061046e83398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b6080516103dd61009160003960008181603c015261015201526103dd6000f3fe608060405234801561001057600080fd5b50600436106100355760003560e01c8062aace9a1461003a57806395854b8114610077575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006040516001600160a01b03909116815260200160405180910390f35b61008a610085366004610223565b61008c565b005b6040516323b872dd60e01b81523360048201526001600160a01b03858116602483015260448201859052600091908716906323b872dd906064016020604051808303816000875af11580156100e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061010991906102c2565b90508061012957604051633c9fd93960e21b815260040160405180910390fd5b600061013887338787876101d6565b604051631789cd6360e01b81529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631789cd639061018990899085906004016102eb565b6020604051808303816000875af11580156101a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101cc919061034a565b5050505050505050565b606085858585856040516020016101f1959493929190610363565b604051602081830303815290604052905095945050505050565b6001600160a01b038116811461022057600080fd5b50565b60008060008060006080868803121561023b57600080fd5b85356102468161020b565b945060208601356102568161020b565b935060408601359250606086013567ffffffffffffffff8082111561027a57600080fd5b818801915088601f83011261028e57600080fd5b81358181111561029d57600080fd5b8960208285010111156102af57600080fd5b9699959850939650602001949392505050565b6000602082840312156102d457600080fd5b815180151581146102e457600080fd5b9392505050565b60018060a01b03831681526000602060406020840152835180604085015260005b818110156103285785810183015185820160600152820161030c565b506000606082860101526060601f19601f830116850101925050509392505050565b60006020828403121561035c57600080fd5b5051919050565b60006bffffffffffffffffffffffff19808860601b168352808760601b1660148401525084602883015282846048840137506000910160480190815294935050505056fea26469706673582212206e9c57997e262a5573f4d46a834e8afe9777fcbdf098307d8711bdff9b91b3dd64736f6c63430008170033",
|
|
83
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100355760003560e01c8062aace9a1461003a57806395854b8114610077575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006040516001600160a01b03909116815260200160405180910390f35b61008a610085366004610223565b61008c565b005b6040516323b872dd60e01b81523360048201526001600160a01b03858116602483015260448201859052600091908716906323b872dd906064016020604051808303816000875af11580156100e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061010991906102c2565b90508061012957604051633c9fd93960e21b815260040160405180910390fd5b600061013887338787876101d6565b604051631789cd6360e01b81529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631789cd639061018990899085906004016102eb565b6020604051808303816000875af11580156101a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101cc919061034a565b5050505050505050565b606085858585856040516020016101f1959493929190610363565b604051602081830303815290604052905095945050505050565b6001600160a01b038116811461022057600080fd5b50565b60008060008060006080868803121561023b57600080fd5b85356102468161020b565b945060208601356102568161020b565b935060408601359250606086013567ffffffffffffffff8082111561027a57600080fd5b818801915088601f83011261028e57600080fd5b81358181111561029d57600080fd5b8960208285010111156102af57600080fd5b9699959850939650602001949392505050565b6000602082840312156102d457600080fd5b815180151581146102e457600080fd5b9392505050565b60018060a01b03831681526000602060406020840152835180604085015260005b818110156103285785810183015185820160600152820161030c565b506000606082860101526060601f19601f830116850101925050509392505050565b60006020828403121561035c57600080fd5b5051919050565b60006bffffffffffffffffffffffff19808860601b168352808760601b1660148401525084602883015282846048840137506000910160480190815294935050505056fea26469706673582212206e9c57997e262a5573f4d46a834e8afe9777fcbdf098307d8711bdff9b91b3dd64736f6c63430008170033",
|
|
79
84
|
"devdoc": {
|
|
80
85
|
"kind": "dev",
|
|
81
86
|
"methods": {
|
|
82
87
|
"constructor": {
|
|
83
88
|
"params": {
|
|
84
|
-
"
|
|
89
|
+
"inputBox": "The input box used by the portal"
|
|
85
90
|
}
|
|
86
91
|
},
|
|
87
92
|
"depositERC20Tokens(address,address,uint256,bytes)": {
|
|
88
93
|
"params": {
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
94
|
+
"appContract": "The application contract address",
|
|
95
|
+
"execLayerData": "Additional data to be interpreted by the execution layer",
|
|
96
|
+
"token": "The ERC-20 token contract",
|
|
97
|
+
"value": "The amount of tokens to be transferred"
|
|
93
98
|
}
|
|
94
99
|
},
|
|
95
100
|
"getInputBox()": {
|
|
@@ -102,19 +107,26 @@
|
|
|
102
107
|
"version": 1
|
|
103
108
|
},
|
|
104
109
|
"userdoc": {
|
|
110
|
+
"errors": {
|
|
111
|
+
"ERC20TransferFailed()": [
|
|
112
|
+
{
|
|
113
|
+
"notice": "Failed to transfer ERC-20 tokens to application"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
},
|
|
105
117
|
"kind": "user",
|
|
106
118
|
"methods": {
|
|
107
119
|
"constructor": {
|
|
108
120
|
"notice": "Constructs the portal."
|
|
109
121
|
},
|
|
110
122
|
"depositERC20Tokens(address,address,uint256,bytes)": {
|
|
111
|
-
"notice": "Transfer ERC-20 tokens to
|
|
123
|
+
"notice": "Transfer ERC-20 tokens to an application contract and add an input to the application's input box to signal such operation. The caller must allow the portal to withdraw at least `value` tokens from their account beforehand, by calling the `approve` function in the token contract."
|
|
112
124
|
},
|
|
113
125
|
"getInputBox()": {
|
|
114
|
-
"notice": "Get the input box used by this
|
|
126
|
+
"notice": "Get the input box used by this portal."
|
|
115
127
|
}
|
|
116
128
|
},
|
|
117
|
-
"notice": "This contract allows anyone to perform transfers of ERC-20 tokens to
|
|
129
|
+
"notice": "This contract allows anyone to perform transfers of ERC-20 tokens to an application contract while informing the off-chain machine.",
|
|
118
130
|
"version": 1
|
|
119
131
|
}
|
|
120
132
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"address": "
|
|
2
|
+
"address": "0x874b3245ead7474Cb9f3b83cD1446dC522f6bd36",
|
|
3
3
|
"abi": [
|
|
4
4
|
{
|
|
5
5
|
"inputs": [
|
|
6
6
|
{
|
|
7
7
|
"internalType": "contract IInputBox",
|
|
8
|
-
"name": "
|
|
8
|
+
"name": "inputBox",
|
|
9
9
|
"type": "address"
|
|
10
10
|
}
|
|
11
11
|
],
|
|
@@ -16,27 +16,27 @@
|
|
|
16
16
|
"inputs": [
|
|
17
17
|
{
|
|
18
18
|
"internalType": "contract IERC721",
|
|
19
|
-
"name": "
|
|
19
|
+
"name": "token",
|
|
20
20
|
"type": "address"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"internalType": "address",
|
|
24
|
-
"name": "
|
|
24
|
+
"name": "appContract",
|
|
25
25
|
"type": "address"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"internalType": "uint256",
|
|
29
|
-
"name": "
|
|
29
|
+
"name": "tokenId",
|
|
30
30
|
"type": "uint256"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"internalType": "bytes",
|
|
34
|
-
"name": "
|
|
34
|
+
"name": "baseLayerData",
|
|
35
35
|
"type": "bytes"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"internalType": "bytes",
|
|
39
|
-
"name": "
|
|
39
|
+
"name": "execLayerData",
|
|
40
40
|
"type": "bytes"
|
|
41
41
|
}
|
|
42
42
|
],
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"type": "function"
|
|
60
60
|
}
|
|
61
61
|
],
|
|
62
|
-
"transactionHash": "
|
|
62
|
+
"transactionHash": "0x055d13aa308be639ce64410d81b0351f3f6f8a230729a62f7a44d2da8de48af3",
|
|
63
63
|
"receipt": {
|
|
64
64
|
"to": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
|
|
65
65
|
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
@@ -67,35 +67,35 @@
|
|
|
67
67
|
"transactionIndex": 0,
|
|
68
68
|
"gasUsed": "308450",
|
|
69
69
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
70
|
-
"blockHash": "
|
|
71
|
-
"transactionHash": "
|
|
70
|
+
"blockHash": "0xba2f0e6533326f4ab37e4107435e0ca4f3f0489d31a6123dffb8a4774fe54904",
|
|
71
|
+
"transactionHash": "0x055d13aa308be639ce64410d81b0351f3f6f8a230729a62f7a44d2da8de48af3",
|
|
72
72
|
"logs": [],
|
|
73
|
-
"blockNumber":
|
|
73
|
+
"blockNumber": 6,
|
|
74
74
|
"cumulativeGasUsed": "308450",
|
|
75
75
|
"status": 1,
|
|
76
76
|
"byzantium": true
|
|
77
77
|
},
|
|
78
78
|
"args": [
|
|
79
|
-
"
|
|
79
|
+
"0x593E5BCf894D6829Dd26D0810DA7F064406aebB6"
|
|
80
80
|
],
|
|
81
81
|
"numDeployments": 1,
|
|
82
|
-
"bytecode": "
|
|
83
|
-
"deployedBytecode": "
|
|
82
|
+
"bytecode": "0x60a060405234801561001057600080fd5b5060405161052438038061052483398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b60805161049361009160003960008181603c015261011d01526104936000f3fe608060405234801561001057600080fd5b50600436106100355760003560e01c8062aace9a1461003a57806328911e8314610077575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006040516001600160a01b03909116815260200160405180910390f35b61008a610085366004610263565b61008c565b005b604051635c46a7ef60e11b81526001600160a01b0388169063b88d4fde906100c09033908a908a908a908a9060040161032b565b600060405180830381600087803b1580156100da57600080fd5b505af11580156100ee573d6000803e3d6000fd5b505050506000610103883388888888886101a2565b604051631789cd6360e01b81529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631789cd6390610154908a90859060040161038e565b6020604051808303816000875af1158015610173573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019791906103d0565b505050505050505050565b60606000858585856040516020016101bd94939291906103e9565b6040516020818303038152906040529050888888836040516020016101e59493929190610410565b604051602081830303815290604052915050979650505050505050565b6001600160a01b038116811461021757600080fd5b50565b60008083601f84011261022c57600080fd5b50813567ffffffffffffffff81111561024457600080fd5b60208301915083602082850101111561025c57600080fd5b9250929050565b600080600080600080600060a0888a03121561027e57600080fd5b873561028981610202565b9650602088013561029981610202565b955060408801359450606088013567ffffffffffffffff808211156102bd57600080fd5b6102c98b838c0161021a565b909650945060808a01359150808211156102e257600080fd5b506102ef8a828b0161021a565b989b979a50959850939692959293505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038681168252851660208201526040810184905260806060820181905260009061035f9083018486610302565b979650505050505050565b60005b8381101561038557818101518382015260200161036d565b50506000910152565b60018060a01b038316815260406020820152600082518060408401526103bb81606085016020870161036a565b601f01601f1916919091016060019392505050565b6000602082840312156103e257600080fd5b5051919050565b6040815260006103fd604083018688610302565b828103602084015261035f818587610302565b60006bffffffffffffffffffffffff19808760601b168352808660601b16601484015250836028830152825161044d81604885016020870161036a565b919091016048019594505050505056fea264697066735822122009038c6a3d5cfcce855ebe74770593d9af2426033a9dba50dac6b7c3ff7e335564736f6c63430008170033",
|
|
83
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100355760003560e01c8062aace9a1461003a57806328911e8314610077575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006040516001600160a01b03909116815260200160405180910390f35b61008a610085366004610263565b61008c565b005b604051635c46a7ef60e11b81526001600160a01b0388169063b88d4fde906100c09033908a908a908a908a9060040161032b565b600060405180830381600087803b1580156100da57600080fd5b505af11580156100ee573d6000803e3d6000fd5b505050506000610103883388888888886101a2565b604051631789cd6360e01b81529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631789cd6390610154908a90859060040161038e565b6020604051808303816000875af1158015610173573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019791906103d0565b505050505050505050565b60606000858585856040516020016101bd94939291906103e9565b6040516020818303038152906040529050888888836040516020016101e59493929190610410565b604051602081830303815290604052915050979650505050505050565b6001600160a01b038116811461021757600080fd5b50565b60008083601f84011261022c57600080fd5b50813567ffffffffffffffff81111561024457600080fd5b60208301915083602082850101111561025c57600080fd5b9250929050565b600080600080600080600060a0888a03121561027e57600080fd5b873561028981610202565b9650602088013561029981610202565b955060408801359450606088013567ffffffffffffffff808211156102bd57600080fd5b6102c98b838c0161021a565b909650945060808a01359150808211156102e257600080fd5b506102ef8a828b0161021a565b989b979a50959850939692959293505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038681168252851660208201526040810184905260806060820181905260009061035f9083018486610302565b979650505050505050565b60005b8381101561038557818101518382015260200161036d565b50506000910152565b60018060a01b038316815260406020820152600082518060408401526103bb81606085016020870161036a565b601f01601f1916919091016060019392505050565b6000602082840312156103e257600080fd5b5051919050565b6040815260006103fd604083018688610302565b828103602084015261035f818587610302565b60006bffffffffffffffffffffffff19808760601b168352808660601b16601484015250836028830152825161044d81604885016020870161036a565b919091016048019594505050505056fea264697066735822122009038c6a3d5cfcce855ebe74770593d9af2426033a9dba50dac6b7c3ff7e335564736f6c63430008170033",
|
|
84
84
|
"devdoc": {
|
|
85
85
|
"kind": "dev",
|
|
86
86
|
"methods": {
|
|
87
87
|
"constructor": {
|
|
88
88
|
"params": {
|
|
89
|
-
"
|
|
89
|
+
"inputBox": "The input box used by the portal"
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
"depositERC721Token(address,address,uint256,bytes,bytes)": {
|
|
93
93
|
"params": {
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
94
|
+
"appContract": "The application contract address",
|
|
95
|
+
"baseLayerData": "Additional data to be interpreted by the base layer",
|
|
96
|
+
"execLayerData": "Additional data to be interpreted by the execution layer",
|
|
97
|
+
"token": "The ERC-721 token contract",
|
|
98
|
+
"tokenId": "The identifier of the token being transferred"
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
"getInputBox()": {
|
|
@@ -114,13 +114,13 @@
|
|
|
114
114
|
"notice": "Constructs the portal."
|
|
115
115
|
},
|
|
116
116
|
"depositERC721Token(address,address,uint256,bytes,bytes)": {
|
|
117
|
-
"notice": "Transfer an ERC-721 token to
|
|
117
|
+
"notice": "Transfer an ERC-721 token to an application contract and add an input to the application's input box to signal such operation. The caller must change the approved address for the ERC-721 token to the portal address beforehand, by calling the `approve` function in the token contract."
|
|
118
118
|
},
|
|
119
119
|
"getInputBox()": {
|
|
120
|
-
"notice": "Get the input box used by this
|
|
120
|
+
"notice": "Get the input box used by this portal."
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
|
-
"notice": "This contract allows anyone to perform transfers of ERC-721 tokens to
|
|
123
|
+
"notice": "This contract allows anyone to perform transfers of ERC-721 tokens to an application contract while informing the off-chain machine.",
|
|
124
124
|
"version": 1
|
|
125
125
|
}
|
|
126
126
|
}
|