@cartesi/devnet 2.0.0-alpha.2 → 2.0.0-alpha.4
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/anvil_state.json +1 -0
- package/deployments/TestMultiToken.json +585 -0
- package/deployments/TestNFT.json +590 -0
- package/deployments/TestToken.json +730 -0
- package/deployments/cartesiRollups.ApplicationFactory.json +164 -0
- package/deployments/cartesiRollups.AuthorityFactory.json +110 -0
- package/deployments/cartesiRollups.ERC1155BatchPortal.json +79 -0
- package/deployments/cartesiRollups.ERC1155SinglePortal.json +79 -0
- package/deployments/cartesiRollups.ERC20Portal.json +74 -0
- package/deployments/cartesiRollups.ERC721Portal.json +74 -0
- package/deployments/cartesiRollups.EtherPortal.json +64 -0
- package/deployments/cartesiRollups.InputBox.json +146 -0
- package/deployments/cartesiRollups.QuorumFactory.json +110 -0
- package/deployments/cartesiRollups.SafeERC20Transfer.json +49 -0
- package/deployments/cartesiRollups.SelfHostedApplicationFactory.json +158 -0
- package/package.json +10 -33
- package/build/anvil_state.json +0 -1
- package/deployments/localhost/.chainId +0 -1
- package/deployments/localhost/ApplicationFactory.json +0 -227
- package/deployments/localhost/AuthorityFactory.json +0 -188
- package/deployments/localhost/ERC1155BatchPortal.json +0 -133
- package/deployments/localhost/ERC1155SinglePortal.json +0 -132
- package/deployments/localhost/ERC20Portal.json +0 -132
- package/deployments/localhost/ERC721Portal.json +0 -126
- package/deployments/localhost/EtherPortal.json +0 -121
- package/deployments/localhost/InputBox.json +0 -213
- package/deployments/localhost/QuorumFactory.json +0 -188
- package/deployments/localhost/SafeERC20Transfer.json +0 -118
- package/deployments/localhost/SelfHostedApplicationFactory.json +0 -227
- package/deployments/localhost/TestMultiToken.json +0 -829
- package/deployments/localhost/TestNFT.json +0 -891
- package/deployments/localhost/TestToken.json +0 -1079
- package/dist/deploy/01_token.js +0 -15
- package/dist/deploy/02_nft.js +0 -15
- package/dist/deploy/03_multitoken.js +0 -15
- package/dist/deploy/04_4337.js +0 -342
- package/dist/src/aa/constants.d.ts +0 -31
- package/dist/src/aa/constants.d.ts.map +0 -1
- package/dist/src/aa/constants.js +0 -65
- package/dist/src/tasks/deploy-anvil.d.ts +0 -6
- package/dist/src/tasks/deploy-anvil.d.ts.map +0 -1
- package/dist/src/tasks/deploy-anvil.js +0 -40
- package/export/abi/localhost.json +0 -2837
- package/export/artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.json +0 -128
- package/export/artifacts/@openzeppelin/contracts/access/manager/AccessManaged.sol/AccessManaged.json +0 -137
- package/export/artifacts/@openzeppelin/contracts/access/manager/AuthorityUtils.sol/AuthorityUtils.json +0 -32
- package/export/artifacts/@openzeppelin/contracts/access/manager/IAccessManaged.sol/IAccessManaged.json +0 -133
- package/export/artifacts/@openzeppelin/contracts/access/manager/IAccessManager.sol/IAccessManager.json +0 -1240
- package/export/artifacts/@openzeppelin/contracts/access/manager/IAuthority.sol/IAuthority.json +0 -60
- package/export/artifacts/@openzeppelin/contracts/interfaces/IERC4906.sol/IERC4906.json +0 -401
- package/export/artifacts/@openzeppelin/contracts/interfaces/IERC5267.sol/IERC5267.json +0 -84
- package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.json +0 -190
- package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.json +0 -165
- package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.json +0 -197
- package/export/artifacts/@openzeppelin/contracts/token/ERC1155/ERC1155.sol/ERC1155.json +0 -553
- package/export/artifacts/@openzeppelin/contracts/token/ERC1155/IERC1155.sol/IERC1155.json +0 -362
- package/export/artifacts/@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol/IERC1155Receiver.json +0 -156
- package/export/artifacts/@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol/IERC1155MetadataURI.json +0 -385
- package/export/artifacts/@openzeppelin/contracts/token/ERC1155/utils/ERC1155Utils.sol/ERC1155Utils.json +0 -34
- package/export/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json +0 -436
- package/export/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.json +0 -242
- package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol/ERC20Burnable.json +0 -472
- package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol/ERC20Pausable.json +0 -502
- package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol/ERC20Permit.json +0 -695
- package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.json +0 -293
- package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol/IERC20Permit.json +0 -114
- package/export/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json +0 -595
- package/export/artifacts/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.json +0 -363
- package/export/artifacts/@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol/IERC721Receiver.json +0 -66
- package/export/artifacts/@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol/ERC721URIStorage.json +0 -630
- package/export/artifacts/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol/IERC721Metadata.json +0 -421
- package/export/artifacts/@openzeppelin/contracts/token/ERC721/utils/ERC721Utils.sol/ERC721Utils.json +0 -33
- package/export/artifacts/@openzeppelin/contracts/utils/Arrays.sol/Arrays.json +0 -61
- package/export/artifacts/@openzeppelin/contracts/utils/Comparators.sol/Comparators.json +0 -34
- package/export/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.json +0 -24
- package/export/artifacts/@openzeppelin/contracts/utils/Nonces.sol/Nonces.json +0 -73
- package/export/artifacts/@openzeppelin/contracts/utils/Panic.sol/Panic.json +0 -65
- package/export/artifacts/@openzeppelin/contracts/utils/Pausable.sol/Pausable.json +0 -103
- package/export/artifacts/@openzeppelin/contracts/utils/ShortStrings.sol/ShortStrings.json +0 -55
- package/export/artifacts/@openzeppelin/contracts/utils/SlotDerivation.sol/SlotDerivation.json +0 -42
- package/export/artifacts/@openzeppelin/contracts/utils/StorageSlot.sol/StorageSlot.json +0 -41
- package/export/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.json +0 -63
- package/export/artifacts/@openzeppelin/contracts/utils/cryptography/ECDSA.sol/ECDSA.json +0 -84
- package/export/artifacts/@openzeppelin/contracts/utils/cryptography/EIP712.sol/EIP712.json +0 -105
- package/export/artifacts/@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol/MessageHashUtils.json +0 -36
- package/export/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.json +0 -50
- package/export/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.json +0 -50
- package/export/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.json +0 -60
- package/export/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.json +0 -174
- package/export/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.json +0 -37
- package/export/artifacts/@openzeppelin/contracts/utils/types/Time.sol/Time.json +0 -41
- package/export/artifacts/contracts/TestMultiToken.sol/TestMultiToken.json +0 -750
- package/export/artifacts/contracts/TestNFT.sol/TestNFT.json +0 -779
- package/export/artifacts/contracts/TestToken.sol/TestToken.json +0 -963
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"address": "0x2f0D587DD6EcF67d25C558f2e9c3839c579e5e38",
|
|
3
|
-
"abi": [
|
|
4
|
-
{
|
|
5
|
-
"inputs": [
|
|
6
|
-
{
|
|
7
|
-
"internalType": "contract IInputBox",
|
|
8
|
-
"name": "inputBox",
|
|
9
|
-
"type": "address"
|
|
10
|
-
}
|
|
11
|
-
],
|
|
12
|
-
"stateMutability": "nonpayable",
|
|
13
|
-
"type": "constructor"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"inputs": [
|
|
17
|
-
{
|
|
18
|
-
"internalType": "contract IERC1155",
|
|
19
|
-
"name": "token",
|
|
20
|
-
"type": "address"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"internalType": "address",
|
|
24
|
-
"name": "appContract",
|
|
25
|
-
"type": "address"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"internalType": "uint256",
|
|
29
|
-
"name": "tokenId",
|
|
30
|
-
"type": "uint256"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"internalType": "uint256",
|
|
34
|
-
"name": "value",
|
|
35
|
-
"type": "uint256"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"internalType": "bytes",
|
|
39
|
-
"name": "baseLayerData",
|
|
40
|
-
"type": "bytes"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"internalType": "bytes",
|
|
44
|
-
"name": "execLayerData",
|
|
45
|
-
"type": "bytes"
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
"name": "depositSingleERC1155Token",
|
|
49
|
-
"outputs": [],
|
|
50
|
-
"stateMutability": "nonpayable",
|
|
51
|
-
"type": "function"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"inputs": [],
|
|
55
|
-
"name": "getInputBox",
|
|
56
|
-
"outputs": [
|
|
57
|
-
{
|
|
58
|
-
"internalType": "contract IInputBox",
|
|
59
|
-
"name": "",
|
|
60
|
-
"type": "address"
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
|
-
"stateMutability": "view",
|
|
64
|
-
"type": "function"
|
|
65
|
-
}
|
|
66
|
-
],
|
|
67
|
-
"transactionHash": "0x2635fac7f842404d2d602c43e4832bb9e5628dbf4d667bcaffa0d3c5689e12a1",
|
|
68
|
-
"receipt": {
|
|
69
|
-
"to": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
|
|
70
|
-
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
71
|
-
"contractAddress": null,
|
|
72
|
-
"transactionIndex": 0,
|
|
73
|
-
"gasUsed": "317542",
|
|
74
|
-
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
75
|
-
"blockHash": "0x1b6874a8a6c4658e5f78cafaf9d387072ab76df91393349060d7653ac6fd9ade",
|
|
76
|
-
"transactionHash": "0x2635fac7f842404d2d602c43e4832bb9e5628dbf4d667bcaffa0d3c5689e12a1",
|
|
77
|
-
"logs": [],
|
|
78
|
-
"blockNumber": 7,
|
|
79
|
-
"cumulativeGasUsed": "317542",
|
|
80
|
-
"status": 1,
|
|
81
|
-
"byzantium": true
|
|
82
|
-
},
|
|
83
|
-
"args": [
|
|
84
|
-
"0x593E5BCf894D6829Dd26D0810DA7F064406aebB6"
|
|
85
|
-
],
|
|
86
|
-
"numDeployments": 1,
|
|
87
|
-
"bytecode": "0x60a060405234801561001057600080fd5b5060405161054e38038061054e83398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b6080516104bd61009160003960008181603c015261012001526104bd6000f3fe608060405234801561001057600080fd5b50600436106100355760003560e01c8062aace9a1461003a578063dec07dca14610077575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006040516001600160a01b03909116815260200160405180910390f35b61008a61008536600461026a565b61008c565b005b604051637921219560e11b81526001600160a01b0389169063f242432a906100c29033908b908b908b908b908b9060040161033b565b600060405180830381600087803b1580156100dc57600080fd5b505af11580156100f0573d6000803e3d6000fd5b50505050600061010689338989898989896101a6565b604051631789cd6360e01b81529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631789cd6390610157908b9085906004016103a6565b6020604051808303816000875af1158015610176573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019a91906103e8565b50505050505050505050565b60606000858585856040516020016101c19493929190610401565b604051602081830303815290604052905089898989846040516020016101eb959493929190610433565b60405160208183030381529060405291505098975050505050505050565b6001600160a01b038116811461021e57600080fd5b50565b60008083601f84011261023357600080fd5b50813567ffffffffffffffff81111561024b57600080fd5b60208301915083602082850101111561026357600080fd5b9250929050565b60008060008060008060008060c0898b03121561028657600080fd5b883561029181610209565b975060208901356102a181610209565b96506040890135955060608901359450608089013567ffffffffffffffff808211156102cc57600080fd5b6102d88c838d01610221565b909650945060a08b01359150808211156102f157600080fd5b506102fe8b828c01610221565b999c989b5096995094979396929594505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b03878116825286166020820152604081018590526060810184905260a0608082018190526000906103769083018486610312565b98975050505050505050565b60005b8381101561039d578181015183820152602001610385565b50506000910152565b60018060a01b038316815260406020820152600082518060408401526103d3816060850160208701610382565b601f01601f1916919091016060019392505050565b6000602082840312156103fa57600080fd5b5051919050565b604081526000610415604083018688610312565b8281036020840152610428818587610312565b979650505050505050565b60006bffffffffffffffffffffffff19808860601b168352808760601b166014840152508460288301528360488301528251610476816068850160208701610382565b91909101606801969550505050505056fea2646970667358221220d41fd809f8973ec185f1d3497cbb7b9e865e5fedf38a2c16ada1c6b0ec7c11ee64736f6c63430008170033",
|
|
88
|
-
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100355760003560e01c8062aace9a1461003a578063dec07dca14610077575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006040516001600160a01b03909116815260200160405180910390f35b61008a61008536600461026a565b61008c565b005b604051637921219560e11b81526001600160a01b0389169063f242432a906100c29033908b908b908b908b908b9060040161033b565b600060405180830381600087803b1580156100dc57600080fd5b505af11580156100f0573d6000803e3d6000fd5b50505050600061010689338989898989896101a6565b604051631789cd6360e01b81529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631789cd6390610157908b9085906004016103a6565b6020604051808303816000875af1158015610176573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019a91906103e8565b50505050505050505050565b60606000858585856040516020016101c19493929190610401565b604051602081830303815290604052905089898989846040516020016101eb959493929190610433565b60405160208183030381529060405291505098975050505050505050565b6001600160a01b038116811461021e57600080fd5b50565b60008083601f84011261023357600080fd5b50813567ffffffffffffffff81111561024b57600080fd5b60208301915083602082850101111561026357600080fd5b9250929050565b60008060008060008060008060c0898b03121561028657600080fd5b883561029181610209565b975060208901356102a181610209565b96506040890135955060608901359450608089013567ffffffffffffffff808211156102cc57600080fd5b6102d88c838d01610221565b909650945060a08b01359150808211156102f157600080fd5b506102fe8b828c01610221565b999c989b5096995094979396929594505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b03878116825286166020820152604081018590526060810184905260a0608082018190526000906103769083018486610312565b98975050505050505050565b60005b8381101561039d578181015183820152602001610385565b50506000910152565b60018060a01b038316815260406020820152600082518060408401526103d3816060850160208701610382565b601f01601f1916919091016060019392505050565b6000602082840312156103fa57600080fd5b5051919050565b604081526000610415604083018688610312565b8281036020840152610428818587610312565b979650505050505050565b60006bffffffffffffffffffffffff19808860601b168352808760601b166014840152508460288301528360488301528251610476816068850160208701610382565b91909101606801969550505050505056fea2646970667358221220d41fd809f8973ec185f1d3497cbb7b9e865e5fedf38a2c16ada1c6b0ec7c11ee64736f6c63430008170033",
|
|
89
|
-
"devdoc": {
|
|
90
|
-
"kind": "dev",
|
|
91
|
-
"methods": {
|
|
92
|
-
"constructor": {
|
|
93
|
-
"params": {
|
|
94
|
-
"inputBox": "The input box used by the portal"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
"depositSingleERC1155Token(address,address,uint256,uint256,bytes,bytes)": {
|
|
98
|
-
"params": {
|
|
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
|
-
}
|
|
106
|
-
},
|
|
107
|
-
"getInputBox()": {
|
|
108
|
-
"returns": {
|
|
109
|
-
"_0": "The input box"
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
"title": "ERC-1155 Single Transfer Portal",
|
|
114
|
-
"version": 1
|
|
115
|
-
},
|
|
116
|
-
"userdoc": {
|
|
117
|
-
"kind": "user",
|
|
118
|
-
"methods": {
|
|
119
|
-
"constructor": {
|
|
120
|
-
"notice": "Constructs the portal."
|
|
121
|
-
},
|
|
122
|
-
"depositSingleERC1155Token(address,address,uint256,uint256,bytes,bytes)": {
|
|
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
|
-
},
|
|
125
|
-
"getInputBox()": {
|
|
126
|
-
"notice": "Get the input box used by this portal."
|
|
127
|
-
}
|
|
128
|
-
},
|
|
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
|
-
"version": 1
|
|
131
|
-
}
|
|
132
|
-
}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"address": "0xB0e28881FF7ee9CD5B1229d570540d74bce23D39",
|
|
3
|
-
"abi": [
|
|
4
|
-
{
|
|
5
|
-
"inputs": [
|
|
6
|
-
{
|
|
7
|
-
"internalType": "contract IInputBox",
|
|
8
|
-
"name": "inputBox",
|
|
9
|
-
"type": "address"
|
|
10
|
-
}
|
|
11
|
-
],
|
|
12
|
-
"stateMutability": "nonpayable",
|
|
13
|
-
"type": "constructor"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"inputs": [],
|
|
17
|
-
"name": "ERC20TransferFailed",
|
|
18
|
-
"type": "error"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"inputs": [
|
|
22
|
-
{
|
|
23
|
-
"internalType": "contract IERC20",
|
|
24
|
-
"name": "token",
|
|
25
|
-
"type": "address"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"internalType": "address",
|
|
29
|
-
"name": "appContract",
|
|
30
|
-
"type": "address"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"internalType": "uint256",
|
|
34
|
-
"name": "value",
|
|
35
|
-
"type": "uint256"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"internalType": "bytes",
|
|
39
|
-
"name": "execLayerData",
|
|
40
|
-
"type": "bytes"
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"name": "depositERC20Tokens",
|
|
44
|
-
"outputs": [],
|
|
45
|
-
"stateMutability": "nonpayable",
|
|
46
|
-
"type": "function"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"inputs": [],
|
|
50
|
-
"name": "getInputBox",
|
|
51
|
-
"outputs": [
|
|
52
|
-
{
|
|
53
|
-
"internalType": "contract IInputBox",
|
|
54
|
-
"name": "",
|
|
55
|
-
"type": "address"
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
"stateMutability": "view",
|
|
59
|
-
"type": "function"
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
"transactionHash": "0xf74870a6f4c47e7358d96e19e7bc9c76a0defa095e0764c909ce38589dc0de22",
|
|
63
|
-
"receipt": {
|
|
64
|
-
"to": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
|
|
65
|
-
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
66
|
-
"contractAddress": null,
|
|
67
|
-
"transactionIndex": 0,
|
|
68
|
-
"gasUsed": "269088",
|
|
69
|
-
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
70
|
-
"blockHash": "0x90cd7d5e0a8ec0fe3ae7d55ecb171dcbf4b21f6c9d2b8e0b9642c4ef027aa506",
|
|
71
|
-
"transactionHash": "0xf74870a6f4c47e7358d96e19e7bc9c76a0defa095e0764c909ce38589dc0de22",
|
|
72
|
-
"logs": [],
|
|
73
|
-
"blockNumber": 5,
|
|
74
|
-
"cumulativeGasUsed": "269088",
|
|
75
|
-
"status": 1,
|
|
76
|
-
"byzantium": true
|
|
77
|
-
},
|
|
78
|
-
"args": [
|
|
79
|
-
"0x593E5BCf894D6829Dd26D0810DA7F064406aebB6"
|
|
80
|
-
],
|
|
81
|
-
"numDeployments": 1,
|
|
82
|
-
"bytecode": "0x60a060405234801561001057600080fd5b5060405161046e38038061046e83398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b6080516103dd61009160003960008181603c015261015201526103dd6000f3fe608060405234801561001057600080fd5b50600436106100355760003560e01c8062aace9a1461003a57806395854b8114610077575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006040516001600160a01b03909116815260200160405180910390f35b61008a610085366004610223565b61008c565b005b6040516323b872dd60e01b81523360048201526001600160a01b03858116602483015260448201859052600091908716906323b872dd906064016020604051808303816000875af11580156100e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061010991906102c2565b90508061012957604051633c9fd93960e21b815260040160405180910390fd5b600061013887338787876101d6565b604051631789cd6360e01b81529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631789cd639061018990899085906004016102eb565b6020604051808303816000875af11580156101a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101cc919061034a565b5050505050505050565b606085858585856040516020016101f1959493929190610363565b604051602081830303815290604052905095945050505050565b6001600160a01b038116811461022057600080fd5b50565b60008060008060006080868803121561023b57600080fd5b85356102468161020b565b945060208601356102568161020b565b935060408601359250606086013567ffffffffffffffff8082111561027a57600080fd5b818801915088601f83011261028e57600080fd5b81358181111561029d57600080fd5b8960208285010111156102af57600080fd5b9699959850939650602001949392505050565b6000602082840312156102d457600080fd5b815180151581146102e457600080fd5b9392505050565b60018060a01b03831681526000602060406020840152835180604085015260005b818110156103285785810183015185820160600152820161030c565b506000606082860101526060601f19601f830116850101925050509392505050565b60006020828403121561035c57600080fd5b5051919050565b60006bffffffffffffffffffffffff19808860601b168352808760601b1660148401525084602883015282846048840137506000910160480190815294935050505056fea26469706673582212206e9c57997e262a5573f4d46a834e8afe9777fcbdf098307d8711bdff9b91b3dd64736f6c63430008170033",
|
|
83
|
-
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100355760003560e01c8062aace9a1461003a57806395854b8114610077575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006040516001600160a01b03909116815260200160405180910390f35b61008a610085366004610223565b61008c565b005b6040516323b872dd60e01b81523360048201526001600160a01b03858116602483015260448201859052600091908716906323b872dd906064016020604051808303816000875af11580156100e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061010991906102c2565b90508061012957604051633c9fd93960e21b815260040160405180910390fd5b600061013887338787876101d6565b604051631789cd6360e01b81529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631789cd639061018990899085906004016102eb565b6020604051808303816000875af11580156101a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101cc919061034a565b5050505050505050565b606085858585856040516020016101f1959493929190610363565b604051602081830303815290604052905095945050505050565b6001600160a01b038116811461022057600080fd5b50565b60008060008060006080868803121561023b57600080fd5b85356102468161020b565b945060208601356102568161020b565b935060408601359250606086013567ffffffffffffffff8082111561027a57600080fd5b818801915088601f83011261028e57600080fd5b81358181111561029d57600080fd5b8960208285010111156102af57600080fd5b9699959850939650602001949392505050565b6000602082840312156102d457600080fd5b815180151581146102e457600080fd5b9392505050565b60018060a01b03831681526000602060406020840152835180604085015260005b818110156103285785810183015185820160600152820161030c565b506000606082860101526060601f19601f830116850101925050509392505050565b60006020828403121561035c57600080fd5b5051919050565b60006bffffffffffffffffffffffff19808860601b168352808760601b1660148401525084602883015282846048840137506000910160480190815294935050505056fea26469706673582212206e9c57997e262a5573f4d46a834e8afe9777fcbdf098307d8711bdff9b91b3dd64736f6c63430008170033",
|
|
84
|
-
"devdoc": {
|
|
85
|
-
"kind": "dev",
|
|
86
|
-
"methods": {
|
|
87
|
-
"constructor": {
|
|
88
|
-
"params": {
|
|
89
|
-
"inputBox": "The input box used by the portal"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"depositERC20Tokens(address,address,uint256,bytes)": {
|
|
93
|
-
"params": {
|
|
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"
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
"getInputBox()": {
|
|
101
|
-
"returns": {
|
|
102
|
-
"_0": "The input box"
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
"title": "ERC-20 Portal",
|
|
107
|
-
"version": 1
|
|
108
|
-
},
|
|
109
|
-
"userdoc": {
|
|
110
|
-
"errors": {
|
|
111
|
-
"ERC20TransferFailed()": [
|
|
112
|
-
{
|
|
113
|
-
"notice": "Failed to transfer ERC-20 tokens to application"
|
|
114
|
-
}
|
|
115
|
-
]
|
|
116
|
-
},
|
|
117
|
-
"kind": "user",
|
|
118
|
-
"methods": {
|
|
119
|
-
"constructor": {
|
|
120
|
-
"notice": "Constructs the portal."
|
|
121
|
-
},
|
|
122
|
-
"depositERC20Tokens(address,address,uint256,bytes)": {
|
|
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."
|
|
124
|
-
},
|
|
125
|
-
"getInputBox()": {
|
|
126
|
-
"notice": "Get the input box used by this portal."
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
"notice": "This contract allows anyone to perform transfers of ERC-20 tokens to an application contract while informing the off-chain machine.",
|
|
130
|
-
"version": 1
|
|
131
|
-
}
|
|
132
|
-
}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"address": "0x874b3245ead7474Cb9f3b83cD1446dC522f6bd36",
|
|
3
|
-
"abi": [
|
|
4
|
-
{
|
|
5
|
-
"inputs": [
|
|
6
|
-
{
|
|
7
|
-
"internalType": "contract IInputBox",
|
|
8
|
-
"name": "inputBox",
|
|
9
|
-
"type": "address"
|
|
10
|
-
}
|
|
11
|
-
],
|
|
12
|
-
"stateMutability": "nonpayable",
|
|
13
|
-
"type": "constructor"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"inputs": [
|
|
17
|
-
{
|
|
18
|
-
"internalType": "contract IERC721",
|
|
19
|
-
"name": "token",
|
|
20
|
-
"type": "address"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"internalType": "address",
|
|
24
|
-
"name": "appContract",
|
|
25
|
-
"type": "address"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"internalType": "uint256",
|
|
29
|
-
"name": "tokenId",
|
|
30
|
-
"type": "uint256"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"internalType": "bytes",
|
|
34
|
-
"name": "baseLayerData",
|
|
35
|
-
"type": "bytes"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"internalType": "bytes",
|
|
39
|
-
"name": "execLayerData",
|
|
40
|
-
"type": "bytes"
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"name": "depositERC721Token",
|
|
44
|
-
"outputs": [],
|
|
45
|
-
"stateMutability": "nonpayable",
|
|
46
|
-
"type": "function"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"inputs": [],
|
|
50
|
-
"name": "getInputBox",
|
|
51
|
-
"outputs": [
|
|
52
|
-
{
|
|
53
|
-
"internalType": "contract IInputBox",
|
|
54
|
-
"name": "",
|
|
55
|
-
"type": "address"
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
"stateMutability": "view",
|
|
59
|
-
"type": "function"
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
"transactionHash": "0x055d13aa308be639ce64410d81b0351f3f6f8a230729a62f7a44d2da8de48af3",
|
|
63
|
-
"receipt": {
|
|
64
|
-
"to": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
|
|
65
|
-
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
66
|
-
"contractAddress": null,
|
|
67
|
-
"transactionIndex": 0,
|
|
68
|
-
"gasUsed": "308450",
|
|
69
|
-
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
70
|
-
"blockHash": "0x4b0b5df5d6e1ffdf885cacc0753b9233045a4b9bb65cb5e098ba5afc2ff646b2",
|
|
71
|
-
"transactionHash": "0x055d13aa308be639ce64410d81b0351f3f6f8a230729a62f7a44d2da8de48af3",
|
|
72
|
-
"logs": [],
|
|
73
|
-
"blockNumber": 6,
|
|
74
|
-
"cumulativeGasUsed": "308450",
|
|
75
|
-
"status": 1,
|
|
76
|
-
"byzantium": true
|
|
77
|
-
},
|
|
78
|
-
"args": [
|
|
79
|
-
"0x593E5BCf894D6829Dd26D0810DA7F064406aebB6"
|
|
80
|
-
],
|
|
81
|
-
"numDeployments": 1,
|
|
82
|
-
"bytecode": "0x60a060405234801561001057600080fd5b5060405161052438038061052483398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b60805161049361009160003960008181603c015261011d01526104936000f3fe608060405234801561001057600080fd5b50600436106100355760003560e01c8062aace9a1461003a57806328911e8314610077575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006040516001600160a01b03909116815260200160405180910390f35b61008a610085366004610263565b61008c565b005b604051635c46a7ef60e11b81526001600160a01b0388169063b88d4fde906100c09033908a908a908a908a9060040161032b565b600060405180830381600087803b1580156100da57600080fd5b505af11580156100ee573d6000803e3d6000fd5b505050506000610103883388888888886101a2565b604051631789cd6360e01b81529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631789cd6390610154908a90859060040161038e565b6020604051808303816000875af1158015610173573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019791906103d0565b505050505050505050565b60606000858585856040516020016101bd94939291906103e9565b6040516020818303038152906040529050888888836040516020016101e59493929190610410565b604051602081830303815290604052915050979650505050505050565b6001600160a01b038116811461021757600080fd5b50565b60008083601f84011261022c57600080fd5b50813567ffffffffffffffff81111561024457600080fd5b60208301915083602082850101111561025c57600080fd5b9250929050565b600080600080600080600060a0888a03121561027e57600080fd5b873561028981610202565b9650602088013561029981610202565b955060408801359450606088013567ffffffffffffffff808211156102bd57600080fd5b6102c98b838c0161021a565b909650945060808a01359150808211156102e257600080fd5b506102ef8a828b0161021a565b989b979a50959850939692959293505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038681168252851660208201526040810184905260806060820181905260009061035f9083018486610302565b979650505050505050565b60005b8381101561038557818101518382015260200161036d565b50506000910152565b60018060a01b038316815260406020820152600082518060408401526103bb81606085016020870161036a565b601f01601f1916919091016060019392505050565b6000602082840312156103e257600080fd5b5051919050565b6040815260006103fd604083018688610302565b828103602084015261035f818587610302565b60006bffffffffffffffffffffffff19808760601b168352808660601b16601484015250836028830152825161044d81604885016020870161036a565b919091016048019594505050505056fea264697066735822122009038c6a3d5cfcce855ebe74770593d9af2426033a9dba50dac6b7c3ff7e335564736f6c63430008170033",
|
|
83
|
-
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100355760003560e01c8062aace9a1461003a57806328911e8314610077575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006040516001600160a01b03909116815260200160405180910390f35b61008a610085366004610263565b61008c565b005b604051635c46a7ef60e11b81526001600160a01b0388169063b88d4fde906100c09033908a908a908a908a9060040161032b565b600060405180830381600087803b1580156100da57600080fd5b505af11580156100ee573d6000803e3d6000fd5b505050506000610103883388888888886101a2565b604051631789cd6360e01b81529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631789cd6390610154908a90859060040161038e565b6020604051808303816000875af1158015610173573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019791906103d0565b505050505050505050565b60606000858585856040516020016101bd94939291906103e9565b6040516020818303038152906040529050888888836040516020016101e59493929190610410565b604051602081830303815290604052915050979650505050505050565b6001600160a01b038116811461021757600080fd5b50565b60008083601f84011261022c57600080fd5b50813567ffffffffffffffff81111561024457600080fd5b60208301915083602082850101111561025c57600080fd5b9250929050565b600080600080600080600060a0888a03121561027e57600080fd5b873561028981610202565b9650602088013561029981610202565b955060408801359450606088013567ffffffffffffffff808211156102bd57600080fd5b6102c98b838c0161021a565b909650945060808a01359150808211156102e257600080fd5b506102ef8a828b0161021a565b989b979a50959850939692959293505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038681168252851660208201526040810184905260806060820181905260009061035f9083018486610302565b979650505050505050565b60005b8381101561038557818101518382015260200161036d565b50506000910152565b60018060a01b038316815260406020820152600082518060408401526103bb81606085016020870161036a565b601f01601f1916919091016060019392505050565b6000602082840312156103e257600080fd5b5051919050565b6040815260006103fd604083018688610302565b828103602084015261035f818587610302565b60006bffffffffffffffffffffffff19808760601b168352808660601b16601484015250836028830152825161044d81604885016020870161036a565b919091016048019594505050505056fea264697066735822122009038c6a3d5cfcce855ebe74770593d9af2426033a9dba50dac6b7c3ff7e335564736f6c63430008170033",
|
|
84
|
-
"devdoc": {
|
|
85
|
-
"kind": "dev",
|
|
86
|
-
"methods": {
|
|
87
|
-
"constructor": {
|
|
88
|
-
"params": {
|
|
89
|
-
"inputBox": "The input box used by the portal"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"depositERC721Token(address,address,uint256,bytes,bytes)": {
|
|
93
|
-
"params": {
|
|
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
|
-
}
|
|
100
|
-
},
|
|
101
|
-
"getInputBox()": {
|
|
102
|
-
"returns": {
|
|
103
|
-
"_0": "The input box"
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
"title": "ERC-721 Portal",
|
|
108
|
-
"version": 1
|
|
109
|
-
},
|
|
110
|
-
"userdoc": {
|
|
111
|
-
"kind": "user",
|
|
112
|
-
"methods": {
|
|
113
|
-
"constructor": {
|
|
114
|
-
"notice": "Constructs the portal."
|
|
115
|
-
},
|
|
116
|
-
"depositERC721Token(address,address,uint256,bytes,bytes)": {
|
|
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
|
-
},
|
|
119
|
-
"getInputBox()": {
|
|
120
|
-
"notice": "Get the input box used by this portal."
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
"notice": "This contract allows anyone to perform transfers of ERC-721 tokens to an application contract while informing the off-chain machine.",
|
|
124
|
-
"version": 1
|
|
125
|
-
}
|
|
126
|
-
}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"address": "0xfa2292f6D85ea4e629B156A4f99219e30D12EE17",
|
|
3
|
-
"abi": [
|
|
4
|
-
{
|
|
5
|
-
"inputs": [
|
|
6
|
-
{
|
|
7
|
-
"internalType": "contract IInputBox",
|
|
8
|
-
"name": "inputBox",
|
|
9
|
-
"type": "address"
|
|
10
|
-
}
|
|
11
|
-
],
|
|
12
|
-
"stateMutability": "nonpayable",
|
|
13
|
-
"type": "constructor"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"inputs": [],
|
|
17
|
-
"name": "EtherTransferFailed",
|
|
18
|
-
"type": "error"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"inputs": [
|
|
22
|
-
{
|
|
23
|
-
"internalType": "address",
|
|
24
|
-
"name": "appContract",
|
|
25
|
-
"type": "address"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"internalType": "bytes",
|
|
29
|
-
"name": "execLayerData",
|
|
30
|
-
"type": "bytes"
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
"name": "depositEther",
|
|
34
|
-
"outputs": [],
|
|
35
|
-
"stateMutability": "payable",
|
|
36
|
-
"type": "function"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"inputs": [],
|
|
40
|
-
"name": "getInputBox",
|
|
41
|
-
"outputs": [
|
|
42
|
-
{
|
|
43
|
-
"internalType": "contract IInputBox",
|
|
44
|
-
"name": "",
|
|
45
|
-
"type": "address"
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
"stateMutability": "view",
|
|
49
|
-
"type": "function"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"transactionHash": "0x76369988f5c375e7b73285be6c033c5c6e8c9e6f3dd614a4747d77642675d260",
|
|
53
|
-
"receipt": {
|
|
54
|
-
"to": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
|
|
55
|
-
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
56
|
-
"contractAddress": null,
|
|
57
|
-
"transactionIndex": 0,
|
|
58
|
-
"gasUsed": "238142",
|
|
59
|
-
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
60
|
-
"blockHash": "0xd7782bc072e9cc350b96286a96ee1fa76abaf88b016954c950d32e49aa5a95b4",
|
|
61
|
-
"transactionHash": "0x76369988f5c375e7b73285be6c033c5c6e8c9e6f3dd614a4747d77642675d260",
|
|
62
|
-
"logs": [],
|
|
63
|
-
"blockNumber": 4,
|
|
64
|
-
"cumulativeGasUsed": "238142",
|
|
65
|
-
"status": 1,
|
|
66
|
-
"byzantium": true
|
|
67
|
-
},
|
|
68
|
-
"args": [
|
|
69
|
-
"0x593E5BCf894D6829Dd26D0810DA7F064406aebB6"
|
|
70
|
-
],
|
|
71
|
-
"numDeployments": 1,
|
|
72
|
-
"bytecode": "0x60a060405234801561001057600080fd5b506040516103df3803806103df83398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b60805161034e61009160003960008181603c0152610128015261034e6000f3fe6080604052600436106100285760003560e01c8062aace9a1461002d578063938c054f14610077575b600080fd5b34801561003957600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006040516001600160a01b03909116815260200160405180910390f35b61008a6100853660046101dc565b61008c565b005b6000836001600160a01b03163460405160006040518083038185875af1925050503d80600081146100d9576040519150601f19603f3d011682016040523d82523d6000602084013e6100de565b606091505b505090508061010057604051630ce8f45160e31b815260040160405180910390fd5b600061010e333486866101aa565b604051631789cd6360e01b81529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631789cd639061015f908890859060040161026d565b6020604051808303816000875af115801561017e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101a291906102cc565b505050505050565b6060848484846040516020016101c394939291906102e5565b6040516020818303038152906040529050949350505050565b6000806000604084860312156101f157600080fd5b83356001600160a01b038116811461020857600080fd5b9250602084013567ffffffffffffffff8082111561022557600080fd5b818601915086601f83011261023957600080fd5b81358181111561024857600080fd5b87602082850101111561025a57600080fd5b6020830194508093505050509250925092565b60018060a01b03831681526000602060406020840152835180604085015260005b818110156102aa5785810183015185820160600152820161028e565b506000606082860101526060601f19601f830116850101925050509392505050565b6000602082840312156102de57600080fd5b5051919050565b6bffffffffffffffffffffffff198560601b1681528360148201528183603483013760009101603401908152939250505056fea2646970667358221220e52bd9bc274e5c6b8dd2815a9a07e76c86edd92be566abb0729d8f7b78e6ca4664736f6c63430008170033",
|
|
73
|
-
"deployedBytecode": "0x6080604052600436106100285760003560e01c8062aace9a1461002d578063938c054f14610077575b600080fd5b34801561003957600080fd5b507f00000000000000000000000000000000000000000000000000000000000000006040516001600160a01b03909116815260200160405180910390f35b61008a6100853660046101dc565b61008c565b005b6000836001600160a01b03163460405160006040518083038185875af1925050503d80600081146100d9576040519150601f19603f3d011682016040523d82523d6000602084013e6100de565b606091505b505090508061010057604051630ce8f45160e31b815260040160405180910390fd5b600061010e333486866101aa565b604051631789cd6360e01b81529091506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631789cd639061015f908890859060040161026d565b6020604051808303816000875af115801561017e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101a291906102cc565b505050505050565b6060848484846040516020016101c394939291906102e5565b6040516020818303038152906040529050949350505050565b6000806000604084860312156101f157600080fd5b83356001600160a01b038116811461020857600080fd5b9250602084013567ffffffffffffffff8082111561022557600080fd5b818601915086601f83011261023957600080fd5b81358181111561024857600080fd5b87602082850101111561025a57600080fd5b6020830194508093505050509250925092565b60018060a01b03831681526000602060406020840152835180604085015260005b818110156102aa5785810183015185820160600152820161028e565b506000606082860101526060601f19601f830116850101925050509392505050565b6000602082840312156102de57600080fd5b5051919050565b6bffffffffffffffffffffffff198560601b1681528360148201528183603483013760009101603401908152939250505056fea2646970667358221220e52bd9bc274e5c6b8dd2815a9a07e76c86edd92be566abb0729d8f7b78e6ca4664736f6c63430008170033",
|
|
74
|
-
"devdoc": {
|
|
75
|
-
"kind": "dev",
|
|
76
|
-
"methods": {
|
|
77
|
-
"constructor": {
|
|
78
|
-
"params": {
|
|
79
|
-
"inputBox": "The input box used by the portal"
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"depositEther(address,bytes)": {
|
|
83
|
-
"details": "Any Ether sent through this function will be forwarded to the application contract. If the transfer fails, an `EtherTransferFailed` error will be raised.",
|
|
84
|
-
"params": {
|
|
85
|
-
"appContract": "The application contract address",
|
|
86
|
-
"execLayerData": "Additional data to be interpreted by the execution layer"
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
"getInputBox()": {
|
|
90
|
-
"returns": {
|
|
91
|
-
"_0": "The input box"
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
"title": "Ether Portal",
|
|
96
|
-
"version": 1
|
|
97
|
-
},
|
|
98
|
-
"userdoc": {
|
|
99
|
-
"errors": {
|
|
100
|
-
"EtherTransferFailed()": [
|
|
101
|
-
{
|
|
102
|
-
"notice": "Failed to transfer Ether to application"
|
|
103
|
-
}
|
|
104
|
-
]
|
|
105
|
-
},
|
|
106
|
-
"kind": "user",
|
|
107
|
-
"methods": {
|
|
108
|
-
"constructor": {
|
|
109
|
-
"notice": "Constructs the portal."
|
|
110
|
-
},
|
|
111
|
-
"depositEther(address,bytes)": {
|
|
112
|
-
"notice": "Transfer Ether to an application contract and add an input to the application's input box to signal such operation."
|
|
113
|
-
},
|
|
114
|
-
"getInputBox()": {
|
|
115
|
-
"notice": "Get the input box used by this portal."
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
"notice": "This contract allows anyone to perform transfers of Ether to an application contract while informing the off-chain machine.",
|
|
119
|
-
"version": 1
|
|
120
|
-
}
|
|
121
|
-
}
|