UNPKG

@settlemint/solidity-zeto

Version:

Smart contract set to build Zero Knowledge tokens in SettleMint

235 lines (234 loc) 9.63 kB
{ "_format": "hh-sol-artifact-1", "contractName": "PoseidonFacade", "sourceName": "@iden3/contracts/lib/Poseidon.sol", "abi": [ { "inputs": [ { "internalType": "uint256[1]", "name": "el", "type": "uint256[1]" } ], "name": "poseidon1", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256[2]", "name": "el", "type": "uint256[2]" } ], "name": "poseidon2", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256[3]", "name": "el", "type": "uint256[3]" } ], "name": "poseidon3", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256[4]", "name": "el", "type": "uint256[4]" } ], "name": "poseidon4", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256[5]", "name": "el", "type": "uint256[5]" } ], "name": "poseidon5", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256[6]", "name": "el", "type": "uint256[6]" } ], "name": "poseidon6", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256[]", "name": "el", "type": "uint256[]" } ], "name": "poseidonSponge", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" } ], "bytecode": "0x6080806040523460195761050b908161001f823930815050f35b600080fdfe608080604052600436101561001357600080fd5b60003560e01c90816327babae2146103f157508063476326281461037a5780638844c1a614610303578063a8ba0b2814610216578063ac490f261461019f578063c2720d54146101285763db809cd51461006c57600080fd5b60c060031936011261010f573660c41161010f576040517ff5b4a78800000000000000000000000000000000000000000000000000000000815260c060048083013760208160c48173__$037d0ef5096c0205b2ca530e7bc3ca349a$__5af4801561011c576000906100e4575b602090604051908152f35b506020813d602011610114575b816100fe60209383610465565b8101031261010f57602090516100d9565b600080fd5b3d91506100f1565b6040513d6000823e3d90fd5b60a060031936011261010f573660a41161010f576040517f4937a25800000000000000000000000000000000000000000000000000000000815260a060048083013760208160a48173__$7a833bd291b05f3a96939bc4c08dfa9199$__5af4801561011c576000906100e457602090604051908152f35b608060031936011261010f573660841161010f576040517f248f6677000000000000000000000000000000000000000000000000000000008152608060048083013760208160848173__$2650005024f117ed9b6c57ec1bf6374b69$__5af4801561011c576000906100e457602090604051908152f35b602060031936011261010f5760043567ffffffffffffffff811161010f573660238201121561010f5780600401359067ffffffffffffffff821161010f578160051b90366024838301011161010f577f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff604051937f40ec6e49000000000000000000000000000000000000000000000000000000008552602060048601528060248601521161010f5760448383602094602483950184840137810103018173__$581a64dd30105ceace6de9764d2f405eec$__5af4801561011c576000906100e457602090604051908152f35b602060031936011261010f573660241161010f576040517f1caab9a7000000000000000000000000000000000000000000000000000000008152602060048083013760208160248173__$8f7e095f182f3470dd3dcaa5f47b253a9b$__5af4801561011c576000906100e457602090604051908152f35b604060031936011261010f573660441161010f576040517f29a5f2f6000000000000000000000000000000000000000000000000000000008152604060048083013760208160448173__$ebe82a1924a894141c89e6680d3cbc7e88$__5af4801561011c576000906100e457602090604051908152f35b606060031936011261010f573660641161010f577f25cc70e8000000000000000000000000000000000000000000000000000000008152606060048083013760208160648173__$03320550cd1b629da90608251571b2532e$__5af4801561011c576000906100e457602090604051908152f35b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176104a657604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea264697066735822122004adb74d5604bb41ce6a68aa9f1f5c606624cb94fd355367e6c3c02e4290695b64736f6c634300081b0033", "deployedBytecode": "0x608080604052600436101561001357600080fd5b60003560e01c90816327babae2146103f157508063476326281461037a5780638844c1a614610303578063a8ba0b2814610216578063ac490f261461019f578063c2720d54146101285763db809cd51461006c57600080fd5b60c060031936011261010f573660c41161010f576040517ff5b4a78800000000000000000000000000000000000000000000000000000000815260c060048083013760208160c48173__$037d0ef5096c0205b2ca530e7bc3ca349a$__5af4801561011c576000906100e4575b602090604051908152f35b506020813d602011610114575b816100fe60209383610465565b8101031261010f57602090516100d9565b600080fd5b3d91506100f1565b6040513d6000823e3d90fd5b60a060031936011261010f573660a41161010f576040517f4937a25800000000000000000000000000000000000000000000000000000000815260a060048083013760208160a48173__$7a833bd291b05f3a96939bc4c08dfa9199$__5af4801561011c576000906100e457602090604051908152f35b608060031936011261010f573660841161010f576040517f248f6677000000000000000000000000000000000000000000000000000000008152608060048083013760208160848173__$2650005024f117ed9b6c57ec1bf6374b69$__5af4801561011c576000906100e457602090604051908152f35b602060031936011261010f5760043567ffffffffffffffff811161010f573660238201121561010f5780600401359067ffffffffffffffff821161010f578160051b90366024838301011161010f577f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff604051937f40ec6e49000000000000000000000000000000000000000000000000000000008552602060048601528060248601521161010f5760448383602094602483950184840137810103018173__$581a64dd30105ceace6de9764d2f405eec$__5af4801561011c576000906100e457602090604051908152f35b602060031936011261010f573660241161010f576040517f1caab9a7000000000000000000000000000000000000000000000000000000008152602060048083013760208160248173__$8f7e095f182f3470dd3dcaa5f47b253a9b$__5af4801561011c576000906100e457602090604051908152f35b604060031936011261010f573660441161010f576040517f29a5f2f6000000000000000000000000000000000000000000000000000000008152604060048083013760208160448173__$ebe82a1924a894141c89e6680d3cbc7e88$__5af4801561011c576000906100e457602090604051908152f35b606060031936011261010f573660641161010f577f25cc70e8000000000000000000000000000000000000000000000000000000008152606060048083013760208160648173__$03320550cd1b629da90608251571b2532e$__5af4801561011c576000906100e457602090604051908152f35b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176104a657604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea264697066735822122004adb74d5604bb41ce6a68aa9f1f5c606624cb94fd355367e6c3c02e4290695b64736f6c634300081b0033", "linkReferences": { "@iden3/contracts/lib/Poseidon.sol": { "PoseidonUnit1L": [ { "length": 20, "start": 876 } ], "PoseidonUnit2L": [ { "length": 20, "start": 995 } ], "PoseidonUnit3L": [ { "length": 20, "start": 1111 } ], "PoseidonUnit4L": [ { "length": 20, "start": 520 } ], "PoseidonUnit5L": [ { "length": 20, "start": 401 } ], "PoseidonUnit6L": [ { "length": 20, "start": 213 } ], "SpongePoseidon": [ { "length": 20, "start": 757 } ] } }, "deployedLinkReferences": { "@iden3/contracts/lib/Poseidon.sol": { "PoseidonUnit1L": [ { "length": 20, "start": 845 } ], "PoseidonUnit2L": [ { "length": 20, "start": 964 } ], "PoseidonUnit3L": [ { "length": 20, "start": 1080 } ], "PoseidonUnit4L": [ { "length": 20, "start": 489 } ], "PoseidonUnit5L": [ { "length": 20, "start": 370 } ], "PoseidonUnit6L": [ { "length": 20, "start": 182 } ], "SpongePoseidon": [ { "length": 20, "start": 726 } ] } } }