diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 4a4e300a..3e7b29b6 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -36,16 +36,17 @@ jobs: run: yarn install --immutable - name: Run foundry anvil fork - run: yarn fork & + run: yarn fork --network mainnet & env: SEPOLIA_RPC_URL: ${{ secrets.SEPOLIA_RPC_URL }} + MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }} - name: Deploy contracts to anvil fork run: yarn deploy env: DEPLOYER_PRIVATE_KEY: ${{ secrets.DEPLOYER_PRIVATE_KEY }} SEPOLIA_RPC_URL: ${{ secrets.SEPOLIA_RPC_URL }} - + MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }} - name: Run nextjs lint run: yarn next:lint --max-warnings=0 diff --git a/README.md b/README.md index 1397b2da..8c6c0b29 100644 --- a/README.md +++ b/README.md @@ -46,19 +46,26 @@ cd scaffold-balancer-v3 yarn install ``` -3. Set a `SEPOLIA_RPC_URL` in the `packages/foundry/.env` file +3. Set the follwing RPC URLs in the `packages/foundry/.env` file ``` -SEPOLIA_RPC_URL=... +SEPOLIA_RPC_URL= +MAINNET_RPC_URL= +GNOSIS_RPC_URL= ``` -4. Start a local anvil fork of the Sepolia testnet +4. Start a local anvil fork of Ethereum mainnet + > To fork gnosis: + > + > 1. Change `targetFork` in `scaffold.config.ts` to `chains.gnosis` + > 2. Make sure the right addresses are un-commented in `PoolHelpers.sol` + > 3. Run `yarn fork --network gnosis` ```bash -yarn fork +yarn fork --network mainnet ``` -5. Deploy the mock tokens, pool factories, pool hooks, and custom pools contracts +1. Deploy the mock tokens, pool factories, pool hooks, and custom pools contracts > By default, the anvil account #0 will be the deployer and recieve the mock tokens and BPT from pool initialization ```bash diff --git a/packages/foundry/.env.example b/packages/foundry/.env.example index 05cf662f..0d2b02ec 100644 --- a/packages/foundry/.env.example +++ b/packages/foundry/.env.example @@ -1,2 +1,4 @@ DEPLOYER_PRIVATE_KEY= -SEPOLIA_RPC_URL= \ No newline at end of file +SEPOLIA_RPC_URL= +MAINNET_RPC_URL= +GNOSIS_RPC_URL= \ No newline at end of file diff --git a/packages/foundry/broadcast/Deploy.s.sol/11155111/run-1734043568.json b/packages/foundry/broadcast/Deploy.s.sol/11155111/run-1734043568.json new file mode 100644 index 00000000..7ae7a18c --- /dev/null +++ b/packages/foundry/broadcast/Deploy.s.sol/11155111/run-1734043568.json @@ -0,0 +1,648 @@ +{ + "transactions": [ + { + "hash": null, + "transactionType": "CREATE", + "contractName": "MockToken1", + "contractAddress": "0xebd6303d9cd09605545f723545d2d0bf56966cb9", + "function": null, + "arguments": [ + "Pepe the Frog", + "PEPE", + "1000000000000000000000" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "gas": "0xb7463", + "value": "0x0", + "input": "0x608060405234801562000010575f80fd5b5060405162000c0d38038062000c0d8339810160408190526200003391620002a0565b8282600362000043838262000398565b50600462000052828262000398565b5050506200006733826200007060201b60201c565b5050506200048a565b6001600160a01b0382166200009f5760405163ec442f0560e01b81525f60048201526024015b60405180910390fd5b620000ac5f8383620000b0565b5050565b6001600160a01b038316620000de578060025f828254620000d2919062000464565b90915550620001509050565b6001600160a01b0383165f9081526020819052604090205481811015620001325760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640162000096565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166200016e576002805482900390556200018c565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620001d291815260200190565b60405180910390a3505050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011262000203575f80fd5b81516001600160401b0380821115620002205762000220620001df565b604051601f8301601f19908116603f011681019082821181831017156200024b576200024b620001df565b816040528381526020925086602085880101111562000268575f80fd5b5f91505b838210156200028b57858201830151818301840152908201906200026c565b5f602085830101528094505050505092915050565b5f805f60608486031215620002b3575f80fd5b83516001600160401b0380821115620002ca575f80fd5b620002d887838801620001f3565b94506020860151915080821115620002ee575f80fd5b50620002fd86828701620001f3565b925050604084015190509250925092565b600181811c908216806200032357607f821691505b6020821081036200034257634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200039357805f5260205f20601f840160051c810160208510156200036f5750805b601f840160051c820191505b8181101562000390575f81556001016200037b565b50505b505050565b81516001600160401b03811115620003b457620003b4620001df565b620003cc81620003c584546200030e565b8462000348565b602080601f83116001811462000402575f8415620003ea5750858301515b5f19600386901b1c1916600185901b1785556200045c565b5f85815260208120601f198616915b82811015620004325788860151825594840194600190910190840162000411565b50858210156200045057878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b808201808211156200048457634e487b7160e01b5f52601160045260245ffd5b92915050565b61077580620004985f395ff3fe608060405234801561000f575f80fd5b506004361061009b575f3560e01c806370a082311161006357806370a082311461011457806395d89b411461013c578063a0712d6814610144578063a9059cbb14610159578063dd62ed3e1461016c575f80fd5b806306fdde031461009f578063095ea7b3146100bd57806318160ddd146100e057806323b872dd146100f2578063313ce56714610105575b5f80fd5b6100a76101a4565b6040516100b491906105b8565b60405180910390f35b6100d06100cb36600461061f565b610234565b60405190151581526020016100b4565b6002545b6040519081526020016100b4565b6100d0610100366004610647565b61024d565b604051601281526020016100b4565b6100e4610122366004610680565b6001600160a01b03165f9081526020819052604090205490565b6100a7610270565b6101576101523660046106a0565b61027f565b005b6100d061016736600461061f565b61028c565b6100e461017a3660046106b7565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6060600380546101b3906106e8565b80601f01602080910402602001604051908101604052809291908181526020018280546101df906106e8565b801561022a5780601f106102015761010080835404028352916020019161022a565b820191905f5260205f20905b81548152906001019060200180831161020d57829003601f168201915b5050505050905090565b5f33610241818585610299565b60019150505b92915050565b5f3361025a8582856102ab565b61026585858561032b565b506001949350505050565b6060600480546101b3906106e8565b6102893382610388565b50565b5f3361024181858561032b565b6102a683838360016103c0565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610325578181101561031757604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064015b60405180910390fd5b61032584848484035f6103c0565b50505050565b6001600160a01b03831661035457604051634b637e8f60e11b81525f600482015260240161030e565b6001600160a01b03821661037d5760405163ec442f0560e01b81525f600482015260240161030e565b6102a6838383610492565b6001600160a01b0382166103b15760405163ec442f0560e01b81525f600482015260240161030e565b6103bc5f8383610492565b5050565b6001600160a01b0384166103e95760405163e602df0560e01b81525f600482015260240161030e565b6001600160a01b03831661041257604051634a1406b160e11b81525f600482015260240161030e565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561032557826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161048491815260200190565b60405180910390a350505050565b6001600160a01b0383166104bc578060025f8282546104b19190610720565b9091555061052c9050565b6001600160a01b0383165f908152602081905260409020548181101561050e5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161030e565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661054857600280548290039055610566565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516105ab91815260200190565b60405180910390a3505050565b5f602080835283518060208501525f5b818110156105e4578581018301518582016040015282016105c8565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461061a575f80fd5b919050565b5f8060408385031215610630575f80fd5b61063983610604565b946020939093013593505050565b5f805f60608486031215610659575f80fd5b61066284610604565b925061067060208501610604565b9150604084013590509250925092565b5f60208284031215610690575f80fd5b61069982610604565b9392505050565b5f602082840312156106b0575f80fd5b5035919050565b5f80604083850312156106c8575f80fd5b6106d183610604565b91506106df60208401610604565b90509250929050565b600181811c908216806106fc57607f821691505b60208210810361071a57634e487b7160e01b5f52602260045260245ffd5b50919050565b8082018082111561024757634e487b7160e01b5f52601160045260245ffdfea2646970667358221220a6516948e8fde72d44b28e6f27dabdbac29dfabda0f3429d116b05be844f457e64736f6c63430008180033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000003635c9adc5dea00000000000000000000000000000000000000000000000000000000000000000000d50657065207468652046726f670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045045504500000000000000000000000000000000000000000000000000000000", + "nonce": "0x339c", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CREATE", + "contractName": "MockToken2", + "contractAddress": "0x6c205d1b1c20352e9d33a88569f18d103004762d", + "function": null, + "arguments": [ + "Department of Government Efficiency", + "DOGE", + "1000000000000000000000" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "gas": "0xc583d", + "value": "0x0", + "input": "0x608060405234801562000010575f80fd5b5060405162000c0d38038062000c0d8339810160408190526200003391620002a0565b8282600362000043838262000398565b50600462000052828262000398565b5050506200006733826200007060201b60201c565b5050506200048a565b6001600160a01b0382166200009f5760405163ec442f0560e01b81525f60048201526024015b60405180910390fd5b620000ac5f8383620000b0565b5050565b6001600160a01b038316620000de578060025f828254620000d2919062000464565b90915550620001509050565b6001600160a01b0383165f9081526020819052604090205481811015620001325760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640162000096565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166200016e576002805482900390556200018c565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620001d291815260200190565b60405180910390a3505050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011262000203575f80fd5b81516001600160401b0380821115620002205762000220620001df565b604051601f8301601f19908116603f011681019082821181831017156200024b576200024b620001df565b816040528381526020925086602085880101111562000268575f80fd5b5f91505b838210156200028b57858201830151818301840152908201906200026c565b5f602085830101528094505050505092915050565b5f805f60608486031215620002b3575f80fd5b83516001600160401b0380821115620002ca575f80fd5b620002d887838801620001f3565b94506020860151915080821115620002ee575f80fd5b50620002fd86828701620001f3565b925050604084015190509250925092565b600181811c908216806200032357607f821691505b6020821081036200034257634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200039357805f5260205f20601f840160051c810160208510156200036f5750805b601f840160051c820191505b8181101562000390575f81556001016200037b565b50505b505050565b81516001600160401b03811115620003b457620003b4620001df565b620003cc81620003c584546200030e565b8462000348565b602080601f83116001811462000402575f8415620003ea5750858301515b5f19600386901b1c1916600185901b1785556200045c565b5f85815260208120601f198616915b82811015620004325788860151825594840194600190910190840162000411565b50858210156200045057878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b808201808211156200048457634e487b7160e01b5f52601160045260245ffd5b92915050565b61077580620004985f395ff3fe608060405234801561000f575f80fd5b506004361061009b575f3560e01c806370a082311161006357806370a082311461011457806395d89b411461013c578063a0712d6814610144578063a9059cbb14610159578063dd62ed3e1461016c575f80fd5b806306fdde031461009f578063095ea7b3146100bd57806318160ddd146100e057806323b872dd146100f2578063313ce56714610105575b5f80fd5b6100a76101a4565b6040516100b491906105b8565b60405180910390f35b6100d06100cb36600461061f565b610234565b60405190151581526020016100b4565b6002545b6040519081526020016100b4565b6100d0610100366004610647565b61024d565b604051601281526020016100b4565b6100e4610122366004610680565b6001600160a01b03165f9081526020819052604090205490565b6100a7610270565b6101576101523660046106a0565b61027f565b005b6100d061016736600461061f565b61028c565b6100e461017a3660046106b7565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6060600380546101b3906106e8565b80601f01602080910402602001604051908101604052809291908181526020018280546101df906106e8565b801561022a5780601f106102015761010080835404028352916020019161022a565b820191905f5260205f20905b81548152906001019060200180831161020d57829003601f168201915b5050505050905090565b5f33610241818585610299565b60019150505b92915050565b5f3361025a8582856102ab565b61026585858561032b565b506001949350505050565b6060600480546101b3906106e8565b6102893382610388565b50565b5f3361024181858561032b565b6102a683838360016103c0565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610325578181101561031757604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064015b60405180910390fd5b61032584848484035f6103c0565b50505050565b6001600160a01b03831661035457604051634b637e8f60e11b81525f600482015260240161030e565b6001600160a01b03821661037d5760405163ec442f0560e01b81525f600482015260240161030e565b6102a6838383610492565b6001600160a01b0382166103b15760405163ec442f0560e01b81525f600482015260240161030e565b6103bc5f8383610492565b5050565b6001600160a01b0384166103e95760405163e602df0560e01b81525f600482015260240161030e565b6001600160a01b03831661041257604051634a1406b160e11b81525f600482015260240161030e565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561032557826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161048491815260200190565b60405180910390a350505050565b6001600160a01b0383166104bc578060025f8282546104b19190610720565b9091555061052c9050565b6001600160a01b0383165f908152602081905260409020548181101561050e5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161030e565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661054857600280548290039055610566565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516105ab91815260200190565b60405180910390a3505050565b5f602080835283518060208501525f5b818110156105e4578581018301518582016040015282016105c8565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461061a575f80fd5b919050565b5f8060408385031215610630575f80fd5b61063983610604565b946020939093013593505050565b5f805f60608486031215610659575f80fd5b61066284610604565b925061067060208501610604565b9150604084013590509250925092565b5f60208284031215610690575f80fd5b61069982610604565b9392505050565b5f602082840312156106b0575f80fd5b5035919050565b5f80604083850312156106c8575f80fd5b6106d183610604565b91506106df60208401610604565b90509250929050565b600181811c908216806106fc57607f821691505b60208210810361071a57634e487b7160e01b5f52602260045260245ffd5b50919050565b8082018082111561024757634e487b7160e01b5f52601160045260245ffdfea264697066735822122023d78a61ca203be4185271634bdd20a13ee2074decc83dbf35d3a5c0fd2f384d64736f6c63430008180033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000003635c9adc5dea0000000000000000000000000000000000000000000000000000000000000000000234465706172746d656e74206f6620476f7665726e6d656e7420456666696369656e637900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004444f474500000000000000000000000000000000000000000000000000000000", + "nonce": "0x339d", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CREATE", + "contractName": "MockVeBAL", + "contractAddress": "0x72007ee16e562335c7505f190e53073428bfdc25", + "function": null, + "arguments": [ + "Vote-escrow BAL", + "veBAL", + "1000000000000000000000" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "gas": "0xb7482", + "value": "0x0", + "input": "0x608060405234801562000010575f80fd5b5060405162000c0d38038062000c0d8339810160408190526200003391620002a0565b8282600362000043838262000398565b50600462000052828262000398565b5050506200006733826200007060201b60201c565b5050506200048a565b6001600160a01b0382166200009f5760405163ec442f0560e01b81525f60048201526024015b60405180910390fd5b620000ac5f8383620000b0565b5050565b6001600160a01b038316620000de578060025f828254620000d2919062000464565b90915550620001509050565b6001600160a01b0383165f9081526020819052604090205481811015620001325760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640162000096565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166200016e576002805482900390556200018c565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620001d291815260200190565b60405180910390a3505050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011262000203575f80fd5b81516001600160401b0380821115620002205762000220620001df565b604051601f8301601f19908116603f011681019082821181831017156200024b576200024b620001df565b816040528381526020925086602085880101111562000268575f80fd5b5f91505b838210156200028b57858201830151818301840152908201906200026c565b5f602085830101528094505050505092915050565b5f805f60608486031215620002b3575f80fd5b83516001600160401b0380821115620002ca575f80fd5b620002d887838801620001f3565b94506020860151915080821115620002ee575f80fd5b50620002fd86828701620001f3565b925050604084015190509250925092565b600181811c908216806200032357607f821691505b6020821081036200034257634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200039357805f5260205f20601f840160051c810160208510156200036f5750805b601f840160051c820191505b8181101562000390575f81556001016200037b565b50505b505050565b81516001600160401b03811115620003b457620003b4620001df565b620003cc81620003c584546200030e565b8462000348565b602080601f83116001811462000402575f8415620003ea5750858301515b5f19600386901b1c1916600185901b1785556200045c565b5f85815260208120601f198616915b82811015620004325788860151825594840194600190910190840162000411565b50858210156200045057878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b808201808211156200048457634e487b7160e01b5f52601160045260245ffd5b92915050565b61077580620004985f395ff3fe608060405234801561000f575f80fd5b506004361061009b575f3560e01c806370a082311161006357806370a082311461011457806395d89b411461013c578063a0712d6814610144578063a9059cbb14610159578063dd62ed3e1461016c575f80fd5b806306fdde031461009f578063095ea7b3146100bd57806318160ddd146100e057806323b872dd146100f2578063313ce56714610105575b5f80fd5b6100a76101a4565b6040516100b491906105b8565b60405180910390f35b6100d06100cb36600461061f565b610234565b60405190151581526020016100b4565b6002545b6040519081526020016100b4565b6100d0610100366004610647565b61024d565b604051601281526020016100b4565b6100e4610122366004610680565b6001600160a01b03165f9081526020819052604090205490565b6100a7610270565b6101576101523660046106a0565b61027f565b005b6100d061016736600461061f565b61028c565b6100e461017a3660046106b7565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6060600380546101b3906106e8565b80601f01602080910402602001604051908101604052809291908181526020018280546101df906106e8565b801561022a5780601f106102015761010080835404028352916020019161022a565b820191905f5260205f20905b81548152906001019060200180831161020d57829003601f168201915b5050505050905090565b5f33610241818585610299565b60019150505b92915050565b5f3361025a8582856102ab565b61026585858561032b565b506001949350505050565b6060600480546101b3906106e8565b6102893382610388565b50565b5f3361024181858561032b565b6102a683838360016103c0565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610325578181101561031757604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064015b60405180910390fd5b61032584848484035f6103c0565b50505050565b6001600160a01b03831661035457604051634b637e8f60e11b81525f600482015260240161030e565b6001600160a01b03821661037d5760405163ec442f0560e01b81525f600482015260240161030e565b6102a6838383610492565b6001600160a01b0382166103b15760405163ec442f0560e01b81525f600482015260240161030e565b6103bc5f8383610492565b5050565b6001600160a01b0384166103e95760405163e602df0560e01b81525f600482015260240161030e565b6001600160a01b03831661041257604051634a1406b160e11b81525f600482015260240161030e565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561032557826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161048491815260200190565b60405180910390a350505050565b6001600160a01b0383166104bc578060025f8282546104b19190610720565b9091555061052c9050565b6001600160a01b0383165f908152602081905260409020548181101561050e5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161030e565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661054857600280548290039055610566565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516105ab91815260200190565b60405180910390a3505050565b5f602080835283518060208501525f5b818110156105e4578581018301518582016040015282016105c8565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461061a575f80fd5b919050565b5f8060408385031215610630575f80fd5b61063983610604565b946020939093013593505050565b5f805f60608486031215610659575f80fd5b61066284610604565b925061067060208501610604565b9150604084013590509250925092565b5f60208284031215610690575f80fd5b61069982610604565b9392505050565b5f602082840312156106b0575f80fd5b5035919050565b5f80604083850312156106c8575f80fd5b6106d183610604565b91506106df60208401610604565b90509250929050565b600181811c908216806106fc57607f821691505b60208210810361071a57634e487b7160e01b5f52602260045260245ffd5b50919050565b8082018082111561024757634e487b7160e01b5f52601160045260245ffdfea26469706673582212208a796e3ca32660c52caa23b91eef6fc8da6f9001d34e2c50f65700d4e0dec87c64736f6c63430008180033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000003635c9adc5dea00000000000000000000000000000000000000000000000000000000000000000000f566f74652d657363726f772042414c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005766542414c000000000000000000000000000000000000000000000000000000", + "nonce": "0x339e", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CREATE", + "contractName": "ConstantSumFactory", + "contractAddress": "0xd8a5cb276f76e675bffd98d02cedb75191e668a0", + "function": null, + "arguments": [ + "0xbA1333333333a1BA1108E8412f11850A5C319bA9", + "31536000" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "gas": "0x7549c1", + "value": "0x0", + "input": "0x61010060405234801562000011575f80fd5b5060405162002f5d38038062002f5d8339810160408190526200003491620000df565b8181604051806020016200004890620000d1565b601f1982820381018352601f90910116604052306080526001600160a01b03831660a052815f6200008063ffffffff8316426200012d565b905063ffffffff811115620000a8576040516368755a1160e01b815260040160405180910390fd5b63ffffffff91821660c0521660e0526003620000c58282620001f1565b505050505050620002bd565b611aa380620014ba83390190565b5f8060408385031215620000f1575f80fd5b82516001600160a01b038116811462000108575f80fd5b602084015190925063ffffffff8116811462000122575f80fd5b809150509250929050565b808201808211156200014d57634e487b7160e01b5f52601160045260245ffd5b92915050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200017c57607f821691505b6020821081036200019b57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620001ec57805f5260205f20601f840160051c81016020851015620001c85750805b601f840160051c820191505b81811015620001e9575f8155600101620001d4565b50505b505050565b81516001600160401b038111156200020d576200020d62000153565b62000225816200021e845462000167565b84620001a1565b602080601f8311600181146200025b575f8415620002435750858301515b5f19600386901b1c1916600185901b178555620002b5565b5f85815260208120601f198616915b828110156200028b578886015182559484019460019091019084016200026a565b5085821015620002a957878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b60805160a05160c05160e0516111a6620003145f395f818161028201528181610607015261063a01525f6101ec01525f8181610244015281816104b401528181610581015261074c01525f61051d01526111a65ff3fe608060405234801561000f575f80fd5b50600436106100fb575f3560e01c806378da80cb11610093578063aaabadc511610063578063aaabadc514610270578063db035ebc14610278578063e9d56e1914610280578063ec888061146102a6575f80fd5b806378da80cb146101ea578063851c1bb3146102215780638d928af8146102425780638eec5d7014610268575f80fd5b80636634b753116100ce5780636634b75314610189578063673a2a1f146101c457806369b93224146101cc5780636c57f5a9146101df575f80fd5b8063193ad50f146100ff5780632f2770db1461013457806344f6fec71461013e57806353a72f7e14610169575b5f80fd5b604080516080810182525f808252602082018190528183018190526060820152905161012b919061099e565b60405180910390f35b61013c6102ac565b005b61015161014c366004610a94565b6102f3565b6040516001600160a01b03909116815260200161012b565b61017c610177366004610ae9565b610345565b60405161012b9190610b09565b6101b4610197366004610b79565b6001600160a01b03165f9081526020819052604090205460ff1690565b604051901515815260200161012b565b61017c61044e565b6101516101da366004610d7e565b6104ae565b60025460ff166101b4565b7f00000000000000000000000000000000000000000000000000000000000000005b60405163ffffffff909116815260200161012b565b61023461022f366004610e57565b61051a565b60405190815260200161012b565b7f0000000000000000000000000000000000000000000000000000000000000000610151565b600154610234565b61015161057e565b61020c610604565b7f000000000000000000000000000000000000000000000000000000000000000061020c565b5f610151565b6102b461065c565b6102bc61069d565b6002805460ff191660011790556040517f432acbfd662dbb5d8b378384a67159b47ca9d0f1b79f97cf64cf8585fa362d50905f90a1565b5f80600384604051602001610309929190610ebb565b60408051601f19818403018152919052805160208201209091505f61032d856106c3565b905061033981836106e6565b93505050505b92915050565b60015460609080841061036b57604051634e23d03560e01b815260040160405180910390fd5b5f6103768486610f78565b90508181111561038d5761038a8583610f8b565b93505b8367ffffffffffffffff8111156103a6576103a66109d1565b6040519080825280602002602001820160405280156103cf578160200160208202803683370190505b5092505f5b848110156104455760016103e88288610f78565b815481106103f8576103f8610f9e565b905f5260205f20015f9054906101000a90046001600160a01b031684828151811061042557610425610f9e565b6001600160a01b03909216602092830291909101909101526001016103d4565b50505092915050565b606060018054806020026020016040519081016040528092919081815260200182805480156104a457602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610486575b5050505050905090565b5f6104fc7f00000000000000000000000000000000000000000000000000000000000000008b8b6040516020016104e793929190610fdd565b604051602081830303815290604052896106f9565b905061050d8188888888888861074a565b9998505050505050505050565b5f7f0000000000000000000000000000000000000000000000000000000000000000826040516020016105619291909182526001600160e01b031916602082015260240190565b604051602081830303815290604052805190602001209050919050565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663aaabadc56040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105db573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105ff919061101c565b905090565b5f7f000000000000000000000000000000000000000000000000000000000000000063ffffffff16421061063757505f90565b507f000000000000000000000000000000000000000000000000000000000000000090565b5f6106715f356001600160e01b03191661051a565b905061067d81336107e1565b61069a576040516323dada5360e01b815260040160405180910390fd5b50565b60025460ff16156106c157604051633ac4266d60e11b815260040160405180910390fd5b565b604080513360208201524691810191909152606081018290525f90608001610561565b5f6106f2838330610861565b9392505050565b5f8060038460405160200161070f929190610ebb565b60405160208183030381529060405290505f61072a846106c3565b90506107375f828461088a565b92506107428361090c565b505092915050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663eeec802f888888610784610604565b898989896040518963ffffffff1660e01b81526004016107ab989796959493929190611037565b5f604051808303815f87803b1580156107c2575f80fd5b505af11580156107d4573d5f803e3d5ffd5b5050505050505050505050565b5f6107ea61057e565b6040516326f8aa2160e21b8152600481018590526001600160a01b0384811660248301523060448301529190911690639be2a88490606401602060405180830381865afa15801561083d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106f29190611155565b5f604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b5f834710156108b95760405163392efb2b60e21b81524760048201526024810185905260440160405180910390fd5b81515f036108da57604051631328927760e21b815260040160405180910390fd5b8282516020840186f590506001600160a01b0381166106f257604051633a0ba96160e11b815260040160405180910390fd5b61091461069d565b6001600160a01b0381165f81815260208190526040808220805460ff19166001908117909155805480820182559083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b03191684179055517f83a48fbcfc991335314e74d0496aab6a1987e992ddc85dddbcc4d6dd6ef2e9fc9190a250565b8151151581526020808301511515908201526040808301511515908201526060808301511515908201526080810161033f565b634e487b7160e01b5f52604160045260245ffd5b6040516080810167ffffffffffffffff81118282101715610a0857610a086109d1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610a3757610a376109d1565b604052919050565b5f67ffffffffffffffff831115610a5857610a586109d1565b610a6b601f8401601f1916602001610a0e565b9050828152838383011115610a7e575f80fd5b828260208301375f602084830101529392505050565b5f8060408385031215610aa5575f80fd5b823567ffffffffffffffff811115610abb575f80fd5b8301601f81018513610acb575f80fd5b610ada85823560208401610a3f565b95602094909401359450505050565b5f8060408385031215610afa575f80fd5b50508035926020909101359150565b602080825282518282018190525f9190848201906040850190845b81811015610b495783516001600160a01b031683529284019291840191600101610b24565b50909695505050505050565b6001600160a01b038116811461069a575f80fd5b8035610b7481610b55565b919050565b5f60208284031215610b89575f80fd5b81356106f281610b55565b5f82601f830112610ba3575f80fd5b6106f283833560208501610a3f565b801515811461069a575f80fd5b8035610b7481610bb2565b5f82601f830112610bd9575f80fd5b8135602067ffffffffffffffff821115610bf557610bf56109d1565b610c03818360051b01610a0e565b82815260079290921b84018101918181019086841115610c21575f80fd5b8286015b84811015610c995760808189031215610c3c575f80fd5b610c446109e5565b8135610c4f81610b55565b81528185013560028110610c61575f80fd5b81860152604082810135610c7481610b55565b90820152606082810135610c8781610bb2565b90820152835291830191608001610c25565b509695505050505050565b5f60608284031215610cb4575f80fd5b6040516060810181811067ffffffffffffffff82111715610cd757610cd76109d1565b6040529050808235610ce881610b55565b81526020830135610cf881610b55565b60208201526040830135610d0b81610b55565b6040919091015292915050565b5f60808284031215610d28575f80fd5b610d306109e5565b90508135610d3d81610bb2565b81526020820135610d4d81610bb2565b60208201526040820135610d6081610bb2565b60408201526060820135610d7381610bb2565b606082015292915050565b5f805f805f805f805f6101c08a8c031215610d97575f80fd5b893567ffffffffffffffff80821115610dae575f80fd5b610dba8d838e01610b94565b9a5060208c0135915080821115610dcf575f80fd5b610ddb8d838e01610b94565b995060408c0135985060608c0135915080821115610df7575f80fd5b50610e048c828d01610bca565b96505060808a01359450610e1a60a08b01610bbf565b9350610e298b60c08c01610ca4565b9250610e386101208b01610b69565b9150610e488b6101408c01610d18565b90509295985092959850929598565b5f60208284031215610e67575f80fd5b81356001600160e01b0319811681146106f2575f80fd5b5f5b83811015610e98578181015183820152602001610e80565b50505f910152565b5f8151610eb1818560208601610e7e565b9290920192915050565b5f8084545f60018260011c91506001831680610ed857607f831692505b60208084108203610ef757634e487b7160e01b5f52602260045260245ffd5b818015610f0b5760018114610f2057610f4b565b60ff1986168952841515850289019650610f4b565b5f8b8152602090205f5b86811015610f435781548b820152908501908301610f2a565b505084890196505b505050505050610f5b8185610ea0565b95945050505050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033f5761033f610f64565b8181038181111561033f5761033f610f64565b634e487b7160e01b5f52603260045260245ffd5b5f8151808452610fc9816020860160208601610e7e565b601f01601f19169290920160200192915050565b6001600160a01b03841681526060602082018190525f9061100090830185610fb2565b82810360408401526110128185610fb2565b9695505050505050565b5f6020828403121561102c575f80fd5b81516106f281610b55565b6001600160a01b0389811682526101a060208084018290528a519184018290525f926101c08501928c83019290855b818110156110c4578451848151168752838101516002811061109657634e487b7160e01b5f52602160045260245ffd5b8785015260408181015186169088015260609081015115159087015260809095019493820193600101611066565b50505050506040830189905263ffffffff881660608401529050851515608083015284516001600160a01b0390811660a08401526020860151811660c084015260408601511660e08301526001600160a01b0384166101008301528251151561012083015260208301511515610140830152604083015115156101608301526060830151151561018083015261050d565b5f60208284031215611165575f80fd5b81516106f281610bb256fea264697066735822122095260952e427ba59a520b00a1f10dc19176dd84dda46154c97b83e11ee1ab08564736f6c6343000818003361018060405234801562000011575f80fd5b5060405162001aa338038062001aa383398101604081905262000034916200028f565b8282828282604051806040016040528060018152602001603160f81b815250620000685f836200014660201b90919060201c565b610120526200007981600162000146565b61014052815160208084019190912060e052815190820120610100524660a0526200010660e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b60805250503060c0526001600160a01b03166101605260036200012a83826200039d565b5060046200013982826200039d565b50505050505050620004c1565b5f60208351101562000165576200015d836200017e565b905062000178565b816200017284826200039d565b5060ff90505b92915050565b5f80829050601f81511115620001b4578260405163305a27a960e01b8152600401620001ab919062000469565b60405180910390fd5b8051620001c1826200049d565b179392505050565b634e487b7160e01b5f52604160045260245ffd5b5f5b83811015620001f9578181015183820152602001620001df565b50505f910152565b5f82601f83011262000211575f80fd5b81516001600160401b03808211156200022e576200022e620001c9565b604051601f8301601f19908116603f01168101908282118183101715620002595762000259620001c9565b8160405283815286602085880101111562000272575f80fd5b62000285846020830160208901620001dd565b9695505050505050565b5f805f60608486031215620002a2575f80fd5b83516001600160a01b0381168114620002b9575f80fd5b60208501519093506001600160401b0380821115620002d6575f80fd5b620002e48783880162000201565b93506040860151915080821115620002fa575f80fd5b50620003098682870162000201565b9150509250925092565b600181811c908216806200032857607f821691505b6020821081036200034757634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200039857805f5260205f20601f840160051c81016020851015620003745750805b601f840160051c820191505b8181101562000395575f815560010162000380565b50505b505050565b81516001600160401b03811115620003b957620003b9620001c9565b620003d181620003ca845462000313565b846200034d565b602080601f83116001811462000407575f8415620003ef5750858301515b5f19600386901b1c1916600185901b17855562000461565b5f85815260208120601f198616915b82811015620004375788860151825594840194600190910190840162000416565b50858210156200045557878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b602081525f825180602084015262000489816040850160208701620001dd565b601f01601f19169190910160400192915050565b8051602080830151919081101562000347575f1960209190910360031b1b16919050565b60805160a05160c05160e051610100516101205161014051610160516115476200055c5f395f81816103490152818161049e0152818161057f0152818161062c01528181610772015281816107c80152818161091601528181610a9901528181610b3f0152610bb501525f610d5301525f610d2701525f610cd001525f610ca801525f610c0301525f610c2d01525f610c5701526115475ff3fe608060405234801561000f575f80fd5b50600436106101a1575f3560e01c8063654cf15d116100f357806395d89b4111610093578063b677fa561161006e578063b677fa56146103a1578063ce20ece7146103af578063d505accf146103ba578063dd62ed3e146103cd575f80fd5b806395d89b4114610373578063984de9e81461037b578063a9059cbb1461038e575f80fd5b806372c98186116100ce57806372c98186146102f95780637ecebe001461030e57806384b0196e146103215780638d928af81461033c575f80fd5b8063654cf15d146102d0578063679aefce146102de57806370a08231146102e6575f80fd5b806323de66511161015e578063313ce56711610139578063313ce5671461028c5780633644e5151461029b5780635687f2b8146102a3578063627cdcb9146102b6575f80fd5b806323de665114610242578063273c1adf1461025757806330adf81f14610265575f80fd5b806301ffc9a7146101a557806306fdde03146101de578063095ea7b3146101f357806316a0b3e01461020657806318160ddd1461022757806323b872dd1461022f575b5f80fd5b6101c96101b3366004611062565b6001600160e01b0319166301ffc9a760e01b1490565b60405190151581526020015b60405180910390f35b6101e66103e0565b6040516101d591906110cc565b6101c96102013660046110f9565b610470565b6102196102143660046111d0565b610517565b6040519081526020016101d5565b610219610568565b6101c961023d36600461121a565b6105f6565b61025561025036600461121a565b6106a3565b005b6729a2241af62c0000610219565b6102197f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b604051601281526020016101d5565b6102196106fd565b6102556102b136600461121a565b610706565b610255335f90815260026020526040902080546001019055565b67016345785d8a0000610219565b610219610753565b6102196102f4366004611253565b6107a1565b61021961030736600461126c565b6020013590565b61021961031c366004611253565b610833565b610329610850565b6040516101d597969594939291906112a3565b6040516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001681526020016101d5565b6101e6610892565b61021961038936600461133a565b6108a1565b6101c961039c3660046110f9565b6108e8565b6709b6e64a8ec60000610219565b64e8d4a51000610219565b6102556103c836600461138c565b610947565b6102196103db3660046113f9565b610b10565b6060600380546103ef9061142a565b80601f016020809104026020016040519081016040528092919081815260200182805461041b9061142a565b80156104665780601f1061043d57610100808354040283529160200191610466565b820191905f5260205f20905b81548152906001019060200180831161044957829003601f168201915b5050505050905090565b60405163e1f21c6760e01b81523360048201526001600160a01b038381166024830152604482018390525f917f00000000000000000000000000000000000000000000000000000000000000009091169063e1f21c67906064015b6020604051808303815f875af11580156104e7573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061050b9190611462565b50600190505b92915050565b5f806105248560016108a1565b9050806105318482611495565b868681518110610543576105436114ac565b602002602001015161055591906114c0565b61055f91906114d3565b95945050505050565b6040516339370aa960e21b81523060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e4dc2aa4906024015b602060405180830381865afa1580156105cd573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105f191906114e6565b905090565b604051630aed65f560e11b81523360048201526001600160a01b0384811660248301528381166044830152606482018390525f917f0000000000000000000000000000000000000000000000000000000000000000909116906315dacbea906084016020604051808303815f875af1158015610674573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106989190611462565b506001949350505050565b6106ab610baa565b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516106f091815260200190565b60405180910390a3505050565b5f6105f1610bf7565b61070e610baa565b816001600160a01b0316836001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516106f091815260200190565b604051634f037ee760e01b81523060048201525f906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690634f037ee7906024016105b2565b604051633de222bb60e21b81523060048201526001600160a01b0382811660248301525f917f00000000000000000000000000000000000000000000000000000000000000009091169063f7888aec90604401602060405180830381865afa15801561080f573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061051191906114e6565b6001600160a01b0381165f90815260026020526040812054610511565b5f6060805f805f6060610861610d20565b610869610d4c565b604080515f80825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6060600480546103ef9061142a565b5f826001815181106108b5576108b56114ac565b6020026020010151835f815181106108cf576108cf6114ac565b60200260200101516108e191906114c0565b9392505050565b6040516317d5759960e31b81523360048201526001600160a01b038381166024830152604482018390525f917f00000000000000000000000000000000000000000000000000000000000000009091169063beabacc8906064016104cb565b834211156109705760405163313c898160e11b8152600481018590526024015b60405180910390fd5b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886109bb8c6001600160a01b03165f90815260026020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090505f610a1582610d79565b90505f610a2482878787610da5565b9050896001600160a01b0316816001600160a01b031614610a6b576040516325c0072360e11b81526001600160a01b0380831660048301528b166024820152604401610967565b60405163e1f21c6760e01b81526001600160a01b038b811660048301528a81166024830152604482018a90527f0000000000000000000000000000000000000000000000000000000000000000169063e1f21c67906064016020604051808303815f875af1158015610adf573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b039190611462565b5050505050505050505050565b60405163927da10560e01b81523060048201526001600160a01b03838116602483015282811660448301525f917f00000000000000000000000000000000000000000000000000000000000000009091169063927da10590606401602060405180830381865afa158015610b86573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108e191906114e6565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bf55760405163089676d560e01b8152336004820152602401610967565b565b5f306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015610c4f57507f000000000000000000000000000000000000000000000000000000000000000046145b15610c7957507f000000000000000000000000000000000000000000000000000000000000000090565b6105f1604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b60606105f17f00000000000000000000000000000000000000000000000000000000000000005f610dd1565b60606105f17f00000000000000000000000000000000000000000000000000000000000000006001610dd1565b5f610511610d85610bf7565b8360405161190160f01b8152600281019290925260228201526042902090565b5f805f80610db588888888610e7a565b925092509250610dc58282610f42565b50909695505050505050565b606060ff8314610deb57610de483610ffe565b9050610511565b818054610df79061142a565b80601f0160208091040260200160405190810160405280929190818152602001828054610e239061142a565b8015610e6e5780601f10610e4557610100808354040283529160200191610e6e565b820191905f5260205f20905b815481529060010190602001808311610e5157829003601f168201915b50505050509050610511565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841115610eb357505f91506003905082610f38565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015610f04573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b038116610f2f57505f925060019150829050610f38565b92505f91508190505b9450945094915050565b5f826003811115610f5557610f556114fd565b03610f5e575050565b6001826003811115610f7257610f726114fd565b03610f905760405163f645eedf60e01b815260040160405180910390fd5b6002826003811115610fa457610fa46114fd565b03610fc55760405163fce698f760e01b815260048101829052602401610967565b6003826003811115610fd957610fd96114fd565b03610ffa576040516335e2f38360e21b815260048101829052602401610967565b5050565b60605f61100a8361103b565b6040805160208082528183019092529192505f91906020820181803683375050509182525060208101929092525090565b5f60ff8216601f81111561051157604051632cd44ac360e21b815260040160405180910390fd5b5f60208284031215611072575f80fd5b81356001600160e01b0319811681146108e1575f80fd5b5f81518084525f5b818110156110ad57602081850181015186830182015201611091565b505f602082860101526020601f19601f83011685010191505092915050565b602081525f6108e16020830184611089565b80356001600160a01b03811681146110f4575f80fd5b919050565b5f806040838503121561110a575f80fd5b611113836110de565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f830112611144575f80fd5b8135602067ffffffffffffffff8083111561116157611161611121565b8260051b604051601f19603f8301168101818110848211171561118657611186611121565b60405293845260208187018101949081019250878511156111a5575f80fd5b6020870191505b848210156111c5578135835291830191908301906111ac565b979650505050505050565b5f805f606084860312156111e2575f80fd5b833567ffffffffffffffff8111156111f8575f80fd5b61120486828701611135565b9660208601359650604090950135949350505050565b5f805f6060848603121561122c575f80fd5b611235846110de565b9250611243602085016110de565b9150604084013590509250925092565b5f60208284031215611263575f80fd5b6108e1826110de565b5f6020828403121561127c575f80fd5b813567ffffffffffffffff811115611292575f80fd5b820160e081850312156108e1575f80fd5b60ff60f81b881681525f602060e060208401526112c360e084018a611089565b83810360408501526112d5818a611089565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825260208088019350909101905f5b818110156113285783518352928401929184019160010161130c565b50909c9b505050505050505050505050565b5f806040838503121561134b575f80fd5b823567ffffffffffffffff811115611361575f80fd5b61136d85828601611135565b925050602083013560028110611381575f80fd5b809150509250929050565b5f805f805f805f60e0888a0312156113a2575f80fd5b6113ab886110de565b96506113b9602089016110de565b95506040880135945060608801359350608088013560ff811681146113dc575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f806040838503121561140a575f80fd5b611413836110de565b9150611421602084016110de565b90509250929050565b600181811c9082168061143e57607f821691505b60208210810361145c57634e487b7160e01b5f52602260045260245ffd5b50919050565b5f60208284031215611472575f80fd5b815180151581146108e1575f80fd5b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761051157610511611481565b634e487b7160e01b5f52603260045260245ffd5b8082018082111561051157610511611481565b8181038181111561051157610511611481565b5f602082840312156114f6575f80fd5b5051919050565b634e487b7160e01b5f52602160045260245ffdfea2646970667358221220325a8fa549b82f1e1e6bd7920e217849265c692a0638291a39828038d354785e64736f6c63430008180033000000000000000000000000ba1333333333a1ba1108e8412f11850a5c319ba90000000000000000000000000000000000000000000000000000000001e13380", + "nonce": "0x339f", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CREATE", + "contractName": "VeBALFeeDiscountHookExample", + "contractAddress": "0xa42537a573f81173e0989ed75f7d9e612a90e625", + "function": null, + "arguments": [ + "0xbA1333333333a1BA1108E8412f11850A5C319bA9", + "0xD8A5CB276F76e675bFfD98d02CEdb75191e668A0", + "0x0BF61f706105EA44694f2e92986bD01C39930280", + "0x72007ee16E562335c7505F190E53073428BfDC25" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "gas": "0x108878", + "value": "0x0", + "input": "0x610100604052348015610010575f80fd5b50604051610efe380380610efe83398101604081905261002f91610069565b6001600160a01b0393841660805291831660a05290821660c0521660e0526100c5565b6001600160a01b0381168114610066575f80fd5b50565b5f805f806080858703121561007c575f80fd5b845161008781610052565b602086015190945061009881610052565b60408601519093506100a981610052565b60608601519092506100ba81610052565b939692955090935050565b60805160a05160c05160e051610e066100f85f395f6103f401525f61031701525f61025801525f6104960152610e065ff3fe608060405234801561000f575f80fd5b50600436106100a6575f3560e01c806345421ec71161006e57806345421ec7146101545780635211fa771461016e578063976907cc1461017c578063a0e8f5ac14610199578063ba5f9f40146101ac578063d77153a7146101ba575f80fd5b80630b89f182146100aa57806318b6eb55146100d25780631c149e28146100fe5780632754888d1461011357806338be241d1461013e575b5f80fd5b6100bd6100b83660046105b4565b610213565b60405190151581526020015b60405180910390f35b6100e76100e03660046106db565b505f908190565b6040805192151583526020830191909152016100c9565b6100bd61010c3660046107eb565b5f92915050565b610130610121366004610858565b5f839850989650505050505050565b6040516100c9929190610937565b6100bd61014c366004610987565b5f9392505050565b6100bd6101623660046109fc565b5f979650505050505050565b6100bd61010c366004610acb565b61013061018a366004610b19565b5f849850989650505050505050565b6100e76101a7366004610bba565b610303565b6100bd610162366004610c0f565b60408051610140810182525f808252602082018190528183018190526080820181905260a0820181905260c0820181905260e0820181905261010082018190526101208201526001606082015290516100c99190610c91565b5f61021c61048b565b6040516001600160a01b03808616919087169030907fa8ab37b72b2944e381076dcbdf6f9b0d340c59a4f1492552e7361ef53dc873dc905f90a47f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b03161480156102fa5750604051636634b75360e01b81526001600160a01b038581166004830152861690636634b75390602401602060405180830381865afa1580156102d6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102fa9190610d49565b95945050505050565b5f8061030d61048b565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001661034760c0870160a08801610d64565b6001600160a01b03161461036057506001905081610483565b5f61037160c0870160a08801610d64565b6001600160a01b0316635e01eb5a6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103ac573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103d09190610d7f565b6040516370a0823160e01b81526001600160a01b0380831660048301529192505f917f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015610439573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061045d9190610d9a565b111561047a576001610470600286610db1565b9250925050610483565b60018492509250505b935093915050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146104da5760405163089676d560e01b815233600482015260240160405180910390fd5b565b6001600160a01b03811681146104f0575f80fd5b50565b80356104fe816104dc565b919050565b634e487b7160e01b5f52604160045260245ffd5b604051608081016001600160401b038111828210171561053957610539610503565b60405290565b604051601f8201601f191681016001600160401b038111828210171561056757610567610503565b604052919050565b5f6001600160401b0382111561058757610587610503565b5060051b60200190565b80151581146104f0575f80fd5b5f608082840312156105ae575f80fd5b50919050565b5f805f8060e085870312156105c7575f80fd5b84356105d2816104dc565b93506020858101356105e3816104dc565b93506040868101356001600160401b038111156105fe575f80fd5b8701601f8101891361060e575f80fd5b803561062161061c8261056f565b61053f565b81815260079190911b8201840190848101908b83111561063f575f80fd5b928501925b828410156106ba576080848d03121561065b575f80fd5b610663610517565b843561066e816104dc565b81528487013560028110610680575f80fd5b8188015284860135610691816104dc565b818701526060858101356106a481610591565b9082015282526080939093019290850190610644565b8097505050505050506106d0866060870161059e565b905092959194509250565b5f602082840312156106eb575f80fd5b81356001600160401b03811115610700575f80fd5b82016101808185031215610712575f80fd5b9392505050565b5f82601f830112610728575f80fd5b8135602061073861061c8361056f565b8083825260208201915060208460051b870101935086841115610759575f80fd5b602086015b84811015610775578035835291830191830161075e565b509695505050505050565b5f82601f83011261078f575f80fd5b81356001600160401b038111156107a8576107a8610503565b6107bb601f8201601f191660200161053f565b8181528460208386010111156107cf575f80fd5b816020850160208301375f918101602001919091529392505050565b5f80604083850312156107fc575f80fd5b82356001600160401b0380821115610812575f80fd5b61081e86838701610719565b93506020850135915080821115610833575f80fd5b5061084085828601610780565b9150509250929050565b8035600481106104fe575f80fd5b5f805f805f805f80610100898b031215610870575f80fd5b610879896104f3565b975061088760208a016104f3565b965061089560408a0161084a565b95506060890135945060808901356001600160401b03808211156108b7575f80fd5b6108c38c838d01610719565b955060a08b01359150808211156108d8575f80fd5b6108e48c838d01610719565b945060c08b01359150808211156108f9575f80fd5b6109058c838d01610719565b935060e08b013591508082111561091a575f80fd5b506109278b828c01610780565b9150509295985092959890939650565b5f6040820184151583526020604060208501528185518084526060860191506020870193505f5b8181101561097a5784518352938301939183019160010161095e565b5090979650505050505050565b5f805f60608486031215610999575f80fd5b83356001600160401b03808211156109af575f80fd5b6109bb87838801610719565b94506020860135935060408601359150808211156109d7575f80fd5b506109e486828701610780565b9150509250925092565b8035600581106104fe575f80fd5b5f805f805f805f60e0888a031215610a12575f80fd5b8735610a1d816104dc565b96506020880135610a2d816104dc565b9550610a3b604089016109ee565b945060608801356001600160401b0380821115610a56575f80fd5b610a628b838c01610719565b955060808a0135945060a08a0135915080821115610a7e575f80fd5b610a8a8b838c01610719565b935060c08a0135915080821115610a9f575f80fd5b50610aac8a828b01610780565b91505092959891949750929550565b5f60e082840312156105ae575f80fd5b5f8060408385031215610adc575f80fd5b82356001600160401b03811115610af1575f80fd5b610afd85828601610abb565b9250506020830135610b0e816104dc565b809150509250929050565b5f805f805f805f80610100898b031215610b31575f80fd5b610b3a896104f3565b9750610b4860208a016104f3565b9650610b5660408a016109ee565b955060608901356001600160401b0380821115610b71575f80fd5b610b7d8c838d01610719565b965060808b0135915080821115610b92575f80fd5b610b9e8c838d01610719565b955060a08b0135945060c08b01359150808211156108f9575f80fd5b5f805f60608486031215610bcc575f80fd5b83356001600160401b03811115610be1575f80fd5b610bed86828701610abb565b9350506020840135610bfe816104dc565b929592945050506040919091013590565b5f805f805f805f60e0888a031215610c25575f80fd5b8735610c30816104dc565b96506020880135610c40816104dc565b9550610c4e6040890161084a565b94506060880135935060808801356001600160401b0380821115610c70575f80fd5b610c7c8b838c01610719565b945060a08a0135915080821115610a7e575f80fd5b81511515815261014081016020830151610caf602084018215159052565b506040830151610cc3604084018215159052565b506060830151610cd7606084018215159052565b506080830151610ceb608084018215159052565b5060a0830151610cff60a084018215159052565b5060c0830151610d1360c084018215159052565b5060e0830151610d2760e084018215159052565b5061010083810151151590830152610120928301511515929091019190915290565b5f60208284031215610d59575f80fd5b815161071281610591565b5f60208284031215610d74575f80fd5b8135610712816104dc565b5f60208284031215610d8f575f80fd5b8151610712816104dc565b5f60208284031215610daa575f80fd5b5051919050565b5f82610dcb57634e487b7160e01b5f52601260045260245ffd5b50049056fea26469706673582212207022cb3160f918207b3a5a65b4cc1ada2b8a51cc02e7b4951453a81f0a36622264736f6c63430008180033000000000000000000000000ba1333333333a1ba1108e8412f11850a5c319ba9000000000000000000000000d8a5cb276f76e675bffd98d02cedb75191e668a00000000000000000000000000bf61f706105ea44694f2e92986bd01c3993028000000000000000000000000072007ee16e562335c7505f190e53073428bfdc25", + "nonce": "0x33a0", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": "ConstantSumFactory", + "contractAddress": "0xd8a5cb276f76e675bffd98d02cedb75191e668a0", + "function": "create(string,string,bytes32,(address,uint8,address,bool)[],uint256,bool,(address,address,address),address,(bool,bool,bool,bool))", + "arguments": [ + "Constant Sum Pool", + "CSP", + "0x44bceb2174c451b4eeb824ee608d82ba99b4aad667464d285014758e412cae07", + "[(0x6C205d1b1c20352e9d33a88569f18D103004762D, 0, 0x0000000000000000000000000000000000000000, false), (0xebD6303d9Cd09605545F723545d2d0bF56966cB9, 0, 0x0000000000000000000000000000000000000000, false)]", + "10000000000000000", + "true", + "(0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000)", + "0xa42537a573F81173E0989Ed75F7d9E612A90E625", + "(false, false, false, false)" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0xd8a5cb276f76e675bffd98d02cedb75191e668a0", + "gas": "0x298c29", + "value": "0x0", + "input": "0x69b9322400000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000020044bceb2174c451b4eeb824ee608d82ba99b4aad667464d285014758e412cae070000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000002386f26fc100000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a42537a573f81173e0989ed75f7d9e612a90e62500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011436f6e7374616e742053756d20506f6f6c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003435350000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006c205d1b1c20352e9d33a88569f18d103004762d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ebd6303d9cd09605545f723545d2d0bf56966cb9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "nonce": "0x33a1", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": "MockToken2", + "contractAddress": "0x6c205d1b1c20352e9d33a88569f18d103004762d", + "function": "approve(address,uint256)", + "arguments": [ + "0x000000000022D473030F116dDEE9F6B43aC78BA3", + "115792089237316195423570985008687907853269984665640564039457584007913129639935" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x6c205d1b1c20352e9d33a88569f18d103004762d", + "gas": "0x10a53", + "value": "0x0", + "input": "0x095ea7b3000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "nonce": "0x33a2", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": "MockToken1", + "contractAddress": "0xebd6303d9cd09605545f723545d2d0bf56966cb9", + "function": "approve(address,uint256)", + "arguments": [ + "0x000000000022D473030F116dDEE9F6B43aC78BA3", + "115792089237316195423570985008687907853269984665640564039457584007913129639935" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0xebd6303d9cd09605545f723545d2d0bf56966cb9", + "gas": "0x10a53", + "value": "0x0", + "input": "0x095ea7b3000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "nonce": "0x33a3", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "function": "approve(address,address,uint160,uint48)", + "arguments": [ + "0x6C205d1b1c20352e9d33a88569f18D103004762D", + "0x0BF61f706105EA44694f2e92986bD01C39930280", + "1461501637330902918203684832716283019655932542975", + "281474976710655" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "gas": "0x1112d", + "value": "0x0", + "input": "0x87517c450000000000000000000000006c205d1b1c20352e9d33a88569f18d103004762d0000000000000000000000000bf61f706105ea44694f2e92986bd01c39930280000000000000000000000000ffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000ffffffffffff", + "nonce": "0x33a4", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "function": "approve(address,address,uint160,uint48)", + "arguments": [ + "0xebD6303d9Cd09605545F723545d2d0bF56966cB9", + "0x0BF61f706105EA44694f2e92986bD01C39930280", + "1461501637330902918203684832716283019655932542975", + "281474976710655" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "gas": "0x1112d", + "value": "0x0", + "input": "0x87517c45000000000000000000000000ebd6303d9cd09605545f723545d2d0bf56966cb90000000000000000000000000bf61f706105ea44694f2e92986bd01c39930280000000000000000000000000ffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000ffffffffffff", + "nonce": "0x33a5", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x0bf61f706105ea44694f2e92986bd01c39930280", + "function": "initialize(address,address[],uint256[],uint256,bool,bytes)", + "arguments": [ + "0x53CbcfaF8c4657e88b12D13DdC4DA0706225C932", + "[0x6C205d1b1c20352e9d33a88569f18D103004762D, 0xebD6303d9Cd09605545F723545d2d0bF56966cB9]", + "[50000000000000000000, 50000000000000000000]", + "99000000000000000000", + "false", + "0x" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x0bf61f706105ea44694f2e92986bd01c39930280", + "gas": "0x78f13", + "value": "0x0", + "input": "0x026b3d9500000000000000000000000053cbcfaf8c4657e88b12d13ddc4da0706225c93200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000055de6a779bbac00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006c205d1b1c20352e9d33a88569f18d103004762d000000000000000000000000ebd6303d9cd09605545f723545d2d0bf56966cb90000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000002b5e3af16b1880000000000000000000000000000000000000000000000000002b5e3af16b18800000000000000000000000000000000000000000000000000000000000000000000", + "nonce": "0x33a6", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CREATE", + "contractName": "ConstantProductFactory", + "contractAddress": "0x04e08a0ce01c5b8418f93ab38d9a0123a44c1cb3", + "function": null, + "arguments": [ + "0xbA1333333333a1BA1108E8412f11850A5C319bA9", + "31536000" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "gas": "0x7fa5f3", + "value": "0x0", + "input": "0x61010060405234801562000011575f80fd5b5060405162003244380380620032448339810160408190526200003491620000df565b8181604051806020016200004890620000d1565b601f1982820381018352601f90910116604052306080526001600160a01b03831660a052815f6200008063ffffffff8316426200012d565b905063ffffffff811115620000a8576040516368755a1160e01b815260040160405180910390fd5b63ffffffff91821660c0521660e0526003620000c58282620001f1565b505050505050620002bd565b611d8a80620014ba83390190565b5f8060408385031215620000f1575f80fd5b82516001600160a01b038116811462000108575f80fd5b602084015190925063ffffffff8116811462000122575f80fd5b809150509250929050565b808201808211156200014d57634e487b7160e01b5f52601160045260245ffd5b92915050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200017c57607f821691505b6020821081036200019b57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620001ec57805f5260205f20601f840160051c81016020851015620001c85750805b601f840160051c820191505b81811015620001e9575f8155600101620001d4565b50505b505050565b81516001600160401b038111156200020d576200020d62000153565b62000225816200021e845462000167565b84620001a1565b602080601f8311600181146200025b575f8415620002435750858301515b5f19600386901b1c1916600185901b178555620002b5565b5f85815260208120601f198616915b828110156200028b578886015182559484019460019091019084016200026a565b5085821015620002a957878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b60805160a05160c05160e0516111a6620003145f395f818161028201528181610607015261063a01525f6101ec01525f8181610244015281816104b401528181610581015261074c01525f61051d01526111a65ff3fe608060405234801561000f575f80fd5b50600436106100fb575f3560e01c806378da80cb11610093578063aaabadc511610063578063aaabadc514610270578063db035ebc14610278578063e9d56e1914610280578063ec888061146102a6575f80fd5b806378da80cb146101ea578063851c1bb3146102215780638d928af8146102425780638eec5d7014610268575f80fd5b80636634b753116100ce5780636634b75314610189578063673a2a1f146101c457806369b93224146101cc5780636c57f5a9146101df575f80fd5b8063193ad50f146100ff5780632f2770db1461013457806344f6fec71461013e57806353a72f7e14610169575b5f80fd5b604080516080810182525f808252602082018190528183018190526060820152905161012b919061099e565b60405180910390f35b61013c6102ac565b005b61015161014c366004610a94565b6102f3565b6040516001600160a01b03909116815260200161012b565b61017c610177366004610ae9565b610345565b60405161012b9190610b09565b6101b4610197366004610b79565b6001600160a01b03165f9081526020819052604090205460ff1690565b604051901515815260200161012b565b61017c61044e565b6101516101da366004610d7e565b6104ae565b60025460ff166101b4565b7f00000000000000000000000000000000000000000000000000000000000000005b60405163ffffffff909116815260200161012b565b61023461022f366004610e57565b61051a565b60405190815260200161012b565b7f0000000000000000000000000000000000000000000000000000000000000000610151565b600154610234565b61015161057e565b61020c610604565b7f000000000000000000000000000000000000000000000000000000000000000061020c565b5f610151565b6102b461065c565b6102bc61069d565b6002805460ff191660011790556040517f432acbfd662dbb5d8b378384a67159b47ca9d0f1b79f97cf64cf8585fa362d50905f90a1565b5f80600384604051602001610309929190610ebb565b60408051601f19818403018152919052805160208201209091505f61032d856106c3565b905061033981836106e6565b93505050505b92915050565b60015460609080841061036b57604051634e23d03560e01b815260040160405180910390fd5b5f6103768486610f78565b90508181111561038d5761038a8583610f8b565b93505b8367ffffffffffffffff8111156103a6576103a66109d1565b6040519080825280602002602001820160405280156103cf578160200160208202803683370190505b5092505f5b848110156104455760016103e88288610f78565b815481106103f8576103f8610f9e565b905f5260205f20015f9054906101000a90046001600160a01b031684828151811061042557610425610f9e565b6001600160a01b03909216602092830291909101909101526001016103d4565b50505092915050565b606060018054806020026020016040519081016040528092919081815260200182805480156104a457602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610486575b5050505050905090565b5f6104fc7f00000000000000000000000000000000000000000000000000000000000000008b8b6040516020016104e793929190610fdd565b604051602081830303815290604052896106f9565b905061050d8188888888888861074a565b9998505050505050505050565b5f7f0000000000000000000000000000000000000000000000000000000000000000826040516020016105619291909182526001600160e01b031916602082015260240190565b604051602081830303815290604052805190602001209050919050565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663aaabadc56040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105db573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105ff919061101c565b905090565b5f7f000000000000000000000000000000000000000000000000000000000000000063ffffffff16421061063757505f90565b507f000000000000000000000000000000000000000000000000000000000000000090565b5f6106715f356001600160e01b03191661051a565b905061067d81336107e1565b61069a576040516323dada5360e01b815260040160405180910390fd5b50565b60025460ff16156106c157604051633ac4266d60e11b815260040160405180910390fd5b565b604080513360208201524691810191909152606081018290525f90608001610561565b5f6106f2838330610861565b9392505050565b5f8060038460405160200161070f929190610ebb565b60405160208183030381529060405290505f61072a846106c3565b90506107375f828461088a565b92506107428361090c565b505092915050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663eeec802f888888610784610604565b898989896040518963ffffffff1660e01b81526004016107ab989796959493929190611037565b5f604051808303815f87803b1580156107c2575f80fd5b505af11580156107d4573d5f803e3d5ffd5b5050505050505050505050565b5f6107ea61057e565b6040516326f8aa2160e21b8152600481018590526001600160a01b0384811660248301523060448301529190911690639be2a88490606401602060405180830381865afa15801561083d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106f29190611155565b5f604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b5f834710156108b95760405163392efb2b60e21b81524760048201526024810185905260440160405180910390fd5b81515f036108da57604051631328927760e21b815260040160405180910390fd5b8282516020840186f590506001600160a01b0381166106f257604051633a0ba96160e11b815260040160405180910390fd5b61091461069d565b6001600160a01b0381165f81815260208190526040808220805460ff19166001908117909155805480820182559083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b03191684179055517f83a48fbcfc991335314e74d0496aab6a1987e992ddc85dddbcc4d6dd6ef2e9fc9190a250565b8151151581526020808301511515908201526040808301511515908201526060808301511515908201526080810161033f565b634e487b7160e01b5f52604160045260245ffd5b6040516080810167ffffffffffffffff81118282101715610a0857610a086109d1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610a3757610a376109d1565b604052919050565b5f67ffffffffffffffff831115610a5857610a586109d1565b610a6b601f8401601f1916602001610a0e565b9050828152838383011115610a7e575f80fd5b828260208301375f602084830101529392505050565b5f8060408385031215610aa5575f80fd5b823567ffffffffffffffff811115610abb575f80fd5b8301601f81018513610acb575f80fd5b610ada85823560208401610a3f565b95602094909401359450505050565b5f8060408385031215610afa575f80fd5b50508035926020909101359150565b602080825282518282018190525f9190848201906040850190845b81811015610b495783516001600160a01b031683529284019291840191600101610b24565b50909695505050505050565b6001600160a01b038116811461069a575f80fd5b8035610b7481610b55565b919050565b5f60208284031215610b89575f80fd5b81356106f281610b55565b5f82601f830112610ba3575f80fd5b6106f283833560208501610a3f565b801515811461069a575f80fd5b8035610b7481610bb2565b5f82601f830112610bd9575f80fd5b8135602067ffffffffffffffff821115610bf557610bf56109d1565b610c03818360051b01610a0e565b82815260079290921b84018101918181019086841115610c21575f80fd5b8286015b84811015610c995760808189031215610c3c575f80fd5b610c446109e5565b8135610c4f81610b55565b81528185013560028110610c61575f80fd5b81860152604082810135610c7481610b55565b90820152606082810135610c8781610bb2565b90820152835291830191608001610c25565b509695505050505050565b5f60608284031215610cb4575f80fd5b6040516060810181811067ffffffffffffffff82111715610cd757610cd76109d1565b6040529050808235610ce881610b55565b81526020830135610cf881610b55565b60208201526040830135610d0b81610b55565b6040919091015292915050565b5f60808284031215610d28575f80fd5b610d306109e5565b90508135610d3d81610bb2565b81526020820135610d4d81610bb2565b60208201526040820135610d6081610bb2565b60408201526060820135610d7381610bb2565b606082015292915050565b5f805f805f805f805f6101c08a8c031215610d97575f80fd5b893567ffffffffffffffff80821115610dae575f80fd5b610dba8d838e01610b94565b9a5060208c0135915080821115610dcf575f80fd5b610ddb8d838e01610b94565b995060408c0135985060608c0135915080821115610df7575f80fd5b50610e048c828d01610bca565b96505060808a01359450610e1a60a08b01610bbf565b9350610e298b60c08c01610ca4565b9250610e386101208b01610b69565b9150610e488b6101408c01610d18565b90509295985092959850929598565b5f60208284031215610e67575f80fd5b81356001600160e01b0319811681146106f2575f80fd5b5f5b83811015610e98578181015183820152602001610e80565b50505f910152565b5f8151610eb1818560208601610e7e565b9290920192915050565b5f8084545f60018260011c91506001831680610ed857607f831692505b60208084108203610ef757634e487b7160e01b5f52602260045260245ffd5b818015610f0b5760018114610f2057610f4b565b60ff1986168952841515850289019650610f4b565b5f8b8152602090205f5b86811015610f435781548b820152908501908301610f2a565b505084890196505b505050505050610f5b8185610ea0565b95945050505050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033f5761033f610f64565b8181038181111561033f5761033f610f64565b634e487b7160e01b5f52603260045260245ffd5b5f8151808452610fc9816020860160208601610e7e565b601f01601f19169290920160200192915050565b6001600160a01b03841681526060602082018190525f9061100090830185610fb2565b82810360408401526110128185610fb2565b9695505050505050565b5f6020828403121561102c575f80fd5b81516106f281610b55565b6001600160a01b0389811682526101a060208084018290528a519184018290525f926101c08501928c83019290855b818110156110c4578451848151168752838101516002811061109657634e487b7160e01b5f52602160045260245ffd5b8785015260408181015186169088015260609081015115159087015260809095019493820193600101611066565b50505050506040830189905263ffffffff881660608401529050851515608083015284516001600160a01b0390811660a08401526020860151811660c084015260408601511660e08301526001600160a01b0384166101008301528251151561012083015260208301511515610140830152604083015115156101608301526060830151151561018083015261050d565b5f60208284031215611165575f80fd5b81516106f281610bb256fea26469706673582212201f41d012242abc6a107348028140138e8571b5e34ec280b899eb5c406266c74464736f6c6343000818003361018060405234801562000011575f80fd5b5060405162001d8a38038062001d8a83398101604081905262000034916200028f565b8282828282604051806040016040528060018152602001603160f81b815250620000685f836200014660201b90919060201c565b610120526200007981600162000146565b61014052815160208084019190912060e052815190820120610100524660a0526200010660e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b60805250503060c0526001600160a01b03166101605260036200012a83826200039d565b5060046200013982826200039d565b50505050505050620004c1565b5f60208351101562000165576200015d836200017e565b905062000178565b816200017284826200039d565b5060ff90505b92915050565b5f80829050601f81511115620001b4578260405163305a27a960e01b8152600401620001ab919062000469565b60405180910390fd5b8051620001c1826200049d565b179392505050565b634e487b7160e01b5f52604160045260245ffd5b5f5b83811015620001f9578181015183820152602001620001df565b50505f910152565b5f82601f83011262000211575f80fd5b81516001600160401b03808211156200022e576200022e620001c9565b604051601f8301601f19908116603f01168101908282118183101715620002595762000259620001c9565b8160405283815286602085880101111562000272575f80fd5b62000285846020830160208901620001dd565b9695505050505050565b5f805f60608486031215620002a2575f80fd5b83516001600160a01b0381168114620002b9575f80fd5b60208501519093506001600160401b0380821115620002d6575f80fd5b620002e48783880162000201565b93506040860151915080821115620002fa575f80fd5b50620003098682870162000201565b9150509250925092565b600181811c908216806200032857607f821691505b6020821081036200034757634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200039857805f5260205f20601f840160051c81016020851015620003745750805b601f840160051c820191505b8181101562000395575f815560010162000380565b50505b505050565b81516001600160401b03811115620003b957620003b9620001c9565b620003d181620003ca845462000313565b846200034d565b602080601f83116001811462000407575f8415620003ef5750858301515b5f19600386901b1c1916600185901b17855562000461565b5f85815260208120601f198616915b82811015620004375788860151825594840194600190910190840162000416565b50858210156200045557878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b602081525f825180602084015262000489816040850160208701620001dd565b601f01601f19169190910160400192915050565b8051602080830151919081101562000347575f1960209190910360031b1b16919050565b60805160a05160c05160e0516101005161012051610140516101605161182e6200055c5f395f81816103470152818161049c01528181610599015281816106460152818161078c015281816107e2015281816109e701528181610b6a01528181610c100152610cae01525f610e4c01525f610e2001525f610dc901525f610da101525f610cfc01525f610d2601525f610d50015261182e5ff3fe608060405234801561000f575f80fd5b50600436106101a1575f3560e01c8063654cf15d116100f357806395d89b4111610093578063b677fa561161006e578063b677fa561461039f578063ce20ece7146103ad578063d505accf146103b8578063dd62ed3e146103cb575f80fd5b806395d89b4114610371578063984de9e814610379578063a9059cbb1461038c575f80fd5b806372c98186116100ce57806372c98186146102f95780637ecebe001461030c57806384b0196e1461031f5780638d928af81461033a575f80fd5b8063654cf15d146102d0578063679aefce146102de57806370a08231146102e6575f80fd5b806323de66511161015e578063313ce56711610139578063313ce5671461028c5780633644e5151461029b5780635687f2b8146102a3578063627cdcb9146102b6575f80fd5b806323de665114610242578063273c1adf1461025757806330adf81f14610265575f80fd5b806301ffc9a7146101a557806306fdde03146101de578063095ea7b3146101f357806316a0b3e01461020657806318160ddd1461022757806323b872dd1461022f575b5f80fd5b6101c96101b33660046112e7565b6001600160e01b0319166301ffc9a760e01b1490565b60405190151581526020015b60405180910390f35b6101e66103de565b6040516101d59190611351565b6101c961020136600461137e565b61046e565b61021961021436600461144a565b610515565b6040519081526020016101d5565b610219610582565b6101c961023d366004611494565b610610565b610255610250366004611494565b6106bd565b005b6729a2241af62c0000610219565b6102197f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b604051601281526020016101d5565b610219610717565b6102556102b1366004611494565b610720565b610255335f90815260026020526040902080546001019055565b67016345785d8a0000610219565b61021961076d565b6102196102f43660046114cd565b6107bb565b6102196103073660046114e6565b61084d565b61021961031a3660046114cd565b6108d5565b6103276108f2565b6040516101d5979695949392919061151d565b6040516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001681526020016101d5565b6101e6610934565b6102196103873660046115b4565b610943565b6101c961039a36600461137e565b6109b9565b6709b6e64a8ec60000610219565b64e8d4a51000610219565b6102556103c6366004611606565b610a18565b6102196103d9366004611673565b610be1565b6060600380546103ed906116a4565b80601f0160208091040260200160405190810160405280929190818152602001828054610419906116a4565b80156104645780601f1061043b57610100808354040283529160200191610464565b820191905f5260205f20905b81548152906001019060200180831161044757829003601f168201915b5050505050905090565b60405163e1f21c6760e01b81523360048201526001600160a01b038381166024830152604482018390525f917f00000000000000000000000000000000000000000000000000000000000000009091169063e1f21c67906064015b6020604051808303815f875af11580156104e5573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061050991906116dc565b50600190505b92915050565b5f8061052c83610526876001610943565b90610c7b565b90505f841561053b575f61053e565b60015b60ff1690505f868281518110610556576105566116fb565b6020026020010151905080838461056d9190611723565b610577919061174e565b979650505050505050565b6040516339370aa960e21b81523060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e4dc2aa4906024015b602060405180830381865afa1580156105e7573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061060b919061176d565b905090565b604051630aed65f560e11b81523360048201526001600160a01b0384811660248301528381166044830152606482018390525f917f0000000000000000000000000000000000000000000000000000000000000000909116906315dacbea906084016020604051808303815f875af115801561068e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106b291906116dc565b506001949350505050565b6106c5610ca3565b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161070a91815260200190565b60405180910390a3505050565b5f61060b610cf0565b610728610ca3565b816001600160a01b0316836001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161070a91815260200190565b604051634f037ee760e01b81523060048201525f906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690634f037ee7906024016105cc565b604051633de222bb60e21b81523060048201526001600160a01b0382811660248301525f917f00000000000000000000000000000000000000000000000000000000000000009091169063f7888aec90604401602060405180830381865afa158015610829573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061050f919061176d565b5f8061085c6040840184611784565b8460800135818110610870576108706116fb565b9050602002013590505f83806040019061088a9190611784565b856060013581811061089e5761089e6116fb565b602090810292909201359250508401356108b881836117d1565b6108c28285611723565b6108cc919061174e565b95945050505050565b6001600160a01b0381165f9081526002602052604081205461050f565b5f6060805f805f6060610903610e19565b61090b610e45565b604080515f80825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6060600480546103ed906116a4565b5f670de0b6b3a7640000905061099983600181518110610965576109656116fb565b6020026020010151610526855f81518110610982576109826116fb565b602002602001015184610c7b90919063ffffffff16565b90506109a481610e72565b6109b290633b9aca00611723565b9392505050565b6040516317d5759960e31b81523360048201526001600160a01b038381166024830152604482018390525f917f00000000000000000000000000000000000000000000000000000000000000009091169063beabacc8906064016104c9565b83421115610a415760405163313c898160e11b8152600481018590526024015b60405180910390fd5b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610a8c8c6001600160a01b03165f90815260026020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090505f610ae682610f56565b90505f610af582878787610f82565b9050896001600160a01b0316816001600160a01b031614610b3c576040516325c0072360e11b81526001600160a01b0380831660048301528b166024820152604401610a38565b60405163e1f21c6760e01b81526001600160a01b038b811660048301528a81166024830152604482018a90527f0000000000000000000000000000000000000000000000000000000000000000169063e1f21c67906064016020604051808303815f875af1158015610bb0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bd491906116dc565b5050505050505050505050565b60405163927da10560e01b81523060048201526001600160a01b03838116602483015282811660448301525f917f00000000000000000000000000000000000000000000000000000000000000009091169063927da10590606401602060405180830381865afa158015610c57573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109b2919061176d565b5f80610c878385611723565b9050610c9b670de0b6b3a76400008261174e565b949350505050565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610cee5760405163089676d560e01b8152336004820152602401610a38565b565b5f306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015610d4857507f000000000000000000000000000000000000000000000000000000000000000046145b15610d7257507f000000000000000000000000000000000000000000000000000000000000000090565b61060b604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b606061060b7f00000000000000000000000000000000000000000000000000000000000000005f610fae565b606061060b7f00000000000000000000000000000000000000000000000000000000000000006001610fae565b5f815f03610e8157505f919050565b5f6001610e8d84611057565b901c6001901b90506001818481610ea657610ea661173a565b048201901c90506001818481610ebe57610ebe61173a565b048201901c90506001818481610ed657610ed661173a565b048201901c90506001818481610eee57610eee61173a565b048201901c90506001818481610f0657610f0661173a565b048201901c90506001818481610f1e57610f1e61173a565b048201901c90506001818481610f3657610f3661173a565b048201901c90506109b281828581610f5057610f5061173a565b046110ea565b5f61050f610f62610cf0565b8360405161190160f01b8152600281019290925260228201526042902090565b5f805f80610f92888888886110ff565b925092509250610fa282826111c7565b50909695505050505050565b606060ff8314610fc857610fc183611283565b905061050f565b818054610fd4906116a4565b80601f0160208091040260200160405190810160405280929190818152602001828054611000906116a4565b801561104b5780601f106110225761010080835404028352916020019161104b565b820191905f5260205f20905b81548152906001019060200180831161102e57829003601f168201915b5050505050905061050f565b5f80608083901c1561106b57608092831c92015b604083901c1561107d57604092831c92015b602083901c1561108f57602092831c92015b601083901c156110a157601092831c92015b600883901c156110b357600892831c92015b600483901c156110c557600492831c92015b600283901c156110d757600292831c92015b600183901c1561050f5760010192915050565b5f8183106110f857816109b2565b5090919050565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561113857505f915060039050826111bd565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015611189573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b0381166111b457505f9250600191508290506111bd565b92505f91508190505b9450945094915050565b5f8260038111156111da576111da6117e4565b036111e3575050565b60018260038111156111f7576111f76117e4565b036112155760405163f645eedf60e01b815260040160405180910390fd5b6002826003811115611229576112296117e4565b0361124a5760405163fce698f760e01b815260048101829052602401610a38565b600382600381111561125e5761125e6117e4565b0361127f576040516335e2f38360e21b815260048101829052602401610a38565b5050565b60605f61128f836112c0565b6040805160208082528183019092529192505f91906020820181803683375050509182525060208101929092525090565b5f60ff8216601f81111561050f57604051632cd44ac360e21b815260040160405180910390fd5b5f602082840312156112f7575f80fd5b81356001600160e01b0319811681146109b2575f80fd5b5f81518084525f5b8181101561133257602081850181015186830182015201611316565b505f602082860101526020601f19601f83011685010191505092915050565b602081525f6109b2602083018461130e565b80356001600160a01b0381168114611379575f80fd5b919050565b5f806040838503121561138f575f80fd5b61139883611363565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f8301126113c9575f80fd5b8135602067ffffffffffffffff808311156113e6576113e66113a6565b8260051b604051601f19603f8301168101818110848211171561140b5761140b6113a6565b604052938452602081870181019490810192508785111561142a575f80fd5b6020870191505b8482101561057757813583529183019190830190611431565b5f805f6060848603121561145c575f80fd5b833567ffffffffffffffff811115611472575f80fd5b61147e868287016113ba565b9660208601359650604090950135949350505050565b5f805f606084860312156114a6575f80fd5b6114af84611363565b92506114bd60208501611363565b9150604084013590509250925092565b5f602082840312156114dd575f80fd5b6109b282611363565b5f602082840312156114f6575f80fd5b813567ffffffffffffffff81111561150c575f80fd5b820160e081850312156109b2575f80fd5b60ff60f81b881681525f602060e0602084015261153d60e084018a61130e565b838103604085015261154f818a61130e565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825260208088019350909101905f5b818110156115a257835183529284019291840191600101611586565b50909c9b505050505050505050505050565b5f80604083850312156115c5575f80fd5b823567ffffffffffffffff8111156115db575f80fd5b6115e7858286016113ba565b9250506020830135600281106115fb575f80fd5b809150509250929050565b5f805f805f805f60e0888a03121561161c575f80fd5b61162588611363565b965061163360208901611363565b95506040880135945060608801359350608088013560ff81168114611656575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f8060408385031215611684575f80fd5b61168d83611363565b915061169b60208401611363565b90509250929050565b600181811c908216806116b857607f821691505b6020821081036116d657634e487b7160e01b5f52602260045260245ffd5b50919050565b5f602082840312156116ec575f80fd5b815180151581146109b2575f80fd5b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761050f5761050f61170f565b634e487b7160e01b5f52601260045260245ffd5b5f8261176857634e487b7160e01b5f52601260045260245ffd5b500490565b5f6020828403121561177d575f80fd5b5051919050565b5f808335601e19843603018112611799575f80fd5b83018035915067ffffffffffffffff8211156117b3575f80fd5b6020019150600581901b36038213156117ca575f80fd5b9250929050565b8082018082111561050f5761050f61170f565b634e487b7160e01b5f52602160045260245ffdfea2646970667358221220482dd0923335d06c091ebb7d7e774133d557100c0c3aac86d8a3b11b502527f164736f6c63430008180033000000000000000000000000ba1333333333a1ba1108e8412f11850a5c319ba90000000000000000000000000000000000000000000000000000000001e13380", + "nonce": "0x33a7", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CREATE", + "contractName": "LotteryHookExample", + "contractAddress": "0x84a94a689ea85b0c880bb61a62e3c6833d68262a", + "function": null, + "arguments": [ + "0xbA1333333333a1BA1108E8412f11850A5C319bA9", + "0x0BF61f706105EA44694f2e92986bD01C39930280" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "gas": "0x1b59a5", + "value": "0x0", + "input": "0x60c06040525f60045534801562000014575f80fd5b50604051620018b9380380620018b98339810160408190526200003791620000f0565b6001600160a01b03821660805233806200006a57604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b620000758162000089565b506001600160a01b031660a052506200012d565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114620000ed575f80fd5b50565b5f806040838503121562000102575f80fd5b82516200010f81620000d8565b60208401519092506200012281620000d8565b809150509250929050565b60805160a051611763620001565f395f61034701525f81816105a8015261083201526117635ff3fe608060405234801561000f575f80fd5b506004361061011c575f3560e01c80638da5cb5b116100a9578063dbdff2c11161006e578063dbdff2c114610298578063f2fde38b146102b2578063f883fcaa146102c5578063f9e5c197146102cd578063fea9b572146102e0575f80fd5b80638da5cb5b14610226578063976907cc14610240578063a0e8f5ac1461025d578063ba5f9f4014610275578063d77153a714610283575f80fd5b806338be241d116100ef57806338be241d146101b05780634392312a146101c357806345421ec7146101f45780635211fa771461020e578063715018a61461021c575f80fd5b80630b89f1821461012057806318b6eb55146101485780631c149e28146101725780632754888d14610185575b5f80fd5b61013361012e366004610e01565b6102e8565b60405190151581526020015b60405180910390f35b61015b610156366004610f25565b610332565b60408051921515835260208301919091520161013f565b61013361018036600461102e565b6104a0565b6101a261019336600461109b565b5f839850989650505050505050565b60405161013f92919061117a565b6101336101be3660046111ca565b6104a8565b5f546101dc90600160a01b90046001600160401b031681565b6040516001600160401b03909116815260200161013f565b61013361020236600461123f565b5f979650505050505050565b61013361018036600461130e565b6102246104b1565b005b5f546040516001600160a01b03909116815260200161013f565b6101a261024e36600461135c565b5f849850989650505050505050565b61015b61026b3660046113fd565b5f80935093915050565b610133610202366004611452565b61028b6104c4565b60405161013f91906114d4565b6102a06104e3565b60405160ff909116815260200161013f565b6102246102c036600461158c565b6104f1565b6102a0600a81565b6102246102db3660046115a7565b610533565b6102a0601481565b5f6102f161059d565b6040516001600160a01b0385169030907f8b640b5b54a040cdfb1149b7446b0c7c18c820e860ed3d8b584acea1888b7ecd905f90a35060015b949350505050565b5f8061033c61059d565b5f6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166103796101408601610120870161158c565b6001600160a01b0316036103925761038f6105e8565b90505b60048054905f6103a1836115e1565b90915550505f546101008501359250600160a01b90046001600160401b031615610496575f80546103e89061010087013590600160a01b90046001600160401b0316610637565b90505f6103f8602087018761160d565b6001811115610409576104096115f9565b03610456575f61043b6104246101408801610120890161158c565b8461043560608a0160408b0161158c565b85610657565b905080156104505761044d8185611628565b93505b50610494565b5f61047d61046c6101408801610120890161158c565b8461043560408a0160208b0161158c565b905080156104925761048f818561163b565b93505b505b505b6001925050915091565b5f5b92915050565b5f5b9392505050565b6104b96108d1565b6104c25f6108fd565b565b6104cc610ccd565b6104d4610ccd565b600180825260a0820152919050565b5f6104ec6105e8565b905090565b6104f96108d1565b6001600160a01b03811661052757604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610530816108fd565b50565b61053b6108d1565b5f805467ffffffffffffffff60a01b1916600160a01b6001600160401b0384169081029190911790915560405190815230907fb25b38640ad709be28a74117ede8cc6094d9e8b3aa27330e26b10898c92ba5229060200160405180910390a250565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146104c25760405163089676d560e01b815233600482015260240161051e565b6004546040515f9160149161060a914491602001918252602082015260400190565b604051602081830303815290604052805190602001205f1c61062c9190611662565b6104ec90600161163b565b5f806106438385611675565b905061032a670de0b6b3a76400008261168c565b5f60091960ff8516016107f3575f856001600160a01b0316635e01eb5a6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106a1573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106c5919061169f565b6001549091505b80156107e9575f6106e96106e1600184611628565b60019061094c565b5090506106f7600182610996565b506040516370a0823160e01b81523060048201525f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561073c573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061076091906116ba565b905080156107d45761077c6001600160a01b0383168583610a68565b816001600160a01b0316846001600160a01b0316306001600160a01b03167fad248945aa9c6e54a3aae4c347a04143e677a981dbefd64b871fd587ad6077c6846040516107cb91815260200190565b60405180910390a45b505080806107e1906116d1565b9150506106cc565b505f91505061032a565b6107ff60018481610abf565b5081156108ca5760405163ae63932960e01b81526001600160a01b038481166004830152306024830152604482018490527f0000000000000000000000000000000000000000000000000000000000000000169063ae639329906064015f604051808303815f87803b158015610873575f80fd5b505af1158015610885573d5f803e3d5ffd5b50506040518481526001600160a01b03861692503091507f9614d1bfde1842c37d557aba9f2b69fa1ad92fef808d832d9f4b3ab5cdd06a7b9060200160405180910390a35b508061032a565b5f546001600160a01b031633146104c25760405163118cdaa760e01b815233600482015260240161051e565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f80835f0154831061097157604051634e23d03560e01b815260040160405180910390fd5b50505f90815260019182016020526040902080549101546001600160a01b0390911691565b6001600160a01b0381165f9081526002830160205260408120548015610a5f5783545f198083019101808214610a16575f818152600180880160209081526040808420868552818520815481546001600160a01b0319166001600160a01b0391821617825582860154919095015554909216835260028901905290208390555b5f81815260018088016020908152604080842080546001600160a01b031916815583018490559389556001600160a01b03881683526002890190529181205592506104a2915050565b5f9150506104a2565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610aba908490610b6a565b505050565b6001600160a01b0382165f908152600284016020526040812054808203610b4c57505082546040805180820182526001600160a01b0385811680835260208084018781525f8781526001808c018452878220965187546001600160a01b031916961695909517865590519484019490945594820180895590835260028801909452919020919091556104aa565b5f19015f9081526001808601602052604082200183905590506104aa565b5f610b7e6001600160a01b03841683610bcb565b905080515f14158015610ba2575080806020019051810190610ba091906116e6565b155b15610aba57604051635274afe760e01b81526001600160a01b038416600482015260240161051e565b60606104aa83835f845f80856001600160a01b03168486604051610bef9190611701565b5f6040518083038185875af1925050503d805f8114610c29576040519150601f19603f3d011682016040523d82523d5f602084013e610c2e565b606091505b5091509150610c3e868383610c48565b9695505050505050565b606082610c5d57610c5882610ca4565b6104aa565b8151158015610c7457506001600160a01b0384163b155b15610c9d57604051639996b31560e01b81526001600160a01b038516600482015260240161051e565b50806104aa565b805115610cb45780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b60408051610140810182525f80825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081019190915290565b6001600160a01b0381168114610530575f80fd5b8035610d3f81610d20565b919050565b634e487b7160e01b5f52604160045260245ffd5b604051608081016001600160401b0381118282101715610d7a57610d7a610d44565b60405290565b604051601f8201601f191681016001600160401b0381118282101715610da857610da8610d44565b604052919050565b5f6001600160401b03821115610dc857610dc8610d44565b5060051b60200190565b60028110610530575f80fd5b8015158114610530575f80fd5b5f60808284031215610dfb575f80fd5b50919050565b5f805f8060e08587031215610e14575f80fd5b8435610e1f81610d20565b9350602085810135610e3081610d20565b93506040868101356001600160401b03811115610e4b575f80fd5b8701601f81018913610e5b575f80fd5b8035610e6e610e6982610db0565b610d80565b81815260079190911b8201840190848101908b831115610e8c575f80fd5b928501925b82841015610f04576080848d031215610ea8575f80fd5b610eb0610d58565b8435610ebb81610d20565b815284870135610eca81610dd2565b8188015284860135610edb81610d20565b81870152606085810135610eee81610dde565b9082015282526080939093019290850190610e91565b809750505050505050610f1a8660608701610deb565b905092959194509250565b5f60208284031215610f35575f80fd5b81356001600160401b03811115610f4a575f80fd5b820161018081850312156104aa575f80fd5b5f82601f830112610f6b575f80fd5b81356020610f7b610e6983610db0565b8083825260208201915060208460051b870101935086841115610f9c575f80fd5b602086015b84811015610fb85780358352918301918301610fa1565b509695505050505050565b5f82601f830112610fd2575f80fd5b81356001600160401b03811115610feb57610feb610d44565b610ffe601f8201601f1916602001610d80565b818152846020838601011115611012575f80fd5b816020850160208301375f918101602001919091529392505050565b5f806040838503121561103f575f80fd5b82356001600160401b0380821115611055575f80fd5b61106186838701610f5c565b93506020850135915080821115611076575f80fd5b5061108385828601610fc3565b9150509250929050565b803560048110610d3f575f80fd5b5f805f805f805f80610100898b0312156110b3575f80fd5b6110bc89610d34565b97506110ca60208a01610d34565b96506110d860408a0161108d565b95506060890135945060808901356001600160401b03808211156110fa575f80fd5b6111068c838d01610f5c565b955060a08b013591508082111561111b575f80fd5b6111278c838d01610f5c565b945060c08b013591508082111561113c575f80fd5b6111488c838d01610f5c565b935060e08b013591508082111561115d575f80fd5b5061116a8b828c01610fc3565b9150509295985092959890939650565b5f6040820184151583526020604060208501528185518084526060860191506020870193505f5b818110156111bd578451835293830193918301916001016111a1565b5090979650505050505050565b5f805f606084860312156111dc575f80fd5b83356001600160401b03808211156111f2575f80fd5b6111fe87838801610f5c565b945060208601359350604086013591508082111561121a575f80fd5b5061122786828701610fc3565b9150509250925092565b803560058110610d3f575f80fd5b5f805f805f805f60e0888a031215611255575f80fd5b873561126081610d20565b9650602088013561127081610d20565b955061127e60408901611231565b945060608801356001600160401b0380821115611299575f80fd5b6112a58b838c01610f5c565b955060808a0135945060a08a01359150808211156112c1575f80fd5b6112cd8b838c01610f5c565b935060c08a01359150808211156112e2575f80fd5b506112ef8a828b01610fc3565b91505092959891949750929550565b5f60e08284031215610dfb575f80fd5b5f806040838503121561131f575f80fd5b82356001600160401b03811115611334575f80fd5b611340858286016112fe565b925050602083013561135181610d20565b809150509250929050565b5f805f805f805f80610100898b031215611374575f80fd5b61137d89610d34565b975061138b60208a01610d34565b965061139960408a01611231565b955060608901356001600160401b03808211156113b4575f80fd5b6113c08c838d01610f5c565b965060808b01359150808211156113d5575f80fd5b6113e18c838d01610f5c565b955060a08b0135945060c08b013591508082111561113c575f80fd5b5f805f6060848603121561140f575f80fd5b83356001600160401b03811115611424575f80fd5b611430868287016112fe565b935050602084013561144181610d20565b929592945050506040919091013590565b5f805f805f805f60e0888a031215611468575f80fd5b873561147381610d20565b9650602088013561148381610d20565b95506114916040890161108d565b94506060880135935060808801356001600160401b03808211156114b3575f80fd5b6114bf8b838c01610f5c565b945060a08a01359150808211156112c1575f80fd5b815115158152610140810160208301516114f2602084018215159052565b506040830151611506604084018215159052565b50606083015161151a606084018215159052565b50608083015161152e608084018215159052565b5060a083015161154260a084018215159052565b5060c083015161155660c084018215159052565b5060e083015161156a60e084018215159052565b5061010083810151151590830152610120928301511515929091019190915290565b5f6020828403121561159c575f80fd5b81356104aa81610d20565b5f602082840312156115b7575f80fd5b81356001600160401b03811681146104aa575f80fd5b634e487b7160e01b5f52601160045260245ffd5b5f600182016115f2576115f26115cd565b5060010190565b634e487b7160e01b5f52602160045260245ffd5b5f6020828403121561161d575f80fd5b81356104aa81610dd2565b818103818111156104a2576104a26115cd565b808201808211156104a2576104a26115cd565b634e487b7160e01b5f52601260045260245ffd5b5f826116705761167061164e565b500690565b80820281158282048414176104a2576104a26115cd565b5f8261169a5761169a61164e565b500490565b5f602082840312156116af575f80fd5b81516104aa81610d20565b5f602082840312156116ca575f80fd5b5051919050565b5f816116df576116df6115cd565b505f190190565b5f602082840312156116f6575f80fd5b81516104aa81610dde565b5f82515f5b818110156117205760208186018101518583015201611706565b505f92019182525091905056fea2646970667358221220c91b146adc8ff5cac6b81b3a5f5728fbf4da4b611f2108b419823938f28ce48d64736f6c63430008180033000000000000000000000000ba1333333333a1ba1108e8412f11850a5c319ba90000000000000000000000000bf61f706105ea44694f2e92986bd01c39930280", + "nonce": "0x33a8", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": "ConstantProductFactory", + "contractAddress": "0x04e08a0ce01c5b8418f93ab38d9a0123a44c1cb3", + "function": "create(string,string,bytes32,(address,uint8,address,bool)[],uint256,bool,(address,address,address),address,(bool,bool,bool,bool))", + "arguments": [ + "Constant Product Pool", + "CPP", + "0x44bceb2174c451b4eeb824ee608d82ba99b4aad667464d285014758e412cae07", + "[(0x6C205d1b1c20352e9d33a88569f18D103004762D, 0, 0x0000000000000000000000000000000000000000, false), (0xebD6303d9Cd09605545F723545d2d0bF56966cB9, 0, 0x0000000000000000000000000000000000000000, false)]", + "20000000000000000", + "false", + "(0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000)", + "0x84a94a689Ea85B0c880Bb61a62E3c6833D68262A", + "(true, false, false, false)" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x04e08a0ce01c5b8418f93ab38d9a0123a44c1cb3", + "gas": "0x2f9dff", + "value": "0x0", + "input": "0x69b9322400000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000020044bceb2174c451b4eeb824ee608d82ba99b4aad667464d285014758e412cae07000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000470de4df820000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084a94a689ea85b0c880bb61a62e3c6833d68262a00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015436f6e7374616e742050726f6475637420506f6f6c00000000000000000000000000000000000000000000000000000000000000000000000000000000000003435050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006c205d1b1c20352e9d33a88569f18d103004762d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ebd6303d9cd09605545f723545d2d0bf56966cb9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "nonce": "0x33a9", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": "MockToken2", + "contractAddress": "0x6c205d1b1c20352e9d33a88569f18d103004762d", + "function": "approve(address,uint256)", + "arguments": [ + "0x000000000022D473030F116dDEE9F6B43aC78BA3", + "115792089237316195423570985008687907853269984665640564039457584007913129639935" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x6c205d1b1c20352e9d33a88569f18d103004762d", + "gas": "0x9028", + "value": "0x0", + "input": "0x095ea7b3000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "nonce": "0x33aa", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": "MockToken1", + "contractAddress": "0xebd6303d9cd09605545f723545d2d0bf56966cb9", + "function": "approve(address,uint256)", + "arguments": [ + "0x000000000022D473030F116dDEE9F6B43aC78BA3", + "115792089237316195423570985008687907853269984665640564039457584007913129639935" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0xebd6303d9cd09605545f723545d2d0bf56966cb9", + "gas": "0x9028", + "value": "0x0", + "input": "0x095ea7b3000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "nonce": "0x33ab", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "function": "approve(address,address,uint160,uint48)", + "arguments": [ + "0x6C205d1b1c20352e9d33a88569f18D103004762D", + "0x0BF61f706105EA44694f2e92986bD01C39930280", + "1461501637330902918203684832716283019655932542975", + "281474976710655" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "gas": "0x96a0", + "value": "0x0", + "input": "0x87517c450000000000000000000000006c205d1b1c20352e9d33a88569f18d103004762d0000000000000000000000000bf61f706105ea44694f2e92986bd01c39930280000000000000000000000000ffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000ffffffffffff", + "nonce": "0x33ac", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "function": "approve(address,address,uint160,uint48)", + "arguments": [ + "0xebD6303d9Cd09605545F723545d2d0bF56966cB9", + "0x0BF61f706105EA44694f2e92986bD01C39930280", + "1461501637330902918203684832716283019655932542975", + "281474976710655" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "gas": "0x96a0", + "value": "0x0", + "input": "0x87517c45000000000000000000000000ebd6303d9cd09605545f723545d2d0bf56966cb90000000000000000000000000bf61f706105ea44694f2e92986bd01c39930280000000000000000000000000ffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000ffffffffffff", + "nonce": "0x33ad", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x0bf61f706105ea44694f2e92986bd01c39930280", + "function": "initialize(address,address[],uint256[],uint256,bool,bytes)", + "arguments": [ + "0x41eF6197c23f24777476bF674DeaF350CC2b9B34", + "[0x6C205d1b1c20352e9d33a88569f18D103004762D, 0xebD6303d9Cd09605545F723545d2d0bF56966cB9]", + "[50000000000000000000, 50000000000000000000]", + "49000000000000000000", + "false", + "0x" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x0bf61f706105ea44694f2e92986bd01c39930280", + "gas": "0x5b993", + "value": "0x0", + "input": "0x026b3d9500000000000000000000000041ef6197c23f24777476bf674deaf350cc2b9b3400000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000002a802f8630a2400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006c205d1b1c20352e9d33a88569f18d103004762d000000000000000000000000ebd6303d9cd09605545f723545d2d0bf56966cb90000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000002b5e3af16b1880000000000000000000000000000000000000000000000000002b5e3af16b18800000000000000000000000000000000000000000000000000000000000000000000", + "nonce": "0x33ae", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CREATE", + "contractName": "WeightedPoolFactory", + "contractAddress": "0xa3dba161c34940d4a145448a4cdc3f5b88e8a179", + "function": null, + "arguments": [ + "0xbA1333333333a1BA1108E8412f11850A5C319bA9", + "31536000", + "Factory v1", + "Pool v1" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "gas": "0x106cdbb", + "value": "0x0", + "input": "0x61010060405234801562000011575f80fd5b5060405162005b0b38038062005b0b8339810160408190526200003491620001d6565b81848460405180602001620000499062000107565b601f1982820381018352601f90910116604052306080526001600160a01b03831660a052815f6200008163ffffffff83164262000277565b905063ffffffff811115620000a9576040516368755a1160e01b815260040160405180910390fd5b63ffffffff91821660c0521660e0526003620000c6828262000327565b50505050620000db81620000f560201b60201c565b506005620000ea828262000327565b5050505050620003f3565b600462000103828262000327565b5050565b61422d80620018de83390190565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011262000139575f80fd5b81516001600160401b038082111562000156576200015662000115565b604051601f8301601f19908116603f0116810190828211818310171562000181576200018162000115565b81604052838152602092508660208588010111156200019e575f80fd5b5f91505b83821015620001c15785820183015181830184015290820190620001a2565b5f602085830101528094505050505092915050565b5f805f8060808587031215620001ea575f80fd5b84516001600160a01b038116811462000201575f80fd5b602086015190945063ffffffff811681146200021b575f80fd5b60408601519093506001600160401b038082111562000238575f80fd5b620002468883890162000129565b935060608701519150808211156200025c575f80fd5b506200026b8782880162000129565b91505092959194509250565b808201808211156200029757634e487b7160e01b5f52601160045260245ffd5b92915050565b600181811c90821680620002b257607f821691505b602082108103620002d157634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200032257805f5260205f20601f840160051c81016020851015620002fe5750805b601f840160051c820191505b818110156200031f575f81556001016200030a565b50505b505050565b81516001600160401b0381111562000343576200034362000115565b6200035b816200035484546200029d565b84620002d7565b602080601f83116001811462000391575f8415620003795750858301515b5f19600386901b1c1916600185901b178555620003eb565b5f85815260208120601f198616915b82811015620003c157888601518255948401946001909101908401620003a0565b5085821015620003df57878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b60805160a05160c05160e0516114946200044a5f395f81816102a20152818161066c015261069f01525f61020c01525f8181610264015281816105e6015281816107e3015261093b01525f61058201526114945ff3fe608060405234801561000f575f80fd5b5060043610610111575f3560e01c806378da80cb1161009e578063aaabadc51161006e578063aaabadc514610290578063db035ebc14610298578063e9d56e19146102a0578063ec888061146102c6578063fed4cdda146102cc575f80fd5b806378da80cb1461020a578063851c1bb3146102415780638d928af8146102625780638eec5d7014610288575f80fd5b806353a72f7e116100e457806353a72f7e1461019457806354fd4d50146101b45780636634b753146101bc578063673a2a1f146101f75780636c57f5a9146101ff575f80fd5b8063193ad50f146101155780632f2770db1461014a5780633f819b6f1461015457806344f6fec714610169575b5f80fd5b604080516080810182525f80825260208201819052818301819052606082015290516101419190610b8d565b60405180910390f35b6101526102df565b005b61015c610326565b6040516101419190610c0d565b61017c610177366004610ce2565b6103b6565b6040516001600160a01b039091168152602001610141565b6101a76101a2366004610d37565b610408565b6040516101419190610d57565b61015c610511565b6101e76101ca366004610dc7565b6001600160a01b03165f9081526020819052604090205460ff1690565b6040519015158152602001610141565b6101a7610520565b60025460ff166101e7565b7f00000000000000000000000000000000000000000000000000000000000000005b60405163ffffffff9091168152602001610141565b61025461024f366004610de2565b61057f565b604051908152602001610141565b7f000000000000000000000000000000000000000000000000000000000000000061017c565b600154610254565b61017c6105e3565b61022c610669565b7f000000000000000000000000000000000000000000000000000000000000000061022c565b5f61017c565b61017c6102da366004610ff7565b6106c1565b6102e761084b565b6102ef61088c565b6002805460ff191660011790556040517f432acbfd662dbb5d8b378384a67159b47ca9d0f1b79f97cf64cf8585fa362d50905f90a1565b606060058054610335906110f5565b80601f0160208091040260200160405190810160405280929190818152602001828054610361906110f5565b80156103ac5780601f10610383576101008083540402835291602001916103ac565b820191905f5260205f20905b81548152906001019060200180831161038f57829003601f168201915b5050505050905090565b5f806003846040516020016103cc929190611148565b60408051601f19818403018152919052805160208201209091505f6103f0856108b2565b90506103fc81836108d5565b93505050505b92915050565b60015460609080841061042e57604051634e23d03560e01b815260040160405180910390fd5b5f6104398486611205565b9050818111156104505761044d8583611218565b93505b8367ffffffffffffffff81111561046957610469610c1f565b604051908082528060200260200182016040528015610492578160200160208202803683370190505b5092505f5b848110156105085760016104ab8288611205565b815481106104bb576104bb61122b565b905f5260205f20015f9054906101000a90046001600160a01b03168482815181106104e8576104e861122b565b6001600160a01b0390921660209283029190910190910152600101610497565b50505092915050565b606060048054610335906110f5565b606060018054806020026020016040519081016040528092919081815260200182805480156103ac57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610558575050505050905090565b5f7f0000000000000000000000000000000000000000000000000000000000000000826040516020016105c69291909182526001600160e01b031916602082015260240190565b604051602081830303815290604052805190602001209050919050565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663aaabadc56040518163ffffffff1660e01b8152600401602060405180830381865afa158015610640573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610664919061123f565b905090565b5f7f000000000000000000000000000000000000000000000000000000000000000063ffffffff16421061069c57505f90565b507f000000000000000000000000000000000000000000000000000000000000000090565b60408601515f906001600160a01b0316156106ef5760405163187b85d960e21b815260040160405180910390fd5b604080516080810182525f808252602082018190529181018290526060810182905285151560608083019190915285151582526040805160a0810182528f8152602081018f90528d51918101919091529081018b90526005805492935061082b9260808301919061075f906110f5565b80601f016020809104026020016040519081016040528092919081815260200182805461078b906110f5565b80156107d65780601f106107ad576101008083540402835291602001916107d6565b820191905f5260205f20905b8154815290600101906020018083116107b957829003601f168201915b50505050508152506108057f000000000000000000000000000000000000000000000000000000000000000090565b60405160200161081692919061125a565b604051602081830303815290604052846108e8565b915061083c828b895f8c8b87610939565b509a9950505050505050505050565b5f6108605f356001600160e01b03191661057f565b905061086c81336109d0565b610889576040516323dada5360e01b815260040160405180910390fd5b50565b60025460ff16156108b057604051633ac4266d60e11b815260040160405180910390fd5b565b604080513360208201524691810191909152606081018290525f906080016105c6565b5f6108e1838330610a50565b9392505050565b5f806003846040516020016108fe929190611148565b60405160208183030381529060405290505f610919846108b2565b90506109265f8284610a79565b925061093183610afb565b505092915050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663eeec802f888888610973610669565b898989896040518963ffffffff1660e01b815260040161099a98979695949392919061131d565b5f604051808303815f87803b1580156109b1575f80fd5b505af11580156109c3573d5f803e3d5ffd5b5050505050505050505050565b5f6109d96105e3565b6040516326f8aa2160e21b8152600481018590526001600160a01b0384811660248301523060448301529190911690639be2a88490606401602060405180830381865afa158015610a2c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108e19190611443565b5f604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b5f83471015610aa85760405163392efb2b60e21b81524760048201526024810185905260440160405180910390fd5b81515f03610ac957604051631328927760e21b815260040160405180910390fd5b8282516020840186f590506001600160a01b0381166108e157604051633a0ba96160e11b815260040160405180910390fd5b610b0361088c565b6001600160a01b0381165f81815260208190526040808220805460ff19166001908117909155805480820182559083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b03191684179055517f83a48fbcfc991335314e74d0496aab6a1987e992ddc85dddbcc4d6dd6ef2e9fc9190a250565b81511515815260208083015115159082015260408083015115159082015260608083015115159082015260808101610402565b5f5b83811015610bda578181015183820152602001610bc2565b50505f910152565b5f8151808452610bf9816020860160208601610bc0565b601f01601f19169290920160200192915050565b602081525f6108e16020830184610be2565b634e487b7160e01b5f52604160045260245ffd5b6040516080810167ffffffffffffffff81118282101715610c5657610c56610c1f565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610c8557610c85610c1f565b604052919050565b5f67ffffffffffffffff831115610ca657610ca6610c1f565b610cb9601f8401601f1916602001610c5c565b9050828152838383011115610ccc575f80fd5b828260208301375f602084830101529392505050565b5f8060408385031215610cf3575f80fd5b823567ffffffffffffffff811115610d09575f80fd5b8301601f81018513610d19575f80fd5b610d2885823560208401610c8d565b95602094909401359450505050565b5f8060408385031215610d48575f80fd5b50508035926020909101359150565b602080825282518282018190525f9190848201906040850190845b81811015610d975783516001600160a01b031683529284019291840191600101610d72565b50909695505050505050565b6001600160a01b0381168114610889575f80fd5b8035610dc281610da3565b919050565b5f60208284031215610dd7575f80fd5b81356108e181610da3565b5f60208284031215610df2575f80fd5b81356001600160e01b0319811681146108e1575f80fd5b5f82601f830112610e18575f80fd5b6108e183833560208501610c8d565b5f67ffffffffffffffff821115610e4057610e40610c1f565b5060051b60200190565b8015158114610889575f80fd5b8035610dc281610e4a565b5f82601f830112610e71575f80fd5b81356020610e86610e8183610e27565b610c5c565b82815260079290921b84018101918181019086841115610ea4575f80fd5b8286015b84811015610f1c5760808189031215610ebf575f80fd5b610ec7610c33565b8135610ed281610da3565b81528185013560028110610ee4575f80fd5b81860152604082810135610ef781610da3565b90820152606082810135610f0a81610e4a565b90820152835291830191608001610ea8565b509695505050505050565b5f82601f830112610f36575f80fd5b81356020610f46610e8183610e27565b8083825260208201915060208460051b870101935086841115610f67575f80fd5b602086015b84811015610f1c5780358352918301918301610f6c565b5f60608284031215610f93575f80fd5b6040516060810181811067ffffffffffffffff82111715610fb657610fb6610c1f565b6040529050808235610fc781610da3565b81526020830135610fd781610da3565b60208201526040830135610fea81610da3565b6040919091015292915050565b5f805f805f805f805f806101808b8d031215611011575f80fd5b8a3567ffffffffffffffff80821115611028575f80fd5b6110348e838f01610e09565b9b5060208d0135915080821115611049575f80fd5b6110558e838f01610e09565b9a5060408d013591508082111561106a575f80fd5b6110768e838f01610e62565b995060608d013591508082111561108b575f80fd5b506110988d828e01610f27565b9750506110a88c60808d01610f83565b955060e08b013594506110be6101008c01610db7565b93506110cd6101208c01610e57565b92506110dc6101408c01610e57565b91506101608b013590509295989b9194979a5092959850565b600181811c9082168061110957607f821691505b60208210810361112757634e487b7160e01b5f52602260045260245ffd5b50919050565b5f815161113e818560208601610bc0565b9290920192915050565b5f8084545f60018260011c9150600183168061116557607f831692505b6020808410820361118457634e487b7160e01b5f52602260045260245ffd5b81801561119857600181146111ad576111d8565b60ff19861689528415158502890196506111d8565b5f8b8152602090205f5b868110156111d05781548b8201529085019083016111b7565b505084890196505b5050505050506111e8818561112d565b95945050505050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610402576104026111f1565b81810381811115610402576104026111f1565b634e487b7160e01b5f52603260045260245ffd5b5f6020828403121561124f575f80fd5b81516108e181610da3565b604081525f835160a0604084015261127560e0840182610be2565b9050602080860151603f19808685030160608701526112948483610be2565b604089015160808801526060890151878203830160a0890152805180835290850195505f9350908401905b808410156112df57855182529484019460019390930192908401906112bf565b5060808901519450818782030160c08801526112fb8186610be2565b9550505050611314818501866001600160a01b03169052565b50509392505050565b6001600160a01b0389811682526101a060208084018290528a519184018290525f926101c08501928c83019290855b818110156113aa578451848151168752838101516002811061137c57634e487b7160e01b5f52602160045260245ffd5b878501526040818101518616908801526060908101511515908701526080909501949382019360010161134c565b50505050506040830189905263ffffffff881660608401529050851515608083015284516001600160a01b0390811660a08401526020860151811660c084015260408601511660e08301526001600160a01b038416610100830152825115156101208301526020830151151561014083015260408301511515610160830152606083015115156101808301529998505050505050505050565b5f60208284031215611453575f80fd5b81516108e181610e4a56fea264697066735822122045ed9da5422aea63c3e0fbf5ddfbf04f990191b99f58871829aef56f2852571b64736f6c634300081800336102c060405234801562000011575f80fd5b506040516200422d3803806200422d83398101604081905262000034916200054f565b81608001518182845f015185602001518282604051806040016040528060018152602001603160f81b815250620000755f83620002f160201b90919060201c565b6101205262000086816001620002f1565b61014052815160208084019190912060e052815190820120610100524660a0526200011360e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b60805250503060c0526001600160a01b0316610160526003620001378382620006d8565b506004620001468282620006d8565b505050506001600160a01b031661018052620001628162000329565b5060408201516101a08190526060830151516200018091906200033b565b5f805b6101a0518160ff161015620002be575f84606001518260ff1681518110620001af57620001af620007a4565b60200260200101519050662386f26fc10000811015620001e25760405163bd39358360e01b815260040160405180910390fd5b620001ee8184620007cc565b92508160ff165f0362000207576101c0819052620002aa565b8160ff166001036200021f576101e0819052620002aa565b8160ff166002036200023757610200819052620002aa565b8160ff166003036200024f57610220819052620002aa565b8160ff166004036200026757610240819052620002aa565b8160ff166005036200027f57610260819052620002aa565b8160ff166006036200029757610280819052620002aa565b8160ff16600703620002aa576102a08190525b50620002b681620007e2565b905062000183565b50670de0b6b3a76400008114620002e857604051631ce788a760e11b815260040160405180910390fd5b5050506200085b565b5f602083511015620003105762000308836200035c565b905062000323565b816200031d8482620006d8565b5060ff90505b92915050565b6005620003378282620006d8565b5050565b808214620003375760405163aaad13f760e01b815260040160405180910390fd5b5f80829050601f8151111562000392578260405163305a27a960e01b815260040162000389919062000803565b60405180910390fd5b80516200039f8262000837565b179392505050565b634e487b7160e01b5f52604160045260245ffd5b60405160a081016001600160401b0381118282101715620003e057620003e0620003a7565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620004115762000411620003a7565b604052919050565b5f5b83811015620004355781810151838201526020016200041b565b50505f910152565b5f82601f8301126200044d575f80fd5b81516001600160401b03811115620004695762000469620003a7565b6200047e601f8201601f1916602001620003e6565b81815284602083860101111562000493575f80fd5b620004a682602083016020870162000419565b949350505050565b5f82601f830112620004be575f80fd5b815160206001600160401b03821115620004dc57620004dc620003a7565b8160051b620004ed828201620003e6565b928352848101820192828101908785111562000507575f80fd5b83870192505b8483101562000528578251825291830191908301906200050d565b979650505050505050565b80516001600160a01b03811681146200054a575f80fd5b919050565b5f806040838503121562000561575f80fd5b82516001600160401b038082111562000578575f80fd5b9084019060a082870312156200058c575f80fd5b62000596620003bb565b825182811115620005a5575f80fd5b620005b3888286016200043d565b825250602083015182811115620005c8575f80fd5b620005d6888286016200043d565b60208301525060408301516040820152606083015182811115620005f8575f80fd5b6200060688828601620004ae565b6060830152506080830151828111156200061e575f80fd5b6200062c888286016200043d565b6080830152509350620006459150506020840162000533565b90509250929050565b600181811c908216806200066357607f821691505b6020821081036200068257634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620006d357805f5260205f20601f840160051c81016020851015620006af5750805b601f840160051c820191505b81811015620006d0575f8155600101620006bb565b50505b505050565b81516001600160401b03811115620006f457620006f4620003a7565b6200070c816200070584546200064e565b8462000688565b602080601f83116001811462000742575f84156200072a5750858301515b5f19600386901b1c1916600185901b1785556200079c565b5f85815260208120601f198616915b82811015620007725788860151825594840194600190910190840162000751565b50858210156200079057878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115620003235762000323620007b8565b5f60ff821660ff8103620007fa57620007fa620007b8565b60010192915050565b602081525f82518060208401526200082381604085016020870162000419565b601f01601f19169190910160400192915050565b8051602080830151919081101562000682575f1960209190910360031b1b16919050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a05161385c620009d15f395f818161154f01526119b201525f8181611520015261196901525f81816114f1015261192001525f81816114c201526118d701525f8181611493015261188e01525f8181611464015261184501525f818161143501526117fc01525f818161140601526117bd01525f61175701525f8181610b7301528181610cf901528181610d9201528181610e23015261115001525f81816103f3015281816105b0015281816106750152818161072201528181610835015281816108bf015281816109e701528181610cb001528181610eec01528181610f76015281816110040152818161109e015281816112d90152818161137f01526115e801525f611b3b01525f611b0f01525f61170301525f6116db01525f61163601525f61166001525f61168a015261385c5ff3fe608060405234801561000f575f80fd5b5060043610610213575f3560e01c806372c981861161011f578063abb1dc44116100a9578063ce20ece711610079578063ce20ece7146104b0578063d335b0cf146104bc578063d505accf146104c4578063dd62ed3e146104d7578063f89f27ed146104ea575f80fd5b8063abb1dc4414610460578063b156aa0a14610478578063b677fa561461048d578063c0bc6f331461049b575f80fd5b80638d928af8116100ef5780638d928af8146103e657806395d89b411461041d578063984de9e814610425578063a9059cbb14610438578063aa6ca8081461044b575f80fd5b806372c98186146103885780637ecebe001461039b57806381fa807c146103ae57806384b0196e146103cb575f80fd5b8063313ce567116101a05780635687f2b8116101705780635687f2b814610332578063627cdcb914610345578063654cf15d1461035f578063679aefce1461036d57806370a0823114610375575f80fd5b8063313ce567146102fe5780633644e5151461030d57806353b79bd71461031557806354fd4d501461032a575f80fd5b806318160ddd116101e657806318160ddd1461029957806323b872dd146102a157806323de6651146102b4578063273c1adf146102c957806330adf81f146102d7575f80fd5b806301ffc9a71461021757806306fdde0314610250578063095ea7b31461026557806316a0b3e014610278575b5f80fd5b61023b610225366004612b6b565b6001600160e01b0319166301ffc9a760e01b1490565b60405190151581526020015b60405180910390f35b6102586104f2565b6040516102479190612bd5565b61023b610273366004612c06565b610582565b61028b610286366004612d6f565b610629565b604051908152602001610247565b61028b61065e565b61023b6102af366004612db8565b6106ec565b6102c76102c2366004612db8565b610799565b005b6729a2241af62c000061028b565b61028b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60405160128152602001610247565b61028b6107f3565b61031d6107fc565b6040516102479190612e68565b610258610948565b6102c7610340366004612db8565b610957565b6102c7335f90815260026020526040902080546001019055565b67016345785d8a000061028b565b61028b6109a7565b61028b610383366004612ec8565b6109c0565b61028b610396366004612f65565b610a52565b61028b6103a9366004612ec8565b610b33565b6103b6610b50565b60408051928352602083019190915201610247565b6103d3610bf2565b604051610247979695949392919061302f565b6040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152602001610247565b610258610c34565b61028b610433366004613090565b610c43565b61023b610446366004612c06565b610c82565b610453610ce1565b60405161024791906130de565b610468610d6c565b6040516102479493929190613104565b610480610e0b565b60405161024791906131be565b6709b6e64a8ec6000061028b565b6104a3610e96565b60405161024791906131d0565b6509184e72a00061028b565b61028b611139565b6102c76104d236600461324e565b611187565b61028b6104e53660046132bf565b611350565b6104806113f1565b606060038054610501906132eb565b80601f016020809104026020016040519081016040528092919081815260200182805461052d906132eb565b80156105785780601f1061054f57610100808354040283529160200191610578565b820191905f5260205f20905b81548152906001019060200180831161055b57829003601f168201915b5050505050905090565b60405163e1f21c6760e01b81523360048201526001600160a01b038381166024830152604482018390525f917f00000000000000000000000000000000000000000000000000000000000000009091169063e1f21c67906064015b6020604051808303815f875af11580156105f9573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061061d9190613332565b50600190505b92915050565b5f61065684848151811061063f5761063f61334b565b6020026020010151610650856113fb565b8461158c565b949350505050565b6040516339370aa960e21b81523060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e4dc2aa4906024015b602060405180830381865afa1580156106c3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106e7919061335f565b905090565b604051630aed65f560e11b81523360048201526001600160a01b0384811660248301528381166044830152606482018390525f917f0000000000000000000000000000000000000000000000000000000000000000909116906315dacbea906084016020604051808303815f875af115801561076a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061078e9190613332565b506001949350505050565b6107a16115dd565b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516107e691815260200190565b60405180910390a3505050565b5f6106e761162a565b61082060405180606001604052806060815260200160608152602001606081525090565b60405163ca4f280360e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063ca4f2803906024015f60405180830381865afa158015610881573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526108a891908101906133db565b8152604051633f1b0def60e11b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690637e361bde906024015f60405180830381865afa15801561090b573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526109329190810190613468565b506020820152610940611753565b604082015290565b606060058054610501906132eb565b61095f6115dd565b816001600160a01b0316836001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516107e691815260200190565b50565b5f60405162c73cd160e51b815260040160405180910390fd5b604051633de222bb60e21b81523060048201526001600160a01b0382811660248301525f917f00000000000000000000000000000000000000000000000000000000000000009091169063f7888aec90604401602060405180830381865afa158015610a2e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610623919061335f565b5f610a5b6115dd565b5f8260400151836060015181518110610a7657610a7661334b565b602002602001015190505f8360400151846080015181518110610a9b57610a9b61334b565b602002602001015190505f6001811115610ab757610ab76130f0565b84516001811115610aca57610aca6130f0565b03610b04575f610af983610ae187606001516113fb565b84610aef89608001516113fb565b89602001516119f6565b9350610b2e92505050565b5f610af983610b1687606001516113fb565b84610b2489608001516113fb565b8960200151611a85565b919050565b6001600160a01b0381165f90815260026020526040812054610623565b60405163f29486a160e01b81523060048201525f90819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063f29486a1906024016101a060405180830381865afa158015610bb9573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bdd919061356b565b90508060400151925080606001519150509091565b5f6060805f805f6060610c03611b08565b610c0b611b34565b604080515f80825260208201909252600f60f81b9b939a50919850469750309650945092509050565b606060048054610501906132eb565b5f612b6381836001811115610c5a57610c5a6130f0565b14610c6757611b61610c6b565b611bef5b9050610656610c78611753565b858363ffffffff16565b6040516317d5759960e31b81523360048201526001600160a01b038381166024830152604482018390525f917f00000000000000000000000000000000000000000000000000000000000000009091169063beabacc8906064016105dd565b60405163ca4f280360e01b81523060048201526060907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063ca4f2803906024015f60405180830381865afa158015610d45573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526106e791908101906133db565b6040516333f0703b60e11b81523060048201526060908190819081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367e0e076906024015f60405180830381865afa158015610dd6573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610dfd9190810190613621565b935093509350935090919293565b6040516329ae7ec560e11b81523060048201526060907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063535cfd8a906024015f60405180830381865afa158015610e6f573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526106e7919081019061375d565b610ed76040518060e0016040528060608152602001606081526020015f81526020015f81526020015f151581526020015f151581526020015f151581525090565b6040516329ae7ec560e11b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063535cfd8a906024015f60405180830381865afa158015610f38573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610f5f919081019061375d565b8152604051633f1b0def60e11b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690637e361bde906024015f60405180830381865afa158015610fc2573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610fe99190810190613468565b60208301525060405163b45090f960e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063b45090f990602401602060405180830381865afa158015611051573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611075919061335f565b604082015261108261065e565b606082015260405163f29486a160e01b81523060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f29486a1906024016101a060405180830381865afa1580156110ec573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611110919061356b565b60e081015115156080840152610100810151151560a08401526101200151151560c08301525090565b60405163b45090f960e01b81523060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063b45090f9906024016106a8565b834211156111b05760405163313c898160e11b8152600481018590526024015b60405180910390fd5b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886111fb8c6001600160a01b03165f90815260026020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090505f61125582611c5c565b90505f61126482878787611c88565b9050896001600160a01b0316816001600160a01b0316146112ab576040516325c0072360e11b81526001600160a01b0380831660048301528b1660248201526044016111a7565b60405163e1f21c6760e01b81526001600160a01b038b811660048301528a81166024830152604482018a90527f0000000000000000000000000000000000000000000000000000000000000000169063e1f21c67906064016020604051808303815f875af115801561131f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113439190613332565b5050505050505050505050565b60405163927da10560e01b81523060048201526001600160a01b03838116602483015282811660448301525f917f00000000000000000000000000000000000000000000000000000000000000009091169063927da10590606401602060405180830381865afa1580156113c6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113ea919061335f565b9392505050565b60606106e7611753565b5f815f0361142a57507f0000000000000000000000000000000000000000000000000000000000000000919050565b8160010361145957507f0000000000000000000000000000000000000000000000000000000000000000919050565b8160020361148857507f0000000000000000000000000000000000000000000000000000000000000000919050565b816003036114b757507f0000000000000000000000000000000000000000000000000000000000000000919050565b816004036114e657507f0000000000000000000000000000000000000000000000000000000000000000919050565b8160050361151557507f0000000000000000000000000000000000000000000000000000000000000000919050565b8160060361154457507f0000000000000000000000000000000000000000000000000000000000000000919050565b8160070361157357507f0000000000000000000000000000000000000000000000000000000000000000919050565b60405163c1ab6dc160e01b815260040160405180910390fd5b5f612b63600183116115a057611cb46115a4565b611cd45b90505f6115c76115c0670de0b6b3a7640000878563ffffffff16565b8590611ce8565b90506115d38682611d9b565b9695505050505050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146116285760405163089676d560e01b81523360048201526024016111a7565b565b5f306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561168257507f000000000000000000000000000000000000000000000000000000000000000046145b156116ac57507f000000000000000000000000000000000000000000000000000000000000000090565b6106e7604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b60607f00000000000000000000000000000000000000000000000000000000000000005f816001600160401b0381111561178f5761178f612c30565b6040519080825280602002602001820160405280156117b8578160200160208202803683370190505b5090507f0000000000000000000000000000000000000000000000000000000000000000815f815181106117ee576117ee61334b565b6020026020010181815250507f00000000000000000000000000000000000000000000000000000000000000008160018151811061182e5761182e61334b565b6020026020010181815250506002821115610623577f0000000000000000000000000000000000000000000000000000000000000000816002815181106118775761187761334b565b6020026020010181815250506003821115610623577f0000000000000000000000000000000000000000000000000000000000000000816003815181106118c0576118c061334b565b6020026020010181815250506004821115610623577f0000000000000000000000000000000000000000000000000000000000000000816004815181106119095761190961334b565b6020026020010181815250506005821115610623577f0000000000000000000000000000000000000000000000000000000000000000816005815181106119525761195261334b565b6020026020010181815250506006821115610623577f00000000000000000000000000000000000000000000000000000000000000008160068151811061199b5761199b61334b565b6020026020010181815250506007821115610623577f0000000000000000000000000000000000000000000000000000000000000000816007815181106119e4576119e461334b565b60200260200101818152505092915050565b5f611a0986670429d069189e0000611dc7565b821115611a295760405163340a453360e01b815260040160405180910390fd5b5f611a3483886137a2565b90505f611a418883611cd4565b90505f611a4e8887611cb4565b90505f611a5b8383611ce8565b9050611a77670de0b6b3a7640000828103908310028990611dc7565b9a9950505050505050505050565b5f611a9884670429d069189e0000611dc7565b821115611ab8576040516364590b9f60e01b815260040160405180910390fd5b5f611acd611ac684876137b5565b8690611cd4565b90505f611ada8588611cd4565b90505f611ae78383611ce8565b90505f611afc670de0b6b3a7640000836137b5565b9050611a778a82611d9b565b60606106e77f00000000000000000000000000000000000000000000000000000000000000005f611de7565b60606106e77f00000000000000000000000000000000000000000000000000000000000000006001611de7565b670de0b6b3a76400005f5b8351811015611bce57611bc4611bbd858381518110611b8d57611b8d61334b565b6020026020010151858481518110611ba757611ba761334b565b6020026020010151611e8990919063ffffffff16565b8390611dc7565b9150600101611b6c565b50805f0361062357604051632654368960e01b815260040160405180910390fd5b670de0b6b3a76400005f5b8351811015611bce57611c52611c4b858381518110611c1b57611c1b61334b565b6020026020010151858481518110611c3557611c3561334b565b6020026020010151611ce890919063ffffffff16565b8390611d9b565b9150600101611bfa565b5f610623611c6861162a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f805f80611c9888888888611f35565b925092509250611ca88282611ffd565b50909695505050505050565b5f80611cc8670de0b6b3a7640000856137c8565b905061065683826137f3565b5f6113ea83670de0b6b3a7640000846120b9565b5f670de0b6b3a76400008203611cff575081610623565b611d12670de0b6b3a764000060026137c8565b8203611d2957611d228384611d9b565b9050610623565b611d3c670de0b6b3a764000060046137c8565b8203611d61575f611d4d8485611d9b565b9050611d598182611d9b565b915050610623565b5f611d6c84846120fe565b90505f611d7b82612710611d9b565b611d869060016137a2565b9050611d9281836137a2565b92505050610623565b5f80611da783856137c8565b90506001670de0b6b3a76400006001830304018115150291505092915050565b5f80611dd383856137c8565b9050610656670de0b6b3a7640000826137f3565b606060ff8314611dfa57611d2283612234565b818054611e06906132eb565b80601f0160208091040260200160405190810160405280929190818152602001828054611e32906132eb565b8015611e7d5780601f10611e5457610100808354040283529160200191611e7d565b820191905f5260205f20905b815481529060010190602001808311611e6057829003601f168201915b50505050509050610623565b5f670de0b6b3a76400008203611ea0575081610623565b611eb3670de0b6b3a764000060026137c8565b8203611ec357611d228384611dc7565b611ed6670de0b6b3a764000060046137c8565b8203611ef3575f611ee78485611dc7565b9050611d598182611dc7565b5f611efe84846120fe565b90505f611f0d82612710611d9b565b611f189060016137a2565b905080821015611f2c575f92505050610623565b90039050610623565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841115611f6e57505f91506003905082611ff3565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015611fbf573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b038116611fea57505f925060019150829050611ff3565b92505f91508190505b9450945094915050565b5f826003811115612010576120106130f0565b03612019575050565b600182600381111561202d5761202d6130f0565b0361204b5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561205f5761205f6130f0565b036120805760405163fce698f760e01b8152600481018290526024016111a7565b6003826003811115612094576120946130f0565b036120b5576040516335e2f38360e21b8152600481018290526024016111a7565b5050565b5f815f036120da57604051630a0c22c760e01b815260040160405180910390fd5b5f6120e584866137c8565b9050600183600183030401811515029150509392505050565b5f815f036121155750670de0b6b3a7640000610623565b825f0361212357505f610623565b60ff83901c15612145576040516211380f60e51b815260040160405180910390fd5b8261215d68056bc75e2d63100000600160fe1b6137f3565b831061217c5760405163d831731160e01b815260040160405180910390fd5b825f670c7d713b49da00008313801561219c5750670f43fc2c04ee000083125b156121d2575f6121ab84612271565b9050670de0b6b3a764000080820784020583670de0b6b3a7640000830502019150506121e0565b816121dc8461238e565b0290505b670de0b6b3a76400009005680238fd42c5cf03ffff19811280159061220e575068070c1cc73b00c800008113155b61222b5760405163a2f9f7e360e01b815260040160405180910390fd5b6115d38161273f565b60605f61224083612b3c565b6040805160208082528183019092529192505f91906020820181803683375050509182525060208101929092525090565b670de0b6b3a7640000025f806a0c097ce7bc90715b34b9f160241b808401906ec097ce7bc90715b34b9f0fffffffff19850102816122b1576122b16137df565b0590505f6a0c097ce7bc90715b34b9f160241b82800205905081806a0c097ce7bc90715b34b9f160241b81840205915060038205016a0c097ce7bc90715b34b9f160241b82840205915060058205016a0c097ce7bc90715b34b9f160241b82840205915060078205016a0c097ce7bc90715b34b9f160241b82840205915060098205016a0c097ce7bc90715b34b9f160241b828402059150600b8205016a0c097ce7bc90715b34b9f160241b828402059150600d8205016a0c097ce7bc90715b34b9f160241b828402059150600f82050160020295945050505050565b5f80670de0b6b3a76400008312156123c557826a0c097ce7bc90715b34b9f160241b816123bd576123bd6137df565b059250600190505b5f7e1600ef3172e58d2e933ec884fde10064c63b5372d805e203c0000000000000841261241557770195e54c5dd42177f53a27172fa9ec630262827000000000840593506806f05b59d3b2000000015b73011798004d755d3c8bc8e03204cf44619e000000841261244d576b1425982cf597cd205cef7380840593506803782dace9d9000000015b606493840293026e01855144814a7ff805980ff00840008412612495576e01855144814a7ff805980ff008400068056bc75e2d63100000850205935068ad78ebc5ac62000000015b6b02df0ab5a80a22c61ab5a70084126124d0576b02df0ab5a80a22c61ab5a70068056bc75e2d6310000085020593506856bc75e2d631000000015b693f1fce3da636ea5cf850841261250757693f1fce3da636ea5cf85068056bc75e2d631000008502059350682b5e3af16b18800000015b690127fa27722cc06cc5e2841261253e57690127fa27722cc06cc5e268056bc75e2d6310000085020593506815af1d78b58c400000015b68280e60114edb805d0384126125735768280e60114edb805d0368056bc75e2d631000008502059350680ad78ebc5ac6200000015b680ebc5fb41746121110841261259e57680ebc5fb4174612111068056bc75e2d631000009485020593015b6808f00f760a4b2db55d84126125d3576808f00f760a4b2db55d68056bc75e2d6310000085020593506802b5e3af16b1880000015b6806f5f17757889379378412612608576806f5f177578893793768056bc75e2d63100000850205935068015af1d78b58c40000015b6806248f33704b286603841261263c576806248f33704b28660368056bc75e2d63100000850205935067ad78ebc5ac620000015b6805c548670b9510e7ac8412612670576805c548670b9510e7ac68056bc75e2d6310000085020593506756bc75e2d6310000015b5f68056bc75e2d63100000850168056bc75e2d631000008087030281612698576126986137df565b0590505f68056bc75e2d63100000828002059050818068056bc75e2d63100000818402059150600382050168056bc75e2d63100000828402059150600582050168056bc75e2d63100000828402059150600782050168056bc75e2d63100000828402059150600982050168056bc75e2d63100000828402059150600b8205016002025f60648683010590508661272e5780612732565b805f035b9998505050505050505050565b5f680238fd42c5cf03ffff198212158015612763575068070c1cc73b00c800008213155b6127805760405163d4794efd60e01b815260040160405180910390fd5b5f8083121561279357825f039250600190505b5f6806f05b59d3b200000084126127d257506806f05b59d3b1ffffff1990920191770195e54c5dd42177f53a27172fa9ec630262827000000000612808565b6803782dace9d9000000841261280457506803782dace9d8ffffff19909201916b1425982cf597cd205cef7380612808565b5060015b6064939093029268056bc75e2d6310000068ad78ebc5ac6200000085126128585768ad78ebc5ac61ffffff199094019368056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d6310000008512612894576856bc75e2d630ffffff199094019368056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b1880000085126128ce57682b5e3af16b187fffff199094019368056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c4000008512612908576815af1d78b58c3fffff199094019368056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac6200000851261294157680ad78ebc5ac61fffff199094019368056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d63100000851261297a5768056bc75e2d630fffff199094019368056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b188000085126129b3576802b5e3af16b187ffff199094019368056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c4000085126129ec5768015af1d78b58c3ffff199094019368056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008581019086906002908280020505918201919050600368056bc75e2d631000008883020505918201919050600468056bc75e2d631000008883020505918201919050600568056bc75e2d631000008883020505918201919050600668056bc75e2d631000008883020505918201919050600768056bc75e2d631000008883020505918201919050600868056bc75e2d631000008883020505918201919050600968056bc75e2d631000008883020505918201919050600a68056bc75e2d631000008883020505918201919050600b68056bc75e2d631000008883020505918201919050600c68056bc75e2d6310000088830205059182019190505f606468056bc75e2d6310000085850205860205905085612b115780612b30565b806a0c097ce7bc90715b34b9f160241b81612b2e57612b2e6137df565b055b98975050505050505050565b5f60ff8216601f81111561062357604051632cd44ac360e21b815260040160405180910390fd5b611628613812565b5f60208284031215612b7b575f80fd5b81356001600160e01b0319811681146113ea575f80fd5b5f81518084525f5b81811015612bb657602081850181015186830182015201612b9a565b505f602082860101526020601f19601f83011685010191505092915050565b602081525f6113ea6020830184612b92565b6001600160a01b03811681146109a4575f80fd5b8035610b2e81612be7565b5f8060408385031215612c17575f80fd5b8235612c2281612be7565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b60405160e081016001600160401b0381118282101715612c6657612c66612c30565b60405290565b60405161014081016001600160401b0381118282101715612c6657612c66612c30565b604051606081016001600160401b0381118282101715612c6657612c66612c30565b604051601f8201601f191681016001600160401b0381118282101715612cd957612cd9612c30565b604052919050565b5f6001600160401b03821115612cf957612cf9612c30565b5060051b60200190565b5f82601f830112612d12575f80fd5b81356020612d27612d2283612ce1565b612cb1565b8083825260208201915060208460051b870101935086841115612d48575f80fd5b602086015b84811015612d645780358352918301918301612d4d565b509695505050505050565b5f805f60608486031215612d81575f80fd5b83356001600160401b03811115612d96575f80fd5b612da286828701612d03565b9660208601359650604090950135949350505050565b5f805f60608486031215612dca575f80fd5b8335612dd581612be7565b92506020840135612de581612be7565b929592945050506040919091013590565b5f815180845260208085019450602084015f5b83811015612e2e5781516001600160a01b031687529582019590820190600101612e09565b509495945050505050565b5f815180845260208085019450602084015f5b83811015612e2e57815187529582019590820190600101612e4c565b602081525f825160606020840152612e836080840182612df6565b90506020840151601f1980858403016040860152612ea18383612e39565b9250604086015191508085840301606086015250612ebf8282612e39565b95945050505050565b5f60208284031215612ed8575f80fd5b81356113ea81612be7565b600281106109a4575f80fd5b8035610b2e81612ee3565b5f82601f830112612f09575f80fd5b81356001600160401b03811115612f2257612f22612c30565b612f35601f8201601f1916602001612cb1565b818152846020838601011115612f49575f80fd5b816020850160208301375f918101602001919091529392505050565b5f60208284031215612f75575f80fd5b81356001600160401b0380821115612f8b575f80fd5b9083019060e08286031215612f9e575f80fd5b612fa6612c44565b612faf83612eef565b815260208301356020820152604083013582811115612fcc575f80fd5b612fd887828601612d03565b6040830152506060830135606082015260808301356080820152612ffe60a08401612bfb565b60a082015260c083013582811115613014575f80fd5b61302087828601612efa565b60c08301525095945050505050565b60ff60f81b8816815260e060208201525f61304d60e0830189612b92565b828103604084015261305f8189612b92565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050611a778185612e39565b5f80604083850312156130a1575f80fd5b82356001600160401b038111156130b6575f80fd5b6130c285828601612d03565b92505060208301356130d381612ee3565b809150509250929050565b602081525f6113ea6020830184612df6565b634e487b7160e01b5f52602160045260245ffd5b608081525f6131166080830187612df6565b8281036020848101919091528651808352878201928201905f5b8181101561318957845180516002811061315857634e487b7160e01b5f52602160045260245ffd5b8452808501516001600160a01b03168585015260409081015115159084015293830193606090920191600101613130565b5050848103604086015261319d8188612e39565b9250505082810360608401526131b38185612e39565b979650505050505050565b602081525f6113ea6020830184612e39565b602081525f825160e060208401526131ec610100840182612e39565b90506020840151601f198483030160408501526132098282612e39565b91505060408401516060840152606084015160808401526080840151151560a084015260a0840151151560c084015260c0840151151560e08401528091505092915050565b5f805f805f805f60e0888a031215613264575f80fd5b873561326f81612be7565b9650602088013561327f81612be7565b95506040880135945060608801359350608088013560ff811681146132a2575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f80604083850312156132d0575f80fd5b82356132db81612be7565b915060208301356130d381612be7565b600181811c908216806132ff57607f821691505b60208210810361331d57634e487b7160e01b5f52602260045260245ffd5b50919050565b80518015158114610b2e575f80fd5b5f60208284031215613342575f80fd5b6113ea82613323565b634e487b7160e01b5f52603260045260245ffd5b5f6020828403121561336f575f80fd5b5051919050565b5f82601f830112613385575f80fd5b81516020613395612d2283612ce1565b8083825260208201915060208460051b8701019350868411156133b6575f80fd5b602086015b84811015612d645780516133ce81612be7565b83529183019183016133bb565b5f602082840312156133eb575f80fd5b81516001600160401b03811115613400575f80fd5b61065684828501613376565b5f82601f83011261341b575f80fd5b8151602061342b612d2283612ce1565b8083825260208201915060208460051b87010193508684111561344c575f80fd5b602086015b84811015612d645780518352918301918301613451565b5f8060408385031215613479575f80fd5b82516001600160401b038082111561348f575f80fd5b61349b8683870161340c565b935060208501519150808211156134b0575f80fd5b506134bd8582860161340c565b9150509250929050565b5f608082840312156134d7575f80fd5b604051608081018181106001600160401b03821117156134f9576134f9612c30565b60405290508061350883613323565b815261351660208401613323565b602082015261352760408401613323565b604082015261353860608401613323565b60608201525092915050565b805164ffffffffff81168114610b2e575f80fd5b805163ffffffff81168114610b2e575f80fd5b5f6101a0828403121561357c575f80fd5b613584612c6c565b61358e84846134c7565b81526080830151602082015260a0830151604082015260c083015160608201526135ba60e08401613544565b60808201526101006135cd818501613558565b60a08301526101206135e0818601613323565b60c08401526135f26101408601613323565b60e08401526136046101608601613323565b828401526136156101808601613323565b90830152509392505050565b5f805f8060808587031215613634575f80fd5b84516001600160401b038082111561364a575f80fd5b61365688838901613376565b955060209150818701518181111561366c575f80fd5b8701601f8101891361367c575f80fd5b805161368a612d2282612ce1565b8181526060918202830185019185820191908c8411156136a8575f80fd5b938601935b838510156137095780858e0312156136c3575f80fd5b6136cb612c8f565b85516136d681612ee3565b8152858801516136e581612be7565b8189015260406136f6878201613323565b90820152835293840193918601916136ad565b5060408b0151909850945050505080821115613723575f80fd5b61372f8883890161340c565b93506060870151915080821115613744575f80fd5b506137518782880161340c565b91505092959194509250565b5f6020828403121561376d575f80fd5b81516001600160401b03811115613782575f80fd5b6106568482850161340c565b634e487b7160e01b5f52601160045260245ffd5b808201808211156106235761062361378e565b818103818111156106235761062361378e565b80820281158282048414176106235761062361378e565b634e487b7160e01b5f52601260045260245ffd5b5f8261380d57634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52605160045260245ffdfea264697066735822122046763c367cd86ec9a31a3a40972191cb037edcc213aa38d2d9a60e8ee07ee6d464736f6c63430008180033000000000000000000000000ba1333333333a1ba1108e8412f11850a5c319ba90000000000000000000000000000000000000000000000000000000001e13380000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000a466163746f7279207631000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007506f6f6c20763100000000000000000000000000000000000000000000000000", + "nonce": "0x33af", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CREATE", + "contractName": "ExitFeeHookExample", + "contractAddress": "0x6d3fdf461f8ca0c6ca9928705687f3794a2cb671", + "function": null, + "arguments": [ + "0xbA1333333333a1BA1108E8412f11850A5C319bA9" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "gas": "0x188f9b", + "value": "0x0", + "input": "0x60a060405234801561000f575f80fd5b506040516115fc3803806115fc83398101604081905261002e916100bf565b6001600160a01b038116608052338061006057604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b61006981610070565b50506100ec565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f602082840312156100cf575f80fd5b81516001600160a01b03811681146100e5575f80fd5b9392505050565b6080516114ea6101125f395f81816103820152818161055e015261079501526114ea5ff3fe608060405234801561000f575f80fd5b5060043610610106575f3560e01c8063715018a61161009e578063a6ddbe021161006e578063a6ddbe021461025a578063ba5f9f4014610269578063d77153a714610277578063ea2f6f7a1461028c578063f2fde38b1461029f575f80fd5b8063715018a6146102015780638da5cb5b1461020b578063976907cc14610225578063a0e8f5ac14610242575f80fd5b806338be241d116100d957806338be241d1461019257806345421ec7146101a85780634bdd9fe6146101c25780635211fa77146101f3575f80fd5b80630b89f1821461010a57806318b6eb55146101325780631c149e281461015e5780632754888d14610171575b5f80fd5b61011d6101183660046109a2565b6102b2565b60405190151581526020015b60405180910390f35b610147610140366004610ac7565b505f908190565b604080519215158352602083019190915201610129565b61011d61016c366004610bdf565b61032c565b61018461017f366004610c4c565b610334565b604051610129929190610d2b565b61011d6101a0366004610d7b565b5f9392505050565b61011d6101b6366004610df0565b5f979650505050505050565b5f546101db90600160a01b90046001600160401b031681565b6040516001600160401b039091168152602001610129565b61011d61016c366004610ebf565b610209610660565b005b5f546040516001600160a01b039091168152602001610129565b610184610233366004610f0d565b5f849850989650505050505050565b610147610250366004610fae565b5f80935093915050565b6101db67016345785d8a000081565b61011d6101b6366004611003565b61027f610673565b6040516101299190611085565b61020961029a36600461113d565b610693565b6102096102ad366004611163565b61074d565b5f6102bb61078a565b6102cb608083016060840161117e565b15155f036102ec57604051636fe7a42d60e11b815260040160405180910390fd5b6040516001600160a01b0385169030907f3821b125c944c16bb117550ddb8765fb7f6138a5dca86e4a2a265f552dd0c59b905f90a3506001949350505050565b5f5b92915050565b5f606061033f61078a565b5f88600381111561035257610352611197565b1461036157505f905083610653565b60405163ca4f280360e01b81526001600160a01b038a811660048301525f917f00000000000000000000000000000000000000000000000000000000000000009091169063ca4f2803906024015f60405180830381865afa1580156103c8573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526103ef91908101906111ab565b90505f81516001600160401b0381111561040b5761040b6108ef565b604051908082528060200260200182016040528015610434578160200160208202803683370190505b505f54889450909150600160a01b90046001600160401b03161561064c575f5b875181101561055b575f8054895161049f91600160a01b90046001600160401b0316908b90859081106104895761048961123f565b60200260200101516107d590919063ffffffff16565b9050808383815181106104b4576104b461123f565b602002602001018181525050808583815181106104d3576104d361123f565b602002602001018181516104e79190611267565b90525083518490839081106104fe576104fe61123f565b60200260200101516001600160a01b03168d6001600160a01b03167f70a4868eae45ffc86aa2da146051ad91fcf2a4222b8f737ddd5e4354f15088428360405161054a91815260200190565b60405180910390a350600101610454565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634af29ec46040518060c001604052808e6001600160a01b03168152602001336001600160a01b031681526020018481526020015f8152602001600360048111156105d3576105d3611197565b815260200160405180602001604052805f8152508152506040518263ffffffff1660e01b815260040161060691906112e7565b5f604051808303815f875af1158015610621573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261064891908101906113cb565b5050505b6001935050505b9850989650505050505050565b6106686107fd565b6106715f610829565b565b61067b610878565b610683610878565b6001808252610120820152919050565b61069b6107fd565b67016345785d8a00006001600160401b03821611156106eb57604051630158c6d760e21b81526001600160401b038216600482015267016345785d8a000060248201526044015b60405180910390fd5b5f805467ffffffffffffffff60a01b1916600160a01b6001600160401b0384169081029190911790915560405190815230907f478db868729e0648ee7be6cb2a2a864333d8efe68d3a5ee1a7cce6e6895d57119060200160405180910390a250565b6107556107fd565b6001600160a01b03811661077e57604051631e4fbdf760e01b81525f60048201526024016106e2565b61078781610829565b50565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146106715760405163089676d560e01b81523360048201526024016106e2565b5f806107e1838561147e565b90506107f5670de0b6b3a764000082611495565b949350505050565b5f546001600160a01b031633146106715760405163118cdaa760e01b81523360048201526024016106e2565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60408051610140810182525f80825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081019190915290565b6001600160a01b0381168114610787575f80fd5b80356108ea816108cb565b919050565b634e487b7160e01b5f52604160045260245ffd5b604051608081016001600160401b0381118282101715610925576109256108ef565b60405290565b604051601f8201601f191681016001600160401b0381118282101715610953576109536108ef565b604052919050565b5f6001600160401b03821115610973576109736108ef565b5060051b60200190565b803580151581146108ea575f80fd5b5f6080828403121561099c575f80fd5b50919050565b5f805f8060e085870312156109b5575f80fd5b84356109c0816108cb565b93506020858101356109d1816108cb565b93506040868101356001600160401b038111156109ec575f80fd5b8701601f810189136109fc575f80fd5b8035610a0f610a0a8261095b565b61092b565b81815260079190911b8201840190848101908b831115610a2d575f80fd5b928501925b82841015610aa6576080848d031215610a49575f80fd5b610a51610903565b8435610a5c816108cb565b81528487013560028110610a6e575f80fd5b8188015284860135610a7f816108cb565b818701526060610a9086820161097d565b9082015282526080939093019290850190610a32565b809750505050505050610abc866060870161098c565b905092959194509250565b5f60208284031215610ad7575f80fd5b81356001600160401b03811115610aec575f80fd5b82016101808185031215610afe575f80fd5b9392505050565b5f82601f830112610b14575f80fd5b81356020610b24610a0a8361095b565b8083825260208201915060208460051b870101935086841115610b45575f80fd5b602086015b84811015610b615780358352918301918301610b4a565b509695505050505050565b5f6001600160401b03821115610b8457610b846108ef565b50601f01601f191660200190565b5f82601f830112610ba1575f80fd5b8135610baf610a0a82610b6c565b818152846020838601011115610bc3575f80fd5b816020850160208301375f918101602001919091529392505050565b5f8060408385031215610bf0575f80fd5b82356001600160401b0380821115610c06575f80fd5b610c1286838701610b05565b93506020850135915080821115610c27575f80fd5b50610c3485828601610b92565b9150509250929050565b8035600481106108ea575f80fd5b5f805f805f805f80610100898b031215610c64575f80fd5b610c6d896108df565b9750610c7b60208a016108df565b9650610c8960408a01610c3e565b95506060890135945060808901356001600160401b0380821115610cab575f80fd5b610cb78c838d01610b05565b955060a08b0135915080821115610ccc575f80fd5b610cd88c838d01610b05565b945060c08b0135915080821115610ced575f80fd5b610cf98c838d01610b05565b935060e08b0135915080821115610d0e575f80fd5b50610d1b8b828c01610b92565b9150509295985092959890939650565b5f6040820184151583526020604060208501528185518084526060860191506020870193505f5b81811015610d6e57845183529383019391830191600101610d52565b5090979650505050505050565b5f805f60608486031215610d8d575f80fd5b83356001600160401b0380821115610da3575f80fd5b610daf87838801610b05565b9450602086013593506040860135915080821115610dcb575f80fd5b50610dd886828701610b92565b9150509250925092565b8035600581106108ea575f80fd5b5f805f805f805f60e0888a031215610e06575f80fd5b8735610e11816108cb565b96506020880135610e21816108cb565b9550610e2f60408901610de2565b945060608801356001600160401b0380821115610e4a575f80fd5b610e568b838c01610b05565b955060808a0135945060a08a0135915080821115610e72575f80fd5b610e7e8b838c01610b05565b935060c08a0135915080821115610e93575f80fd5b50610ea08a828b01610b92565b91505092959891949750929550565b5f60e0828403121561099c575f80fd5b5f8060408385031215610ed0575f80fd5b82356001600160401b03811115610ee5575f80fd5b610ef185828601610eaf565b9250506020830135610f02816108cb565b809150509250929050565b5f805f805f805f80610100898b031215610f25575f80fd5b610f2e896108df565b9750610f3c60208a016108df565b9650610f4a60408a01610de2565b955060608901356001600160401b0380821115610f65575f80fd5b610f718c838d01610b05565b965060808b0135915080821115610f86575f80fd5b610f928c838d01610b05565b955060a08b0135945060c08b0135915080821115610ced575f80fd5b5f805f60608486031215610fc0575f80fd5b83356001600160401b03811115610fd5575f80fd5b610fe186828701610eaf565b9350506020840135610ff2816108cb565b929592945050506040919091013590565b5f805f805f805f60e0888a031215611019575f80fd5b8735611024816108cb565b96506020880135611034816108cb565b955061104260408901610c3e565b94506060880135935060808801356001600160401b0380821115611064575f80fd5b6110708b838c01610b05565b945060a08a0135915080821115610e72575f80fd5b815115158152610140810160208301516110a3602084018215159052565b5060408301516110b7604084018215159052565b5060608301516110cb606084018215159052565b5060808301516110df608084018215159052565b5060a08301516110f360a084018215159052565b5060c083015161110760c084018215159052565b5060e083015161111b60e084018215159052565b5061010083810151151590830152610120928301511515929091019190915290565b5f6020828403121561114d575f80fd5b81356001600160401b0381168114610afe575f80fd5b5f60208284031215611173575f80fd5b8135610afe816108cb565b5f6020828403121561118e575f80fd5b610afe8261097d565b634e487b7160e01b5f52602160045260245ffd5b5f60208083850312156111bc575f80fd5b82516001600160401b038111156111d1575f80fd5b8301601f810185136111e1575f80fd5b80516111ef610a0a8261095b565b81815260059190911b8201830190838101908783111561120d575f80fd5b928401925b82841015611234578351611225816108cb565b82529284019290840190611212565b979650505050505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8181038181111561032e5761032e611253565b6005811061129657634e487b7160e01b5f52602160045260245ffd5b9052565b5f5b838110156112b457818101518382015260200161129c565b50505f910152565b5f81518084526112d381602086016020860161129a565b601f01601f19169290920160200192915050565b602080825282516001600160a01b0390811683830152838201511660408084019190915283015160c06060840152805160e084018190525f929182019083906101008601905b8083101561134d578351825292840192600192909201919084019061132d565b50606087015160808701526080870151935061136c60a087018561127a565b60a0870151868203601f190160c0880152935061123481856112bc565b5f82601f830112611398575f80fd5b81516113a6610a0a82610b6c565b8181528460208386010111156113ba575f80fd5b6107f582602083016020870161129a565b5f805f606084860312156113dd575f80fd5b83516001600160401b03808211156113f3575f80fd5b818601915086601f830112611406575f80fd5b81516020611416610a0a8361095b565b82815260059290921b8401810191818101908a841115611434575f80fd5b948201945b8386101561145257855182529482019490820190611439565b9189015160408a01519298509650909350505080821115611471575f80fd5b50610dd886828701611389565b808202811582820484141761032e5761032e611253565b5f826114af57634e487b7160e01b5f52601260045260245ffd5b50049056fea2646970667358221220585ee8a300bd392bb3e138e06e81c7a7f6ff917f783438591b1459f70fc9234b64736f6c63430008180033000000000000000000000000ba1333333333a1ba1108e8412f11850a5c319ba9", + "nonce": "0x33b0", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": "WeightedPoolFactory", + "contractAddress": "0xa3dba161c34940d4a145448a4cdc3f5b88e8a179", + "function": "create(string,string,(address,uint8,address,bool)[],uint256[],(address,address,address),uint256,address,bool,bool,bytes32)", + "arguments": [ + "80/20 Weighted Pool", + "80-20-WP", + "[(0x6C205d1b1c20352e9d33a88569f18D103004762D, 0, 0x0000000000000000000000000000000000000000, false), (0xebD6303d9Cd09605545F723545d2d0bF56966cB9, 0, 0x0000000000000000000000000000000000000000, false)]", + "[800000000000000000, 200000000000000000]", + "(0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000)", + "1000000000000000", + "0x6D3FDf461f8Ca0C6ca9928705687F3794a2cb671", + "true", + "true", + "0x44bceb2174c451b4eeb824ee608d82ba99b4aad667464d285014758e412cae07" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0xa3dba161c34940d4a145448a4cdc3f5b88e8a179", + "gas": "0x63621f", + "value": "0x0", + "input": "0xfed4cdda000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000006d3fdf461f8ca0c6ca9928705687f3794a2cb6710000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000144bceb2174c451b4eeb824ee608d82ba99b4aad667464d285014758e412cae07000000000000000000000000000000000000000000000000000000000000001338302f323020576569676874656420506f6f6c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000838302d32302d575000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006c205d1b1c20352e9d33a88569f18d103004762d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ebd6303d9cd09605545f723545d2d0bf56966cb900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000b1a2bc2ec50000000000000000000000000000000000000000000000000000002c68af0bb140000", + "nonce": "0x33b1", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": "MockToken2", + "contractAddress": "0x6c205d1b1c20352e9d33a88569f18d103004762d", + "function": "approve(address,uint256)", + "arguments": [ + "0x000000000022D473030F116dDEE9F6B43aC78BA3", + "115792089237316195423570985008687907853269984665640564039457584007913129639935" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x6c205d1b1c20352e9d33a88569f18d103004762d", + "gas": "0x9028", + "value": "0x0", + "input": "0x095ea7b3000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "nonce": "0x33b2", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": "MockToken1", + "contractAddress": "0xebd6303d9cd09605545f723545d2d0bf56966cb9", + "function": "approve(address,uint256)", + "arguments": [ + "0x000000000022D473030F116dDEE9F6B43aC78BA3", + "115792089237316195423570985008687907853269984665640564039457584007913129639935" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0xebd6303d9cd09605545f723545d2d0bf56966cb9", + "gas": "0x9028", + "value": "0x0", + "input": "0x095ea7b3000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "nonce": "0x33b3", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "function": "approve(address,address,uint160,uint48)", + "arguments": [ + "0x6C205d1b1c20352e9d33a88569f18D103004762D", + "0x0BF61f706105EA44694f2e92986bD01C39930280", + "1461501637330902918203684832716283019655932542975", + "281474976710655" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "gas": "0x96a0", + "value": "0x0", + "input": "0x87517c450000000000000000000000006c205d1b1c20352e9d33a88569f18d103004762d0000000000000000000000000bf61f706105ea44694f2e92986bd01c39930280000000000000000000000000ffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000ffffffffffff", + "nonce": "0x33b4", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "function": "approve(address,address,uint160,uint48)", + "arguments": [ + "0xebD6303d9Cd09605545F723545d2d0bF56966cB9", + "0x0BF61f706105EA44694f2e92986bD01C39930280", + "1461501637330902918203684832716283019655932542975", + "281474976710655" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "gas": "0x96a0", + "value": "0x0", + "input": "0x87517c45000000000000000000000000ebd6303d9cd09605545f723545d2d0bf56966cb90000000000000000000000000bf61f706105ea44694f2e92986bd01c39930280000000000000000000000000ffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000ffffffffffff", + "nonce": "0x33b5", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x0bf61f706105ea44694f2e92986bd01c39930280", + "function": "initialize(address,address[],uint256[],uint256,bool,bytes)", + "arguments": [ + "0x0684328aEB9b39331BFBfcFC8d0C79078C4aba02", + "[0x6C205d1b1c20352e9d33a88569f18D103004762D, 0xebD6303d9Cd09605545F723545d2d0bF56966cB9]", + "[80000000000000000000, 20000000000000000000]", + "49000000000000000000", + "false", + "0x" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x0bf61f706105ea44694f2e92986bd01c39930280", + "gas": "0x5d8ab", + "value": "0x0", + "input": "0x026b3d950000000000000000000000000684328aeb9b39331bfbfcfc8d0c79078c4aba0200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000002a802f8630a2400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006c205d1b1c20352e9d33a88569f18d103004762d000000000000000000000000ebd6303d9cd09605545f723545d2d0bf56966cb90000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000004563918244f400000000000000000000000000000000000000000000000000001158e460913d000000000000000000000000000000000000000000000000000000000000000000000", + "nonce": "0x33b6", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1734043568, + "chain": 11155111, + "commit": "aebc771" +} \ No newline at end of file diff --git a/packages/foundry/broadcast/Deploy.s.sol/11155111/run-latest.json b/packages/foundry/broadcast/Deploy.s.sol/11155111/run-latest.json new file mode 100644 index 00000000..7ae7a18c --- /dev/null +++ b/packages/foundry/broadcast/Deploy.s.sol/11155111/run-latest.json @@ -0,0 +1,648 @@ +{ + "transactions": [ + { + "hash": null, + "transactionType": "CREATE", + "contractName": "MockToken1", + "contractAddress": "0xebd6303d9cd09605545f723545d2d0bf56966cb9", + "function": null, + "arguments": [ + "Pepe the Frog", + "PEPE", + "1000000000000000000000" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "gas": "0xb7463", + "value": "0x0", + "input": "0x608060405234801562000010575f80fd5b5060405162000c0d38038062000c0d8339810160408190526200003391620002a0565b8282600362000043838262000398565b50600462000052828262000398565b5050506200006733826200007060201b60201c565b5050506200048a565b6001600160a01b0382166200009f5760405163ec442f0560e01b81525f60048201526024015b60405180910390fd5b620000ac5f8383620000b0565b5050565b6001600160a01b038316620000de578060025f828254620000d2919062000464565b90915550620001509050565b6001600160a01b0383165f9081526020819052604090205481811015620001325760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640162000096565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166200016e576002805482900390556200018c565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620001d291815260200190565b60405180910390a3505050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011262000203575f80fd5b81516001600160401b0380821115620002205762000220620001df565b604051601f8301601f19908116603f011681019082821181831017156200024b576200024b620001df565b816040528381526020925086602085880101111562000268575f80fd5b5f91505b838210156200028b57858201830151818301840152908201906200026c565b5f602085830101528094505050505092915050565b5f805f60608486031215620002b3575f80fd5b83516001600160401b0380821115620002ca575f80fd5b620002d887838801620001f3565b94506020860151915080821115620002ee575f80fd5b50620002fd86828701620001f3565b925050604084015190509250925092565b600181811c908216806200032357607f821691505b6020821081036200034257634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200039357805f5260205f20601f840160051c810160208510156200036f5750805b601f840160051c820191505b8181101562000390575f81556001016200037b565b50505b505050565b81516001600160401b03811115620003b457620003b4620001df565b620003cc81620003c584546200030e565b8462000348565b602080601f83116001811462000402575f8415620003ea5750858301515b5f19600386901b1c1916600185901b1785556200045c565b5f85815260208120601f198616915b82811015620004325788860151825594840194600190910190840162000411565b50858210156200045057878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b808201808211156200048457634e487b7160e01b5f52601160045260245ffd5b92915050565b61077580620004985f395ff3fe608060405234801561000f575f80fd5b506004361061009b575f3560e01c806370a082311161006357806370a082311461011457806395d89b411461013c578063a0712d6814610144578063a9059cbb14610159578063dd62ed3e1461016c575f80fd5b806306fdde031461009f578063095ea7b3146100bd57806318160ddd146100e057806323b872dd146100f2578063313ce56714610105575b5f80fd5b6100a76101a4565b6040516100b491906105b8565b60405180910390f35b6100d06100cb36600461061f565b610234565b60405190151581526020016100b4565b6002545b6040519081526020016100b4565b6100d0610100366004610647565b61024d565b604051601281526020016100b4565b6100e4610122366004610680565b6001600160a01b03165f9081526020819052604090205490565b6100a7610270565b6101576101523660046106a0565b61027f565b005b6100d061016736600461061f565b61028c565b6100e461017a3660046106b7565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6060600380546101b3906106e8565b80601f01602080910402602001604051908101604052809291908181526020018280546101df906106e8565b801561022a5780601f106102015761010080835404028352916020019161022a565b820191905f5260205f20905b81548152906001019060200180831161020d57829003601f168201915b5050505050905090565b5f33610241818585610299565b60019150505b92915050565b5f3361025a8582856102ab565b61026585858561032b565b506001949350505050565b6060600480546101b3906106e8565b6102893382610388565b50565b5f3361024181858561032b565b6102a683838360016103c0565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610325578181101561031757604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064015b60405180910390fd5b61032584848484035f6103c0565b50505050565b6001600160a01b03831661035457604051634b637e8f60e11b81525f600482015260240161030e565b6001600160a01b03821661037d5760405163ec442f0560e01b81525f600482015260240161030e565b6102a6838383610492565b6001600160a01b0382166103b15760405163ec442f0560e01b81525f600482015260240161030e565b6103bc5f8383610492565b5050565b6001600160a01b0384166103e95760405163e602df0560e01b81525f600482015260240161030e565b6001600160a01b03831661041257604051634a1406b160e11b81525f600482015260240161030e565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561032557826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161048491815260200190565b60405180910390a350505050565b6001600160a01b0383166104bc578060025f8282546104b19190610720565b9091555061052c9050565b6001600160a01b0383165f908152602081905260409020548181101561050e5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161030e565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661054857600280548290039055610566565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516105ab91815260200190565b60405180910390a3505050565b5f602080835283518060208501525f5b818110156105e4578581018301518582016040015282016105c8565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461061a575f80fd5b919050565b5f8060408385031215610630575f80fd5b61063983610604565b946020939093013593505050565b5f805f60608486031215610659575f80fd5b61066284610604565b925061067060208501610604565b9150604084013590509250925092565b5f60208284031215610690575f80fd5b61069982610604565b9392505050565b5f602082840312156106b0575f80fd5b5035919050565b5f80604083850312156106c8575f80fd5b6106d183610604565b91506106df60208401610604565b90509250929050565b600181811c908216806106fc57607f821691505b60208210810361071a57634e487b7160e01b5f52602260045260245ffd5b50919050565b8082018082111561024757634e487b7160e01b5f52601160045260245ffdfea2646970667358221220a6516948e8fde72d44b28e6f27dabdbac29dfabda0f3429d116b05be844f457e64736f6c63430008180033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000003635c9adc5dea00000000000000000000000000000000000000000000000000000000000000000000d50657065207468652046726f670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045045504500000000000000000000000000000000000000000000000000000000", + "nonce": "0x339c", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CREATE", + "contractName": "MockToken2", + "contractAddress": "0x6c205d1b1c20352e9d33a88569f18d103004762d", + "function": null, + "arguments": [ + "Department of Government Efficiency", + "DOGE", + "1000000000000000000000" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "gas": "0xc583d", + "value": "0x0", + "input": "0x608060405234801562000010575f80fd5b5060405162000c0d38038062000c0d8339810160408190526200003391620002a0565b8282600362000043838262000398565b50600462000052828262000398565b5050506200006733826200007060201b60201c565b5050506200048a565b6001600160a01b0382166200009f5760405163ec442f0560e01b81525f60048201526024015b60405180910390fd5b620000ac5f8383620000b0565b5050565b6001600160a01b038316620000de578060025f828254620000d2919062000464565b90915550620001509050565b6001600160a01b0383165f9081526020819052604090205481811015620001325760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640162000096565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166200016e576002805482900390556200018c565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620001d291815260200190565b60405180910390a3505050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011262000203575f80fd5b81516001600160401b0380821115620002205762000220620001df565b604051601f8301601f19908116603f011681019082821181831017156200024b576200024b620001df565b816040528381526020925086602085880101111562000268575f80fd5b5f91505b838210156200028b57858201830151818301840152908201906200026c565b5f602085830101528094505050505092915050565b5f805f60608486031215620002b3575f80fd5b83516001600160401b0380821115620002ca575f80fd5b620002d887838801620001f3565b94506020860151915080821115620002ee575f80fd5b50620002fd86828701620001f3565b925050604084015190509250925092565b600181811c908216806200032357607f821691505b6020821081036200034257634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200039357805f5260205f20601f840160051c810160208510156200036f5750805b601f840160051c820191505b8181101562000390575f81556001016200037b565b50505b505050565b81516001600160401b03811115620003b457620003b4620001df565b620003cc81620003c584546200030e565b8462000348565b602080601f83116001811462000402575f8415620003ea5750858301515b5f19600386901b1c1916600185901b1785556200045c565b5f85815260208120601f198616915b82811015620004325788860151825594840194600190910190840162000411565b50858210156200045057878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b808201808211156200048457634e487b7160e01b5f52601160045260245ffd5b92915050565b61077580620004985f395ff3fe608060405234801561000f575f80fd5b506004361061009b575f3560e01c806370a082311161006357806370a082311461011457806395d89b411461013c578063a0712d6814610144578063a9059cbb14610159578063dd62ed3e1461016c575f80fd5b806306fdde031461009f578063095ea7b3146100bd57806318160ddd146100e057806323b872dd146100f2578063313ce56714610105575b5f80fd5b6100a76101a4565b6040516100b491906105b8565b60405180910390f35b6100d06100cb36600461061f565b610234565b60405190151581526020016100b4565b6002545b6040519081526020016100b4565b6100d0610100366004610647565b61024d565b604051601281526020016100b4565b6100e4610122366004610680565b6001600160a01b03165f9081526020819052604090205490565b6100a7610270565b6101576101523660046106a0565b61027f565b005b6100d061016736600461061f565b61028c565b6100e461017a3660046106b7565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6060600380546101b3906106e8565b80601f01602080910402602001604051908101604052809291908181526020018280546101df906106e8565b801561022a5780601f106102015761010080835404028352916020019161022a565b820191905f5260205f20905b81548152906001019060200180831161020d57829003601f168201915b5050505050905090565b5f33610241818585610299565b60019150505b92915050565b5f3361025a8582856102ab565b61026585858561032b565b506001949350505050565b6060600480546101b3906106e8565b6102893382610388565b50565b5f3361024181858561032b565b6102a683838360016103c0565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610325578181101561031757604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064015b60405180910390fd5b61032584848484035f6103c0565b50505050565b6001600160a01b03831661035457604051634b637e8f60e11b81525f600482015260240161030e565b6001600160a01b03821661037d5760405163ec442f0560e01b81525f600482015260240161030e565b6102a6838383610492565b6001600160a01b0382166103b15760405163ec442f0560e01b81525f600482015260240161030e565b6103bc5f8383610492565b5050565b6001600160a01b0384166103e95760405163e602df0560e01b81525f600482015260240161030e565b6001600160a01b03831661041257604051634a1406b160e11b81525f600482015260240161030e565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561032557826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161048491815260200190565b60405180910390a350505050565b6001600160a01b0383166104bc578060025f8282546104b19190610720565b9091555061052c9050565b6001600160a01b0383165f908152602081905260409020548181101561050e5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161030e565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661054857600280548290039055610566565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516105ab91815260200190565b60405180910390a3505050565b5f602080835283518060208501525f5b818110156105e4578581018301518582016040015282016105c8565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461061a575f80fd5b919050565b5f8060408385031215610630575f80fd5b61063983610604565b946020939093013593505050565b5f805f60608486031215610659575f80fd5b61066284610604565b925061067060208501610604565b9150604084013590509250925092565b5f60208284031215610690575f80fd5b61069982610604565b9392505050565b5f602082840312156106b0575f80fd5b5035919050565b5f80604083850312156106c8575f80fd5b6106d183610604565b91506106df60208401610604565b90509250929050565b600181811c908216806106fc57607f821691505b60208210810361071a57634e487b7160e01b5f52602260045260245ffd5b50919050565b8082018082111561024757634e487b7160e01b5f52601160045260245ffdfea264697066735822122023d78a61ca203be4185271634bdd20a13ee2074decc83dbf35d3a5c0fd2f384d64736f6c63430008180033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000003635c9adc5dea0000000000000000000000000000000000000000000000000000000000000000000234465706172746d656e74206f6620476f7665726e6d656e7420456666696369656e637900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004444f474500000000000000000000000000000000000000000000000000000000", + "nonce": "0x339d", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CREATE", + "contractName": "MockVeBAL", + "contractAddress": "0x72007ee16e562335c7505f190e53073428bfdc25", + "function": null, + "arguments": [ + "Vote-escrow BAL", + "veBAL", + "1000000000000000000000" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "gas": "0xb7482", + "value": "0x0", + "input": "0x608060405234801562000010575f80fd5b5060405162000c0d38038062000c0d8339810160408190526200003391620002a0565b8282600362000043838262000398565b50600462000052828262000398565b5050506200006733826200007060201b60201c565b5050506200048a565b6001600160a01b0382166200009f5760405163ec442f0560e01b81525f60048201526024015b60405180910390fd5b620000ac5f8383620000b0565b5050565b6001600160a01b038316620000de578060025f828254620000d2919062000464565b90915550620001509050565b6001600160a01b0383165f9081526020819052604090205481811015620001325760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640162000096565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b0382166200016e576002805482900390556200018c565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051620001d291815260200190565b60405180910390a3505050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011262000203575f80fd5b81516001600160401b0380821115620002205762000220620001df565b604051601f8301601f19908116603f011681019082821181831017156200024b576200024b620001df565b816040528381526020925086602085880101111562000268575f80fd5b5f91505b838210156200028b57858201830151818301840152908201906200026c565b5f602085830101528094505050505092915050565b5f805f60608486031215620002b3575f80fd5b83516001600160401b0380821115620002ca575f80fd5b620002d887838801620001f3565b94506020860151915080821115620002ee575f80fd5b50620002fd86828701620001f3565b925050604084015190509250925092565b600181811c908216806200032357607f821691505b6020821081036200034257634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200039357805f5260205f20601f840160051c810160208510156200036f5750805b601f840160051c820191505b8181101562000390575f81556001016200037b565b50505b505050565b81516001600160401b03811115620003b457620003b4620001df565b620003cc81620003c584546200030e565b8462000348565b602080601f83116001811462000402575f8415620003ea5750858301515b5f19600386901b1c1916600185901b1785556200045c565b5f85815260208120601f198616915b82811015620004325788860151825594840194600190910190840162000411565b50858210156200045057878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b808201808211156200048457634e487b7160e01b5f52601160045260245ffd5b92915050565b61077580620004985f395ff3fe608060405234801561000f575f80fd5b506004361061009b575f3560e01c806370a082311161006357806370a082311461011457806395d89b411461013c578063a0712d6814610144578063a9059cbb14610159578063dd62ed3e1461016c575f80fd5b806306fdde031461009f578063095ea7b3146100bd57806318160ddd146100e057806323b872dd146100f2578063313ce56714610105575b5f80fd5b6100a76101a4565b6040516100b491906105b8565b60405180910390f35b6100d06100cb36600461061f565b610234565b60405190151581526020016100b4565b6002545b6040519081526020016100b4565b6100d0610100366004610647565b61024d565b604051601281526020016100b4565b6100e4610122366004610680565b6001600160a01b03165f9081526020819052604090205490565b6100a7610270565b6101576101523660046106a0565b61027f565b005b6100d061016736600461061f565b61028c565b6100e461017a3660046106b7565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205490565b6060600380546101b3906106e8565b80601f01602080910402602001604051908101604052809291908181526020018280546101df906106e8565b801561022a5780601f106102015761010080835404028352916020019161022a565b820191905f5260205f20905b81548152906001019060200180831161020d57829003601f168201915b5050505050905090565b5f33610241818585610299565b60019150505b92915050565b5f3361025a8582856102ab565b61026585858561032b565b506001949350505050565b6060600480546101b3906106e8565b6102893382610388565b50565b5f3361024181858561032b565b6102a683838360016103c0565b505050565b6001600160a01b038381165f908152600160209081526040808320938616835292905220545f198114610325578181101561031757604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064015b60405180910390fd5b61032584848484035f6103c0565b50505050565b6001600160a01b03831661035457604051634b637e8f60e11b81525f600482015260240161030e565b6001600160a01b03821661037d5760405163ec442f0560e01b81525f600482015260240161030e565b6102a6838383610492565b6001600160a01b0382166103b15760405163ec442f0560e01b81525f600482015260240161030e565b6103bc5f8383610492565b5050565b6001600160a01b0384166103e95760405163e602df0560e01b81525f600482015260240161030e565b6001600160a01b03831661041257604051634a1406b160e11b81525f600482015260240161030e565b6001600160a01b038085165f908152600160209081526040808320938716835292905220829055801561032557826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161048491815260200190565b60405180910390a350505050565b6001600160a01b0383166104bc578060025f8282546104b19190610720565b9091555061052c9050565b6001600160a01b0383165f908152602081905260409020548181101561050e5760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161030e565b6001600160a01b0384165f9081526020819052604090209082900390555b6001600160a01b03821661054857600280548290039055610566565b6001600160a01b0382165f9081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516105ab91815260200190565b60405180910390a3505050565b5f602080835283518060208501525f5b818110156105e4578581018301518582016040015282016105c8565b505f604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461061a575f80fd5b919050565b5f8060408385031215610630575f80fd5b61063983610604565b946020939093013593505050565b5f805f60608486031215610659575f80fd5b61066284610604565b925061067060208501610604565b9150604084013590509250925092565b5f60208284031215610690575f80fd5b61069982610604565b9392505050565b5f602082840312156106b0575f80fd5b5035919050565b5f80604083850312156106c8575f80fd5b6106d183610604565b91506106df60208401610604565b90509250929050565b600181811c908216806106fc57607f821691505b60208210810361071a57634e487b7160e01b5f52602260045260245ffd5b50919050565b8082018082111561024757634e487b7160e01b5f52601160045260245ffdfea26469706673582212208a796e3ca32660c52caa23b91eef6fc8da6f9001d34e2c50f65700d4e0dec87c64736f6c63430008180033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000003635c9adc5dea00000000000000000000000000000000000000000000000000000000000000000000f566f74652d657363726f772042414c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005766542414c000000000000000000000000000000000000000000000000000000", + "nonce": "0x339e", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CREATE", + "contractName": "ConstantSumFactory", + "contractAddress": "0xd8a5cb276f76e675bffd98d02cedb75191e668a0", + "function": null, + "arguments": [ + "0xbA1333333333a1BA1108E8412f11850A5C319bA9", + "31536000" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "gas": "0x7549c1", + "value": "0x0", + "input": "0x61010060405234801562000011575f80fd5b5060405162002f5d38038062002f5d8339810160408190526200003491620000df565b8181604051806020016200004890620000d1565b601f1982820381018352601f90910116604052306080526001600160a01b03831660a052815f6200008063ffffffff8316426200012d565b905063ffffffff811115620000a8576040516368755a1160e01b815260040160405180910390fd5b63ffffffff91821660c0521660e0526003620000c58282620001f1565b505050505050620002bd565b611aa380620014ba83390190565b5f8060408385031215620000f1575f80fd5b82516001600160a01b038116811462000108575f80fd5b602084015190925063ffffffff8116811462000122575f80fd5b809150509250929050565b808201808211156200014d57634e487b7160e01b5f52601160045260245ffd5b92915050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200017c57607f821691505b6020821081036200019b57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620001ec57805f5260205f20601f840160051c81016020851015620001c85750805b601f840160051c820191505b81811015620001e9575f8155600101620001d4565b50505b505050565b81516001600160401b038111156200020d576200020d62000153565b62000225816200021e845462000167565b84620001a1565b602080601f8311600181146200025b575f8415620002435750858301515b5f19600386901b1c1916600185901b178555620002b5565b5f85815260208120601f198616915b828110156200028b578886015182559484019460019091019084016200026a565b5085821015620002a957878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b60805160a05160c05160e0516111a6620003145f395f818161028201528181610607015261063a01525f6101ec01525f8181610244015281816104b401528181610581015261074c01525f61051d01526111a65ff3fe608060405234801561000f575f80fd5b50600436106100fb575f3560e01c806378da80cb11610093578063aaabadc511610063578063aaabadc514610270578063db035ebc14610278578063e9d56e1914610280578063ec888061146102a6575f80fd5b806378da80cb146101ea578063851c1bb3146102215780638d928af8146102425780638eec5d7014610268575f80fd5b80636634b753116100ce5780636634b75314610189578063673a2a1f146101c457806369b93224146101cc5780636c57f5a9146101df575f80fd5b8063193ad50f146100ff5780632f2770db1461013457806344f6fec71461013e57806353a72f7e14610169575b5f80fd5b604080516080810182525f808252602082018190528183018190526060820152905161012b919061099e565b60405180910390f35b61013c6102ac565b005b61015161014c366004610a94565b6102f3565b6040516001600160a01b03909116815260200161012b565b61017c610177366004610ae9565b610345565b60405161012b9190610b09565b6101b4610197366004610b79565b6001600160a01b03165f9081526020819052604090205460ff1690565b604051901515815260200161012b565b61017c61044e565b6101516101da366004610d7e565b6104ae565b60025460ff166101b4565b7f00000000000000000000000000000000000000000000000000000000000000005b60405163ffffffff909116815260200161012b565b61023461022f366004610e57565b61051a565b60405190815260200161012b565b7f0000000000000000000000000000000000000000000000000000000000000000610151565b600154610234565b61015161057e565b61020c610604565b7f000000000000000000000000000000000000000000000000000000000000000061020c565b5f610151565b6102b461065c565b6102bc61069d565b6002805460ff191660011790556040517f432acbfd662dbb5d8b378384a67159b47ca9d0f1b79f97cf64cf8585fa362d50905f90a1565b5f80600384604051602001610309929190610ebb565b60408051601f19818403018152919052805160208201209091505f61032d856106c3565b905061033981836106e6565b93505050505b92915050565b60015460609080841061036b57604051634e23d03560e01b815260040160405180910390fd5b5f6103768486610f78565b90508181111561038d5761038a8583610f8b565b93505b8367ffffffffffffffff8111156103a6576103a66109d1565b6040519080825280602002602001820160405280156103cf578160200160208202803683370190505b5092505f5b848110156104455760016103e88288610f78565b815481106103f8576103f8610f9e565b905f5260205f20015f9054906101000a90046001600160a01b031684828151811061042557610425610f9e565b6001600160a01b03909216602092830291909101909101526001016103d4565b50505092915050565b606060018054806020026020016040519081016040528092919081815260200182805480156104a457602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610486575b5050505050905090565b5f6104fc7f00000000000000000000000000000000000000000000000000000000000000008b8b6040516020016104e793929190610fdd565b604051602081830303815290604052896106f9565b905061050d8188888888888861074a565b9998505050505050505050565b5f7f0000000000000000000000000000000000000000000000000000000000000000826040516020016105619291909182526001600160e01b031916602082015260240190565b604051602081830303815290604052805190602001209050919050565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663aaabadc56040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105db573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105ff919061101c565b905090565b5f7f000000000000000000000000000000000000000000000000000000000000000063ffffffff16421061063757505f90565b507f000000000000000000000000000000000000000000000000000000000000000090565b5f6106715f356001600160e01b03191661051a565b905061067d81336107e1565b61069a576040516323dada5360e01b815260040160405180910390fd5b50565b60025460ff16156106c157604051633ac4266d60e11b815260040160405180910390fd5b565b604080513360208201524691810191909152606081018290525f90608001610561565b5f6106f2838330610861565b9392505050565b5f8060038460405160200161070f929190610ebb565b60405160208183030381529060405290505f61072a846106c3565b90506107375f828461088a565b92506107428361090c565b505092915050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663eeec802f888888610784610604565b898989896040518963ffffffff1660e01b81526004016107ab989796959493929190611037565b5f604051808303815f87803b1580156107c2575f80fd5b505af11580156107d4573d5f803e3d5ffd5b5050505050505050505050565b5f6107ea61057e565b6040516326f8aa2160e21b8152600481018590526001600160a01b0384811660248301523060448301529190911690639be2a88490606401602060405180830381865afa15801561083d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106f29190611155565b5f604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b5f834710156108b95760405163392efb2b60e21b81524760048201526024810185905260440160405180910390fd5b81515f036108da57604051631328927760e21b815260040160405180910390fd5b8282516020840186f590506001600160a01b0381166106f257604051633a0ba96160e11b815260040160405180910390fd5b61091461069d565b6001600160a01b0381165f81815260208190526040808220805460ff19166001908117909155805480820182559083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b03191684179055517f83a48fbcfc991335314e74d0496aab6a1987e992ddc85dddbcc4d6dd6ef2e9fc9190a250565b8151151581526020808301511515908201526040808301511515908201526060808301511515908201526080810161033f565b634e487b7160e01b5f52604160045260245ffd5b6040516080810167ffffffffffffffff81118282101715610a0857610a086109d1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610a3757610a376109d1565b604052919050565b5f67ffffffffffffffff831115610a5857610a586109d1565b610a6b601f8401601f1916602001610a0e565b9050828152838383011115610a7e575f80fd5b828260208301375f602084830101529392505050565b5f8060408385031215610aa5575f80fd5b823567ffffffffffffffff811115610abb575f80fd5b8301601f81018513610acb575f80fd5b610ada85823560208401610a3f565b95602094909401359450505050565b5f8060408385031215610afa575f80fd5b50508035926020909101359150565b602080825282518282018190525f9190848201906040850190845b81811015610b495783516001600160a01b031683529284019291840191600101610b24565b50909695505050505050565b6001600160a01b038116811461069a575f80fd5b8035610b7481610b55565b919050565b5f60208284031215610b89575f80fd5b81356106f281610b55565b5f82601f830112610ba3575f80fd5b6106f283833560208501610a3f565b801515811461069a575f80fd5b8035610b7481610bb2565b5f82601f830112610bd9575f80fd5b8135602067ffffffffffffffff821115610bf557610bf56109d1565b610c03818360051b01610a0e565b82815260079290921b84018101918181019086841115610c21575f80fd5b8286015b84811015610c995760808189031215610c3c575f80fd5b610c446109e5565b8135610c4f81610b55565b81528185013560028110610c61575f80fd5b81860152604082810135610c7481610b55565b90820152606082810135610c8781610bb2565b90820152835291830191608001610c25565b509695505050505050565b5f60608284031215610cb4575f80fd5b6040516060810181811067ffffffffffffffff82111715610cd757610cd76109d1565b6040529050808235610ce881610b55565b81526020830135610cf881610b55565b60208201526040830135610d0b81610b55565b6040919091015292915050565b5f60808284031215610d28575f80fd5b610d306109e5565b90508135610d3d81610bb2565b81526020820135610d4d81610bb2565b60208201526040820135610d6081610bb2565b60408201526060820135610d7381610bb2565b606082015292915050565b5f805f805f805f805f6101c08a8c031215610d97575f80fd5b893567ffffffffffffffff80821115610dae575f80fd5b610dba8d838e01610b94565b9a5060208c0135915080821115610dcf575f80fd5b610ddb8d838e01610b94565b995060408c0135985060608c0135915080821115610df7575f80fd5b50610e048c828d01610bca565b96505060808a01359450610e1a60a08b01610bbf565b9350610e298b60c08c01610ca4565b9250610e386101208b01610b69565b9150610e488b6101408c01610d18565b90509295985092959850929598565b5f60208284031215610e67575f80fd5b81356001600160e01b0319811681146106f2575f80fd5b5f5b83811015610e98578181015183820152602001610e80565b50505f910152565b5f8151610eb1818560208601610e7e565b9290920192915050565b5f8084545f60018260011c91506001831680610ed857607f831692505b60208084108203610ef757634e487b7160e01b5f52602260045260245ffd5b818015610f0b5760018114610f2057610f4b565b60ff1986168952841515850289019650610f4b565b5f8b8152602090205f5b86811015610f435781548b820152908501908301610f2a565b505084890196505b505050505050610f5b8185610ea0565b95945050505050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033f5761033f610f64565b8181038181111561033f5761033f610f64565b634e487b7160e01b5f52603260045260245ffd5b5f8151808452610fc9816020860160208601610e7e565b601f01601f19169290920160200192915050565b6001600160a01b03841681526060602082018190525f9061100090830185610fb2565b82810360408401526110128185610fb2565b9695505050505050565b5f6020828403121561102c575f80fd5b81516106f281610b55565b6001600160a01b0389811682526101a060208084018290528a519184018290525f926101c08501928c83019290855b818110156110c4578451848151168752838101516002811061109657634e487b7160e01b5f52602160045260245ffd5b8785015260408181015186169088015260609081015115159087015260809095019493820193600101611066565b50505050506040830189905263ffffffff881660608401529050851515608083015284516001600160a01b0390811660a08401526020860151811660c084015260408601511660e08301526001600160a01b0384166101008301528251151561012083015260208301511515610140830152604083015115156101608301526060830151151561018083015261050d565b5f60208284031215611165575f80fd5b81516106f281610bb256fea264697066735822122095260952e427ba59a520b00a1f10dc19176dd84dda46154c97b83e11ee1ab08564736f6c6343000818003361018060405234801562000011575f80fd5b5060405162001aa338038062001aa383398101604081905262000034916200028f565b8282828282604051806040016040528060018152602001603160f81b815250620000685f836200014660201b90919060201c565b610120526200007981600162000146565b61014052815160208084019190912060e052815190820120610100524660a0526200010660e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b60805250503060c0526001600160a01b03166101605260036200012a83826200039d565b5060046200013982826200039d565b50505050505050620004c1565b5f60208351101562000165576200015d836200017e565b905062000178565b816200017284826200039d565b5060ff90505b92915050565b5f80829050601f81511115620001b4578260405163305a27a960e01b8152600401620001ab919062000469565b60405180910390fd5b8051620001c1826200049d565b179392505050565b634e487b7160e01b5f52604160045260245ffd5b5f5b83811015620001f9578181015183820152602001620001df565b50505f910152565b5f82601f83011262000211575f80fd5b81516001600160401b03808211156200022e576200022e620001c9565b604051601f8301601f19908116603f01168101908282118183101715620002595762000259620001c9565b8160405283815286602085880101111562000272575f80fd5b62000285846020830160208901620001dd565b9695505050505050565b5f805f60608486031215620002a2575f80fd5b83516001600160a01b0381168114620002b9575f80fd5b60208501519093506001600160401b0380821115620002d6575f80fd5b620002e48783880162000201565b93506040860151915080821115620002fa575f80fd5b50620003098682870162000201565b9150509250925092565b600181811c908216806200032857607f821691505b6020821081036200034757634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200039857805f5260205f20601f840160051c81016020851015620003745750805b601f840160051c820191505b8181101562000395575f815560010162000380565b50505b505050565b81516001600160401b03811115620003b957620003b9620001c9565b620003d181620003ca845462000313565b846200034d565b602080601f83116001811462000407575f8415620003ef5750858301515b5f19600386901b1c1916600185901b17855562000461565b5f85815260208120601f198616915b82811015620004375788860151825594840194600190910190840162000416565b50858210156200045557878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b602081525f825180602084015262000489816040850160208701620001dd565b601f01601f19169190910160400192915050565b8051602080830151919081101562000347575f1960209190910360031b1b16919050565b60805160a05160c05160e051610100516101205161014051610160516115476200055c5f395f81816103490152818161049e0152818161057f0152818161062c01528181610772015281816107c80152818161091601528181610a9901528181610b3f0152610bb501525f610d5301525f610d2701525f610cd001525f610ca801525f610c0301525f610c2d01525f610c5701526115475ff3fe608060405234801561000f575f80fd5b50600436106101a1575f3560e01c8063654cf15d116100f357806395d89b4111610093578063b677fa561161006e578063b677fa56146103a1578063ce20ece7146103af578063d505accf146103ba578063dd62ed3e146103cd575f80fd5b806395d89b4114610373578063984de9e81461037b578063a9059cbb1461038e575f80fd5b806372c98186116100ce57806372c98186146102f95780637ecebe001461030e57806384b0196e146103215780638d928af81461033c575f80fd5b8063654cf15d146102d0578063679aefce146102de57806370a08231146102e6575f80fd5b806323de66511161015e578063313ce56711610139578063313ce5671461028c5780633644e5151461029b5780635687f2b8146102a3578063627cdcb9146102b6575f80fd5b806323de665114610242578063273c1adf1461025757806330adf81f14610265575f80fd5b806301ffc9a7146101a557806306fdde03146101de578063095ea7b3146101f357806316a0b3e01461020657806318160ddd1461022757806323b872dd1461022f575b5f80fd5b6101c96101b3366004611062565b6001600160e01b0319166301ffc9a760e01b1490565b60405190151581526020015b60405180910390f35b6101e66103e0565b6040516101d591906110cc565b6101c96102013660046110f9565b610470565b6102196102143660046111d0565b610517565b6040519081526020016101d5565b610219610568565b6101c961023d36600461121a565b6105f6565b61025561025036600461121a565b6106a3565b005b6729a2241af62c0000610219565b6102197f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b604051601281526020016101d5565b6102196106fd565b6102556102b136600461121a565b610706565b610255335f90815260026020526040902080546001019055565b67016345785d8a0000610219565b610219610753565b6102196102f4366004611253565b6107a1565b61021961030736600461126c565b6020013590565b61021961031c366004611253565b610833565b610329610850565b6040516101d597969594939291906112a3565b6040516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001681526020016101d5565b6101e6610892565b61021961038936600461133a565b6108a1565b6101c961039c3660046110f9565b6108e8565b6709b6e64a8ec60000610219565b64e8d4a51000610219565b6102556103c836600461138c565b610947565b6102196103db3660046113f9565b610b10565b6060600380546103ef9061142a565b80601f016020809104026020016040519081016040528092919081815260200182805461041b9061142a565b80156104665780601f1061043d57610100808354040283529160200191610466565b820191905f5260205f20905b81548152906001019060200180831161044957829003601f168201915b5050505050905090565b60405163e1f21c6760e01b81523360048201526001600160a01b038381166024830152604482018390525f917f00000000000000000000000000000000000000000000000000000000000000009091169063e1f21c67906064015b6020604051808303815f875af11580156104e7573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061050b9190611462565b50600190505b92915050565b5f806105248560016108a1565b9050806105318482611495565b868681518110610543576105436114ac565b602002602001015161055591906114c0565b61055f91906114d3565b95945050505050565b6040516339370aa960e21b81523060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e4dc2aa4906024015b602060405180830381865afa1580156105cd573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105f191906114e6565b905090565b604051630aed65f560e11b81523360048201526001600160a01b0384811660248301528381166044830152606482018390525f917f0000000000000000000000000000000000000000000000000000000000000000909116906315dacbea906084016020604051808303815f875af1158015610674573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106989190611462565b506001949350505050565b6106ab610baa565b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516106f091815260200190565b60405180910390a3505050565b5f6105f1610bf7565b61070e610baa565b816001600160a01b0316836001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516106f091815260200190565b604051634f037ee760e01b81523060048201525f906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690634f037ee7906024016105b2565b604051633de222bb60e21b81523060048201526001600160a01b0382811660248301525f917f00000000000000000000000000000000000000000000000000000000000000009091169063f7888aec90604401602060405180830381865afa15801561080f573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061051191906114e6565b6001600160a01b0381165f90815260026020526040812054610511565b5f6060805f805f6060610861610d20565b610869610d4c565b604080515f80825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6060600480546103ef9061142a565b5f826001815181106108b5576108b56114ac565b6020026020010151835f815181106108cf576108cf6114ac565b60200260200101516108e191906114c0565b9392505050565b6040516317d5759960e31b81523360048201526001600160a01b038381166024830152604482018390525f917f00000000000000000000000000000000000000000000000000000000000000009091169063beabacc8906064016104cb565b834211156109705760405163313c898160e11b8152600481018590526024015b60405180910390fd5b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886109bb8c6001600160a01b03165f90815260026020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090505f610a1582610d79565b90505f610a2482878787610da5565b9050896001600160a01b0316816001600160a01b031614610a6b576040516325c0072360e11b81526001600160a01b0380831660048301528b166024820152604401610967565b60405163e1f21c6760e01b81526001600160a01b038b811660048301528a81166024830152604482018a90527f0000000000000000000000000000000000000000000000000000000000000000169063e1f21c67906064016020604051808303815f875af1158015610adf573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b039190611462565b5050505050505050505050565b60405163927da10560e01b81523060048201526001600160a01b03838116602483015282811660448301525f917f00000000000000000000000000000000000000000000000000000000000000009091169063927da10590606401602060405180830381865afa158015610b86573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108e191906114e6565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610bf55760405163089676d560e01b8152336004820152602401610967565b565b5f306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015610c4f57507f000000000000000000000000000000000000000000000000000000000000000046145b15610c7957507f000000000000000000000000000000000000000000000000000000000000000090565b6105f1604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b60606105f17f00000000000000000000000000000000000000000000000000000000000000005f610dd1565b60606105f17f00000000000000000000000000000000000000000000000000000000000000006001610dd1565b5f610511610d85610bf7565b8360405161190160f01b8152600281019290925260228201526042902090565b5f805f80610db588888888610e7a565b925092509250610dc58282610f42565b50909695505050505050565b606060ff8314610deb57610de483610ffe565b9050610511565b818054610df79061142a565b80601f0160208091040260200160405190810160405280929190818152602001828054610e239061142a565b8015610e6e5780601f10610e4557610100808354040283529160200191610e6e565b820191905f5260205f20905b815481529060010190602001808311610e5157829003601f168201915b50505050509050610511565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841115610eb357505f91506003905082610f38565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015610f04573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b038116610f2f57505f925060019150829050610f38565b92505f91508190505b9450945094915050565b5f826003811115610f5557610f556114fd565b03610f5e575050565b6001826003811115610f7257610f726114fd565b03610f905760405163f645eedf60e01b815260040160405180910390fd5b6002826003811115610fa457610fa46114fd565b03610fc55760405163fce698f760e01b815260048101829052602401610967565b6003826003811115610fd957610fd96114fd565b03610ffa576040516335e2f38360e21b815260048101829052602401610967565b5050565b60605f61100a8361103b565b6040805160208082528183019092529192505f91906020820181803683375050509182525060208101929092525090565b5f60ff8216601f81111561051157604051632cd44ac360e21b815260040160405180910390fd5b5f60208284031215611072575f80fd5b81356001600160e01b0319811681146108e1575f80fd5b5f81518084525f5b818110156110ad57602081850181015186830182015201611091565b505f602082860101526020601f19601f83011685010191505092915050565b602081525f6108e16020830184611089565b80356001600160a01b03811681146110f4575f80fd5b919050565b5f806040838503121561110a575f80fd5b611113836110de565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f830112611144575f80fd5b8135602067ffffffffffffffff8083111561116157611161611121565b8260051b604051601f19603f8301168101818110848211171561118657611186611121565b60405293845260208187018101949081019250878511156111a5575f80fd5b6020870191505b848210156111c5578135835291830191908301906111ac565b979650505050505050565b5f805f606084860312156111e2575f80fd5b833567ffffffffffffffff8111156111f8575f80fd5b61120486828701611135565b9660208601359650604090950135949350505050565b5f805f6060848603121561122c575f80fd5b611235846110de565b9250611243602085016110de565b9150604084013590509250925092565b5f60208284031215611263575f80fd5b6108e1826110de565b5f6020828403121561127c575f80fd5b813567ffffffffffffffff811115611292575f80fd5b820160e081850312156108e1575f80fd5b60ff60f81b881681525f602060e060208401526112c360e084018a611089565b83810360408501526112d5818a611089565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825260208088019350909101905f5b818110156113285783518352928401929184019160010161130c565b50909c9b505050505050505050505050565b5f806040838503121561134b575f80fd5b823567ffffffffffffffff811115611361575f80fd5b61136d85828601611135565b925050602083013560028110611381575f80fd5b809150509250929050565b5f805f805f805f60e0888a0312156113a2575f80fd5b6113ab886110de565b96506113b9602089016110de565b95506040880135945060608801359350608088013560ff811681146113dc575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f806040838503121561140a575f80fd5b611413836110de565b9150611421602084016110de565b90509250929050565b600181811c9082168061143e57607f821691505b60208210810361145c57634e487b7160e01b5f52602260045260245ffd5b50919050565b5f60208284031215611472575f80fd5b815180151581146108e1575f80fd5b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761051157610511611481565b634e487b7160e01b5f52603260045260245ffd5b8082018082111561051157610511611481565b8181038181111561051157610511611481565b5f602082840312156114f6575f80fd5b5051919050565b634e487b7160e01b5f52602160045260245ffdfea2646970667358221220325a8fa549b82f1e1e6bd7920e217849265c692a0638291a39828038d354785e64736f6c63430008180033000000000000000000000000ba1333333333a1ba1108e8412f11850a5c319ba90000000000000000000000000000000000000000000000000000000001e13380", + "nonce": "0x339f", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CREATE", + "contractName": "VeBALFeeDiscountHookExample", + "contractAddress": "0xa42537a573f81173e0989ed75f7d9e612a90e625", + "function": null, + "arguments": [ + "0xbA1333333333a1BA1108E8412f11850A5C319bA9", + "0xD8A5CB276F76e675bFfD98d02CEdb75191e668A0", + "0x0BF61f706105EA44694f2e92986bD01C39930280", + "0x72007ee16E562335c7505F190E53073428BfDC25" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "gas": "0x108878", + "value": "0x0", + "input": "0x610100604052348015610010575f80fd5b50604051610efe380380610efe83398101604081905261002f91610069565b6001600160a01b0393841660805291831660a05290821660c0521660e0526100c5565b6001600160a01b0381168114610066575f80fd5b50565b5f805f806080858703121561007c575f80fd5b845161008781610052565b602086015190945061009881610052565b60408601519093506100a981610052565b60608601519092506100ba81610052565b939692955090935050565b60805160a05160c05160e051610e066100f85f395f6103f401525f61031701525f61025801525f6104960152610e065ff3fe608060405234801561000f575f80fd5b50600436106100a6575f3560e01c806345421ec71161006e57806345421ec7146101545780635211fa771461016e578063976907cc1461017c578063a0e8f5ac14610199578063ba5f9f40146101ac578063d77153a7146101ba575f80fd5b80630b89f182146100aa57806318b6eb55146100d25780631c149e28146100fe5780632754888d1461011357806338be241d1461013e575b5f80fd5b6100bd6100b83660046105b4565b610213565b60405190151581526020015b60405180910390f35b6100e76100e03660046106db565b505f908190565b6040805192151583526020830191909152016100c9565b6100bd61010c3660046107eb565b5f92915050565b610130610121366004610858565b5f839850989650505050505050565b6040516100c9929190610937565b6100bd61014c366004610987565b5f9392505050565b6100bd6101623660046109fc565b5f979650505050505050565b6100bd61010c366004610acb565b61013061018a366004610b19565b5f849850989650505050505050565b6100e76101a7366004610bba565b610303565b6100bd610162366004610c0f565b60408051610140810182525f808252602082018190528183018190526080820181905260a0820181905260c0820181905260e0820181905261010082018190526101208201526001606082015290516100c99190610c91565b5f61021c61048b565b6040516001600160a01b03808616919087169030907fa8ab37b72b2944e381076dcbdf6f9b0d340c59a4f1492552e7361ef53dc873dc905f90a47f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316856001600160a01b03161480156102fa5750604051636634b75360e01b81526001600160a01b038581166004830152861690636634b75390602401602060405180830381865afa1580156102d6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906102fa9190610d49565b95945050505050565b5f8061030d61048b565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001661034760c0870160a08801610d64565b6001600160a01b03161461036057506001905081610483565b5f61037160c0870160a08801610d64565b6001600160a01b0316635e01eb5a6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103ac573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103d09190610d7f565b6040516370a0823160e01b81526001600160a01b0380831660048301529192505f917f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015610439573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061045d9190610d9a565b111561047a576001610470600286610db1565b9250925050610483565b60018492509250505b935093915050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146104da5760405163089676d560e01b815233600482015260240160405180910390fd5b565b6001600160a01b03811681146104f0575f80fd5b50565b80356104fe816104dc565b919050565b634e487b7160e01b5f52604160045260245ffd5b604051608081016001600160401b038111828210171561053957610539610503565b60405290565b604051601f8201601f191681016001600160401b038111828210171561056757610567610503565b604052919050565b5f6001600160401b0382111561058757610587610503565b5060051b60200190565b80151581146104f0575f80fd5b5f608082840312156105ae575f80fd5b50919050565b5f805f8060e085870312156105c7575f80fd5b84356105d2816104dc565b93506020858101356105e3816104dc565b93506040868101356001600160401b038111156105fe575f80fd5b8701601f8101891361060e575f80fd5b803561062161061c8261056f565b61053f565b81815260079190911b8201840190848101908b83111561063f575f80fd5b928501925b828410156106ba576080848d03121561065b575f80fd5b610663610517565b843561066e816104dc565b81528487013560028110610680575f80fd5b8188015284860135610691816104dc565b818701526060858101356106a481610591565b9082015282526080939093019290850190610644565b8097505050505050506106d0866060870161059e565b905092959194509250565b5f602082840312156106eb575f80fd5b81356001600160401b03811115610700575f80fd5b82016101808185031215610712575f80fd5b9392505050565b5f82601f830112610728575f80fd5b8135602061073861061c8361056f565b8083825260208201915060208460051b870101935086841115610759575f80fd5b602086015b84811015610775578035835291830191830161075e565b509695505050505050565b5f82601f83011261078f575f80fd5b81356001600160401b038111156107a8576107a8610503565b6107bb601f8201601f191660200161053f565b8181528460208386010111156107cf575f80fd5b816020850160208301375f918101602001919091529392505050565b5f80604083850312156107fc575f80fd5b82356001600160401b0380821115610812575f80fd5b61081e86838701610719565b93506020850135915080821115610833575f80fd5b5061084085828601610780565b9150509250929050565b8035600481106104fe575f80fd5b5f805f805f805f80610100898b031215610870575f80fd5b610879896104f3565b975061088760208a016104f3565b965061089560408a0161084a565b95506060890135945060808901356001600160401b03808211156108b7575f80fd5b6108c38c838d01610719565b955060a08b01359150808211156108d8575f80fd5b6108e48c838d01610719565b945060c08b01359150808211156108f9575f80fd5b6109058c838d01610719565b935060e08b013591508082111561091a575f80fd5b506109278b828c01610780565b9150509295985092959890939650565b5f6040820184151583526020604060208501528185518084526060860191506020870193505f5b8181101561097a5784518352938301939183019160010161095e565b5090979650505050505050565b5f805f60608486031215610999575f80fd5b83356001600160401b03808211156109af575f80fd5b6109bb87838801610719565b94506020860135935060408601359150808211156109d7575f80fd5b506109e486828701610780565b9150509250925092565b8035600581106104fe575f80fd5b5f805f805f805f60e0888a031215610a12575f80fd5b8735610a1d816104dc565b96506020880135610a2d816104dc565b9550610a3b604089016109ee565b945060608801356001600160401b0380821115610a56575f80fd5b610a628b838c01610719565b955060808a0135945060a08a0135915080821115610a7e575f80fd5b610a8a8b838c01610719565b935060c08a0135915080821115610a9f575f80fd5b50610aac8a828b01610780565b91505092959891949750929550565b5f60e082840312156105ae575f80fd5b5f8060408385031215610adc575f80fd5b82356001600160401b03811115610af1575f80fd5b610afd85828601610abb565b9250506020830135610b0e816104dc565b809150509250929050565b5f805f805f805f80610100898b031215610b31575f80fd5b610b3a896104f3565b9750610b4860208a016104f3565b9650610b5660408a016109ee565b955060608901356001600160401b0380821115610b71575f80fd5b610b7d8c838d01610719565b965060808b0135915080821115610b92575f80fd5b610b9e8c838d01610719565b955060a08b0135945060c08b01359150808211156108f9575f80fd5b5f805f60608486031215610bcc575f80fd5b83356001600160401b03811115610be1575f80fd5b610bed86828701610abb565b9350506020840135610bfe816104dc565b929592945050506040919091013590565b5f805f805f805f60e0888a031215610c25575f80fd5b8735610c30816104dc565b96506020880135610c40816104dc565b9550610c4e6040890161084a565b94506060880135935060808801356001600160401b0380821115610c70575f80fd5b610c7c8b838c01610719565b945060a08a0135915080821115610a7e575f80fd5b81511515815261014081016020830151610caf602084018215159052565b506040830151610cc3604084018215159052565b506060830151610cd7606084018215159052565b506080830151610ceb608084018215159052565b5060a0830151610cff60a084018215159052565b5060c0830151610d1360c084018215159052565b5060e0830151610d2760e084018215159052565b5061010083810151151590830152610120928301511515929091019190915290565b5f60208284031215610d59575f80fd5b815161071281610591565b5f60208284031215610d74575f80fd5b8135610712816104dc565b5f60208284031215610d8f575f80fd5b8151610712816104dc565b5f60208284031215610daa575f80fd5b5051919050565b5f82610dcb57634e487b7160e01b5f52601260045260245ffd5b50049056fea26469706673582212207022cb3160f918207b3a5a65b4cc1ada2b8a51cc02e7b4951453a81f0a36622264736f6c63430008180033000000000000000000000000ba1333333333a1ba1108e8412f11850a5c319ba9000000000000000000000000d8a5cb276f76e675bffd98d02cedb75191e668a00000000000000000000000000bf61f706105ea44694f2e92986bd01c3993028000000000000000000000000072007ee16e562335c7505f190e53073428bfdc25", + "nonce": "0x33a0", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": "ConstantSumFactory", + "contractAddress": "0xd8a5cb276f76e675bffd98d02cedb75191e668a0", + "function": "create(string,string,bytes32,(address,uint8,address,bool)[],uint256,bool,(address,address,address),address,(bool,bool,bool,bool))", + "arguments": [ + "Constant Sum Pool", + "CSP", + "0x44bceb2174c451b4eeb824ee608d82ba99b4aad667464d285014758e412cae07", + "[(0x6C205d1b1c20352e9d33a88569f18D103004762D, 0, 0x0000000000000000000000000000000000000000, false), (0xebD6303d9Cd09605545F723545d2d0bF56966cB9, 0, 0x0000000000000000000000000000000000000000, false)]", + "10000000000000000", + "true", + "(0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000)", + "0xa42537a573F81173E0989Ed75F7d9E612A90E625", + "(false, false, false, false)" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0xd8a5cb276f76e675bffd98d02cedb75191e668a0", + "gas": "0x298c29", + "value": "0x0", + "input": "0x69b9322400000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000020044bceb2174c451b4eeb824ee608d82ba99b4aad667464d285014758e412cae070000000000000000000000000000000000000000000000000000000000000240000000000000000000000000000000000000000000000000002386f26fc100000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a42537a573f81173e0989ed75f7d9e612a90e62500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011436f6e7374616e742053756d20506f6f6c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003435350000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006c205d1b1c20352e9d33a88569f18d103004762d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ebd6303d9cd09605545f723545d2d0bf56966cb9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "nonce": "0x33a1", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": "MockToken2", + "contractAddress": "0x6c205d1b1c20352e9d33a88569f18d103004762d", + "function": "approve(address,uint256)", + "arguments": [ + "0x000000000022D473030F116dDEE9F6B43aC78BA3", + "115792089237316195423570985008687907853269984665640564039457584007913129639935" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x6c205d1b1c20352e9d33a88569f18d103004762d", + "gas": "0x10a53", + "value": "0x0", + "input": "0x095ea7b3000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "nonce": "0x33a2", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": "MockToken1", + "contractAddress": "0xebd6303d9cd09605545f723545d2d0bf56966cb9", + "function": "approve(address,uint256)", + "arguments": [ + "0x000000000022D473030F116dDEE9F6B43aC78BA3", + "115792089237316195423570985008687907853269984665640564039457584007913129639935" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0xebd6303d9cd09605545f723545d2d0bf56966cb9", + "gas": "0x10a53", + "value": "0x0", + "input": "0x095ea7b3000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "nonce": "0x33a3", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "function": "approve(address,address,uint160,uint48)", + "arguments": [ + "0x6C205d1b1c20352e9d33a88569f18D103004762D", + "0x0BF61f706105EA44694f2e92986bD01C39930280", + "1461501637330902918203684832716283019655932542975", + "281474976710655" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "gas": "0x1112d", + "value": "0x0", + "input": "0x87517c450000000000000000000000006c205d1b1c20352e9d33a88569f18d103004762d0000000000000000000000000bf61f706105ea44694f2e92986bd01c39930280000000000000000000000000ffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000ffffffffffff", + "nonce": "0x33a4", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "function": "approve(address,address,uint160,uint48)", + "arguments": [ + "0xebD6303d9Cd09605545F723545d2d0bF56966cB9", + "0x0BF61f706105EA44694f2e92986bD01C39930280", + "1461501637330902918203684832716283019655932542975", + "281474976710655" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "gas": "0x1112d", + "value": "0x0", + "input": "0x87517c45000000000000000000000000ebd6303d9cd09605545f723545d2d0bf56966cb90000000000000000000000000bf61f706105ea44694f2e92986bd01c39930280000000000000000000000000ffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000ffffffffffff", + "nonce": "0x33a5", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x0bf61f706105ea44694f2e92986bd01c39930280", + "function": "initialize(address,address[],uint256[],uint256,bool,bytes)", + "arguments": [ + "0x53CbcfaF8c4657e88b12D13DdC4DA0706225C932", + "[0x6C205d1b1c20352e9d33a88569f18D103004762D, 0xebD6303d9Cd09605545F723545d2d0bF56966cB9]", + "[50000000000000000000, 50000000000000000000]", + "99000000000000000000", + "false", + "0x" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x0bf61f706105ea44694f2e92986bd01c39930280", + "gas": "0x78f13", + "value": "0x0", + "input": "0x026b3d9500000000000000000000000053cbcfaf8c4657e88b12d13ddc4da0706225c93200000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000055de6a779bbac00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006c205d1b1c20352e9d33a88569f18d103004762d000000000000000000000000ebd6303d9cd09605545f723545d2d0bf56966cb90000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000002b5e3af16b1880000000000000000000000000000000000000000000000000002b5e3af16b18800000000000000000000000000000000000000000000000000000000000000000000", + "nonce": "0x33a6", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CREATE", + "contractName": "ConstantProductFactory", + "contractAddress": "0x04e08a0ce01c5b8418f93ab38d9a0123a44c1cb3", + "function": null, + "arguments": [ + "0xbA1333333333a1BA1108E8412f11850A5C319bA9", + "31536000" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "gas": "0x7fa5f3", + "value": "0x0", + "input": "0x61010060405234801562000011575f80fd5b5060405162003244380380620032448339810160408190526200003491620000df565b8181604051806020016200004890620000d1565b601f1982820381018352601f90910116604052306080526001600160a01b03831660a052815f6200008063ffffffff8316426200012d565b905063ffffffff811115620000a8576040516368755a1160e01b815260040160405180910390fd5b63ffffffff91821660c0521660e0526003620000c58282620001f1565b505050505050620002bd565b611d8a80620014ba83390190565b5f8060408385031215620000f1575f80fd5b82516001600160a01b038116811462000108575f80fd5b602084015190925063ffffffff8116811462000122575f80fd5b809150509250929050565b808201808211156200014d57634e487b7160e01b5f52601160045260245ffd5b92915050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200017c57607f821691505b6020821081036200019b57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620001ec57805f5260205f20601f840160051c81016020851015620001c85750805b601f840160051c820191505b81811015620001e9575f8155600101620001d4565b50505b505050565b81516001600160401b038111156200020d576200020d62000153565b62000225816200021e845462000167565b84620001a1565b602080601f8311600181146200025b575f8415620002435750858301515b5f19600386901b1c1916600185901b178555620002b5565b5f85815260208120601f198616915b828110156200028b578886015182559484019460019091019084016200026a565b5085821015620002a957878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b60805160a05160c05160e0516111a6620003145f395f818161028201528181610607015261063a01525f6101ec01525f8181610244015281816104b401528181610581015261074c01525f61051d01526111a65ff3fe608060405234801561000f575f80fd5b50600436106100fb575f3560e01c806378da80cb11610093578063aaabadc511610063578063aaabadc514610270578063db035ebc14610278578063e9d56e1914610280578063ec888061146102a6575f80fd5b806378da80cb146101ea578063851c1bb3146102215780638d928af8146102425780638eec5d7014610268575f80fd5b80636634b753116100ce5780636634b75314610189578063673a2a1f146101c457806369b93224146101cc5780636c57f5a9146101df575f80fd5b8063193ad50f146100ff5780632f2770db1461013457806344f6fec71461013e57806353a72f7e14610169575b5f80fd5b604080516080810182525f808252602082018190528183018190526060820152905161012b919061099e565b60405180910390f35b61013c6102ac565b005b61015161014c366004610a94565b6102f3565b6040516001600160a01b03909116815260200161012b565b61017c610177366004610ae9565b610345565b60405161012b9190610b09565b6101b4610197366004610b79565b6001600160a01b03165f9081526020819052604090205460ff1690565b604051901515815260200161012b565b61017c61044e565b6101516101da366004610d7e565b6104ae565b60025460ff166101b4565b7f00000000000000000000000000000000000000000000000000000000000000005b60405163ffffffff909116815260200161012b565b61023461022f366004610e57565b61051a565b60405190815260200161012b565b7f0000000000000000000000000000000000000000000000000000000000000000610151565b600154610234565b61015161057e565b61020c610604565b7f000000000000000000000000000000000000000000000000000000000000000061020c565b5f610151565b6102b461065c565b6102bc61069d565b6002805460ff191660011790556040517f432acbfd662dbb5d8b378384a67159b47ca9d0f1b79f97cf64cf8585fa362d50905f90a1565b5f80600384604051602001610309929190610ebb565b60408051601f19818403018152919052805160208201209091505f61032d856106c3565b905061033981836106e6565b93505050505b92915050565b60015460609080841061036b57604051634e23d03560e01b815260040160405180910390fd5b5f6103768486610f78565b90508181111561038d5761038a8583610f8b565b93505b8367ffffffffffffffff8111156103a6576103a66109d1565b6040519080825280602002602001820160405280156103cf578160200160208202803683370190505b5092505f5b848110156104455760016103e88288610f78565b815481106103f8576103f8610f9e565b905f5260205f20015f9054906101000a90046001600160a01b031684828151811061042557610425610f9e565b6001600160a01b03909216602092830291909101909101526001016103d4565b50505092915050565b606060018054806020026020016040519081016040528092919081815260200182805480156104a457602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610486575b5050505050905090565b5f6104fc7f00000000000000000000000000000000000000000000000000000000000000008b8b6040516020016104e793929190610fdd565b604051602081830303815290604052896106f9565b905061050d8188888888888861074a565b9998505050505050505050565b5f7f0000000000000000000000000000000000000000000000000000000000000000826040516020016105619291909182526001600160e01b031916602082015260240190565b604051602081830303815290604052805190602001209050919050565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663aaabadc56040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105db573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105ff919061101c565b905090565b5f7f000000000000000000000000000000000000000000000000000000000000000063ffffffff16421061063757505f90565b507f000000000000000000000000000000000000000000000000000000000000000090565b5f6106715f356001600160e01b03191661051a565b905061067d81336107e1565b61069a576040516323dada5360e01b815260040160405180910390fd5b50565b60025460ff16156106c157604051633ac4266d60e11b815260040160405180910390fd5b565b604080513360208201524691810191909152606081018290525f90608001610561565b5f6106f2838330610861565b9392505050565b5f8060038460405160200161070f929190610ebb565b60405160208183030381529060405290505f61072a846106c3565b90506107375f828461088a565b92506107428361090c565b505092915050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663eeec802f888888610784610604565b898989896040518963ffffffff1660e01b81526004016107ab989796959493929190611037565b5f604051808303815f87803b1580156107c2575f80fd5b505af11580156107d4573d5f803e3d5ffd5b5050505050505050505050565b5f6107ea61057e565b6040516326f8aa2160e21b8152600481018590526001600160a01b0384811660248301523060448301529190911690639be2a88490606401602060405180830381865afa15801561083d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106f29190611155565b5f604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b5f834710156108b95760405163392efb2b60e21b81524760048201526024810185905260440160405180910390fd5b81515f036108da57604051631328927760e21b815260040160405180910390fd5b8282516020840186f590506001600160a01b0381166106f257604051633a0ba96160e11b815260040160405180910390fd5b61091461069d565b6001600160a01b0381165f81815260208190526040808220805460ff19166001908117909155805480820182559083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b03191684179055517f83a48fbcfc991335314e74d0496aab6a1987e992ddc85dddbcc4d6dd6ef2e9fc9190a250565b8151151581526020808301511515908201526040808301511515908201526060808301511515908201526080810161033f565b634e487b7160e01b5f52604160045260245ffd5b6040516080810167ffffffffffffffff81118282101715610a0857610a086109d1565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610a3757610a376109d1565b604052919050565b5f67ffffffffffffffff831115610a5857610a586109d1565b610a6b601f8401601f1916602001610a0e565b9050828152838383011115610a7e575f80fd5b828260208301375f602084830101529392505050565b5f8060408385031215610aa5575f80fd5b823567ffffffffffffffff811115610abb575f80fd5b8301601f81018513610acb575f80fd5b610ada85823560208401610a3f565b95602094909401359450505050565b5f8060408385031215610afa575f80fd5b50508035926020909101359150565b602080825282518282018190525f9190848201906040850190845b81811015610b495783516001600160a01b031683529284019291840191600101610b24565b50909695505050505050565b6001600160a01b038116811461069a575f80fd5b8035610b7481610b55565b919050565b5f60208284031215610b89575f80fd5b81356106f281610b55565b5f82601f830112610ba3575f80fd5b6106f283833560208501610a3f565b801515811461069a575f80fd5b8035610b7481610bb2565b5f82601f830112610bd9575f80fd5b8135602067ffffffffffffffff821115610bf557610bf56109d1565b610c03818360051b01610a0e565b82815260079290921b84018101918181019086841115610c21575f80fd5b8286015b84811015610c995760808189031215610c3c575f80fd5b610c446109e5565b8135610c4f81610b55565b81528185013560028110610c61575f80fd5b81860152604082810135610c7481610b55565b90820152606082810135610c8781610bb2565b90820152835291830191608001610c25565b509695505050505050565b5f60608284031215610cb4575f80fd5b6040516060810181811067ffffffffffffffff82111715610cd757610cd76109d1565b6040529050808235610ce881610b55565b81526020830135610cf881610b55565b60208201526040830135610d0b81610b55565b6040919091015292915050565b5f60808284031215610d28575f80fd5b610d306109e5565b90508135610d3d81610bb2565b81526020820135610d4d81610bb2565b60208201526040820135610d6081610bb2565b60408201526060820135610d7381610bb2565b606082015292915050565b5f805f805f805f805f6101c08a8c031215610d97575f80fd5b893567ffffffffffffffff80821115610dae575f80fd5b610dba8d838e01610b94565b9a5060208c0135915080821115610dcf575f80fd5b610ddb8d838e01610b94565b995060408c0135985060608c0135915080821115610df7575f80fd5b50610e048c828d01610bca565b96505060808a01359450610e1a60a08b01610bbf565b9350610e298b60c08c01610ca4565b9250610e386101208b01610b69565b9150610e488b6101408c01610d18565b90509295985092959850929598565b5f60208284031215610e67575f80fd5b81356001600160e01b0319811681146106f2575f80fd5b5f5b83811015610e98578181015183820152602001610e80565b50505f910152565b5f8151610eb1818560208601610e7e565b9290920192915050565b5f8084545f60018260011c91506001831680610ed857607f831692505b60208084108203610ef757634e487b7160e01b5f52602260045260245ffd5b818015610f0b5760018114610f2057610f4b565b60ff1986168952841515850289019650610f4b565b5f8b8152602090205f5b86811015610f435781548b820152908501908301610f2a565b505084890196505b505050505050610f5b8185610ea0565b95945050505050565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561033f5761033f610f64565b8181038181111561033f5761033f610f64565b634e487b7160e01b5f52603260045260245ffd5b5f8151808452610fc9816020860160208601610e7e565b601f01601f19169290920160200192915050565b6001600160a01b03841681526060602082018190525f9061100090830185610fb2565b82810360408401526110128185610fb2565b9695505050505050565b5f6020828403121561102c575f80fd5b81516106f281610b55565b6001600160a01b0389811682526101a060208084018290528a519184018290525f926101c08501928c83019290855b818110156110c4578451848151168752838101516002811061109657634e487b7160e01b5f52602160045260245ffd5b8785015260408181015186169088015260609081015115159087015260809095019493820193600101611066565b50505050506040830189905263ffffffff881660608401529050851515608083015284516001600160a01b0390811660a08401526020860151811660c084015260408601511660e08301526001600160a01b0384166101008301528251151561012083015260208301511515610140830152604083015115156101608301526060830151151561018083015261050d565b5f60208284031215611165575f80fd5b81516106f281610bb256fea26469706673582212201f41d012242abc6a107348028140138e8571b5e34ec280b899eb5c406266c74464736f6c6343000818003361018060405234801562000011575f80fd5b5060405162001d8a38038062001d8a83398101604081905262000034916200028f565b8282828282604051806040016040528060018152602001603160f81b815250620000685f836200014660201b90919060201c565b610120526200007981600162000146565b61014052815160208084019190912060e052815190820120610100524660a0526200010660e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b60805250503060c0526001600160a01b03166101605260036200012a83826200039d565b5060046200013982826200039d565b50505050505050620004c1565b5f60208351101562000165576200015d836200017e565b905062000178565b816200017284826200039d565b5060ff90505b92915050565b5f80829050601f81511115620001b4578260405163305a27a960e01b8152600401620001ab919062000469565b60405180910390fd5b8051620001c1826200049d565b179392505050565b634e487b7160e01b5f52604160045260245ffd5b5f5b83811015620001f9578181015183820152602001620001df565b50505f910152565b5f82601f83011262000211575f80fd5b81516001600160401b03808211156200022e576200022e620001c9565b604051601f8301601f19908116603f01168101908282118183101715620002595762000259620001c9565b8160405283815286602085880101111562000272575f80fd5b62000285846020830160208901620001dd565b9695505050505050565b5f805f60608486031215620002a2575f80fd5b83516001600160a01b0381168114620002b9575f80fd5b60208501519093506001600160401b0380821115620002d6575f80fd5b620002e48783880162000201565b93506040860151915080821115620002fa575f80fd5b50620003098682870162000201565b9150509250925092565b600181811c908216806200032857607f821691505b6020821081036200034757634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200039857805f5260205f20601f840160051c81016020851015620003745750805b601f840160051c820191505b8181101562000395575f815560010162000380565b50505b505050565b81516001600160401b03811115620003b957620003b9620001c9565b620003d181620003ca845462000313565b846200034d565b602080601f83116001811462000407575f8415620003ef5750858301515b5f19600386901b1c1916600185901b17855562000461565b5f85815260208120601f198616915b82811015620004375788860151825594840194600190910190840162000416565b50858210156200045557878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b602081525f825180602084015262000489816040850160208701620001dd565b601f01601f19169190910160400192915050565b8051602080830151919081101562000347575f1960209190910360031b1b16919050565b60805160a05160c05160e0516101005161012051610140516101605161182e6200055c5f395f81816103470152818161049c01528181610599015281816106460152818161078c015281816107e2015281816109e701528181610b6a01528181610c100152610cae01525f610e4c01525f610e2001525f610dc901525f610da101525f610cfc01525f610d2601525f610d50015261182e5ff3fe608060405234801561000f575f80fd5b50600436106101a1575f3560e01c8063654cf15d116100f357806395d89b4111610093578063b677fa561161006e578063b677fa561461039f578063ce20ece7146103ad578063d505accf146103b8578063dd62ed3e146103cb575f80fd5b806395d89b4114610371578063984de9e814610379578063a9059cbb1461038c575f80fd5b806372c98186116100ce57806372c98186146102f95780637ecebe001461030c57806384b0196e1461031f5780638d928af81461033a575f80fd5b8063654cf15d146102d0578063679aefce146102de57806370a08231146102e6575f80fd5b806323de66511161015e578063313ce56711610139578063313ce5671461028c5780633644e5151461029b5780635687f2b8146102a3578063627cdcb9146102b6575f80fd5b806323de665114610242578063273c1adf1461025757806330adf81f14610265575f80fd5b806301ffc9a7146101a557806306fdde03146101de578063095ea7b3146101f357806316a0b3e01461020657806318160ddd1461022757806323b872dd1461022f575b5f80fd5b6101c96101b33660046112e7565b6001600160e01b0319166301ffc9a760e01b1490565b60405190151581526020015b60405180910390f35b6101e66103de565b6040516101d59190611351565b6101c961020136600461137e565b61046e565b61021961021436600461144a565b610515565b6040519081526020016101d5565b610219610582565b6101c961023d366004611494565b610610565b610255610250366004611494565b6106bd565b005b6729a2241af62c0000610219565b6102197f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b604051601281526020016101d5565b610219610717565b6102556102b1366004611494565b610720565b610255335f90815260026020526040902080546001019055565b67016345785d8a0000610219565b61021961076d565b6102196102f43660046114cd565b6107bb565b6102196103073660046114e6565b61084d565b61021961031a3660046114cd565b6108d5565b6103276108f2565b6040516101d5979695949392919061151d565b6040516001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001681526020016101d5565b6101e6610934565b6102196103873660046115b4565b610943565b6101c961039a36600461137e565b6109b9565b6709b6e64a8ec60000610219565b64e8d4a51000610219565b6102556103c6366004611606565b610a18565b6102196103d9366004611673565b610be1565b6060600380546103ed906116a4565b80601f0160208091040260200160405190810160405280929190818152602001828054610419906116a4565b80156104645780601f1061043b57610100808354040283529160200191610464565b820191905f5260205f20905b81548152906001019060200180831161044757829003601f168201915b5050505050905090565b60405163e1f21c6760e01b81523360048201526001600160a01b038381166024830152604482018390525f917f00000000000000000000000000000000000000000000000000000000000000009091169063e1f21c67906064015b6020604051808303815f875af11580156104e5573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061050991906116dc565b50600190505b92915050565b5f8061052c83610526876001610943565b90610c7b565b90505f841561053b575f61053e565b60015b60ff1690505f868281518110610556576105566116fb565b6020026020010151905080838461056d9190611723565b610577919061174e565b979650505050505050565b6040516339370aa960e21b81523060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e4dc2aa4906024015b602060405180830381865afa1580156105e7573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061060b919061176d565b905090565b604051630aed65f560e11b81523360048201526001600160a01b0384811660248301528381166044830152606482018390525f917f0000000000000000000000000000000000000000000000000000000000000000909116906315dacbea906084016020604051808303815f875af115801561068e573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106b291906116dc565b506001949350505050565b6106c5610ca3565b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161070a91815260200190565b60405180910390a3505050565b5f61060b610cf0565b610728610ca3565b816001600160a01b0316836001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258360405161070a91815260200190565b604051634f037ee760e01b81523060048201525f906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690634f037ee7906024016105cc565b604051633de222bb60e21b81523060048201526001600160a01b0382811660248301525f917f00000000000000000000000000000000000000000000000000000000000000009091169063f7888aec90604401602060405180830381865afa158015610829573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061050f919061176d565b5f8061085c6040840184611784565b8460800135818110610870576108706116fb565b9050602002013590505f83806040019061088a9190611784565b856060013581811061089e5761089e6116fb565b602090810292909201359250508401356108b881836117d1565b6108c28285611723565b6108cc919061174e565b95945050505050565b6001600160a01b0381165f9081526002602052604081205461050f565b5f6060805f805f6060610903610e19565b61090b610e45565b604080515f80825260208201909252600f60f81b9b939a50919850469750309650945092509050565b6060600480546103ed906116a4565b5f670de0b6b3a7640000905061099983600181518110610965576109656116fb565b6020026020010151610526855f81518110610982576109826116fb565b602002602001015184610c7b90919063ffffffff16565b90506109a481610e72565b6109b290633b9aca00611723565b9392505050565b6040516317d5759960e31b81523360048201526001600160a01b038381166024830152604482018390525f917f00000000000000000000000000000000000000000000000000000000000000009091169063beabacc8906064016104c9565b83421115610a415760405163313c898160e11b8152600481018590526024015b60405180910390fd5b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888610a8c8c6001600160a01b03165f90815260026020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090505f610ae682610f56565b90505f610af582878787610f82565b9050896001600160a01b0316816001600160a01b031614610b3c576040516325c0072360e11b81526001600160a01b0380831660048301528b166024820152604401610a38565b60405163e1f21c6760e01b81526001600160a01b038b811660048301528a81166024830152604482018a90527f0000000000000000000000000000000000000000000000000000000000000000169063e1f21c67906064016020604051808303815f875af1158015610bb0573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bd491906116dc565b5050505050505050505050565b60405163927da10560e01b81523060048201526001600160a01b03838116602483015282811660448301525f917f00000000000000000000000000000000000000000000000000000000000000009091169063927da10590606401602060405180830381865afa158015610c57573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109b2919061176d565b5f80610c878385611723565b9050610c9b670de0b6b3a76400008261174e565b949350505050565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610cee5760405163089676d560e01b8152336004820152602401610a38565b565b5f306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015610d4857507f000000000000000000000000000000000000000000000000000000000000000046145b15610d7257507f000000000000000000000000000000000000000000000000000000000000000090565b61060b604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b606061060b7f00000000000000000000000000000000000000000000000000000000000000005f610fae565b606061060b7f00000000000000000000000000000000000000000000000000000000000000006001610fae565b5f815f03610e8157505f919050565b5f6001610e8d84611057565b901c6001901b90506001818481610ea657610ea661173a565b048201901c90506001818481610ebe57610ebe61173a565b048201901c90506001818481610ed657610ed661173a565b048201901c90506001818481610eee57610eee61173a565b048201901c90506001818481610f0657610f0661173a565b048201901c90506001818481610f1e57610f1e61173a565b048201901c90506001818481610f3657610f3661173a565b048201901c90506109b281828581610f5057610f5061173a565b046110ea565b5f61050f610f62610cf0565b8360405161190160f01b8152600281019290925260228201526042902090565b5f805f80610f92888888886110ff565b925092509250610fa282826111c7565b50909695505050505050565b606060ff8314610fc857610fc183611283565b905061050f565b818054610fd4906116a4565b80601f0160208091040260200160405190810160405280929190818152602001828054611000906116a4565b801561104b5780601f106110225761010080835404028352916020019161104b565b820191905f5260205f20905b81548152906001019060200180831161102e57829003601f168201915b5050505050905061050f565b5f80608083901c1561106b57608092831c92015b604083901c1561107d57604092831c92015b602083901c1561108f57602092831c92015b601083901c156110a157601092831c92015b600883901c156110b357600892831c92015b600483901c156110c557600492831c92015b600283901c156110d757600292831c92015b600183901c1561050f5760010192915050565b5f8183106110f857816109b2565b5090919050565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a084111561113857505f915060039050826111bd565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015611189573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b0381166111b457505f9250600191508290506111bd565b92505f91508190505b9450945094915050565b5f8260038111156111da576111da6117e4565b036111e3575050565b60018260038111156111f7576111f76117e4565b036112155760405163f645eedf60e01b815260040160405180910390fd5b6002826003811115611229576112296117e4565b0361124a5760405163fce698f760e01b815260048101829052602401610a38565b600382600381111561125e5761125e6117e4565b0361127f576040516335e2f38360e21b815260048101829052602401610a38565b5050565b60605f61128f836112c0565b6040805160208082528183019092529192505f91906020820181803683375050509182525060208101929092525090565b5f60ff8216601f81111561050f57604051632cd44ac360e21b815260040160405180910390fd5b5f602082840312156112f7575f80fd5b81356001600160e01b0319811681146109b2575f80fd5b5f81518084525f5b8181101561133257602081850181015186830182015201611316565b505f602082860101526020601f19601f83011685010191505092915050565b602081525f6109b2602083018461130e565b80356001600160a01b0381168114611379575f80fd5b919050565b5f806040838503121561138f575f80fd5b61139883611363565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f8301126113c9575f80fd5b8135602067ffffffffffffffff808311156113e6576113e66113a6565b8260051b604051601f19603f8301168101818110848211171561140b5761140b6113a6565b604052938452602081870181019490810192508785111561142a575f80fd5b6020870191505b8482101561057757813583529183019190830190611431565b5f805f6060848603121561145c575f80fd5b833567ffffffffffffffff811115611472575f80fd5b61147e868287016113ba565b9660208601359650604090950135949350505050565b5f805f606084860312156114a6575f80fd5b6114af84611363565b92506114bd60208501611363565b9150604084013590509250925092565b5f602082840312156114dd575f80fd5b6109b282611363565b5f602082840312156114f6575f80fd5b813567ffffffffffffffff81111561150c575f80fd5b820160e081850312156109b2575f80fd5b60ff60f81b881681525f602060e0602084015261153d60e084018a61130e565b838103604085015261154f818a61130e565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825260208088019350909101905f5b818110156115a257835183529284019291840191600101611586565b50909c9b505050505050505050505050565b5f80604083850312156115c5575f80fd5b823567ffffffffffffffff8111156115db575f80fd5b6115e7858286016113ba565b9250506020830135600281106115fb575f80fd5b809150509250929050565b5f805f805f805f60e0888a03121561161c575f80fd5b61162588611363565b965061163360208901611363565b95506040880135945060608801359350608088013560ff81168114611656575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f8060408385031215611684575f80fd5b61168d83611363565b915061169b60208401611363565b90509250929050565b600181811c908216806116b857607f821691505b6020821081036116d657634e487b7160e01b5f52602260045260245ffd5b50919050565b5f602082840312156116ec575f80fd5b815180151581146109b2575f80fd5b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b808202811582820484141761050f5761050f61170f565b634e487b7160e01b5f52601260045260245ffd5b5f8261176857634e487b7160e01b5f52601260045260245ffd5b500490565b5f6020828403121561177d575f80fd5b5051919050565b5f808335601e19843603018112611799575f80fd5b83018035915067ffffffffffffffff8211156117b3575f80fd5b6020019150600581901b36038213156117ca575f80fd5b9250929050565b8082018082111561050f5761050f61170f565b634e487b7160e01b5f52602160045260245ffdfea2646970667358221220482dd0923335d06c091ebb7d7e774133d557100c0c3aac86d8a3b11b502527f164736f6c63430008180033000000000000000000000000ba1333333333a1ba1108e8412f11850a5c319ba90000000000000000000000000000000000000000000000000000000001e13380", + "nonce": "0x33a7", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CREATE", + "contractName": "LotteryHookExample", + "contractAddress": "0x84a94a689ea85b0c880bb61a62e3c6833d68262a", + "function": null, + "arguments": [ + "0xbA1333333333a1BA1108E8412f11850A5C319bA9", + "0x0BF61f706105EA44694f2e92986bD01C39930280" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "gas": "0x1b59a5", + "value": "0x0", + "input": "0x60c06040525f60045534801562000014575f80fd5b50604051620018b9380380620018b98339810160408190526200003791620000f0565b6001600160a01b03821660805233806200006a57604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b620000758162000089565b506001600160a01b031660a052506200012d565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381168114620000ed575f80fd5b50565b5f806040838503121562000102575f80fd5b82516200010f81620000d8565b60208401519092506200012281620000d8565b809150509250929050565b60805160a051611763620001565f395f61034701525f81816105a8015261083201526117635ff3fe608060405234801561000f575f80fd5b506004361061011c575f3560e01c80638da5cb5b116100a9578063dbdff2c11161006e578063dbdff2c114610298578063f2fde38b146102b2578063f883fcaa146102c5578063f9e5c197146102cd578063fea9b572146102e0575f80fd5b80638da5cb5b14610226578063976907cc14610240578063a0e8f5ac1461025d578063ba5f9f4014610275578063d77153a714610283575f80fd5b806338be241d116100ef57806338be241d146101b05780634392312a146101c357806345421ec7146101f45780635211fa771461020e578063715018a61461021c575f80fd5b80630b89f1821461012057806318b6eb55146101485780631c149e28146101725780632754888d14610185575b5f80fd5b61013361012e366004610e01565b6102e8565b60405190151581526020015b60405180910390f35b61015b610156366004610f25565b610332565b60408051921515835260208301919091520161013f565b61013361018036600461102e565b6104a0565b6101a261019336600461109b565b5f839850989650505050505050565b60405161013f92919061117a565b6101336101be3660046111ca565b6104a8565b5f546101dc90600160a01b90046001600160401b031681565b6040516001600160401b03909116815260200161013f565b61013361020236600461123f565b5f979650505050505050565b61013361018036600461130e565b6102246104b1565b005b5f546040516001600160a01b03909116815260200161013f565b6101a261024e36600461135c565b5f849850989650505050505050565b61015b61026b3660046113fd565b5f80935093915050565b610133610202366004611452565b61028b6104c4565b60405161013f91906114d4565b6102a06104e3565b60405160ff909116815260200161013f565b6102246102c036600461158c565b6104f1565b6102a0600a81565b6102246102db3660046115a7565b610533565b6102a0601481565b5f6102f161059d565b6040516001600160a01b0385169030907f8b640b5b54a040cdfb1149b7446b0c7c18c820e860ed3d8b584acea1888b7ecd905f90a35060015b949350505050565b5f8061033c61059d565b5f6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166103796101408601610120870161158c565b6001600160a01b0316036103925761038f6105e8565b90505b60048054905f6103a1836115e1565b90915550505f546101008501359250600160a01b90046001600160401b031615610496575f80546103e89061010087013590600160a01b90046001600160401b0316610637565b90505f6103f8602087018761160d565b6001811115610409576104096115f9565b03610456575f61043b6104246101408801610120890161158c565b8461043560608a0160408b0161158c565b85610657565b905080156104505761044d8185611628565b93505b50610494565b5f61047d61046c6101408801610120890161158c565b8461043560408a0160208b0161158c565b905080156104925761048f818561163b565b93505b505b505b6001925050915091565b5f5b92915050565b5f5b9392505050565b6104b96108d1565b6104c25f6108fd565b565b6104cc610ccd565b6104d4610ccd565b600180825260a0820152919050565b5f6104ec6105e8565b905090565b6104f96108d1565b6001600160a01b03811661052757604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b610530816108fd565b50565b61053b6108d1565b5f805467ffffffffffffffff60a01b1916600160a01b6001600160401b0384169081029190911790915560405190815230907fb25b38640ad709be28a74117ede8cc6094d9e8b3aa27330e26b10898c92ba5229060200160405180910390a250565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146104c25760405163089676d560e01b815233600482015260240161051e565b6004546040515f9160149161060a914491602001918252602082015260400190565b604051602081830303815290604052805190602001205f1c61062c9190611662565b6104ec90600161163b565b5f806106438385611675565b905061032a670de0b6b3a76400008261168c565b5f60091960ff8516016107f3575f856001600160a01b0316635e01eb5a6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106a1573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106c5919061169f565b6001549091505b80156107e9575f6106e96106e1600184611628565b60019061094c565b5090506106f7600182610996565b506040516370a0823160e01b81523060048201525f906001600160a01b038316906370a0823190602401602060405180830381865afa15801561073c573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061076091906116ba565b905080156107d45761077c6001600160a01b0383168583610a68565b816001600160a01b0316846001600160a01b0316306001600160a01b03167fad248945aa9c6e54a3aae4c347a04143e677a981dbefd64b871fd587ad6077c6846040516107cb91815260200190565b60405180910390a45b505080806107e1906116d1565b9150506106cc565b505f91505061032a565b6107ff60018481610abf565b5081156108ca5760405163ae63932960e01b81526001600160a01b038481166004830152306024830152604482018490527f0000000000000000000000000000000000000000000000000000000000000000169063ae639329906064015f604051808303815f87803b158015610873575f80fd5b505af1158015610885573d5f803e3d5ffd5b50506040518481526001600160a01b03861692503091507f9614d1bfde1842c37d557aba9f2b69fa1ad92fef808d832d9f4b3ab5cdd06a7b9060200160405180910390a35b508061032a565b5f546001600160a01b031633146104c25760405163118cdaa760e01b815233600482015260240161051e565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f80835f0154831061097157604051634e23d03560e01b815260040160405180910390fd5b50505f90815260019182016020526040902080549101546001600160a01b0390911691565b6001600160a01b0381165f9081526002830160205260408120548015610a5f5783545f198083019101808214610a16575f818152600180880160209081526040808420868552818520815481546001600160a01b0319166001600160a01b0391821617825582860154919095015554909216835260028901905290208390555b5f81815260018088016020908152604080842080546001600160a01b031916815583018490559389556001600160a01b03881683526002890190529181205592506104a2915050565b5f9150506104a2565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610aba908490610b6a565b505050565b6001600160a01b0382165f908152600284016020526040812054808203610b4c57505082546040805180820182526001600160a01b0385811680835260208084018781525f8781526001808c018452878220965187546001600160a01b031916961695909517865590519484019490945594820180895590835260028801909452919020919091556104aa565b5f19015f9081526001808601602052604082200183905590506104aa565b5f610b7e6001600160a01b03841683610bcb565b905080515f14158015610ba2575080806020019051810190610ba091906116e6565b155b15610aba57604051635274afe760e01b81526001600160a01b038416600482015260240161051e565b60606104aa83835f845f80856001600160a01b03168486604051610bef9190611701565b5f6040518083038185875af1925050503d805f8114610c29576040519150601f19603f3d011682016040523d82523d5f602084013e610c2e565b606091505b5091509150610c3e868383610c48565b9695505050505050565b606082610c5d57610c5882610ca4565b6104aa565b8151158015610c7457506001600160a01b0384163b155b15610c9d57604051639996b31560e01b81526001600160a01b038516600482015260240161051e565b50806104aa565b805115610cb45780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b60408051610140810182525f80825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081019190915290565b6001600160a01b0381168114610530575f80fd5b8035610d3f81610d20565b919050565b634e487b7160e01b5f52604160045260245ffd5b604051608081016001600160401b0381118282101715610d7a57610d7a610d44565b60405290565b604051601f8201601f191681016001600160401b0381118282101715610da857610da8610d44565b604052919050565b5f6001600160401b03821115610dc857610dc8610d44565b5060051b60200190565b60028110610530575f80fd5b8015158114610530575f80fd5b5f60808284031215610dfb575f80fd5b50919050565b5f805f8060e08587031215610e14575f80fd5b8435610e1f81610d20565b9350602085810135610e3081610d20565b93506040868101356001600160401b03811115610e4b575f80fd5b8701601f81018913610e5b575f80fd5b8035610e6e610e6982610db0565b610d80565b81815260079190911b8201840190848101908b831115610e8c575f80fd5b928501925b82841015610f04576080848d031215610ea8575f80fd5b610eb0610d58565b8435610ebb81610d20565b815284870135610eca81610dd2565b8188015284860135610edb81610d20565b81870152606085810135610eee81610dde565b9082015282526080939093019290850190610e91565b809750505050505050610f1a8660608701610deb565b905092959194509250565b5f60208284031215610f35575f80fd5b81356001600160401b03811115610f4a575f80fd5b820161018081850312156104aa575f80fd5b5f82601f830112610f6b575f80fd5b81356020610f7b610e6983610db0565b8083825260208201915060208460051b870101935086841115610f9c575f80fd5b602086015b84811015610fb85780358352918301918301610fa1565b509695505050505050565b5f82601f830112610fd2575f80fd5b81356001600160401b03811115610feb57610feb610d44565b610ffe601f8201601f1916602001610d80565b818152846020838601011115611012575f80fd5b816020850160208301375f918101602001919091529392505050565b5f806040838503121561103f575f80fd5b82356001600160401b0380821115611055575f80fd5b61106186838701610f5c565b93506020850135915080821115611076575f80fd5b5061108385828601610fc3565b9150509250929050565b803560048110610d3f575f80fd5b5f805f805f805f80610100898b0312156110b3575f80fd5b6110bc89610d34565b97506110ca60208a01610d34565b96506110d860408a0161108d565b95506060890135945060808901356001600160401b03808211156110fa575f80fd5b6111068c838d01610f5c565b955060a08b013591508082111561111b575f80fd5b6111278c838d01610f5c565b945060c08b013591508082111561113c575f80fd5b6111488c838d01610f5c565b935060e08b013591508082111561115d575f80fd5b5061116a8b828c01610fc3565b9150509295985092959890939650565b5f6040820184151583526020604060208501528185518084526060860191506020870193505f5b818110156111bd578451835293830193918301916001016111a1565b5090979650505050505050565b5f805f606084860312156111dc575f80fd5b83356001600160401b03808211156111f2575f80fd5b6111fe87838801610f5c565b945060208601359350604086013591508082111561121a575f80fd5b5061122786828701610fc3565b9150509250925092565b803560058110610d3f575f80fd5b5f805f805f805f60e0888a031215611255575f80fd5b873561126081610d20565b9650602088013561127081610d20565b955061127e60408901611231565b945060608801356001600160401b0380821115611299575f80fd5b6112a58b838c01610f5c565b955060808a0135945060a08a01359150808211156112c1575f80fd5b6112cd8b838c01610f5c565b935060c08a01359150808211156112e2575f80fd5b506112ef8a828b01610fc3565b91505092959891949750929550565b5f60e08284031215610dfb575f80fd5b5f806040838503121561131f575f80fd5b82356001600160401b03811115611334575f80fd5b611340858286016112fe565b925050602083013561135181610d20565b809150509250929050565b5f805f805f805f80610100898b031215611374575f80fd5b61137d89610d34565b975061138b60208a01610d34565b965061139960408a01611231565b955060608901356001600160401b03808211156113b4575f80fd5b6113c08c838d01610f5c565b965060808b01359150808211156113d5575f80fd5b6113e18c838d01610f5c565b955060a08b0135945060c08b013591508082111561113c575f80fd5b5f805f6060848603121561140f575f80fd5b83356001600160401b03811115611424575f80fd5b611430868287016112fe565b935050602084013561144181610d20565b929592945050506040919091013590565b5f805f805f805f60e0888a031215611468575f80fd5b873561147381610d20565b9650602088013561148381610d20565b95506114916040890161108d565b94506060880135935060808801356001600160401b03808211156114b3575f80fd5b6114bf8b838c01610f5c565b945060a08a01359150808211156112c1575f80fd5b815115158152610140810160208301516114f2602084018215159052565b506040830151611506604084018215159052565b50606083015161151a606084018215159052565b50608083015161152e608084018215159052565b5060a083015161154260a084018215159052565b5060c083015161155660c084018215159052565b5060e083015161156a60e084018215159052565b5061010083810151151590830152610120928301511515929091019190915290565b5f6020828403121561159c575f80fd5b81356104aa81610d20565b5f602082840312156115b7575f80fd5b81356001600160401b03811681146104aa575f80fd5b634e487b7160e01b5f52601160045260245ffd5b5f600182016115f2576115f26115cd565b5060010190565b634e487b7160e01b5f52602160045260245ffd5b5f6020828403121561161d575f80fd5b81356104aa81610dd2565b818103818111156104a2576104a26115cd565b808201808211156104a2576104a26115cd565b634e487b7160e01b5f52601260045260245ffd5b5f826116705761167061164e565b500690565b80820281158282048414176104a2576104a26115cd565b5f8261169a5761169a61164e565b500490565b5f602082840312156116af575f80fd5b81516104aa81610d20565b5f602082840312156116ca575f80fd5b5051919050565b5f816116df576116df6115cd565b505f190190565b5f602082840312156116f6575f80fd5b81516104aa81610dde565b5f82515f5b818110156117205760208186018101518583015201611706565b505f92019182525091905056fea2646970667358221220c91b146adc8ff5cac6b81b3a5f5728fbf4da4b611f2108b419823938f28ce48d64736f6c63430008180033000000000000000000000000ba1333333333a1ba1108e8412f11850a5c319ba90000000000000000000000000bf61f706105ea44694f2e92986bd01c39930280", + "nonce": "0x33a8", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": "ConstantProductFactory", + "contractAddress": "0x04e08a0ce01c5b8418f93ab38d9a0123a44c1cb3", + "function": "create(string,string,bytes32,(address,uint8,address,bool)[],uint256,bool,(address,address,address),address,(bool,bool,bool,bool))", + "arguments": [ + "Constant Product Pool", + "CPP", + "0x44bceb2174c451b4eeb824ee608d82ba99b4aad667464d285014758e412cae07", + "[(0x6C205d1b1c20352e9d33a88569f18D103004762D, 0, 0x0000000000000000000000000000000000000000, false), (0xebD6303d9Cd09605545F723545d2d0bF56966cB9, 0, 0x0000000000000000000000000000000000000000, false)]", + "20000000000000000", + "false", + "(0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000)", + "0x84a94a689Ea85B0c880Bb61a62E3c6833D68262A", + "(true, false, false, false)" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x04e08a0ce01c5b8418f93ab38d9a0123a44c1cb3", + "gas": "0x2f9dff", + "value": "0x0", + "input": "0x69b9322400000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000020044bceb2174c451b4eeb824ee608d82ba99b4aad667464d285014758e412cae07000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000470de4df820000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084a94a689ea85b0c880bb61a62e3c6833d68262a00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015436f6e7374616e742050726f6475637420506f6f6c00000000000000000000000000000000000000000000000000000000000000000000000000000000000003435050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006c205d1b1c20352e9d33a88569f18d103004762d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ebd6303d9cd09605545f723545d2d0bf56966cb9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "nonce": "0x33a9", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": "MockToken2", + "contractAddress": "0x6c205d1b1c20352e9d33a88569f18d103004762d", + "function": "approve(address,uint256)", + "arguments": [ + "0x000000000022D473030F116dDEE9F6B43aC78BA3", + "115792089237316195423570985008687907853269984665640564039457584007913129639935" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x6c205d1b1c20352e9d33a88569f18d103004762d", + "gas": "0x9028", + "value": "0x0", + "input": "0x095ea7b3000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "nonce": "0x33aa", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": "MockToken1", + "contractAddress": "0xebd6303d9cd09605545f723545d2d0bf56966cb9", + "function": "approve(address,uint256)", + "arguments": [ + "0x000000000022D473030F116dDEE9F6B43aC78BA3", + "115792089237316195423570985008687907853269984665640564039457584007913129639935" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0xebd6303d9cd09605545f723545d2d0bf56966cb9", + "gas": "0x9028", + "value": "0x0", + "input": "0x095ea7b3000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "nonce": "0x33ab", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "function": "approve(address,address,uint160,uint48)", + "arguments": [ + "0x6C205d1b1c20352e9d33a88569f18D103004762D", + "0x0BF61f706105EA44694f2e92986bD01C39930280", + "1461501637330902918203684832716283019655932542975", + "281474976710655" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "gas": "0x96a0", + "value": "0x0", + "input": "0x87517c450000000000000000000000006c205d1b1c20352e9d33a88569f18d103004762d0000000000000000000000000bf61f706105ea44694f2e92986bd01c39930280000000000000000000000000ffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000ffffffffffff", + "nonce": "0x33ac", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "function": "approve(address,address,uint160,uint48)", + "arguments": [ + "0xebD6303d9Cd09605545F723545d2d0bF56966cB9", + "0x0BF61f706105EA44694f2e92986bD01C39930280", + "1461501637330902918203684832716283019655932542975", + "281474976710655" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "gas": "0x96a0", + "value": "0x0", + "input": "0x87517c45000000000000000000000000ebd6303d9cd09605545f723545d2d0bf56966cb90000000000000000000000000bf61f706105ea44694f2e92986bd01c39930280000000000000000000000000ffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000ffffffffffff", + "nonce": "0x33ad", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x0bf61f706105ea44694f2e92986bd01c39930280", + "function": "initialize(address,address[],uint256[],uint256,bool,bytes)", + "arguments": [ + "0x41eF6197c23f24777476bF674DeaF350CC2b9B34", + "[0x6C205d1b1c20352e9d33a88569f18D103004762D, 0xebD6303d9Cd09605545F723545d2d0bF56966cB9]", + "[50000000000000000000, 50000000000000000000]", + "49000000000000000000", + "false", + "0x" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x0bf61f706105ea44694f2e92986bd01c39930280", + "gas": "0x5b993", + "value": "0x0", + "input": "0x026b3d9500000000000000000000000041ef6197c23f24777476bf674deaf350cc2b9b3400000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000002a802f8630a2400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006c205d1b1c20352e9d33a88569f18d103004762d000000000000000000000000ebd6303d9cd09605545f723545d2d0bf56966cb90000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000002b5e3af16b1880000000000000000000000000000000000000000000000000002b5e3af16b18800000000000000000000000000000000000000000000000000000000000000000000", + "nonce": "0x33ae", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CREATE", + "contractName": "WeightedPoolFactory", + "contractAddress": "0xa3dba161c34940d4a145448a4cdc3f5b88e8a179", + "function": null, + "arguments": [ + "0xbA1333333333a1BA1108E8412f11850A5C319bA9", + "31536000", + "Factory v1", + "Pool v1" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "gas": "0x106cdbb", + "value": "0x0", + "input": "0x61010060405234801562000011575f80fd5b5060405162005b0b38038062005b0b8339810160408190526200003491620001d6565b81848460405180602001620000499062000107565b601f1982820381018352601f90910116604052306080526001600160a01b03831660a052815f6200008163ffffffff83164262000277565b905063ffffffff811115620000a9576040516368755a1160e01b815260040160405180910390fd5b63ffffffff91821660c0521660e0526003620000c6828262000327565b50505050620000db81620000f560201b60201c565b506005620000ea828262000327565b5050505050620003f3565b600462000103828262000327565b5050565b61422d80620018de83390190565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011262000139575f80fd5b81516001600160401b038082111562000156576200015662000115565b604051601f8301601f19908116603f0116810190828211818310171562000181576200018162000115565b81604052838152602092508660208588010111156200019e575f80fd5b5f91505b83821015620001c15785820183015181830184015290820190620001a2565b5f602085830101528094505050505092915050565b5f805f8060808587031215620001ea575f80fd5b84516001600160a01b038116811462000201575f80fd5b602086015190945063ffffffff811681146200021b575f80fd5b60408601519093506001600160401b038082111562000238575f80fd5b620002468883890162000129565b935060608701519150808211156200025c575f80fd5b506200026b8782880162000129565b91505092959194509250565b808201808211156200029757634e487b7160e01b5f52601160045260245ffd5b92915050565b600181811c90821680620002b257607f821691505b602082108103620002d157634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200032257805f5260205f20601f840160051c81016020851015620002fe5750805b601f840160051c820191505b818110156200031f575f81556001016200030a565b50505b505050565b81516001600160401b0381111562000343576200034362000115565b6200035b816200035484546200029d565b84620002d7565b602080601f83116001811462000391575f8415620003795750858301515b5f19600386901b1c1916600185901b178555620003eb565b5f85815260208120601f198616915b82811015620003c157888601518255948401946001909101908401620003a0565b5085821015620003df57878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b60805160a05160c05160e0516114946200044a5f395f81816102a20152818161066c015261069f01525f61020c01525f8181610264015281816105e6015281816107e3015261093b01525f61058201526114945ff3fe608060405234801561000f575f80fd5b5060043610610111575f3560e01c806378da80cb1161009e578063aaabadc51161006e578063aaabadc514610290578063db035ebc14610298578063e9d56e19146102a0578063ec888061146102c6578063fed4cdda146102cc575f80fd5b806378da80cb1461020a578063851c1bb3146102415780638d928af8146102625780638eec5d7014610288575f80fd5b806353a72f7e116100e457806353a72f7e1461019457806354fd4d50146101b45780636634b753146101bc578063673a2a1f146101f75780636c57f5a9146101ff575f80fd5b8063193ad50f146101155780632f2770db1461014a5780633f819b6f1461015457806344f6fec714610169575b5f80fd5b604080516080810182525f80825260208201819052818301819052606082015290516101419190610b8d565b60405180910390f35b6101526102df565b005b61015c610326565b6040516101419190610c0d565b61017c610177366004610ce2565b6103b6565b6040516001600160a01b039091168152602001610141565b6101a76101a2366004610d37565b610408565b6040516101419190610d57565b61015c610511565b6101e76101ca366004610dc7565b6001600160a01b03165f9081526020819052604090205460ff1690565b6040519015158152602001610141565b6101a7610520565b60025460ff166101e7565b7f00000000000000000000000000000000000000000000000000000000000000005b60405163ffffffff9091168152602001610141565b61025461024f366004610de2565b61057f565b604051908152602001610141565b7f000000000000000000000000000000000000000000000000000000000000000061017c565b600154610254565b61017c6105e3565b61022c610669565b7f000000000000000000000000000000000000000000000000000000000000000061022c565b5f61017c565b61017c6102da366004610ff7565b6106c1565b6102e761084b565b6102ef61088c565b6002805460ff191660011790556040517f432acbfd662dbb5d8b378384a67159b47ca9d0f1b79f97cf64cf8585fa362d50905f90a1565b606060058054610335906110f5565b80601f0160208091040260200160405190810160405280929190818152602001828054610361906110f5565b80156103ac5780601f10610383576101008083540402835291602001916103ac565b820191905f5260205f20905b81548152906001019060200180831161038f57829003601f168201915b5050505050905090565b5f806003846040516020016103cc929190611148565b60408051601f19818403018152919052805160208201209091505f6103f0856108b2565b90506103fc81836108d5565b93505050505b92915050565b60015460609080841061042e57604051634e23d03560e01b815260040160405180910390fd5b5f6104398486611205565b9050818111156104505761044d8583611218565b93505b8367ffffffffffffffff81111561046957610469610c1f565b604051908082528060200260200182016040528015610492578160200160208202803683370190505b5092505f5b848110156105085760016104ab8288611205565b815481106104bb576104bb61122b565b905f5260205f20015f9054906101000a90046001600160a01b03168482815181106104e8576104e861122b565b6001600160a01b0390921660209283029190910190910152600101610497565b50505092915050565b606060048054610335906110f5565b606060018054806020026020016040519081016040528092919081815260200182805480156103ac57602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610558575050505050905090565b5f7f0000000000000000000000000000000000000000000000000000000000000000826040516020016105c69291909182526001600160e01b031916602082015260240190565b604051602081830303815290604052805190602001209050919050565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663aaabadc56040518163ffffffff1660e01b8152600401602060405180830381865afa158015610640573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610664919061123f565b905090565b5f7f000000000000000000000000000000000000000000000000000000000000000063ffffffff16421061069c57505f90565b507f000000000000000000000000000000000000000000000000000000000000000090565b60408601515f906001600160a01b0316156106ef5760405163187b85d960e21b815260040160405180910390fd5b604080516080810182525f808252602082018190529181018290526060810182905285151560608083019190915285151582526040805160a0810182528f8152602081018f90528d51918101919091529081018b90526005805492935061082b9260808301919061075f906110f5565b80601f016020809104026020016040519081016040528092919081815260200182805461078b906110f5565b80156107d65780601f106107ad576101008083540402835291602001916107d6565b820191905f5260205f20905b8154815290600101906020018083116107b957829003601f168201915b50505050508152506108057f000000000000000000000000000000000000000000000000000000000000000090565b60405160200161081692919061125a565b604051602081830303815290604052846108e8565b915061083c828b895f8c8b87610939565b509a9950505050505050505050565b5f6108605f356001600160e01b03191661057f565b905061086c81336109d0565b610889576040516323dada5360e01b815260040160405180910390fd5b50565b60025460ff16156108b057604051633ac4266d60e11b815260040160405180910390fd5b565b604080513360208201524691810191909152606081018290525f906080016105c6565b5f6108e1838330610a50565b9392505050565b5f806003846040516020016108fe929190611148565b60405160208183030381529060405290505f610919846108b2565b90506109265f8284610a79565b925061093183610afb565b505092915050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663eeec802f888888610973610669565b898989896040518963ffffffff1660e01b815260040161099a98979695949392919061131d565b5f604051808303815f87803b1580156109b1575f80fd5b505af11580156109c3573d5f803e3d5ffd5b5050505050505050505050565b5f6109d96105e3565b6040516326f8aa2160e21b8152600481018590526001600160a01b0384811660248301523060448301529190911690639be2a88490606401602060405180830381865afa158015610a2c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906108e19190611443565b5f604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b5f83471015610aa85760405163392efb2b60e21b81524760048201526024810185905260440160405180910390fd5b81515f03610ac957604051631328927760e21b815260040160405180910390fd5b8282516020840186f590506001600160a01b0381166108e157604051633a0ba96160e11b815260040160405180910390fd5b610b0361088c565b6001600160a01b0381165f81815260208190526040808220805460ff19166001908117909155805480820182559083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60180546001600160a01b03191684179055517f83a48fbcfc991335314e74d0496aab6a1987e992ddc85dddbcc4d6dd6ef2e9fc9190a250565b81511515815260208083015115159082015260408083015115159082015260608083015115159082015260808101610402565b5f5b83811015610bda578181015183820152602001610bc2565b50505f910152565b5f8151808452610bf9816020860160208601610bc0565b601f01601f19169290920160200192915050565b602081525f6108e16020830184610be2565b634e487b7160e01b5f52604160045260245ffd5b6040516080810167ffffffffffffffff81118282101715610c5657610c56610c1f565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610c8557610c85610c1f565b604052919050565b5f67ffffffffffffffff831115610ca657610ca6610c1f565b610cb9601f8401601f1916602001610c5c565b9050828152838383011115610ccc575f80fd5b828260208301375f602084830101529392505050565b5f8060408385031215610cf3575f80fd5b823567ffffffffffffffff811115610d09575f80fd5b8301601f81018513610d19575f80fd5b610d2885823560208401610c8d565b95602094909401359450505050565b5f8060408385031215610d48575f80fd5b50508035926020909101359150565b602080825282518282018190525f9190848201906040850190845b81811015610d975783516001600160a01b031683529284019291840191600101610d72565b50909695505050505050565b6001600160a01b0381168114610889575f80fd5b8035610dc281610da3565b919050565b5f60208284031215610dd7575f80fd5b81356108e181610da3565b5f60208284031215610df2575f80fd5b81356001600160e01b0319811681146108e1575f80fd5b5f82601f830112610e18575f80fd5b6108e183833560208501610c8d565b5f67ffffffffffffffff821115610e4057610e40610c1f565b5060051b60200190565b8015158114610889575f80fd5b8035610dc281610e4a565b5f82601f830112610e71575f80fd5b81356020610e86610e8183610e27565b610c5c565b82815260079290921b84018101918181019086841115610ea4575f80fd5b8286015b84811015610f1c5760808189031215610ebf575f80fd5b610ec7610c33565b8135610ed281610da3565b81528185013560028110610ee4575f80fd5b81860152604082810135610ef781610da3565b90820152606082810135610f0a81610e4a565b90820152835291830191608001610ea8565b509695505050505050565b5f82601f830112610f36575f80fd5b81356020610f46610e8183610e27565b8083825260208201915060208460051b870101935086841115610f67575f80fd5b602086015b84811015610f1c5780358352918301918301610f6c565b5f60608284031215610f93575f80fd5b6040516060810181811067ffffffffffffffff82111715610fb657610fb6610c1f565b6040529050808235610fc781610da3565b81526020830135610fd781610da3565b60208201526040830135610fea81610da3565b6040919091015292915050565b5f805f805f805f805f806101808b8d031215611011575f80fd5b8a3567ffffffffffffffff80821115611028575f80fd5b6110348e838f01610e09565b9b5060208d0135915080821115611049575f80fd5b6110558e838f01610e09565b9a5060408d013591508082111561106a575f80fd5b6110768e838f01610e62565b995060608d013591508082111561108b575f80fd5b506110988d828e01610f27565b9750506110a88c60808d01610f83565b955060e08b013594506110be6101008c01610db7565b93506110cd6101208c01610e57565b92506110dc6101408c01610e57565b91506101608b013590509295989b9194979a5092959850565b600181811c9082168061110957607f821691505b60208210810361112757634e487b7160e01b5f52602260045260245ffd5b50919050565b5f815161113e818560208601610bc0565b9290920192915050565b5f8084545f60018260011c9150600183168061116557607f831692505b6020808410820361118457634e487b7160e01b5f52602260045260245ffd5b81801561119857600181146111ad576111d8565b60ff19861689528415158502890196506111d8565b5f8b8152602090205f5b868110156111d05781548b8201529085019083016111b7565b505084890196505b5050505050506111e8818561112d565b95945050505050565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610402576104026111f1565b81810381811115610402576104026111f1565b634e487b7160e01b5f52603260045260245ffd5b5f6020828403121561124f575f80fd5b81516108e181610da3565b604081525f835160a0604084015261127560e0840182610be2565b9050602080860151603f19808685030160608701526112948483610be2565b604089015160808801526060890151878203830160a0890152805180835290850195505f9350908401905b808410156112df57855182529484019460019390930192908401906112bf565b5060808901519450818782030160c08801526112fb8186610be2565b9550505050611314818501866001600160a01b03169052565b50509392505050565b6001600160a01b0389811682526101a060208084018290528a519184018290525f926101c08501928c83019290855b818110156113aa578451848151168752838101516002811061137c57634e487b7160e01b5f52602160045260245ffd5b878501526040818101518616908801526060908101511515908701526080909501949382019360010161134c565b50505050506040830189905263ffffffff881660608401529050851515608083015284516001600160a01b0390811660a08401526020860151811660c084015260408601511660e08301526001600160a01b038416610100830152825115156101208301526020830151151561014083015260408301511515610160830152606083015115156101808301529998505050505050505050565b5f60208284031215611453575f80fd5b81516108e181610e4a56fea264697066735822122045ed9da5422aea63c3e0fbf5ddfbf04f990191b99f58871829aef56f2852571b64736f6c634300081800336102c060405234801562000011575f80fd5b506040516200422d3803806200422d83398101604081905262000034916200054f565b81608001518182845f015185602001518282604051806040016040528060018152602001603160f81b815250620000755f83620002f160201b90919060201c565b6101205262000086816001620002f1565b61014052815160208084019190912060e052815190820120610100524660a0526200011360e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b60805250503060c0526001600160a01b0316610160526003620001378382620006d8565b506004620001468282620006d8565b505050506001600160a01b031661018052620001628162000329565b5060408201516101a08190526060830151516200018091906200033b565b5f805b6101a0518160ff161015620002be575f84606001518260ff1681518110620001af57620001af620007a4565b60200260200101519050662386f26fc10000811015620001e25760405163bd39358360e01b815260040160405180910390fd5b620001ee8184620007cc565b92508160ff165f0362000207576101c0819052620002aa565b8160ff166001036200021f576101e0819052620002aa565b8160ff166002036200023757610200819052620002aa565b8160ff166003036200024f57610220819052620002aa565b8160ff166004036200026757610240819052620002aa565b8160ff166005036200027f57610260819052620002aa565b8160ff166006036200029757610280819052620002aa565b8160ff16600703620002aa576102a08190525b50620002b681620007e2565b905062000183565b50670de0b6b3a76400008114620002e857604051631ce788a760e11b815260040160405180910390fd5b5050506200085b565b5f602083511015620003105762000308836200035c565b905062000323565b816200031d8482620006d8565b5060ff90505b92915050565b6005620003378282620006d8565b5050565b808214620003375760405163aaad13f760e01b815260040160405180910390fd5b5f80829050601f8151111562000392578260405163305a27a960e01b815260040162000389919062000803565b60405180910390fd5b80516200039f8262000837565b179392505050565b634e487b7160e01b5f52604160045260245ffd5b60405160a081016001600160401b0381118282101715620003e057620003e0620003a7565b60405290565b604051601f8201601f191681016001600160401b0381118282101715620004115762000411620003a7565b604052919050565b5f5b83811015620004355781810151838201526020016200041b565b50505f910152565b5f82601f8301126200044d575f80fd5b81516001600160401b03811115620004695762000469620003a7565b6200047e601f8201601f1916602001620003e6565b81815284602083860101111562000493575f80fd5b620004a682602083016020870162000419565b949350505050565b5f82601f830112620004be575f80fd5b815160206001600160401b03821115620004dc57620004dc620003a7565b8160051b620004ed828201620003e6565b928352848101820192828101908785111562000507575f80fd5b83870192505b8483101562000528578251825291830191908301906200050d565b979650505050505050565b80516001600160a01b03811681146200054a575f80fd5b919050565b5f806040838503121562000561575f80fd5b82516001600160401b038082111562000578575f80fd5b9084019060a082870312156200058c575f80fd5b62000596620003bb565b825182811115620005a5575f80fd5b620005b3888286016200043d565b825250602083015182811115620005c8575f80fd5b620005d6888286016200043d565b60208301525060408301516040820152606083015182811115620005f8575f80fd5b6200060688828601620004ae565b6060830152506080830151828111156200061e575f80fd5b6200062c888286016200043d565b6080830152509350620006459150506020840162000533565b90509250929050565b600181811c908216806200066357607f821691505b6020821081036200068257634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115620006d357805f5260205f20601f840160051c81016020851015620006af5750805b601f840160051c820191505b81811015620006d0575f8155600101620006bb565b50505b505050565b81516001600160401b03811115620006f457620006f4620003a7565b6200070c816200070584546200064e565b8462000688565b602080601f83116001811462000742575f84156200072a5750858301515b5f19600386901b1c1916600185901b1785556200079c565b5f85815260208120601f198616915b82811015620007725788860151825594840194600190910190840162000751565b50858210156200079057878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b80820180821115620003235762000323620007b8565b5f60ff821660ff8103620007fa57620007fa620007b8565b60010192915050565b602081525f82518060208401526200082381604085016020870162000419565b601f01601f19169190910160400192915050565b8051602080830151919081101562000682575f1960209190910360031b1b16919050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c0516101e05161020051610220516102405161026051610280516102a05161385c620009d15f395f818161154f01526119b201525f8181611520015261196901525f81816114f1015261192001525f81816114c201526118d701525f8181611493015261188e01525f8181611464015261184501525f818161143501526117fc01525f818161140601526117bd01525f61175701525f8181610b7301528181610cf901528181610d9201528181610e23015261115001525f81816103f3015281816105b0015281816106750152818161072201528181610835015281816108bf015281816109e701528181610cb001528181610eec01528181610f76015281816110040152818161109e015281816112d90152818161137f01526115e801525f611b3b01525f611b0f01525f61170301525f6116db01525f61163601525f61166001525f61168a015261385c5ff3fe608060405234801561000f575f80fd5b5060043610610213575f3560e01c806372c981861161011f578063abb1dc44116100a9578063ce20ece711610079578063ce20ece7146104b0578063d335b0cf146104bc578063d505accf146104c4578063dd62ed3e146104d7578063f89f27ed146104ea575f80fd5b8063abb1dc4414610460578063b156aa0a14610478578063b677fa561461048d578063c0bc6f331461049b575f80fd5b80638d928af8116100ef5780638d928af8146103e657806395d89b411461041d578063984de9e814610425578063a9059cbb14610438578063aa6ca8081461044b575f80fd5b806372c98186146103885780637ecebe001461039b57806381fa807c146103ae57806384b0196e146103cb575f80fd5b8063313ce567116101a05780635687f2b8116101705780635687f2b814610332578063627cdcb914610345578063654cf15d1461035f578063679aefce1461036d57806370a0823114610375575f80fd5b8063313ce567146102fe5780633644e5151461030d57806353b79bd71461031557806354fd4d501461032a575f80fd5b806318160ddd116101e657806318160ddd1461029957806323b872dd146102a157806323de6651146102b4578063273c1adf146102c957806330adf81f146102d7575f80fd5b806301ffc9a71461021757806306fdde0314610250578063095ea7b31461026557806316a0b3e014610278575b5f80fd5b61023b610225366004612b6b565b6001600160e01b0319166301ffc9a760e01b1490565b60405190151581526020015b60405180910390f35b6102586104f2565b6040516102479190612bd5565b61023b610273366004612c06565b610582565b61028b610286366004612d6f565b610629565b604051908152602001610247565b61028b61065e565b61023b6102af366004612db8565b6106ec565b6102c76102c2366004612db8565b610799565b005b6729a2241af62c000061028b565b61028b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60405160128152602001610247565b61028b6107f3565b61031d6107fc565b6040516102479190612e68565b610258610948565b6102c7610340366004612db8565b610957565b6102c7335f90815260026020526040902080546001019055565b67016345785d8a000061028b565b61028b6109a7565b61028b610383366004612ec8565b6109c0565b61028b610396366004612f65565b610a52565b61028b6103a9366004612ec8565b610b33565b6103b6610b50565b60408051928352602083019190915201610247565b6103d3610bf2565b604051610247979695949392919061302f565b6040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152602001610247565b610258610c34565b61028b610433366004613090565b610c43565b61023b610446366004612c06565b610c82565b610453610ce1565b60405161024791906130de565b610468610d6c565b6040516102479493929190613104565b610480610e0b565b60405161024791906131be565b6709b6e64a8ec6000061028b565b6104a3610e96565b60405161024791906131d0565b6509184e72a00061028b565b61028b611139565b6102c76104d236600461324e565b611187565b61028b6104e53660046132bf565b611350565b6104806113f1565b606060038054610501906132eb565b80601f016020809104026020016040519081016040528092919081815260200182805461052d906132eb565b80156105785780601f1061054f57610100808354040283529160200191610578565b820191905f5260205f20905b81548152906001019060200180831161055b57829003601f168201915b5050505050905090565b60405163e1f21c6760e01b81523360048201526001600160a01b038381166024830152604482018390525f917f00000000000000000000000000000000000000000000000000000000000000009091169063e1f21c67906064015b6020604051808303815f875af11580156105f9573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061061d9190613332565b50600190505b92915050565b5f61065684848151811061063f5761063f61334b565b6020026020010151610650856113fb565b8461158c565b949350505050565b6040516339370aa960e21b81523060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e4dc2aa4906024015b602060405180830381865afa1580156106c3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106e7919061335f565b905090565b604051630aed65f560e11b81523360048201526001600160a01b0384811660248301528381166044830152606482018390525f917f0000000000000000000000000000000000000000000000000000000000000000909116906315dacbea906084016020604051808303815f875af115801561076a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061078e9190613332565b506001949350505050565b6107a16115dd565b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516107e691815260200190565b60405180910390a3505050565b5f6106e761162a565b61082060405180606001604052806060815260200160608152602001606081525090565b60405163ca4f280360e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063ca4f2803906024015f60405180830381865afa158015610881573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526108a891908101906133db565b8152604051633f1b0def60e11b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690637e361bde906024015f60405180830381865afa15801561090b573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526109329190810190613468565b506020820152610940611753565b604082015290565b606060058054610501906132eb565b61095f6115dd565b816001600160a01b0316836001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040516107e691815260200190565b50565b5f60405162c73cd160e51b815260040160405180910390fd5b604051633de222bb60e21b81523060048201526001600160a01b0382811660248301525f917f00000000000000000000000000000000000000000000000000000000000000009091169063f7888aec90604401602060405180830381865afa158015610a2e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610623919061335f565b5f610a5b6115dd565b5f8260400151836060015181518110610a7657610a7661334b565b602002602001015190505f8360400151846080015181518110610a9b57610a9b61334b565b602002602001015190505f6001811115610ab757610ab76130f0565b84516001811115610aca57610aca6130f0565b03610b04575f610af983610ae187606001516113fb565b84610aef89608001516113fb565b89602001516119f6565b9350610b2e92505050565b5f610af983610b1687606001516113fb565b84610b2489608001516113fb565b8960200151611a85565b919050565b6001600160a01b0381165f90815260026020526040812054610623565b60405163f29486a160e01b81523060048201525f90819081906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063f29486a1906024016101a060405180830381865afa158015610bb9573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bdd919061356b565b90508060400151925080606001519150509091565b5f6060805f805f6060610c03611b08565b610c0b611b34565b604080515f80825260208201909252600f60f81b9b939a50919850469750309650945092509050565b606060048054610501906132eb565b5f612b6381836001811115610c5a57610c5a6130f0565b14610c6757611b61610c6b565b611bef5b9050610656610c78611753565b858363ffffffff16565b6040516317d5759960e31b81523360048201526001600160a01b038381166024830152604482018390525f917f00000000000000000000000000000000000000000000000000000000000000009091169063beabacc8906064016105dd565b60405163ca4f280360e01b81523060048201526060907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063ca4f2803906024015f60405180830381865afa158015610d45573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526106e791908101906133db565b6040516333f0703b60e11b81523060048201526060908190819081906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906367e0e076906024015f60405180830381865afa158015610dd6573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610dfd9190810190613621565b935093509350935090919293565b6040516329ae7ec560e11b81523060048201526060907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063535cfd8a906024015f60405180830381865afa158015610e6f573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526106e7919081019061375d565b610ed76040518060e0016040528060608152602001606081526020015f81526020015f81526020015f151581526020015f151581526020015f151581525090565b6040516329ae7ec560e11b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063535cfd8a906024015f60405180830381865afa158015610f38573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610f5f919081019061375d565b8152604051633f1b0def60e11b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690637e361bde906024015f60405180830381865afa158015610fc2573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610fe99190810190613468565b60208301525060405163b45090f960e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063b45090f990602401602060405180830381865afa158015611051573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611075919061335f565b604082015261108261065e565b606082015260405163f29486a160e01b81523060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f29486a1906024016101a060405180830381865afa1580156110ec573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611110919061356b565b60e081015115156080840152610100810151151560a08401526101200151151560c08301525090565b60405163b45090f960e01b81523060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063b45090f9906024016106a8565b834211156111b05760405163313c898160e11b8152600481018590526024015b60405180910390fd5b5f7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886111fb8c6001600160a01b03165f90815260026020526040902080546001810190915590565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090505f61125582611c5c565b90505f61126482878787611c88565b9050896001600160a01b0316816001600160a01b0316146112ab576040516325c0072360e11b81526001600160a01b0380831660048301528b1660248201526044016111a7565b60405163e1f21c6760e01b81526001600160a01b038b811660048301528a81166024830152604482018a90527f0000000000000000000000000000000000000000000000000000000000000000169063e1f21c67906064016020604051808303815f875af115801561131f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113439190613332565b5050505050505050505050565b60405163927da10560e01b81523060048201526001600160a01b03838116602483015282811660448301525f917f00000000000000000000000000000000000000000000000000000000000000009091169063927da10590606401602060405180830381865afa1580156113c6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113ea919061335f565b9392505050565b60606106e7611753565b5f815f0361142a57507f0000000000000000000000000000000000000000000000000000000000000000919050565b8160010361145957507f0000000000000000000000000000000000000000000000000000000000000000919050565b8160020361148857507f0000000000000000000000000000000000000000000000000000000000000000919050565b816003036114b757507f0000000000000000000000000000000000000000000000000000000000000000919050565b816004036114e657507f0000000000000000000000000000000000000000000000000000000000000000919050565b8160050361151557507f0000000000000000000000000000000000000000000000000000000000000000919050565b8160060361154457507f0000000000000000000000000000000000000000000000000000000000000000919050565b8160070361157357507f0000000000000000000000000000000000000000000000000000000000000000919050565b60405163c1ab6dc160e01b815260040160405180910390fd5b5f612b63600183116115a057611cb46115a4565b611cd45b90505f6115c76115c0670de0b6b3a7640000878563ffffffff16565b8590611ce8565b90506115d38682611d9b565b9695505050505050565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146116285760405163089676d560e01b81523360048201526024016111a7565b565b5f306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561168257507f000000000000000000000000000000000000000000000000000000000000000046145b156116ac57507f000000000000000000000000000000000000000000000000000000000000000090565b6106e7604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a08201525f9060c00160405160208183030381529060405280519060200120905090565b60607f00000000000000000000000000000000000000000000000000000000000000005f816001600160401b0381111561178f5761178f612c30565b6040519080825280602002602001820160405280156117b8578160200160208202803683370190505b5090507f0000000000000000000000000000000000000000000000000000000000000000815f815181106117ee576117ee61334b565b6020026020010181815250507f00000000000000000000000000000000000000000000000000000000000000008160018151811061182e5761182e61334b565b6020026020010181815250506002821115610623577f0000000000000000000000000000000000000000000000000000000000000000816002815181106118775761187761334b565b6020026020010181815250506003821115610623577f0000000000000000000000000000000000000000000000000000000000000000816003815181106118c0576118c061334b565b6020026020010181815250506004821115610623577f0000000000000000000000000000000000000000000000000000000000000000816004815181106119095761190961334b565b6020026020010181815250506005821115610623577f0000000000000000000000000000000000000000000000000000000000000000816005815181106119525761195261334b565b6020026020010181815250506006821115610623577f00000000000000000000000000000000000000000000000000000000000000008160068151811061199b5761199b61334b565b6020026020010181815250506007821115610623577f0000000000000000000000000000000000000000000000000000000000000000816007815181106119e4576119e461334b565b60200260200101818152505092915050565b5f611a0986670429d069189e0000611dc7565b821115611a295760405163340a453360e01b815260040160405180910390fd5b5f611a3483886137a2565b90505f611a418883611cd4565b90505f611a4e8887611cb4565b90505f611a5b8383611ce8565b9050611a77670de0b6b3a7640000828103908310028990611dc7565b9a9950505050505050505050565b5f611a9884670429d069189e0000611dc7565b821115611ab8576040516364590b9f60e01b815260040160405180910390fd5b5f611acd611ac684876137b5565b8690611cd4565b90505f611ada8588611cd4565b90505f611ae78383611ce8565b90505f611afc670de0b6b3a7640000836137b5565b9050611a778a82611d9b565b60606106e77f00000000000000000000000000000000000000000000000000000000000000005f611de7565b60606106e77f00000000000000000000000000000000000000000000000000000000000000006001611de7565b670de0b6b3a76400005f5b8351811015611bce57611bc4611bbd858381518110611b8d57611b8d61334b565b6020026020010151858481518110611ba757611ba761334b565b6020026020010151611e8990919063ffffffff16565b8390611dc7565b9150600101611b6c565b50805f0361062357604051632654368960e01b815260040160405180910390fd5b670de0b6b3a76400005f5b8351811015611bce57611c52611c4b858381518110611c1b57611c1b61334b565b6020026020010151858481518110611c3557611c3561334b565b6020026020010151611ce890919063ffffffff16565b8390611d9b565b9150600101611bfa565b5f610623611c6861162a565b8360405161190160f01b8152600281019290925260228201526042902090565b5f805f80611c9888888888611f35565b925092509250611ca88282611ffd565b50909695505050505050565b5f80611cc8670de0b6b3a7640000856137c8565b905061065683826137f3565b5f6113ea83670de0b6b3a7640000846120b9565b5f670de0b6b3a76400008203611cff575081610623565b611d12670de0b6b3a764000060026137c8565b8203611d2957611d228384611d9b565b9050610623565b611d3c670de0b6b3a764000060046137c8565b8203611d61575f611d4d8485611d9b565b9050611d598182611d9b565b915050610623565b5f611d6c84846120fe565b90505f611d7b82612710611d9b565b611d869060016137a2565b9050611d9281836137a2565b92505050610623565b5f80611da783856137c8565b90506001670de0b6b3a76400006001830304018115150291505092915050565b5f80611dd383856137c8565b9050610656670de0b6b3a7640000826137f3565b606060ff8314611dfa57611d2283612234565b818054611e06906132eb565b80601f0160208091040260200160405190810160405280929190818152602001828054611e32906132eb565b8015611e7d5780601f10611e5457610100808354040283529160200191611e7d565b820191905f5260205f20905b815481529060010190602001808311611e6057829003601f168201915b50505050509050610623565b5f670de0b6b3a76400008203611ea0575081610623565b611eb3670de0b6b3a764000060026137c8565b8203611ec357611d228384611dc7565b611ed6670de0b6b3a764000060046137c8565b8203611ef3575f611ee78485611dc7565b9050611d598182611dc7565b5f611efe84846120fe565b90505f611f0d82612710611d9b565b611f189060016137a2565b905080821015611f2c575f92505050610623565b90039050610623565b5f80807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841115611f6e57505f91506003905082611ff3565b604080515f808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015611fbf573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b038116611fea57505f925060019150829050611ff3565b92505f91508190505b9450945094915050565b5f826003811115612010576120106130f0565b03612019575050565b600182600381111561202d5761202d6130f0565b0361204b5760405163f645eedf60e01b815260040160405180910390fd5b600282600381111561205f5761205f6130f0565b036120805760405163fce698f760e01b8152600481018290526024016111a7565b6003826003811115612094576120946130f0565b036120b5576040516335e2f38360e21b8152600481018290526024016111a7565b5050565b5f815f036120da57604051630a0c22c760e01b815260040160405180910390fd5b5f6120e584866137c8565b9050600183600183030401811515029150509392505050565b5f815f036121155750670de0b6b3a7640000610623565b825f0361212357505f610623565b60ff83901c15612145576040516211380f60e51b815260040160405180910390fd5b8261215d68056bc75e2d63100000600160fe1b6137f3565b831061217c5760405163d831731160e01b815260040160405180910390fd5b825f670c7d713b49da00008313801561219c5750670f43fc2c04ee000083125b156121d2575f6121ab84612271565b9050670de0b6b3a764000080820784020583670de0b6b3a7640000830502019150506121e0565b816121dc8461238e565b0290505b670de0b6b3a76400009005680238fd42c5cf03ffff19811280159061220e575068070c1cc73b00c800008113155b61222b5760405163a2f9f7e360e01b815260040160405180910390fd5b6115d38161273f565b60605f61224083612b3c565b6040805160208082528183019092529192505f91906020820181803683375050509182525060208101929092525090565b670de0b6b3a7640000025f806a0c097ce7bc90715b34b9f160241b808401906ec097ce7bc90715b34b9f0fffffffff19850102816122b1576122b16137df565b0590505f6a0c097ce7bc90715b34b9f160241b82800205905081806a0c097ce7bc90715b34b9f160241b81840205915060038205016a0c097ce7bc90715b34b9f160241b82840205915060058205016a0c097ce7bc90715b34b9f160241b82840205915060078205016a0c097ce7bc90715b34b9f160241b82840205915060098205016a0c097ce7bc90715b34b9f160241b828402059150600b8205016a0c097ce7bc90715b34b9f160241b828402059150600d8205016a0c097ce7bc90715b34b9f160241b828402059150600f82050160020295945050505050565b5f80670de0b6b3a76400008312156123c557826a0c097ce7bc90715b34b9f160241b816123bd576123bd6137df565b059250600190505b5f7e1600ef3172e58d2e933ec884fde10064c63b5372d805e203c0000000000000841261241557770195e54c5dd42177f53a27172fa9ec630262827000000000840593506806f05b59d3b2000000015b73011798004d755d3c8bc8e03204cf44619e000000841261244d576b1425982cf597cd205cef7380840593506803782dace9d9000000015b606493840293026e01855144814a7ff805980ff00840008412612495576e01855144814a7ff805980ff008400068056bc75e2d63100000850205935068ad78ebc5ac62000000015b6b02df0ab5a80a22c61ab5a70084126124d0576b02df0ab5a80a22c61ab5a70068056bc75e2d6310000085020593506856bc75e2d631000000015b693f1fce3da636ea5cf850841261250757693f1fce3da636ea5cf85068056bc75e2d631000008502059350682b5e3af16b18800000015b690127fa27722cc06cc5e2841261253e57690127fa27722cc06cc5e268056bc75e2d6310000085020593506815af1d78b58c400000015b68280e60114edb805d0384126125735768280e60114edb805d0368056bc75e2d631000008502059350680ad78ebc5ac6200000015b680ebc5fb41746121110841261259e57680ebc5fb4174612111068056bc75e2d631000009485020593015b6808f00f760a4b2db55d84126125d3576808f00f760a4b2db55d68056bc75e2d6310000085020593506802b5e3af16b1880000015b6806f5f17757889379378412612608576806f5f177578893793768056bc75e2d63100000850205935068015af1d78b58c40000015b6806248f33704b286603841261263c576806248f33704b28660368056bc75e2d63100000850205935067ad78ebc5ac620000015b6805c548670b9510e7ac8412612670576805c548670b9510e7ac68056bc75e2d6310000085020593506756bc75e2d6310000015b5f68056bc75e2d63100000850168056bc75e2d631000008087030281612698576126986137df565b0590505f68056bc75e2d63100000828002059050818068056bc75e2d63100000818402059150600382050168056bc75e2d63100000828402059150600582050168056bc75e2d63100000828402059150600782050168056bc75e2d63100000828402059150600982050168056bc75e2d63100000828402059150600b8205016002025f60648683010590508661272e5780612732565b805f035b9998505050505050505050565b5f680238fd42c5cf03ffff198212158015612763575068070c1cc73b00c800008213155b6127805760405163d4794efd60e01b815260040160405180910390fd5b5f8083121561279357825f039250600190505b5f6806f05b59d3b200000084126127d257506806f05b59d3b1ffffff1990920191770195e54c5dd42177f53a27172fa9ec630262827000000000612808565b6803782dace9d9000000841261280457506803782dace9d8ffffff19909201916b1425982cf597cd205cef7380612808565b5060015b6064939093029268056bc75e2d6310000068ad78ebc5ac6200000085126128585768ad78ebc5ac61ffffff199094019368056bc75e2d631000006e01855144814a7ff805980ff008400082020590505b6856bc75e2d6310000008512612894576856bc75e2d630ffffff199094019368056bc75e2d631000006b02df0ab5a80a22c61ab5a70082020590505b682b5e3af16b1880000085126128ce57682b5e3af16b187fffff199094019368056bc75e2d63100000693f1fce3da636ea5cf85082020590505b6815af1d78b58c4000008512612908576815af1d78b58c3fffff199094019368056bc75e2d63100000690127fa27722cc06cc5e282020590505b680ad78ebc5ac6200000851261294157680ad78ebc5ac61fffff199094019368056bc75e2d6310000068280e60114edb805d0382020590505b68056bc75e2d63100000851261297a5768056bc75e2d630fffff199094019368056bc75e2d63100000680ebc5fb4174612111082020590505b6802b5e3af16b188000085126129b3576802b5e3af16b187ffff199094019368056bc75e2d631000006808f00f760a4b2db55d82020590505b68015af1d78b58c4000085126129ec5768015af1d78b58c3ffff199094019368056bc75e2d631000006806f5f177578893793782020590505b68056bc75e2d631000008581019086906002908280020505918201919050600368056bc75e2d631000008883020505918201919050600468056bc75e2d631000008883020505918201919050600568056bc75e2d631000008883020505918201919050600668056bc75e2d631000008883020505918201919050600768056bc75e2d631000008883020505918201919050600868056bc75e2d631000008883020505918201919050600968056bc75e2d631000008883020505918201919050600a68056bc75e2d631000008883020505918201919050600b68056bc75e2d631000008883020505918201919050600c68056bc75e2d6310000088830205059182019190505f606468056bc75e2d6310000085850205860205905085612b115780612b30565b806a0c097ce7bc90715b34b9f160241b81612b2e57612b2e6137df565b055b98975050505050505050565b5f60ff8216601f81111561062357604051632cd44ac360e21b815260040160405180910390fd5b611628613812565b5f60208284031215612b7b575f80fd5b81356001600160e01b0319811681146113ea575f80fd5b5f81518084525f5b81811015612bb657602081850181015186830182015201612b9a565b505f602082860101526020601f19601f83011685010191505092915050565b602081525f6113ea6020830184612b92565b6001600160a01b03811681146109a4575f80fd5b8035610b2e81612be7565b5f8060408385031215612c17575f80fd5b8235612c2281612be7565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b60405160e081016001600160401b0381118282101715612c6657612c66612c30565b60405290565b60405161014081016001600160401b0381118282101715612c6657612c66612c30565b604051606081016001600160401b0381118282101715612c6657612c66612c30565b604051601f8201601f191681016001600160401b0381118282101715612cd957612cd9612c30565b604052919050565b5f6001600160401b03821115612cf957612cf9612c30565b5060051b60200190565b5f82601f830112612d12575f80fd5b81356020612d27612d2283612ce1565b612cb1565b8083825260208201915060208460051b870101935086841115612d48575f80fd5b602086015b84811015612d645780358352918301918301612d4d565b509695505050505050565b5f805f60608486031215612d81575f80fd5b83356001600160401b03811115612d96575f80fd5b612da286828701612d03565b9660208601359650604090950135949350505050565b5f805f60608486031215612dca575f80fd5b8335612dd581612be7565b92506020840135612de581612be7565b929592945050506040919091013590565b5f815180845260208085019450602084015f5b83811015612e2e5781516001600160a01b031687529582019590820190600101612e09565b509495945050505050565b5f815180845260208085019450602084015f5b83811015612e2e57815187529582019590820190600101612e4c565b602081525f825160606020840152612e836080840182612df6565b90506020840151601f1980858403016040860152612ea18383612e39565b9250604086015191508085840301606086015250612ebf8282612e39565b95945050505050565b5f60208284031215612ed8575f80fd5b81356113ea81612be7565b600281106109a4575f80fd5b8035610b2e81612ee3565b5f82601f830112612f09575f80fd5b81356001600160401b03811115612f2257612f22612c30565b612f35601f8201601f1916602001612cb1565b818152846020838601011115612f49575f80fd5b816020850160208301375f918101602001919091529392505050565b5f60208284031215612f75575f80fd5b81356001600160401b0380821115612f8b575f80fd5b9083019060e08286031215612f9e575f80fd5b612fa6612c44565b612faf83612eef565b815260208301356020820152604083013582811115612fcc575f80fd5b612fd887828601612d03565b6040830152506060830135606082015260808301356080820152612ffe60a08401612bfb565b60a082015260c083013582811115613014575f80fd5b61302087828601612efa565b60c08301525095945050505050565b60ff60f81b8816815260e060208201525f61304d60e0830189612b92565b828103604084015261305f8189612b92565b606084018890526001600160a01b038716608085015260a0840186905283810360c08501529050611a778185612e39565b5f80604083850312156130a1575f80fd5b82356001600160401b038111156130b6575f80fd5b6130c285828601612d03565b92505060208301356130d381612ee3565b809150509250929050565b602081525f6113ea6020830184612df6565b634e487b7160e01b5f52602160045260245ffd5b608081525f6131166080830187612df6565b8281036020848101919091528651808352878201928201905f5b8181101561318957845180516002811061315857634e487b7160e01b5f52602160045260245ffd5b8452808501516001600160a01b03168585015260409081015115159084015293830193606090920191600101613130565b5050848103604086015261319d8188612e39565b9250505082810360608401526131b38185612e39565b979650505050505050565b602081525f6113ea6020830184612e39565b602081525f825160e060208401526131ec610100840182612e39565b90506020840151601f198483030160408501526132098282612e39565b91505060408401516060840152606084015160808401526080840151151560a084015260a0840151151560c084015260c0840151151560e08401528091505092915050565b5f805f805f805f60e0888a031215613264575f80fd5b873561326f81612be7565b9650602088013561327f81612be7565b95506040880135945060608801359350608088013560ff811681146132a2575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f80604083850312156132d0575f80fd5b82356132db81612be7565b915060208301356130d381612be7565b600181811c908216806132ff57607f821691505b60208210810361331d57634e487b7160e01b5f52602260045260245ffd5b50919050565b80518015158114610b2e575f80fd5b5f60208284031215613342575f80fd5b6113ea82613323565b634e487b7160e01b5f52603260045260245ffd5b5f6020828403121561336f575f80fd5b5051919050565b5f82601f830112613385575f80fd5b81516020613395612d2283612ce1565b8083825260208201915060208460051b8701019350868411156133b6575f80fd5b602086015b84811015612d645780516133ce81612be7565b83529183019183016133bb565b5f602082840312156133eb575f80fd5b81516001600160401b03811115613400575f80fd5b61065684828501613376565b5f82601f83011261341b575f80fd5b8151602061342b612d2283612ce1565b8083825260208201915060208460051b87010193508684111561344c575f80fd5b602086015b84811015612d645780518352918301918301613451565b5f8060408385031215613479575f80fd5b82516001600160401b038082111561348f575f80fd5b61349b8683870161340c565b935060208501519150808211156134b0575f80fd5b506134bd8582860161340c565b9150509250929050565b5f608082840312156134d7575f80fd5b604051608081018181106001600160401b03821117156134f9576134f9612c30565b60405290508061350883613323565b815261351660208401613323565b602082015261352760408401613323565b604082015261353860608401613323565b60608201525092915050565b805164ffffffffff81168114610b2e575f80fd5b805163ffffffff81168114610b2e575f80fd5b5f6101a0828403121561357c575f80fd5b613584612c6c565b61358e84846134c7565b81526080830151602082015260a0830151604082015260c083015160608201526135ba60e08401613544565b60808201526101006135cd818501613558565b60a08301526101206135e0818601613323565b60c08401526135f26101408601613323565b60e08401526136046101608601613323565b828401526136156101808601613323565b90830152509392505050565b5f805f8060808587031215613634575f80fd5b84516001600160401b038082111561364a575f80fd5b61365688838901613376565b955060209150818701518181111561366c575f80fd5b8701601f8101891361367c575f80fd5b805161368a612d2282612ce1565b8181526060918202830185019185820191908c8411156136a8575f80fd5b938601935b838510156137095780858e0312156136c3575f80fd5b6136cb612c8f565b85516136d681612ee3565b8152858801516136e581612be7565b8189015260406136f6878201613323565b90820152835293840193918601916136ad565b5060408b0151909850945050505080821115613723575f80fd5b61372f8883890161340c565b93506060870151915080821115613744575f80fd5b506137518782880161340c565b91505092959194509250565b5f6020828403121561376d575f80fd5b81516001600160401b03811115613782575f80fd5b6106568482850161340c565b634e487b7160e01b5f52601160045260245ffd5b808201808211156106235761062361378e565b818103818111156106235761062361378e565b80820281158282048414176106235761062361378e565b634e487b7160e01b5f52601260045260245ffd5b5f8261380d57634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52605160045260245ffdfea264697066735822122046763c367cd86ec9a31a3a40972191cb037edcc213aa38d2d9a60e8ee07ee6d464736f6c63430008180033000000000000000000000000ba1333333333a1ba1108e8412f11850a5c319ba90000000000000000000000000000000000000000000000000000000001e13380000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000a466163746f7279207631000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007506f6f6c20763100000000000000000000000000000000000000000000000000", + "nonce": "0x33af", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CREATE", + "contractName": "ExitFeeHookExample", + "contractAddress": "0x6d3fdf461f8ca0c6ca9928705687f3794a2cb671", + "function": null, + "arguments": [ + "0xbA1333333333a1BA1108E8412f11850A5C319bA9" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "gas": "0x188f9b", + "value": "0x0", + "input": "0x60a060405234801561000f575f80fd5b506040516115fc3803806115fc83398101604081905261002e916100bf565b6001600160a01b038116608052338061006057604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b61006981610070565b50506100ec565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f602082840312156100cf575f80fd5b81516001600160a01b03811681146100e5575f80fd5b9392505050565b6080516114ea6101125f395f81816103820152818161055e015261079501526114ea5ff3fe608060405234801561000f575f80fd5b5060043610610106575f3560e01c8063715018a61161009e578063a6ddbe021161006e578063a6ddbe021461025a578063ba5f9f4014610269578063d77153a714610277578063ea2f6f7a1461028c578063f2fde38b1461029f575f80fd5b8063715018a6146102015780638da5cb5b1461020b578063976907cc14610225578063a0e8f5ac14610242575f80fd5b806338be241d116100d957806338be241d1461019257806345421ec7146101a85780634bdd9fe6146101c25780635211fa77146101f3575f80fd5b80630b89f1821461010a57806318b6eb55146101325780631c149e281461015e5780632754888d14610171575b5f80fd5b61011d6101183660046109a2565b6102b2565b60405190151581526020015b60405180910390f35b610147610140366004610ac7565b505f908190565b604080519215158352602083019190915201610129565b61011d61016c366004610bdf565b61032c565b61018461017f366004610c4c565b610334565b604051610129929190610d2b565b61011d6101a0366004610d7b565b5f9392505050565b61011d6101b6366004610df0565b5f979650505050505050565b5f546101db90600160a01b90046001600160401b031681565b6040516001600160401b039091168152602001610129565b61011d61016c366004610ebf565b610209610660565b005b5f546040516001600160a01b039091168152602001610129565b610184610233366004610f0d565b5f849850989650505050505050565b610147610250366004610fae565b5f80935093915050565b6101db67016345785d8a000081565b61011d6101b6366004611003565b61027f610673565b6040516101299190611085565b61020961029a36600461113d565b610693565b6102096102ad366004611163565b61074d565b5f6102bb61078a565b6102cb608083016060840161117e565b15155f036102ec57604051636fe7a42d60e11b815260040160405180910390fd5b6040516001600160a01b0385169030907f3821b125c944c16bb117550ddb8765fb7f6138a5dca86e4a2a265f552dd0c59b905f90a3506001949350505050565b5f5b92915050565b5f606061033f61078a565b5f88600381111561035257610352611197565b1461036157505f905083610653565b60405163ca4f280360e01b81526001600160a01b038a811660048301525f917f00000000000000000000000000000000000000000000000000000000000000009091169063ca4f2803906024015f60405180830381865afa1580156103c8573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526103ef91908101906111ab565b90505f81516001600160401b0381111561040b5761040b6108ef565b604051908082528060200260200182016040528015610434578160200160208202803683370190505b505f54889450909150600160a01b90046001600160401b03161561064c575f5b875181101561055b575f8054895161049f91600160a01b90046001600160401b0316908b90859081106104895761048961123f565b60200260200101516107d590919063ffffffff16565b9050808383815181106104b4576104b461123f565b602002602001018181525050808583815181106104d3576104d361123f565b602002602001018181516104e79190611267565b90525083518490839081106104fe576104fe61123f565b60200260200101516001600160a01b03168d6001600160a01b03167f70a4868eae45ffc86aa2da146051ad91fcf2a4222b8f737ddd5e4354f15088428360405161054a91815260200190565b60405180910390a350600101610454565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634af29ec46040518060c001604052808e6001600160a01b03168152602001336001600160a01b031681526020018481526020015f8152602001600360048111156105d3576105d3611197565b815260200160405180602001604052805f8152508152506040518263ffffffff1660e01b815260040161060691906112e7565b5f604051808303815f875af1158015610621573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261064891908101906113cb565b5050505b6001935050505b9850989650505050505050565b6106686107fd565b6106715f610829565b565b61067b610878565b610683610878565b6001808252610120820152919050565b61069b6107fd565b67016345785d8a00006001600160401b03821611156106eb57604051630158c6d760e21b81526001600160401b038216600482015267016345785d8a000060248201526044015b60405180910390fd5b5f805467ffffffffffffffff60a01b1916600160a01b6001600160401b0384169081029190911790915560405190815230907f478db868729e0648ee7be6cb2a2a864333d8efe68d3a5ee1a7cce6e6895d57119060200160405180910390a250565b6107556107fd565b6001600160a01b03811661077e57604051631e4fbdf760e01b81525f60048201526024016106e2565b61078781610829565b50565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146106715760405163089676d560e01b81523360048201526024016106e2565b5f806107e1838561147e565b90506107f5670de0b6b3a764000082611495565b949350505050565b5f546001600160a01b031633146106715760405163118cdaa760e01b81523360048201526024016106e2565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60408051610140810182525f80825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e08101829052610100810182905261012081019190915290565b6001600160a01b0381168114610787575f80fd5b80356108ea816108cb565b919050565b634e487b7160e01b5f52604160045260245ffd5b604051608081016001600160401b0381118282101715610925576109256108ef565b60405290565b604051601f8201601f191681016001600160401b0381118282101715610953576109536108ef565b604052919050565b5f6001600160401b03821115610973576109736108ef565b5060051b60200190565b803580151581146108ea575f80fd5b5f6080828403121561099c575f80fd5b50919050565b5f805f8060e085870312156109b5575f80fd5b84356109c0816108cb565b93506020858101356109d1816108cb565b93506040868101356001600160401b038111156109ec575f80fd5b8701601f810189136109fc575f80fd5b8035610a0f610a0a8261095b565b61092b565b81815260079190911b8201840190848101908b831115610a2d575f80fd5b928501925b82841015610aa6576080848d031215610a49575f80fd5b610a51610903565b8435610a5c816108cb565b81528487013560028110610a6e575f80fd5b8188015284860135610a7f816108cb565b818701526060610a9086820161097d565b9082015282526080939093019290850190610a32565b809750505050505050610abc866060870161098c565b905092959194509250565b5f60208284031215610ad7575f80fd5b81356001600160401b03811115610aec575f80fd5b82016101808185031215610afe575f80fd5b9392505050565b5f82601f830112610b14575f80fd5b81356020610b24610a0a8361095b565b8083825260208201915060208460051b870101935086841115610b45575f80fd5b602086015b84811015610b615780358352918301918301610b4a565b509695505050505050565b5f6001600160401b03821115610b8457610b846108ef565b50601f01601f191660200190565b5f82601f830112610ba1575f80fd5b8135610baf610a0a82610b6c565b818152846020838601011115610bc3575f80fd5b816020850160208301375f918101602001919091529392505050565b5f8060408385031215610bf0575f80fd5b82356001600160401b0380821115610c06575f80fd5b610c1286838701610b05565b93506020850135915080821115610c27575f80fd5b50610c3485828601610b92565b9150509250929050565b8035600481106108ea575f80fd5b5f805f805f805f80610100898b031215610c64575f80fd5b610c6d896108df565b9750610c7b60208a016108df565b9650610c8960408a01610c3e565b95506060890135945060808901356001600160401b0380821115610cab575f80fd5b610cb78c838d01610b05565b955060a08b0135915080821115610ccc575f80fd5b610cd88c838d01610b05565b945060c08b0135915080821115610ced575f80fd5b610cf98c838d01610b05565b935060e08b0135915080821115610d0e575f80fd5b50610d1b8b828c01610b92565b9150509295985092959890939650565b5f6040820184151583526020604060208501528185518084526060860191506020870193505f5b81811015610d6e57845183529383019391830191600101610d52565b5090979650505050505050565b5f805f60608486031215610d8d575f80fd5b83356001600160401b0380821115610da3575f80fd5b610daf87838801610b05565b9450602086013593506040860135915080821115610dcb575f80fd5b50610dd886828701610b92565b9150509250925092565b8035600581106108ea575f80fd5b5f805f805f805f60e0888a031215610e06575f80fd5b8735610e11816108cb565b96506020880135610e21816108cb565b9550610e2f60408901610de2565b945060608801356001600160401b0380821115610e4a575f80fd5b610e568b838c01610b05565b955060808a0135945060a08a0135915080821115610e72575f80fd5b610e7e8b838c01610b05565b935060c08a0135915080821115610e93575f80fd5b50610ea08a828b01610b92565b91505092959891949750929550565b5f60e0828403121561099c575f80fd5b5f8060408385031215610ed0575f80fd5b82356001600160401b03811115610ee5575f80fd5b610ef185828601610eaf565b9250506020830135610f02816108cb565b809150509250929050565b5f805f805f805f80610100898b031215610f25575f80fd5b610f2e896108df565b9750610f3c60208a016108df565b9650610f4a60408a01610de2565b955060608901356001600160401b0380821115610f65575f80fd5b610f718c838d01610b05565b965060808b0135915080821115610f86575f80fd5b610f928c838d01610b05565b955060a08b0135945060c08b0135915080821115610ced575f80fd5b5f805f60608486031215610fc0575f80fd5b83356001600160401b03811115610fd5575f80fd5b610fe186828701610eaf565b9350506020840135610ff2816108cb565b929592945050506040919091013590565b5f805f805f805f60e0888a031215611019575f80fd5b8735611024816108cb565b96506020880135611034816108cb565b955061104260408901610c3e565b94506060880135935060808801356001600160401b0380821115611064575f80fd5b6110708b838c01610b05565b945060a08a0135915080821115610e72575f80fd5b815115158152610140810160208301516110a3602084018215159052565b5060408301516110b7604084018215159052565b5060608301516110cb606084018215159052565b5060808301516110df608084018215159052565b5060a08301516110f360a084018215159052565b5060c083015161110760c084018215159052565b5060e083015161111b60e084018215159052565b5061010083810151151590830152610120928301511515929091019190915290565b5f6020828403121561114d575f80fd5b81356001600160401b0381168114610afe575f80fd5b5f60208284031215611173575f80fd5b8135610afe816108cb565b5f6020828403121561118e575f80fd5b610afe8261097d565b634e487b7160e01b5f52602160045260245ffd5b5f60208083850312156111bc575f80fd5b82516001600160401b038111156111d1575f80fd5b8301601f810185136111e1575f80fd5b80516111ef610a0a8261095b565b81815260059190911b8201830190838101908783111561120d575f80fd5b928401925b82841015611234578351611225816108cb565b82529284019290840190611212565b979650505050505050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b8181038181111561032e5761032e611253565b6005811061129657634e487b7160e01b5f52602160045260245ffd5b9052565b5f5b838110156112b457818101518382015260200161129c565b50505f910152565b5f81518084526112d381602086016020860161129a565b601f01601f19169290920160200192915050565b602080825282516001600160a01b0390811683830152838201511660408084019190915283015160c06060840152805160e084018190525f929182019083906101008601905b8083101561134d578351825292840192600192909201919084019061132d565b50606087015160808701526080870151935061136c60a087018561127a565b60a0870151868203601f190160c0880152935061123481856112bc565b5f82601f830112611398575f80fd5b81516113a6610a0a82610b6c565b8181528460208386010111156113ba575f80fd5b6107f582602083016020870161129a565b5f805f606084860312156113dd575f80fd5b83516001600160401b03808211156113f3575f80fd5b818601915086601f830112611406575f80fd5b81516020611416610a0a8361095b565b82815260059290921b8401810191818101908a841115611434575f80fd5b948201945b8386101561145257855182529482019490820190611439565b9189015160408a01519298509650909350505080821115611471575f80fd5b50610dd886828701611389565b808202811582820484141761032e5761032e611253565b5f826114af57634e487b7160e01b5f52601260045260245ffd5b50049056fea2646970667358221220585ee8a300bd392bb3e138e06e81c7a7f6ff917f783438591b1459f70fc9234b64736f6c63430008180033000000000000000000000000ba1333333333a1ba1108e8412f11850a5c319ba9", + "nonce": "0x33b0", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": "WeightedPoolFactory", + "contractAddress": "0xa3dba161c34940d4a145448a4cdc3f5b88e8a179", + "function": "create(string,string,(address,uint8,address,bool)[],uint256[],(address,address,address),uint256,address,bool,bool,bytes32)", + "arguments": [ + "80/20 Weighted Pool", + "80-20-WP", + "[(0x6C205d1b1c20352e9d33a88569f18D103004762D, 0, 0x0000000000000000000000000000000000000000, false), (0xebD6303d9Cd09605545F723545d2d0bF56966cB9, 0, 0x0000000000000000000000000000000000000000, false)]", + "[800000000000000000, 200000000000000000]", + "(0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000, 0x0000000000000000000000000000000000000000)", + "1000000000000000", + "0x6D3FDf461f8Ca0C6ca9928705687F3794a2cb671", + "true", + "true", + "0x44bceb2174c451b4eeb824ee608d82ba99b4aad667464d285014758e412cae07" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0xa3dba161c34940d4a145448a4cdc3f5b88e8a179", + "gas": "0x63621f", + "value": "0x0", + "input": "0xfed4cdda000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000006d3fdf461f8ca0c6ca9928705687f3794a2cb6710000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000144bceb2174c451b4eeb824ee608d82ba99b4aad667464d285014758e412cae07000000000000000000000000000000000000000000000000000000000000001338302f323020576569676874656420506f6f6c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000838302d32302d575000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006c205d1b1c20352e9d33a88569f18d103004762d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ebd6303d9cd09605545f723545d2d0bf56966cb900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000b1a2bc2ec50000000000000000000000000000000000000000000000000000002c68af0bb140000", + "nonce": "0x33b1", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": "MockToken2", + "contractAddress": "0x6c205d1b1c20352e9d33a88569f18d103004762d", + "function": "approve(address,uint256)", + "arguments": [ + "0x000000000022D473030F116dDEE9F6B43aC78BA3", + "115792089237316195423570985008687907853269984665640564039457584007913129639935" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x6c205d1b1c20352e9d33a88569f18d103004762d", + "gas": "0x9028", + "value": "0x0", + "input": "0x095ea7b3000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "nonce": "0x33b2", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": "MockToken1", + "contractAddress": "0xebd6303d9cd09605545f723545d2d0bf56966cb9", + "function": "approve(address,uint256)", + "arguments": [ + "0x000000000022D473030F116dDEE9F6B43aC78BA3", + "115792089237316195423570985008687907853269984665640564039457584007913129639935" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0xebd6303d9cd09605545f723545d2d0bf56966cb9", + "gas": "0x9028", + "value": "0x0", + "input": "0x095ea7b3000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "nonce": "0x33b3", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "function": "approve(address,address,uint160,uint48)", + "arguments": [ + "0x6C205d1b1c20352e9d33a88569f18D103004762D", + "0x0BF61f706105EA44694f2e92986bD01C39930280", + "1461501637330902918203684832716283019655932542975", + "281474976710655" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "gas": "0x96a0", + "value": "0x0", + "input": "0x87517c450000000000000000000000006c205d1b1c20352e9d33a88569f18d103004762d0000000000000000000000000bf61f706105ea44694f2e92986bd01c39930280000000000000000000000000ffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000ffffffffffff", + "nonce": "0x33b4", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "function": "approve(address,address,uint160,uint48)", + "arguments": [ + "0xebD6303d9Cd09605545F723545d2d0bF56966cB9", + "0x0BF61f706105EA44694f2e92986bD01C39930280", + "1461501637330902918203684832716283019655932542975", + "281474976710655" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x000000000022d473030f116ddee9f6b43ac78ba3", + "gas": "0x96a0", + "value": "0x0", + "input": "0x87517c45000000000000000000000000ebd6303d9cd09605545f723545d2d0bf56966cb90000000000000000000000000bf61f706105ea44694f2e92986bd01c39930280000000000000000000000000ffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000ffffffffffff", + "nonce": "0x33b5", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x0bf61f706105ea44694f2e92986bd01c39930280", + "function": "initialize(address,address[],uint256[],uint256,bool,bytes)", + "arguments": [ + "0x0684328aEB9b39331BFBfcFC8d0C79078C4aba02", + "[0x6C205d1b1c20352e9d33a88569f18D103004762D, 0xebD6303d9Cd09605545F723545d2d0bF56966cB9]", + "[80000000000000000000, 20000000000000000000]", + "49000000000000000000", + "false", + "0x" + ], + "transaction": { + "from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266", + "to": "0x0bf61f706105ea44694f2e92986bd01c39930280", + "gas": "0x5d8ab", + "value": "0x0", + "input": "0x026b3d950000000000000000000000000684328aeb9b39331bfbfcfc8d0c79078c4aba0200000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000002a802f8630a2400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000000020000000000000000000000006c205d1b1c20352e9d33a88569f18d103004762d000000000000000000000000ebd6303d9cd09605545f723545d2d0bf56966cb90000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000004563918244f400000000000000000000000000000000000000000000000000001158e460913d000000000000000000000000000000000000000000000000000000000000000000000", + "nonce": "0x33b6", + "chainId": "0xaa36a7" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1734043568, + "chain": 11155111, + "commit": "aebc771" +} \ No newline at end of file diff --git a/packages/foundry/contracts/hooks/LotteryHookExample.sol b/packages/foundry/contracts/hooks/LotteryHookExample.sol index b60fabd1..0e39e20e 100644 --- a/packages/foundry/contracts/hooks/LotteryHookExample.sol +++ b/packages/foundry/contracts/hooks/LotteryHookExample.sol @@ -2,12 +2,12 @@ pragma solidity ^0.8.24; +import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; -import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; -import { IHooks } from "@balancer-labs/v3-interfaces/contracts/vault/IHooks.sol"; import { IRouterCommon } from "@balancer-labs/v3-interfaces/contracts/vault/IRouterCommon.sol"; +import { IHooks } from "@balancer-labs/v3-interfaces/contracts/vault/IHooks.sol"; import { IVault } from "@balancer-labs/v3-interfaces/contracts/vault/IVault.sol"; import { AfterSwapParams, @@ -35,7 +35,6 @@ contract LotteryHookExample is BaseHooks, VaultGuard, Ownable { // Trusted router is needed since we rely on `getSender` to know which user should receive the prize. address private immutable _trustedRouter; - address private immutable _allowedFactory; // When calling `onAfterSwap`, a random number is generated. If the number is equal to LUCKY_NUMBER, the user will // win the accrued fees. It must be a number between 1 and MAX_NUMBER, or else nobody will win. @@ -128,7 +127,7 @@ contract LotteryHookExample is BaseHooks, VaultGuard, Ownable { ) public override onlyVault returns (bool success, uint256 hookAdjustedAmountCalculatedRaw) { uint8 drawnNumber; if (params.router == _trustedRouter) { - // If the router is trusted, draw a number as a lottery entry. (If router is not trusted, the user can + // If the Router is trusted, draw a number as a lottery entry. (If router is not trusted, the user can // perform swaps and contribute to the pot, but is not eligible to win.) drawnNumber = _getRandomNumber(); } @@ -146,7 +145,7 @@ contract LotteryHookExample is BaseHooks, VaultGuard, Ownable { // The preceding swap operation has already credited the original `amountCalculated`. Since we're // returning `amountCalculated - feeToPay` here, it will only register debt for that reduced amount // on settlement. This call to `sendTo` pulls `feeToPay` tokens of `tokenOut` from the Vault to this - // contract, and registers the additional debt, so that the total debts match the credits and + // contract, and registers the additional debt, so that the total debits match the credits and // settlement succeeds. uint256 feeToPay = _chargeFeeOrPayWinner(params.router, drawnNumber, params.tokenOut, hookFee); if (feeToPay > 0) { @@ -159,7 +158,7 @@ contract LotteryHookExample is BaseHooks, VaultGuard, Ownable { // The preceding swap operation has already registered debt for the original `amountCalculated`. // Since we're returning `amountCalculated + feeToPay` here, it will supply credit for that increased // amount on settlement. This call to `sendTo` pulls `feeToPay` tokens of `tokenIn` from the Vault to - // this contract, and registers the additional debt, so that the total debts match the credits and + // this contract, and registers the additional debt, so that the total debits match the credits and // settlement succeeds. uint256 feeToPay = _chargeFeeOrPayWinner(params.router, drawnNumber, params.tokenIn, hookFee); @@ -234,7 +233,7 @@ contract LotteryHookExample is BaseHooks, VaultGuard, Ownable { _tokensWithAccruedFees.set(token, 1); if (hookFee > 0) { - // Collect fees from the Vault; the user will pay them when the router settles the swap. + // Collect fees from the Vault; the user will pay them when the Router settles the swap. _vault.sendTo(token, address(this), hookFee); emit LotteryFeeCollected(address(this), token, hookFee); diff --git a/packages/foundry/contracts/hooks/VeBALFeeDiscountHookExample.sol b/packages/foundry/contracts/hooks/VeBALFeeDiscountHookExample.sol index ccc0caf6..d8798537 100644 --- a/packages/foundry/contracts/hooks/VeBALFeeDiscountHookExample.sol +++ b/packages/foundry/contracts/hooks/VeBALFeeDiscountHookExample.sol @@ -5,8 +5,8 @@ pragma solidity ^0.8.24; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { IBasePoolFactory } from "@balancer-labs/v3-interfaces/contracts/vault/IBasePoolFactory.sol"; -import { IHooks } from "@balancer-labs/v3-interfaces/contracts/vault/IHooks.sol"; import { IRouterCommon } from "@balancer-labs/v3-interfaces/contracts/vault/IRouterCommon.sol"; +import { IHooks } from "@balancer-labs/v3-interfaces/contracts/vault/IHooks.sol"; import { IVault } from "@balancer-labs/v3-interfaces/contracts/vault/IVault.sol"; import { LiquidityManagement, @@ -78,7 +78,7 @@ contract VeBALFeeDiscountHookExample is BaseHooks, VaultGuard { address, uint256 staticSwapFeePercentage ) public view override onlyVault returns (bool, uint256) { - // If the router is not trusted, do not apply the veBAL discount. `getSender` may be manipulated by a + // If the Router is not trusted, do not apply the veBAL discount. `getSender` may be manipulated by a // malicious router. if (params.router != _trustedRouter) { return (true, staticSwapFeePercentage); diff --git a/packages/foundry/deployments/.npmignore b/packages/foundry/deployments/.npmignore deleted file mode 100644 index c96a04f0..00000000 --- a/packages/foundry/deployments/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore \ No newline at end of file diff --git a/packages/foundry/foundry.toml b/packages/foundry/foundry.toml index d106dfe9..8e03409a 100644 --- a/packages/foundry/foundry.toml +++ b/packages/foundry/foundry.toml @@ -15,6 +15,8 @@ fs_permissions = [{ access = "read-write", path = "./"}] # SE-2 default to allow default_network = "http://127.0.0.1:8545" localhost = "http://127.0.0.1:8545" sepolia = "${SEPOLIA_RPC_URL}" +mainnet = "${MAINNET_RPC_URL}" +gnosis = "${GNOSIS_RPC_URL}" # [etherscan] diff --git a/packages/foundry/lib/balancer-v3-monorepo b/packages/foundry/lib/balancer-v3-monorepo index 67337944..25d73b3d 160000 --- a/packages/foundry/lib/balancer-v3-monorepo +++ b/packages/foundry/lib/balancer-v3-monorepo @@ -1 +1 @@ -Subproject commit 67337944430569fb8bd1fe071e0ed808a0e19209 +Subproject commit 25d73b3d091f5dde943ad6b7d90db9569222510d diff --git a/packages/foundry/package.json b/packages/foundry/package.json index ea857d44..bf0ecabb 100644 --- a/packages/foundry/package.json +++ b/packages/foundry/package.json @@ -7,7 +7,7 @@ "compile": "forge compile", "deploy": "forge build --build-info --build-info-path out/build-info/ && forge script script/Deploy.s.sol --rpc-url ${1:-default_network} --broadcast --slow && node scripts-js/generateTsAbis.js", "flatten": "forge flatten", - "fork": "anvil --fork-url ${0:-sepolia} --chain-id 31337 --config-out localhost.json", + "fork": "anvil --fork-url ${1:-default_network} --chain-id 31337 --config-out localhost.json", "format": "npx prettier --write --plugin=prettier-plugin-solidity 'contracts/**/*.sol' 'test/**/*.sol' 'script/*.sol' 'utils/*.sol'", "generate": "node script/generateAccount.js", "lint": "npx prettier --check --plugin=prettier-plugin-solidity 'contracts/**/*.sol' 'test/**/*.sol' && prettier --check ./script/**/*.js", diff --git a/packages/foundry/script/00_DeployMockTokens.s.sol b/packages/foundry/script/00_DeployMockTokens.s.sol index 4f26e9ca..5d3d773b 100644 --- a/packages/foundry/script/00_DeployMockTokens.s.sol +++ b/packages/foundry/script/00_DeployMockTokens.s.sol @@ -20,8 +20,8 @@ contract DeployMockTokens is ScaffoldHelpers { vm.startBroadcast(deployerPrivateKey); // Used to register & initialize pool contracts - mockToken1 = address(new MockToken1("Mock Token 1", "MT1", 1000e18)); - mockToken2 = address(new MockToken2("Mock Token 2", "MT2", 1000e18)); + mockToken1 = address(new MockToken1("Pepe the Frog", "PEPE", 1000e18)); + mockToken2 = address(new MockToken2("Department of Government Efficiency", "DOGE", 1000e18)); console.log("MockToken1 deployed at: %s", mockToken1); console.log("MockToken2 deployed at: %s", mockToken2); diff --git a/packages/foundry/script/PoolHelpers.sol b/packages/foundry/script/PoolHelpers.sol index 3543b37c..5e843480 100644 --- a/packages/foundry/script/PoolHelpers.sol +++ b/packages/foundry/script/PoolHelpers.sol @@ -12,17 +12,29 @@ import { IPermit2 } from "permit2/src/interfaces/IPermit2.sol"; import { IERC20 } from "@openzeppelin/contracts/interfaces/IERC20.sol"; import { IVault } from "@balancer-labs/v3-interfaces/contracts/vault/IVault.sol"; import { IRouter } from "@balancer-labs/v3-interfaces/contracts/vault/IRouter.sol"; +import { console } from "forge-std/Script.sol"; /** * @title Pool Helpers - * @notice Helpful types, interface instances, and functions for deploying pools on Balancer v3 + * @notice Helpful addresses,functions, and types for deploying pools on Balancer v3 + * @dev the block.chainid will always be 31337 when deploying to local anvil fork */ contract PoolHelpers { - // Balancer v3 Sepolia addresses (8th testnet release) - IVault internal vault = IVault(0x0EF1c156a7986F394d90eD1bEeA6483Cc435F542); - IRouter internal router = IRouter(0xB12FcB422aAe6720f882E22C340964a7723f2387); - IBatchRouter internal batchRouter = IBatchRouter(0x0418001D0d68C71d0E391fE46dC7aFCe045f34A0); - IPermit2 internal permit2 = IPermit2(0x000000000022D473030F116dDEE9F6B43aC78BA3); + // Same on all chains + IPermit2 internal permit2 = IPermit2(0x000000000022D473030F116dDEE9F6B43aC78BA3); // same on all chains + IVault internal vault = IVault(0xbA1333333333a1BA1108E8412f11850A5C319bA9); + + // Mainnet + IRouter internal router = IRouter(0x5C6fb490BDFD3246EB0bB062c168DeCAF4bD9FDd); + IBatchRouter internal batchRouter = IBatchRouter(0x136f1EFcC3f8f88516B9E94110D56FDBfB1778d1); + + // Gnosis + // IRouter internal router = IRouter(0x84813aA3e079A665C0B80F944427eE83cBA63617); + // IBatchRouter internal batchRouter = IBatchRouter(0xe2fa4e1d17725e72dcdAfe943Ecf45dF4B9E285b); + + // Sepolia + // IRouter internal router = IRouter(0x0BF61f706105EA44694f2e92986bD01C39930280); + // IBatchRouter internal batchRouter IBatchRouter(0xC85b652685567C1B074e8c0D4389f83a2E458b1C); /** * Sorts the tokenConfig array into alphanumeric order diff --git a/packages/foundry/script/ScaffoldHelpers.sol b/packages/foundry/script/ScaffoldHelpers.sol index dd2bd803..33c5fb92 100644 --- a/packages/foundry/script/ScaffoldHelpers.sol +++ b/packages/foundry/script/ScaffoldHelpers.sol @@ -28,7 +28,7 @@ contract ScaffoldHelpers is Script { deployerPrivateKey = 0; } - if (block.chainid == 31337 && deployerPrivateKey == 0) { + if (deployerPrivateKey == 0) { root = vm.projectRoot(); path = string.concat(root, "/localhost.json"); string memory json = vm.readFile(path); diff --git a/packages/foundry/test/ConstantSumFactory.t.sol b/packages/foundry/test/ConstantSumFactory.t.sol index ffb1b2af..412830dd 100644 --- a/packages/foundry/test/ConstantSumFactory.t.sol +++ b/packages/foundry/test/ConstantSumFactory.t.sol @@ -10,122 +10,96 @@ import { } from "@balancer-labs/v3-interfaces/contracts/vault/VaultTypes.sol"; import { IVault } from "@balancer-labs/v3-interfaces/contracts/vault/IVault.sol"; import { VaultMock } from "@balancer-labs/v3-vault/contracts/test/VaultMock.sol"; -import { VaultMockDeployer } from "@balancer-labs/v3-vault/test/foundry/utils/VaultMockDeployer.sol"; import { ERC20TestToken } from "@balancer-labs/v3-solidity-utils/contracts/test/ERC20TestToken.sol"; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; +import { BaseVaultTest } from "@balancer-labs/v3-vault/test/foundry/utils/BaseVaultTest.sol"; + import { ConstantSumPool } from "../contracts/pools/ConstantSumPool.sol"; import { ConstantSumFactory } from "../contracts/factories/ConstantSumFactory.sol"; -contract ConstantSumFactoryTest is Test { - uint256 internal DEFAULT_SWAP_FEE = 1e16; // 1% - - VaultMock vault; - ConstantSumFactory factory; - ERC20TestToken tokenA; - ERC20TestToken tokenB; - - address alice = vm.addr(1); - - function setUp() public { - vault = VaultMockDeployer.deploy(); - factory = new ConstantSumFactory(IVault(address(vault)), 365 days); - tokenA = new ERC20TestToken("Token A", "TKNA", 18); - tokenB = new ERC20TestToken("Token B", "TKNB", 6); - } - - function _createPool( - string memory name, - string memory symbol, - IERC20 token1, - IERC20 token2, - bytes32 salt - ) private returns (ConstantSumPool) { - TokenConfig[] memory tokenConfigs = new TokenConfig[](2); - tokenConfigs[0].token = token1; - tokenConfigs[1].token = token2; - bool protocolFeeExempt = false; - PoolRoleAccounts memory roleAccounts; - address poolHooksContract = address(0); - LiquidityManagement memory liquidityManagement; - - return - ConstantSumPool( - factory.create( - name, - symbol, - salt, - tokenConfigs, - DEFAULT_SWAP_FEE, // swapFeePercentage - protocolFeeExempt, - roleAccounts, - poolHooksContract, - liquidityManagement - ) - ); - } - - function testFactoryPausedState() public view { - uint256 pauseWindowDuration = factory.getPauseWindowDuration(); - assertEq(pauseWindowDuration, 365 days); - } - - function testPoolCreation__Fuzz(bytes32 salt) public { - vm.assume(salt > 0); - - ConstantSumPool pool = _createPool("Constant Sum Pool #1", "CSP1", tokenA, tokenB, salt); - assertEq(pool.name(), "Constant Sum Pool #1", "Wrong pool name"); - assertEq(pool.symbol(), "CSP1", "Wrong pool symbol"); - assertEq(pool.decimals(), 18, "Wrong pool decimals"); - } - - function testPoolSalt__Fuzz(bytes32 salt) public { - vm.assume(salt > 0); - - ConstantSumPool pool = _createPool("Constant Sum Pool #1", "CSP1", tokenA, tokenB, bytes32(0)); - ConstantSumPool secondPool = _createPool("Constant Sum Pool #2", "CSP2", tokenA, tokenB, salt); - - address expectedPoolAddress = factory.getDeploymentAddress(salt); - - assertFalse(address(pool) == address(secondPool), "Two deployed pool addresses are equal"); - assertEq(address(secondPool), expectedPoolAddress, "Unexpected pool address"); - } - - function testPoolSender__Fuzz(bytes32 salt) public { - vm.assume(salt > 0); - address expectedPoolAddress = factory.getDeploymentAddress(salt); - - TokenConfig[] memory tokenConfigs = new TokenConfig[](2); - tokenConfigs[0].token = tokenA; - tokenConfigs[1].token = tokenB; - - // Different sender should change the address of the pool, given the same salt value - vm.prank(alice); - ConstantSumPool pool = _createPool("Constant Sum Pool #1", "CSP1", tokenA, tokenB, salt); - - assertFalse(address(pool) == expectedPoolAddress, "Unexpected pool address"); - - vm.prank(alice); - address aliceExpectedPoolAddress = factory.getDeploymentAddress(salt); - assertTrue(address(pool) == aliceExpectedPoolAddress, "Unexpected pool address"); - } - - function testPoolCrossChainProtection__Fuzz(bytes32 salt, uint16 chainId) public { - vm.assume(chainId > 1); - - TokenConfig[] memory tokenConfigs = new TokenConfig[](2); - tokenConfigs[0].token = tokenA; - tokenConfigs[1].token = tokenB; - - vm.prank(alice); - ConstantSumPool poolMainnet = _createPool("Constant Sum Pool #1", "CSP1", tokenA, tokenB, salt); - - vm.chainId(chainId); - - vm.prank(alice); - ConstantSumPool poolL2 = _createPool("Constant Sum Pool #2", "CSP2", tokenA, tokenB, salt); - - // Same sender and salt, should still be different because of the chainId. - assertFalse(address(poolL2) == address(poolMainnet), "L2 and mainnet pool addresses are equal"); - } +contract ConstantSumFactoryTest is BaseVaultTest { + // uint256 internal DEFAULT_SWAP_FEE = 1e16; // 1% + // ConstantSumFactory factory; + // ERC20TestToken tokenA; + // ERC20TestToken tokenB; + // function setUp() public override { + // super.setUp(); + // factory = new ConstantSumFactory(IVault(address(vault)), 365 days); + // tokenA = new ERC20TestToken("Token A", "TKNA", 18); + // tokenB = new ERC20TestToken("Token B", "TKNB", 6); + // } + // function _createPool( + // string memory name, + // string memory symbol, + // IERC20 token1, + // IERC20 token2, + // bytes32 salt + // ) private returns (address) { + // TokenConfig[] memory tokenConfigs = new TokenConfig[](2); + // tokenConfigs[0].token = token1; + // tokenConfigs[1].token = token2; + // bool protocolFeeExempt = false; + // PoolRoleAccounts memory roleAccounts; + // address poolHooksContract = address(0); + // LiquidityManagement memory liquidityManagement; + // return + // factory.create( + // name, + // symbol, + // salt, + // tokenConfigs, + // DEFAULT_SWAP_FEE, // swapFeePercentage + // protocolFeeExempt, + // roleAccounts, + // poolHooksContract, + // liquidityManagement + // ); + // } + // function testFactoryPausedState() public view { + // uint256 pauseWindowDuration = factory.getPauseWindowDuration(); + // assertEq(pauseWindowDuration, 365 days); + // } + // function testPoolCreation__Fuzz(bytes32 salt) public { + // vm.assume(salt > 0); + // ConstantSumPool pool = _createPool("Constant Sum Pool #1", "CSP1", tokenA, tokenB, salt); + // assertEq(pool.name(), "Constant Sum Pool #1", "Wrong pool name"); + // assertEq(pool.symbol(), "CSP1", "Wrong pool symbol"); + // assertEq(pool.decimals(), 18, "Wrong pool decimals"); + // } + // function testPoolSalt__Fuzz(bytes32 salt) public { + // vm.assume(salt > 0); + // ConstantSumPool pool = _createPool("Constant Sum Pool #1", "CSP1", tokenA, tokenB, bytes32(0)); + // ConstantSumPool secondPool = _createPool("Constant Sum Pool #2", "CSP2", tokenA, tokenB, salt); + // address expectedPoolAddress = factory.getDeploymentAddress(salt); + // assertFalse(address(pool) == address(secondPool), "Two deployed pool addresses are equal"); + // assertEq(address(secondPool), expectedPoolAddress, "Unexpected pool address"); + // } + // function testPoolSender__Fuzz(bytes32 salt) public { + // vm.assume(salt > 0); + // address expectedPoolAddress = factory.getDeploymentAddress(salt); + // TokenConfig[] memory tokenConfigs = new TokenConfig[](2); + // tokenConfigs[0].token = tokenA; + // tokenConfigs[1].token = tokenB; + // // Different sender should change the address of the pool, given the same salt value + // vm.prank(alice); + // ConstantSumPool pool = _createPool("Constant Sum Pool #1", "CSP1", tokenA, tokenB, salt); + // assertFalse(address(pool) == expectedPoolAddress, "Unexpected pool address"); + // vm.prank(alice); + // address aliceExpectedPoolAddress = factory.getDeploymentAddress(salt); + // assertTrue(address(pool) == aliceExpectedPoolAddress, "Unexpected pool address"); + // } + // function testPoolCrossChainProtection__Fuzz(bytes32 salt, uint16 chainId) public { + // vm.assume(chainId > 1); + // TokenConfig[] memory tokenConfigs = new TokenConfig[](2); + // tokenConfigs[0].token = tokenA; + // tokenConfigs[1].token = tokenB; + // vm.prank(alice); + // ConstantSumPool poolMainnet = _createPool("Constant Sum Pool #1", "CSP1", tokenA, tokenB, salt); + // vm.chainId(chainId); + // vm.prank(alice); + // ConstantSumPool poolL2 = _createPool("Constant Sum Pool #2", "CSP2", tokenA, tokenB, salt); + // // Same sender and salt, should still be different because of the chainId. + // assertFalse(address(poolL2) == address(poolMainnet), "L2 and mainnet pool addresses are equal"); + // } } diff --git a/packages/foundry/test/ConstantSumPool.t.sol b/packages/foundry/test/ConstantSumPool.t.sol index db42f64a..947614eb 100644 --- a/packages/foundry/test/ConstantSumPool.t.sol +++ b/packages/foundry/test/ConstantSumPool.t.sol @@ -24,91 +24,77 @@ import { ConstantSumFactory } from "../contracts/factories/ConstantSumFactory.so import { ConstantSumPool } from "../contracts/pools/ConstantSumPool.sol"; contract ConstantSumPoolTest is BasePoolTest { - using CastingHelpers for address[]; - using ArrayHelpers for *; - - uint256 constant DEFAULT_SWAP_FEE = 1e16; // 1% - uint256 constant TOKEN_AMOUNT = 1e3 * 1e18; - - uint256 daiIdx; - uint256 usdcIdx; - - function setUp() public virtual override { - expectedAddLiquidityBptAmountOut = TOKEN_AMOUNT * 2; - tokenAmountIn = TOKEN_AMOUNT / 4; - isTestSwapFeeEnabled = false; - - BasePoolTest.setUp(); - - (daiIdx, usdcIdx) = getSortedIndexes(address(dai), address(usdc)); - - poolMinSwapFeePercentage = 0.001e18; // 0.001% - poolMaxSwapFeePercentage = 0.10e18; // 10% - } - - function createPool() internal override returns (address) { - IERC20[] memory sortedTokens = InputHelpers.sortTokens( - [address(dai), address(usdc)].toMemoryArray().asIERC20() - ); - for (uint256 i = 0; i < sortedTokens.length; i++) { - poolTokens.push(sortedTokens[i]); - tokenAmounts.push(TOKEN_AMOUNT); - } - - factory = new ConstantSumFactory(IVault(address(vault)), 365 days); - PoolRoleAccounts memory roleAccounts; - // Allow pools created by `factory` to use poolHooksMock hooks - PoolHooksMock(poolHooksContract).allowFactory(address(factory)); - LiquidityManagement memory liquidityManagement; - - ConstantSumPool newPool = ConstantSumPool( - ConstantSumFactory(address(factory)).create( - "Constant Sum Pool", // name - "CSP", // symbol - ZERO_BYTES32, // salt - vault.buildTokenConfig(sortedTokens), // TokenConfig[] - DEFAULT_SWAP_FEE, // swapFeePercentage - false, // protocolFeeExempt - roleAccounts, - poolHooksContract, - liquidityManagement - ) - ); - return address(newPool); - } - - function initPool() internal override { - vm.startPrank(lp); - bptAmountOut = _initPool( - pool, - tokenAmounts, - // Account for the precision loss - expectedAddLiquidityBptAmountOut - DELTA - ); - vm.stopPrank(); - } - - function testFailSwapFeeTooLow() public { - TokenConfig[] memory tokenConfigs = new TokenConfig[](2); - tokenConfigs[daiIdx].token = IERC20(dai); - tokenConfigs[usdcIdx].token = IERC20(usdc); - - PoolRoleAccounts memory roleAccounts; - LiquidityManagement memory liquidityManagement; - - address lowFeeConstantSumPool = ConstantSumFactory(address(factory)).create( - "Constant Sum Pool", - "CSP", - ZERO_BYTES32, - tokenConfigs, - IBasePool(pool).getMinimumSwapFeePercentage() - 1, // Swap fee too low - false, // protocolFeeExempt - roleAccounts, - poolHooksContract, - liquidityManagement - ); - - vm.expectRevert(IVaultErrors.SwapFeePercentageTooLow.selector); - factoryMock.registerTestPool(lowFeeConstantSumPool, tokenConfigs); - } + // using CastingHelpers for address[]; + // using ArrayHelpers for *; + // uint256 constant DEFAULT_SWAP_FEE = 1e16; // 1% + // uint256 constant TOKEN_AMOUNT = 1e3 * 1e18; + // uint256 daiIdx; + // uint256 usdcIdx; + // function setUp() public virtual override { + // expectedAddLiquidityBptAmountOut = TOKEN_AMOUNT * 2; + // tokenAmountIn = TOKEN_AMOUNT / 4; + // isTestSwapFeeEnabled = false; + // BasePoolTest.setUp(); + // (daiIdx, usdcIdx) = getSortedIndexes(address(dai), address(usdc)); + // poolMinSwapFeePercentage = 0.001e18; // 0.001% + // poolMaxSwapFeePercentage = 0.10e18; // 10% + // } + // function createPool() internal override returns (address) { + // IERC20[] memory sortedTokens = InputHelpers.sortTokens( + // [address(dai), address(usdc)].toMemoryArray().asIERC20() + // ); + // for (uint256 i = 0; i < sortedTokens.length; i++) { + // poolTokens.push(sortedTokens[i]); + // tokenAmounts.push(TOKEN_AMOUNT); + // } + // factory = new ConstantSumFactory(IVault(address(vault)), 365 days); + // PoolRoleAccounts memory roleAccounts; + // // Allow pools created by `factory` to use poolHooksMock hooks + // PoolHooksMock(poolHooksContract).allowFactory(address(factory)); + // LiquidityManagement memory liquidityManagement; + // ConstantSumPool newPool = ConstantSumPool( + // ConstantSumFactory(address(factory)).create( + // "Constant Sum Pool", // name + // "CSP", // symbol + // ZERO_BYTES32, // salt + // vault.buildTokenConfig(sortedTokens), // TokenConfig[] + // DEFAULT_SWAP_FEE, // swapFeePercentage + // false, // protocolFeeExempt + // roleAccounts, + // poolHooksContract, + // liquidityManagement + // ) + // ); + // return address(newPool); + // } + // function initPool() internal override { + // vm.startPrank(lp); + // bptAmountOut = _initPool( + // pool, + // tokenAmounts, + // // Account for the precision loss + // expectedAddLiquidityBptAmountOut - DELTA + // ); + // vm.stopPrank(); + // } + // function testFailSwapFeeTooLow() public { + // TokenConfig[] memory tokenConfigs = new TokenConfig[](2); + // tokenConfigs[daiIdx].token = IERC20(dai); + // tokenConfigs[usdcIdx].token = IERC20(usdc); + // PoolRoleAccounts memory roleAccounts; + // LiquidityManagement memory liquidityManagement; + // address lowFeeConstantSumPool = ConstantSumFactory(address(factory)).create( + // "Constant Sum Pool", + // "CSP", + // ZERO_BYTES32, + // tokenConfigs, + // IBasePool(pool).getMinimumSwapFeePercentage() - 1, // Swap fee too low + // false, // protocolFeeExempt + // roleAccounts, + // poolHooksContract, + // liquidityManagement + // ); + // vm.expectRevert(IVaultErrors.SwapFeePercentageTooLow.selector); + // factoryMock.registerTestPool(lowFeeConstantSumPool, tokenConfigs); + // } } diff --git a/packages/foundry/test/ExitFeeHookExample.t.sol b/packages/foundry/test/ExitFeeHookExample.t.sol index c57d2aa1..03c5cabf 100644 --- a/packages/foundry/test/ExitFeeHookExample.t.sol +++ b/packages/foundry/test/ExitFeeHookExample.t.sol @@ -50,9 +50,15 @@ contract ExitFeeHookExampleTest is BaseVaultTest { } // Overrides pool creation to set liquidityManagement (disables unbalanced liquidity and enables donation) - function _createPool(address[] memory tokens, string memory label) internal virtual override returns (address) { - PoolMock newPool = new PoolMock(IVault(address(vault)), "ERC20 Pool", "ERC20POOL"); - vm.label(address(newPool), label); + function _createPool( + address[] memory tokens, + string memory label + ) internal virtual override returns (address newPool, bytes memory poolArgs) { + string memory name = "ERC20 Pool"; + string memory symbol = "ERC20POOL"; + + newPool = address(deployPoolMock(IVault(address(vault)), name, symbol)); + vm.label(newPool, label); PoolRoleAccounts memory roleAccounts; roleAccounts.poolCreator = lp; @@ -62,17 +68,18 @@ contract ExitFeeHookExampleTest is BaseVaultTest { liquidityManagement.enableDonation = true; vm.expectEmit(); - emit ExitFeeHookExample.ExitFeeHookExampleRegistered(poolHooksContract, address(newPool)); + emit ExitFeeHookExample.ExitFeeHookExampleRegistered(poolHooksContract, newPool); factoryMock.registerPool( - address(newPool), + newPool, vault.buildTokenConfig(tokens.asIERC20()), roleAccounts, poolHooksContract, liquidityManagement ); - return address(newPool); + // poolArgs is used to check pool deployment address with create2. + poolArgs = abi.encode(vault, name, symbol); } function testRegistryWithWrongDonationFlag() public { @@ -181,7 +188,7 @@ contract ExitFeeHookExampleTest is BaseVaultTest { // Registry tests require a new pool, because an existent pool may be already registered function _createPoolToRegister() private returns (address newPool) { - newPool = address(new PoolMock(IVault(address(vault)), "ERC20 Pool", "ERC20POOL")); + newPool = address(deployPoolMock(IVault(address(vault)), "ERC20 Pool", "ERC20POOL")); vm.label(newPool, "Exit Fee Pool"); } diff --git a/packages/foundry/test/LotteryHookExample.t.sol b/packages/foundry/test/LotteryHookExample.t.sol index 8f6a9130..333f931e 100644 --- a/packages/foundry/test/LotteryHookExample.t.sol +++ b/packages/foundry/test/LotteryHookExample.t.sol @@ -50,9 +50,15 @@ contract LotteryHookExampleTest is BaseVaultTest { } // Overrides pool creation to set liquidityManagement (disables unbalanced liquidity). - function _createPool(address[] memory tokens, string memory label) internal override returns (address) { - PoolMock newPool = new PoolMock(IVault(address(vault)), "Lottery Pool", "LOTTERY-POOL"); - vm.label(address(newPool), label); + function _createPool( + address[] memory tokens, + string memory label + ) internal override returns (address newPool, bytes memory poolArgs) { + string memory name = "Lottery Pool"; + string memory symbol = "LOTTERY-POOL"; + + newPool = address(deployPoolMock(IVault(address(vault)), name, symbol)); + vm.label(newPool, label); PoolRoleAccounts memory roleAccounts; roleAccounts.poolCreator = lp; @@ -64,14 +70,14 @@ contract LotteryHookExampleTest is BaseVaultTest { emit LotteryHookExample.LotteryHookExampleRegistered(poolHooksContract, address(newPool)); factoryMock.registerPool( - address(newPool), + newPool, vault.buildTokenConfig(tokens.asIERC20()), roleAccounts, poolHooksContract, liquidityManagement ); - return address(newPool); + poolArgs = abi.encode(vault, name, symbol); } function testLotterySwapExactIn() public { diff --git a/packages/foundry/test/VeBALFeeDiscountHookExample.t.sol b/packages/foundry/test/VeBALFeeDiscountHookExample.t.sol index 1eb2639b..f32badfe 100644 --- a/packages/foundry/test/VeBALFeeDiscountHookExample.t.sol +++ b/packages/foundry/test/VeBALFeeDiscountHookExample.t.sol @@ -68,7 +68,7 @@ contract VeBALFeeDiscountHookExampleTest is BaseVaultTest { uint32 pauseWindowEndTime = IVaultAdmin(address(vault)).getPauseWindowEndTime(); uint32 bufferPeriodDuration = IVaultAdmin(address(vault)).getBufferPeriodDuration(); uint32 pauseWindowDuration = pauseWindowEndTime - bufferPeriodDuration; - address unauthorizedFactory = address(new PoolFactoryMock(IVault(address(vault)), pauseWindowDuration)); + address unauthorizedFactory = address(deployPoolFactoryMock(IVault(address(vault)), pauseWindowDuration)); vm.expectRevert( abi.encodeWithSelector( @@ -121,7 +121,7 @@ contract VeBALFeeDiscountHookExampleTest is BaseVaultTest { } function testSwapWithoutVeBal() public { - assertEq(veBAL.balanceOf(bob), 0, "Bob still has veBAL"); + assertEq(veBAL.balanceOf(bob), 0, "Bob has veBAL"); _doSwapAndCheckBalances(trustedRouter); } @@ -134,13 +134,61 @@ contract VeBALFeeDiscountHookExampleTest is BaseVaultTest { _doSwapAndCheckBalances(trustedRouter); } + function testQueryAndCompareWithSwapWithoutVeBal() public { + assertEq(veBAL.balanceOf(bob), 0, "Bob has veBAL"); + + // Since the Vault has no swap fee, the fee will stay in the pool. + uint256 swapFeePercentage = MAX_SWAP_FEE_PERCENTAGE; + + vm.prank(lp); + vault.setStaticSwapFeePercentage(pool, swapFeePercentage); + + uint256 exactAmountIn = poolInitAmount / 100; + // PoolMock uses linear math with a rate of 1, so amountIn == amountOut when no fees are applied. + uint256 expectedAmountOut = exactAmountIn; + // Bob does not get a discount since it does not have VeBal. + uint256 expectedHookFee = exactAmountIn.mulDown(swapFeePercentage); + // The hook fee will remain in the pool, so the expected amountOut discounts the fees. + expectedAmountOut -= expectedHookFee; + + vm.prank(bob, address(0)); + uint256 amountOut = router.querySwapSingleTokenExactIn(pool, dai, usdc, exactAmountIn, bob, bytes("")); + + assertEq(amountOut, expectedAmountOut, "Wrong veBal hook fee"); + } + + function testQueryAndCompareWithSwapWithVeBal() public { + // Mint 1 veBAL to Bob, so he's able to receive the fee discount. + veBAL.mint(bob, 1); + assertGt(veBAL.balanceOf(bob), 0, "Bob does not have veBAL"); + + // Since the Vault has no swap fee, the fee will stay in the pool. + uint256 swapFeePercentage = MAX_SWAP_FEE_PERCENTAGE; + + vm.prank(lp); + vault.setStaticSwapFeePercentage(pool, swapFeePercentage); + + uint256 exactAmountIn = poolInitAmount / 100; + // PoolMock uses linear math with a rate of 1, so amountIn == amountOut when no fees are applied. + uint256 expectedAmountOut = exactAmountIn; + // Bob has veBAL and the router is trusted, so Bob gets a 50% discount (divide by 2). + uint256 expectedHookFee = exactAmountIn.mulDown(swapFeePercentage) / 2; + // The hook fee will remain in the pool, so the expected amountOut discounts the fees. + expectedAmountOut -= expectedHookFee; + + vm.prank(bob, address(0)); + uint256 amountOut = router.querySwapSingleTokenExactIn(pool, dai, usdc, exactAmountIn, bob, bytes("")); + + assertEq(amountOut, expectedAmountOut, "Wrong veBal hook fee"); + } + function testSwapWithVeBalAndUntrustedRouter() public { // Mint 1 veBAL to Bob, so he's able to receive the fee discount. veBAL.mint(bob, 1); assertGt(veBAL.balanceOf(bob), 0, "Bob does not have veBAL"); // Create an untrusted router - address payable untrustedRouter = payable(new RouterMock(IVault(address(vault)), weth, permit2)); + address payable untrustedRouter = payable(deployRouterMock(IVault(address(vault)), weth, permit2)); vm.label(untrustedRouter, "untrusted router"); // Allows permit2 to move DAI tokens from Bob to untrustedRouter. @@ -161,7 +209,7 @@ contract VeBALFeeDiscountHookExampleTest is BaseVaultTest { uint256 exactAmountIn = poolInitAmount / 100; // PoolMock uses linear math with a rate of 1, so amountIn == amountOut when no fees are applied. uint256 expectedAmountOut = exactAmountIn; - // If Bob has veBAL and the router is trusted, Bob gets a 50% discount. + // If Bob has veBAL and the Router is trusted, Bob gets a 50% discount. bool shouldGetDiscount = routerToUse == trustedRouter && veBAL.balanceOf(bob) > 0; uint256 expectedHookFee = exactAmountIn.mulDown(swapFeePercentage) / (shouldGetDiscount ? 2 : 1); // The hook fee will remain in the pool, so the expected amountOut discounts the fees. @@ -224,7 +272,7 @@ contract VeBALFeeDiscountHookExampleTest is BaseVaultTest { // Registry tests require a new pool, because an existing pool may be already registered function _createPoolToRegister() private returns (address newPool) { - newPool = address(new PoolMock(IVault(address(vault)), "VeBAL Fee Pool", "veBALFeePool")); + newPool = address(deployPoolMock(IVault(address(vault)), "VeBAL Fee Pool", "veBALFeePool")); vm.label(newPool, "VeBAL Fee Pool"); } diff --git a/packages/nextjs/app/pools/_components/operations/RemoveLiquidityForm.tsx b/packages/nextjs/app/pools/_components/operations/RemoveLiquidityForm.tsx index 0e3f0e7e..86edde6b 100644 --- a/packages/nextjs/app/pools/_components/operations/RemoveLiquidityForm.tsx +++ b/packages/nextjs/app/pools/_components/operations/RemoveLiquidityForm.tsx @@ -79,10 +79,11 @@ export const RemoveLiquidityForm: React.FC = ({ pool, refetchP }); }; + // TODO: update for deploy12 changing name and shape of event (was "PoolBalanceChanged" on deploy8) useContractEvent({ address: VAULT_V3[chainId], abi: vaultV3Abi, - eventName: "PoolBalanceChanged", + eventName: "LiquidityRemoved", listener(log: any[]) { const data: TokenAmountDetails[] = log[0].args.deltas.map((delta: bigint, idx: number) => ({ symbol: pool.poolTokens[idx].symbol, diff --git a/packages/nextjs/contracts/deployedContracts.ts b/packages/nextjs/contracts/deployedContracts.ts index 5788ab86..a5135be6 100644 --- a/packages/nextjs/contracts/deployedContracts.ts +++ b/packages/nextjs/contracts/deployedContracts.ts @@ -7,7 +7,7 @@ import { GenericContractsDeclaration } from "~~/utils/scaffold-eth/contract"; const deployedContracts = { 31337: { MockToken1: { - address: "0xfdc90fb27105f322b384af5c3a39183047dec080", + address: "0x5147c5c1cb5b5d3f56186c37a4bcfbb3cd0bd5a7", abi: [ { type: "constructor", @@ -365,7 +365,7 @@ const deployedContracts = { }, }, MockToken2: { - address: "0xd2ed70a2ddc08f9e302b5298ef2e656959e79dd5", + address: "0xf2cb3cfa36bfb95e0fd855c1b41ab19c517fcdb9", abi: [ { type: "constructor", @@ -723,7 +723,7 @@ const deployedContracts = { }, }, MockVeBAL: { - address: "0x8e18528aa76be18c51653a3f61fe79cea130620f", + address: "0xc3549920b94a795d75e6c003944943d552c46f97", abi: [ { type: "constructor", @@ -1081,7 +1081,7 @@ const deployedContracts = { }, }, ConstantSumFactory: { - address: "0x1f16730c011b43dc6a62259b30e5721265883dde", + address: "0xab8eb9f37bd460df99b11767aa843a8f27fb7a6e", abi: [ { type: "constructor", @@ -1310,6 +1310,5061 @@ const deployedContracts = { type: "function", name: "getDeploymentAddress", inputs: [ + { + name: "constructorArgs", + type: "bytes", + internalType: "bytes", + }, + { + name: "salt", + type: "bytes32", + internalType: "bytes32", + }, + ], + outputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getNewPoolPauseWindowEndTime", + inputs: [], + outputs: [ + { + name: "", + type: "uint32", + internalType: "uint32", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getOriginalPauseWindowEndTime", + inputs: [], + outputs: [ + { + name: "", + type: "uint32", + internalType: "uint32", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getPauseWindowDuration", + inputs: [], + outputs: [ + { + name: "", + type: "uint32", + internalType: "uint32", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getPoolCount", + inputs: [], + outputs: [ + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getPools", + inputs: [], + outputs: [ + { + name: "", + type: "address[]", + internalType: "address[]", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getPoolsInRange", + inputs: [ + { + name: "start", + type: "uint256", + internalType: "uint256", + }, + { + name: "count", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "pools", + type: "address[]", + internalType: "address[]", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getVault", + inputs: [], + outputs: [ + { + name: "", + type: "address", + internalType: "contract IVault", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "isDisabled", + inputs: [], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "isPoolFromFactory", + inputs: [ + { + name: "pool", + type: "address", + internalType: "address", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "view", + }, + { + type: "event", + name: "FactoryDisabled", + inputs: [], + anonymous: false, + }, + { + type: "event", + name: "PoolCreated", + inputs: [ + { + name: "pool", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "error", + name: "Create2EmptyBytecode", + inputs: [], + }, + { + type: "error", + name: "Create2FailedDeployment", + inputs: [], + }, + { + type: "error", + name: "Create2InsufficientBalance", + inputs: [ + { + name: "balance", + type: "uint256", + internalType: "uint256", + }, + { + name: "needed", + type: "uint256", + internalType: "uint256", + }, + ], + }, + { + type: "error", + name: "Disabled", + inputs: [], + }, + { + type: "error", + name: "IndexOutOfBounds", + inputs: [], + }, + { + type: "error", + name: "PoolPauseWindowDurationOverflow", + inputs: [], + }, + { + type: "error", + name: "SenderNotAllowed", + inputs: [], + }, + { + type: "error", + name: "StandardPoolWithCreator", + inputs: [], + }, + ], + inheritedFunctions: { + disable: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getActionId: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getAuthorizer: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getDefaultLiquidityManagement: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getDefaultPoolHooksContract: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getDeploymentAddress: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getNewPoolPauseWindowEndTime: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getOriginalPauseWindowEndTime: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getPauseWindowDuration: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getPoolCount: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getPools: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getPoolsInRange: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getVault: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + isDisabled: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + isPoolFromFactory: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + }, + }, + VeBALFeeDiscountHookExample: { + address: "0x205cfc23ef26922e116135500abb4b12ab6d4668", + abi: [ + { + type: "constructor", + inputs: [ + { + name: "vault", + type: "address", + internalType: "contract IVault", + }, + { + name: "allowedFactory", + type: "address", + internalType: "address", + }, + { + name: "veBAL", + type: "address", + internalType: "address", + }, + { + name: "trustedRouter", + type: "address", + internalType: "address", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "getHookFlags", + inputs: [], + outputs: [ + { + name: "hookFlags", + type: "tuple", + internalType: "struct HookFlags", + components: [ + { + name: "enableHookAdjustedAmounts", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallBeforeInitialize", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallAfterInitialize", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallComputeDynamicSwapFee", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallBeforeSwap", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallAfterSwap", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallBeforeAddLiquidity", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallAfterAddLiquidity", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallBeforeRemoveLiquidity", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallAfterRemoveLiquidity", + type: "bool", + internalType: "bool", + }, + ], + }, + ], + stateMutability: "pure", + }, + { + type: "function", + name: "onAfterAddLiquidity", + inputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "uint8", + internalType: "enum AddLiquidityKind", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "amountsInRaw", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "bytes", + internalType: "bytes", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onAfterInitialize", + inputs: [ + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + { + name: "", + type: "bytes", + internalType: "bytes", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onAfterRemoveLiquidity", + inputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "uint8", + internalType: "enum RemoveLiquidityKind", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "amountsOutRaw", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "bytes", + internalType: "bytes", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onAfterSwap", + inputs: [ + { + name: "", + type: "tuple", + internalType: "struct AfterSwapParams", + components: [ + { + name: "kind", + type: "uint8", + internalType: "enum SwapKind", + }, + { + name: "tokenIn", + type: "address", + internalType: "contract IERC20", + }, + { + name: "tokenOut", + type: "address", + internalType: "contract IERC20", + }, + { + name: "amountInScaled18", + type: "uint256", + internalType: "uint256", + }, + { + name: "amountOutScaled18", + type: "uint256", + internalType: "uint256", + }, + { + name: "tokenInBalanceScaled18", + type: "uint256", + internalType: "uint256", + }, + { + name: "tokenOutBalanceScaled18", + type: "uint256", + internalType: "uint256", + }, + { + name: "amountCalculatedScaled18", + type: "uint256", + internalType: "uint256", + }, + { + name: "amountCalculatedRaw", + type: "uint256", + internalType: "uint256", + }, + { + name: "router", + type: "address", + internalType: "address", + }, + { + name: "pool", + type: "address", + internalType: "address", + }, + { + name: "userData", + type: "bytes", + internalType: "bytes", + }, + ], + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onBeforeAddLiquidity", + inputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "uint8", + internalType: "enum AddLiquidityKind", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "bytes", + internalType: "bytes", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onBeforeInitialize", + inputs: [ + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "bytes", + internalType: "bytes", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onBeforeRemoveLiquidity", + inputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "uint8", + internalType: "enum RemoveLiquidityKind", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "bytes", + internalType: "bytes", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onBeforeSwap", + inputs: [ + { + name: "", + type: "tuple", + internalType: "struct PoolSwapParams", + components: [ + { + name: "kind", + type: "uint8", + internalType: "enum SwapKind", + }, + { + name: "amountGivenScaled18", + type: "uint256", + internalType: "uint256", + }, + { + name: "balancesScaled18", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "indexIn", + type: "uint256", + internalType: "uint256", + }, + { + name: "indexOut", + type: "uint256", + internalType: "uint256", + }, + { + name: "router", + type: "address", + internalType: "address", + }, + { + name: "userData", + type: "bytes", + internalType: "bytes", + }, + ], + }, + { + name: "", + type: "address", + internalType: "address", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onComputeDynamicSwapFeePercentage", + inputs: [ + { + name: "params", + type: "tuple", + internalType: "struct PoolSwapParams", + components: [ + { + name: "kind", + type: "uint8", + internalType: "enum SwapKind", + }, + { + name: "amountGivenScaled18", + type: "uint256", + internalType: "uint256", + }, + { + name: "balancesScaled18", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "indexIn", + type: "uint256", + internalType: "uint256", + }, + { + name: "indexOut", + type: "uint256", + internalType: "uint256", + }, + { + name: "router", + type: "address", + internalType: "address", + }, + { + name: "userData", + type: "bytes", + internalType: "bytes", + }, + ], + }, + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "staticSwapFeePercentage", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "onRegister", + inputs: [ + { + name: "factory", + type: "address", + internalType: "address", + }, + { + name: "pool", + type: "address", + internalType: "address", + }, + { + name: "", + type: "tuple[]", + internalType: "struct TokenConfig[]", + components: [ + { + name: "token", + type: "address", + internalType: "contract IERC20", + }, + { + name: "tokenType", + type: "uint8", + internalType: "enum TokenType", + }, + { + name: "rateProvider", + type: "address", + internalType: "contract IRateProvider", + }, + { + name: "paysYieldFees", + type: "bool", + internalType: "bool", + }, + ], + }, + { + name: "", + type: "tuple", + internalType: "struct LiquidityManagement", + components: [ + { + name: "disableUnbalancedLiquidity", + type: "bool", + internalType: "bool", + }, + { + name: "enableAddLiquidityCustom", + type: "bool", + internalType: "bool", + }, + { + name: "enableRemoveLiquidityCustom", + type: "bool", + internalType: "bool", + }, + { + name: "enableDonation", + type: "bool", + internalType: "bool", + }, + ], + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "event", + name: "VeBALFeeDiscountHookExampleRegistered", + inputs: [ + { + name: "hooksContract", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "factory", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "pool", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "error", + name: "SenderIsNotVault", + inputs: [ + { + name: "sender", + type: "address", + internalType: "address", + }, + ], + }, + ], + inheritedFunctions: { + getHookFlags: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onAfterAddLiquidity: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onAfterInitialize: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onAfterRemoveLiquidity: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onAfterSwap: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onBeforeAddLiquidity: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onBeforeInitialize: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onBeforeRemoveLiquidity: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onBeforeSwap: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onComputeDynamicSwapFeePercentage: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onRegister: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + }, + }, + ConstantProductFactory: { + address: "0x87e8f332f34984728da4c0a008a495a5ec4e09a2", + abi: [ + { + type: "constructor", + inputs: [ + { + name: "vault", + type: "address", + internalType: "contract IVault", + }, + { + name: "pauseWindowDuration", + type: "uint32", + internalType: "uint32", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "create", + inputs: [ + { + name: "name", + type: "string", + internalType: "string", + }, + { + name: "symbol", + type: "string", + internalType: "string", + }, + { + name: "salt", + type: "bytes32", + internalType: "bytes32", + }, + { + name: "tokens", + type: "tuple[]", + internalType: "struct TokenConfig[]", + components: [ + { + name: "token", + type: "address", + internalType: "contract IERC20", + }, + { + name: "tokenType", + type: "uint8", + internalType: "enum TokenType", + }, + { + name: "rateProvider", + type: "address", + internalType: "contract IRateProvider", + }, + { + name: "paysYieldFees", + type: "bool", + internalType: "bool", + }, + ], + }, + { + name: "swapFeePercentage", + type: "uint256", + internalType: "uint256", + }, + { + name: "protocolFeeExempt", + type: "bool", + internalType: "bool", + }, + { + name: "roleAccounts", + type: "tuple", + internalType: "struct PoolRoleAccounts", + components: [ + { + name: "pauseManager", + type: "address", + internalType: "address", + }, + { + name: "swapFeeManager", + type: "address", + internalType: "address", + }, + { + name: "poolCreator", + type: "address", + internalType: "address", + }, + ], + }, + { + name: "poolHooksContract", + type: "address", + internalType: "address", + }, + { + name: "liquidityManagement", + type: "tuple", + internalType: "struct LiquidityManagement", + components: [ + { + name: "disableUnbalancedLiquidity", + type: "bool", + internalType: "bool", + }, + { + name: "enableAddLiquidityCustom", + type: "bool", + internalType: "bool", + }, + { + name: "enableRemoveLiquidityCustom", + type: "bool", + internalType: "bool", + }, + { + name: "enableDonation", + type: "bool", + internalType: "bool", + }, + ], + }, + ], + outputs: [ + { + name: "pool", + type: "address", + internalType: "address", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "disable", + inputs: [], + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "getActionId", + inputs: [ + { + name: "selector", + type: "bytes4", + internalType: "bytes4", + }, + ], + outputs: [ + { + name: "", + type: "bytes32", + internalType: "bytes32", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getAuthorizer", + inputs: [], + outputs: [ + { + name: "", + type: "address", + internalType: "contract IAuthorizer", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getDefaultLiquidityManagement", + inputs: [], + outputs: [ + { + name: "liquidityManagement", + type: "tuple", + internalType: "struct LiquidityManagement", + components: [ + { + name: "disableUnbalancedLiquidity", + type: "bool", + internalType: "bool", + }, + { + name: "enableAddLiquidityCustom", + type: "bool", + internalType: "bool", + }, + { + name: "enableRemoveLiquidityCustom", + type: "bool", + internalType: "bool", + }, + { + name: "enableDonation", + type: "bool", + internalType: "bool", + }, + ], + }, + ], + stateMutability: "pure", + }, + { + type: "function", + name: "getDefaultPoolHooksContract", + inputs: [], + outputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + ], + stateMutability: "pure", + }, + { + type: "function", + name: "getDeploymentAddress", + inputs: [ + { + name: "constructorArgs", + type: "bytes", + internalType: "bytes", + }, + { + name: "salt", + type: "bytes32", + internalType: "bytes32", + }, + ], + outputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getNewPoolPauseWindowEndTime", + inputs: [], + outputs: [ + { + name: "", + type: "uint32", + internalType: "uint32", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getOriginalPauseWindowEndTime", + inputs: [], + outputs: [ + { + name: "", + type: "uint32", + internalType: "uint32", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getPauseWindowDuration", + inputs: [], + outputs: [ + { + name: "", + type: "uint32", + internalType: "uint32", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getPoolCount", + inputs: [], + outputs: [ + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getPools", + inputs: [], + outputs: [ + { + name: "", + type: "address[]", + internalType: "address[]", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getPoolsInRange", + inputs: [ + { + name: "start", + type: "uint256", + internalType: "uint256", + }, + { + name: "count", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "pools", + type: "address[]", + internalType: "address[]", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getVault", + inputs: [], + outputs: [ + { + name: "", + type: "address", + internalType: "contract IVault", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "isDisabled", + inputs: [], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "isPoolFromFactory", + inputs: [ + { + name: "pool", + type: "address", + internalType: "address", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "view", + }, + { + type: "event", + name: "FactoryDisabled", + inputs: [], + anonymous: false, + }, + { + type: "event", + name: "PoolCreated", + inputs: [ + { + name: "pool", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "error", + name: "Create2EmptyBytecode", + inputs: [], + }, + { + type: "error", + name: "Create2FailedDeployment", + inputs: [], + }, + { + type: "error", + name: "Create2InsufficientBalance", + inputs: [ + { + name: "balance", + type: "uint256", + internalType: "uint256", + }, + { + name: "needed", + type: "uint256", + internalType: "uint256", + }, + ], + }, + { + type: "error", + name: "Disabled", + inputs: [], + }, + { + type: "error", + name: "IndexOutOfBounds", + inputs: [], + }, + { + type: "error", + name: "PoolPauseWindowDurationOverflow", + inputs: [], + }, + { + type: "error", + name: "SenderNotAllowed", + inputs: [], + }, + { + type: "error", + name: "StandardPoolWithCreator", + inputs: [], + }, + ], + inheritedFunctions: { + disable: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getActionId: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getAuthorizer: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getDefaultLiquidityManagement: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getDefaultPoolHooksContract: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getDeploymentAddress: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getNewPoolPauseWindowEndTime: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getOriginalPauseWindowEndTime: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getPauseWindowDuration: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getPoolCount: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getPools: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getPoolsInRange: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getVault: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + isDisabled: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + isPoolFromFactory: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + }, + }, + LotteryHookExample: { + address: "0x53e4daff2073f848dc3f7a8d7cc95b3607212a73", + abi: [ + { + type: "constructor", + inputs: [ + { + name: "vault", + type: "address", + internalType: "contract IVault", + }, + { + name: "router", + type: "address", + internalType: "address", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "LUCKY_NUMBER", + inputs: [], + outputs: [ + { + name: "", + type: "uint8", + internalType: "uint8", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "MAX_NUMBER", + inputs: [], + outputs: [ + { + name: "", + type: "uint8", + internalType: "uint8", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getHookFlags", + inputs: [], + outputs: [ + { + name: "", + type: "tuple", + internalType: "struct HookFlags", + components: [ + { + name: "enableHookAdjustedAmounts", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallBeforeInitialize", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallAfterInitialize", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallComputeDynamicSwapFee", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallBeforeSwap", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallAfterSwap", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallBeforeAddLiquidity", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallAfterAddLiquidity", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallBeforeRemoveLiquidity", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallAfterRemoveLiquidity", + type: "bool", + internalType: "bool", + }, + ], + }, + ], + stateMutability: "pure", + }, + { + type: "function", + name: "getRandomNumber", + inputs: [], + outputs: [ + { + name: "", + type: "uint8", + internalType: "uint8", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "hookSwapFeePercentage", + inputs: [], + outputs: [ + { + name: "", + type: "uint64", + internalType: "uint64", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "onAfterAddLiquidity", + inputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "uint8", + internalType: "enum AddLiquidityKind", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "amountsInRaw", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "bytes", + internalType: "bytes", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onAfterInitialize", + inputs: [ + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + { + name: "", + type: "bytes", + internalType: "bytes", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onAfterRemoveLiquidity", + inputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "uint8", + internalType: "enum RemoveLiquidityKind", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "amountsOutRaw", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "bytes", + internalType: "bytes", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onAfterSwap", + inputs: [ + { + name: "params", + type: "tuple", + internalType: "struct AfterSwapParams", + components: [ + { + name: "kind", + type: "uint8", + internalType: "enum SwapKind", + }, + { + name: "tokenIn", + type: "address", + internalType: "contract IERC20", + }, + { + name: "tokenOut", + type: "address", + internalType: "contract IERC20", + }, + { + name: "amountInScaled18", + type: "uint256", + internalType: "uint256", + }, + { + name: "amountOutScaled18", + type: "uint256", + internalType: "uint256", + }, + { + name: "tokenInBalanceScaled18", + type: "uint256", + internalType: "uint256", + }, + { + name: "tokenOutBalanceScaled18", + type: "uint256", + internalType: "uint256", + }, + { + name: "amountCalculatedScaled18", + type: "uint256", + internalType: "uint256", + }, + { + name: "amountCalculatedRaw", + type: "uint256", + internalType: "uint256", + }, + { + name: "router", + type: "address", + internalType: "address", + }, + { + name: "pool", + type: "address", + internalType: "address", + }, + { + name: "userData", + type: "bytes", + internalType: "bytes", + }, + ], + }, + ], + outputs: [ + { + name: "success", + type: "bool", + internalType: "bool", + }, + { + name: "hookAdjustedAmountCalculatedRaw", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onBeforeAddLiquidity", + inputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "uint8", + internalType: "enum AddLiquidityKind", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "bytes", + internalType: "bytes", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onBeforeInitialize", + inputs: [ + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "bytes", + internalType: "bytes", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onBeforeRemoveLiquidity", + inputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "uint8", + internalType: "enum RemoveLiquidityKind", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "bytes", + internalType: "bytes", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onBeforeSwap", + inputs: [ + { + name: "", + type: "tuple", + internalType: "struct PoolSwapParams", + components: [ + { + name: "kind", + type: "uint8", + internalType: "enum SwapKind", + }, + { + name: "amountGivenScaled18", + type: "uint256", + internalType: "uint256", + }, + { + name: "balancesScaled18", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "indexIn", + type: "uint256", + internalType: "uint256", + }, + { + name: "indexOut", + type: "uint256", + internalType: "uint256", + }, + { + name: "router", + type: "address", + internalType: "address", + }, + { + name: "userData", + type: "bytes", + internalType: "bytes", + }, + ], + }, + { + name: "", + type: "address", + internalType: "address", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onComputeDynamicSwapFeePercentage", + inputs: [ + { + name: "", + type: "tuple", + internalType: "struct PoolSwapParams", + components: [ + { + name: "kind", + type: "uint8", + internalType: "enum SwapKind", + }, + { + name: "amountGivenScaled18", + type: "uint256", + internalType: "uint256", + }, + { + name: "balancesScaled18", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "indexIn", + type: "uint256", + internalType: "uint256", + }, + { + name: "indexOut", + type: "uint256", + internalType: "uint256", + }, + { + name: "router", + type: "address", + internalType: "address", + }, + { + name: "userData", + type: "bytes", + internalType: "bytes", + }, + ], + }, + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "onRegister", + inputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "pool", + type: "address", + internalType: "address", + }, + { + name: "", + type: "tuple[]", + internalType: "struct TokenConfig[]", + components: [ + { + name: "token", + type: "address", + internalType: "contract IERC20", + }, + { + name: "tokenType", + type: "uint8", + internalType: "enum TokenType", + }, + { + name: "rateProvider", + type: "address", + internalType: "contract IRateProvider", + }, + { + name: "paysYieldFees", + type: "bool", + internalType: "bool", + }, + ], + }, + { + name: "", + type: "tuple", + internalType: "struct LiquidityManagement", + components: [ + { + name: "disableUnbalancedLiquidity", + type: "bool", + internalType: "bool", + }, + { + name: "enableAddLiquidityCustom", + type: "bool", + internalType: "bool", + }, + { + name: "enableRemoveLiquidityCustom", + type: "bool", + internalType: "bool", + }, + { + name: "enableDonation", + type: "bool", + internalType: "bool", + }, + ], + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "owner", + inputs: [], + outputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "renounceOwnership", + inputs: [], + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "setHookSwapFeePercentage", + inputs: [ + { + name: "swapFeePercentage", + type: "uint64", + internalType: "uint64", + }, + ], + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "transferOwnership", + inputs: [ + { + name: "newOwner", + type: "address", + internalType: "address", + }, + ], + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "event", + name: "HookSwapFeePercentageChanged", + inputs: [ + { + name: "hooksContract", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "hookFeePercentage", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "LotteryFeeCollected", + inputs: [ + { + name: "hooksContract", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "token", + type: "address", + indexed: true, + internalType: "contract IERC20", + }, + { + name: "feeAmount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "LotteryHookExampleRegistered", + inputs: [ + { + name: "hooksContract", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "pool", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "LotteryWinningsPaid", + inputs: [ + { + name: "hooksContract", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "winner", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "token", + type: "address", + indexed: true, + internalType: "contract IERC20", + }, + { + name: "amountWon", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "OwnershipTransferred", + inputs: [ + { + name: "previousOwner", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "newOwner", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "error", + name: "AddressEmptyCode", + inputs: [ + { + name: "target", + type: "address", + internalType: "address", + }, + ], + }, + { + type: "error", + name: "AddressInsufficientBalance", + inputs: [ + { + name: "account", + type: "address", + internalType: "address", + }, + ], + }, + { + type: "error", + name: "FailedInnerCall", + inputs: [], + }, + { + type: "error", + name: "IndexOutOfBounds", + inputs: [], + }, + { + type: "error", + name: "OwnableInvalidOwner", + inputs: [ + { + name: "owner", + type: "address", + internalType: "address", + }, + ], + }, + { + type: "error", + name: "OwnableUnauthorizedAccount", + inputs: [ + { + name: "account", + type: "address", + internalType: "address", + }, + ], + }, + { + type: "error", + name: "SafeERC20FailedOperation", + inputs: [ + { + name: "token", + type: "address", + internalType: "address", + }, + ], + }, + { + type: "error", + name: "SenderIsNotVault", + inputs: [ + { + name: "sender", + type: "address", + internalType: "address", + }, + ], + }, + ], + inheritedFunctions: { + getHookFlags: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onAfterAddLiquidity: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onAfterInitialize: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onAfterRemoveLiquidity: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onAfterSwap: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onBeforeAddLiquidity: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onBeforeInitialize: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onBeforeRemoveLiquidity: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onBeforeSwap: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onComputeDynamicSwapFeePercentage: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onRegister: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + owner: "lib/openzeppelin-contracts/contracts/access/Ownable.sol", + renounceOwnership: "lib/openzeppelin-contracts/contracts/access/Ownable.sol", + transferOwnership: "lib/openzeppelin-contracts/contracts/access/Ownable.sol", + }, + }, + WeightedPoolFactory: { + address: "0x64386bc53c213f23c6960d3e080139a0f9ef1733", + abi: [ + { + type: "constructor", + inputs: [ + { + name: "vault", + type: "address", + internalType: "contract IVault", + }, + { + name: "pauseWindowDuration", + type: "uint32", + internalType: "uint32", + }, + { + name: "factoryVersion", + type: "string", + internalType: "string", + }, + { + name: "poolVersion", + type: "string", + internalType: "string", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "create", + inputs: [ + { + name: "name", + type: "string", + internalType: "string", + }, + { + name: "symbol", + type: "string", + internalType: "string", + }, + { + name: "tokens", + type: "tuple[]", + internalType: "struct TokenConfig[]", + components: [ + { + name: "token", + type: "address", + internalType: "contract IERC20", + }, + { + name: "tokenType", + type: "uint8", + internalType: "enum TokenType", + }, + { + name: "rateProvider", + type: "address", + internalType: "contract IRateProvider", + }, + { + name: "paysYieldFees", + type: "bool", + internalType: "bool", + }, + ], + }, + { + name: "normalizedWeights", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "roleAccounts", + type: "tuple", + internalType: "struct PoolRoleAccounts", + components: [ + { + name: "pauseManager", + type: "address", + internalType: "address", + }, + { + name: "swapFeeManager", + type: "address", + internalType: "address", + }, + { + name: "poolCreator", + type: "address", + internalType: "address", + }, + ], + }, + { + name: "swapFeePercentage", + type: "uint256", + internalType: "uint256", + }, + { + name: "poolHooksContract", + type: "address", + internalType: "address", + }, + { + name: "enableDonation", + type: "bool", + internalType: "bool", + }, + { + name: "disableUnbalancedLiquidity", + type: "bool", + internalType: "bool", + }, + { + name: "salt", + type: "bytes32", + internalType: "bytes32", + }, + ], + outputs: [ + { + name: "pool", + type: "address", + internalType: "address", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "disable", + inputs: [], + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "getActionId", + inputs: [ + { + name: "selector", + type: "bytes4", + internalType: "bytes4", + }, + ], + outputs: [ + { + name: "", + type: "bytes32", + internalType: "bytes32", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getAuthorizer", + inputs: [], + outputs: [ + { + name: "", + type: "address", + internalType: "contract IAuthorizer", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getDefaultLiquidityManagement", + inputs: [], + outputs: [ + { + name: "liquidityManagement", + type: "tuple", + internalType: "struct LiquidityManagement", + components: [ + { + name: "disableUnbalancedLiquidity", + type: "bool", + internalType: "bool", + }, + { + name: "enableAddLiquidityCustom", + type: "bool", + internalType: "bool", + }, + { + name: "enableRemoveLiquidityCustom", + type: "bool", + internalType: "bool", + }, + { + name: "enableDonation", + type: "bool", + internalType: "bool", + }, + ], + }, + ], + stateMutability: "pure", + }, + { + type: "function", + name: "getDefaultPoolHooksContract", + inputs: [], + outputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + ], + stateMutability: "pure", + }, + { + type: "function", + name: "getDeploymentAddress", + inputs: [ + { + name: "constructorArgs", + type: "bytes", + internalType: "bytes", + }, + { + name: "salt", + type: "bytes32", + internalType: "bytes32", + }, + ], + outputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getNewPoolPauseWindowEndTime", + inputs: [], + outputs: [ + { + name: "", + type: "uint32", + internalType: "uint32", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getOriginalPauseWindowEndTime", + inputs: [], + outputs: [ + { + name: "", + type: "uint32", + internalType: "uint32", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getPauseWindowDuration", + inputs: [], + outputs: [ + { + name: "", + type: "uint32", + internalType: "uint32", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getPoolCount", + inputs: [], + outputs: [ + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getPoolVersion", + inputs: [], + outputs: [ + { + name: "", + type: "string", + internalType: "string", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getPools", + inputs: [], + outputs: [ + { + name: "", + type: "address[]", + internalType: "address[]", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getPoolsInRange", + inputs: [ + { + name: "start", + type: "uint256", + internalType: "uint256", + }, + { + name: "count", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "pools", + type: "address[]", + internalType: "address[]", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getVault", + inputs: [], + outputs: [ + { + name: "", + type: "address", + internalType: "contract IVault", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "isDisabled", + inputs: [], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "isPoolFromFactory", + inputs: [ + { + name: "pool", + type: "address", + internalType: "address", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "version", + inputs: [], + outputs: [ + { + name: "", + type: "string", + internalType: "string", + }, + ], + stateMutability: "view", + }, + { + type: "event", + name: "FactoryDisabled", + inputs: [], + anonymous: false, + }, + { + type: "event", + name: "PoolCreated", + inputs: [ + { + name: "pool", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "error", + name: "Create2EmptyBytecode", + inputs: [], + }, + { + type: "error", + name: "Create2FailedDeployment", + inputs: [], + }, + { + type: "error", + name: "Create2InsufficientBalance", + inputs: [ + { + name: "balance", + type: "uint256", + internalType: "uint256", + }, + { + name: "needed", + type: "uint256", + internalType: "uint256", + }, + ], + }, + { + type: "error", + name: "Disabled", + inputs: [], + }, + { + type: "error", + name: "IndexOutOfBounds", + inputs: [], + }, + { + type: "error", + name: "PoolPauseWindowDurationOverflow", + inputs: [], + }, + { + type: "error", + name: "SenderNotAllowed", + inputs: [], + }, + { + type: "error", + name: "StandardPoolWithCreator", + inputs: [], + }, + ], + inheritedFunctions: { + getPoolVersion: "lib/balancer-v3-monorepo/pkg/interfaces/contracts/solidity-utils/helpers/IPoolVersion.sol", + disable: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getActionId: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getAuthorizer: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getDefaultLiquidityManagement: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getDefaultPoolHooksContract: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getDeploymentAddress: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getNewPoolPauseWindowEndTime: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getOriginalPauseWindowEndTime: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getPauseWindowDuration: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getPoolCount: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getPools: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getPoolsInRange: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getVault: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + isDisabled: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + isPoolFromFactory: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + version: "lib/balancer-v3-monorepo/pkg/solidity-utils/contracts/helpers/Version.sol", + }, + }, + ExitFeeHookExample: { + address: "0x4a65b9d13908487a1654be48e6aa9bc701735910", + abi: [ + { + type: "constructor", + inputs: [ + { + name: "vault", + type: "address", + internalType: "contract IVault", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "MAX_EXIT_FEE_PERCENTAGE", + inputs: [], + outputs: [ + { + name: "", + type: "uint64", + internalType: "uint64", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "exitFeePercentage", + inputs: [], + outputs: [ + { + name: "", + type: "uint64", + internalType: "uint64", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getHookFlags", + inputs: [], + outputs: [ + { + name: "", + type: "tuple", + internalType: "struct HookFlags", + components: [ + { + name: "enableHookAdjustedAmounts", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallBeforeInitialize", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallAfterInitialize", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallComputeDynamicSwapFee", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallBeforeSwap", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallAfterSwap", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallBeforeAddLiquidity", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallAfterAddLiquidity", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallBeforeRemoveLiquidity", + type: "bool", + internalType: "bool", + }, + { + name: "shouldCallAfterRemoveLiquidity", + type: "bool", + internalType: "bool", + }, + ], + }, + ], + stateMutability: "pure", + }, + { + type: "function", + name: "onAfterAddLiquidity", + inputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "uint8", + internalType: "enum AddLiquidityKind", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "amountsInRaw", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "bytes", + internalType: "bytes", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onAfterInitialize", + inputs: [ + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + { + name: "", + type: "bytes", + internalType: "bytes", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onAfterRemoveLiquidity", + inputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "pool", + type: "address", + internalType: "address", + }, + { + name: "kind", + type: "uint8", + internalType: "enum RemoveLiquidityKind", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "amountsOutRaw", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "bytes", + internalType: "bytes", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + { + name: "hookAdjustedAmountsOutRaw", + type: "uint256[]", + internalType: "uint256[]", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onAfterSwap", + inputs: [ + { + name: "", + type: "tuple", + internalType: "struct AfterSwapParams", + components: [ + { + name: "kind", + type: "uint8", + internalType: "enum SwapKind", + }, + { + name: "tokenIn", + type: "address", + internalType: "contract IERC20", + }, + { + name: "tokenOut", + type: "address", + internalType: "contract IERC20", + }, + { + name: "amountInScaled18", + type: "uint256", + internalType: "uint256", + }, + { + name: "amountOutScaled18", + type: "uint256", + internalType: "uint256", + }, + { + name: "tokenInBalanceScaled18", + type: "uint256", + internalType: "uint256", + }, + { + name: "tokenOutBalanceScaled18", + type: "uint256", + internalType: "uint256", + }, + { + name: "amountCalculatedScaled18", + type: "uint256", + internalType: "uint256", + }, + { + name: "amountCalculatedRaw", + type: "uint256", + internalType: "uint256", + }, + { + name: "router", + type: "address", + internalType: "address", + }, + { + name: "pool", + type: "address", + internalType: "address", + }, + { + name: "userData", + type: "bytes", + internalType: "bytes", + }, + ], + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onBeforeAddLiquidity", + inputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "uint8", + internalType: "enum AddLiquidityKind", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "bytes", + internalType: "bytes", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onBeforeInitialize", + inputs: [ + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "bytes", + internalType: "bytes", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onBeforeRemoveLiquidity", + inputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "uint8", + internalType: "enum RemoveLiquidityKind", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "", + type: "bytes", + internalType: "bytes", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onBeforeSwap", + inputs: [ + { + name: "", + type: "tuple", + internalType: "struct PoolSwapParams", + components: [ + { + name: "kind", + type: "uint8", + internalType: "enum SwapKind", + }, + { + name: "amountGivenScaled18", + type: "uint256", + internalType: "uint256", + }, + { + name: "balancesScaled18", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "indexIn", + type: "uint256", + internalType: "uint256", + }, + { + name: "indexOut", + type: "uint256", + internalType: "uint256", + }, + { + name: "router", + type: "address", + internalType: "address", + }, + { + name: "userData", + type: "bytes", + internalType: "bytes", + }, + ], + }, + { + name: "", + type: "address", + internalType: "address", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "onComputeDynamicSwapFeePercentage", + inputs: [ + { + name: "", + type: "tuple", + internalType: "struct PoolSwapParams", + components: [ + { + name: "kind", + type: "uint8", + internalType: "enum SwapKind", + }, + { + name: "amountGivenScaled18", + type: "uint256", + internalType: "uint256", + }, + { + name: "balancesScaled18", + type: "uint256[]", + internalType: "uint256[]", + }, + { + name: "indexIn", + type: "uint256", + internalType: "uint256", + }, + { + name: "indexOut", + type: "uint256", + internalType: "uint256", + }, + { + name: "router", + type: "address", + internalType: "address", + }, + { + name: "userData", + type: "bytes", + internalType: "bytes", + }, + ], + }, + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "onRegister", + inputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + { + name: "pool", + type: "address", + internalType: "address", + }, + { + name: "", + type: "tuple[]", + internalType: "struct TokenConfig[]", + components: [ + { + name: "token", + type: "address", + internalType: "contract IERC20", + }, + { + name: "tokenType", + type: "uint8", + internalType: "enum TokenType", + }, + { + name: "rateProvider", + type: "address", + internalType: "contract IRateProvider", + }, + { + name: "paysYieldFees", + type: "bool", + internalType: "bool", + }, + ], + }, + { + name: "liquidityManagement", + type: "tuple", + internalType: "struct LiquidityManagement", + components: [ + { + name: "disableUnbalancedLiquidity", + type: "bool", + internalType: "bool", + }, + { + name: "enableAddLiquidityCustom", + type: "bool", + internalType: "bool", + }, + { + name: "enableRemoveLiquidityCustom", + type: "bool", + internalType: "bool", + }, + { + name: "enableDonation", + type: "bool", + internalType: "bool", + }, + ], + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "owner", + inputs: [], + outputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "renounceOwnership", + inputs: [], + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "setExitFeePercentage", + inputs: [ + { + name: "newExitFeePercentage", + type: "uint64", + internalType: "uint64", + }, + ], + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "transferOwnership", + inputs: [ + { + name: "newOwner", + type: "address", + internalType: "address", + }, + ], + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "event", + name: "ExitFeeCharged", + inputs: [ + { + name: "pool", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "token", + type: "address", + indexed: true, + internalType: "contract IERC20", + }, + { + name: "feeAmount", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ExitFeeHookExampleRegistered", + inputs: [ + { + name: "hooksContract", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "pool", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "ExitFeePercentageChanged", + inputs: [ + { + name: "hookContract", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "exitFeePercentage", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "OwnershipTransferred", + inputs: [ + { + name: "previousOwner", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "newOwner", + type: "address", + indexed: true, + internalType: "address", + }, + ], + anonymous: false, + }, + { + type: "error", + name: "ExitFeeAboveLimit", + inputs: [ + { + name: "feePercentage", + type: "uint256", + internalType: "uint256", + }, + { + name: "limit", + type: "uint256", + internalType: "uint256", + }, + ], + }, + { + type: "error", + name: "OwnableInvalidOwner", + inputs: [ + { + name: "owner", + type: "address", + internalType: "address", + }, + ], + }, + { + type: "error", + name: "OwnableUnauthorizedAccount", + inputs: [ + { + name: "account", + type: "address", + internalType: "address", + }, + ], + }, + { + type: "error", + name: "PoolDoesNotSupportDonation", + inputs: [], + }, + { + type: "error", + name: "SenderIsNotVault", + inputs: [ + { + name: "sender", + type: "address", + internalType: "address", + }, + ], + }, + ], + inheritedFunctions: { + getHookFlags: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onAfterAddLiquidity: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onAfterInitialize: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onAfterRemoveLiquidity: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onAfterSwap: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onBeforeAddLiquidity: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onBeforeInitialize: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onBeforeRemoveLiquidity: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onBeforeSwap: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onComputeDynamicSwapFeePercentage: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + onRegister: "lib/balancer-v3-monorepo/pkg/vault/contracts/BaseHooks.sol", + owner: "lib/openzeppelin-contracts/contracts/access/Ownable.sol", + renounceOwnership: "lib/openzeppelin-contracts/contracts/access/Ownable.sol", + transferOwnership: "lib/openzeppelin-contracts/contracts/access/Ownable.sol", + }, + }, + }, + 11155111: { + MockToken1: { + address: "0xebd6303d9cd09605545f723545d2d0bf56966cb9", + abi: [ + { + type: "constructor", + inputs: [ + { + name: "name", + type: "string", + internalType: "string", + }, + { + name: "symbol", + type: "string", + internalType: "string", + }, + { + name: "initialSupply", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "allowance", + inputs: [ + { + name: "owner", + type: "address", + internalType: "address", + }, + { + name: "spender", + type: "address", + internalType: "address", + }, + ], + outputs: [ + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "approve", + inputs: [ + { + name: "spender", + type: "address", + internalType: "address", + }, + { + name: "value", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "balanceOf", + inputs: [ + { + name: "account", + type: "address", + internalType: "address", + }, + ], + outputs: [ + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "decimals", + inputs: [], + outputs: [ + { + name: "", + type: "uint8", + internalType: "uint8", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "mint", + inputs: [ + { + name: "amount", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "name", + inputs: [], + outputs: [ + { + name: "", + type: "string", + internalType: "string", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "symbol", + inputs: [], + outputs: [ + { + name: "", + type: "string", + internalType: "string", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "totalSupply", + inputs: [], + outputs: [ + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "transfer", + inputs: [ + { + name: "to", + type: "address", + internalType: "address", + }, + { + name: "value", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "transferFrom", + inputs: [ + { + name: "from", + type: "address", + internalType: "address", + }, + { + name: "to", + type: "address", + internalType: "address", + }, + { + name: "value", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "event", + name: "Approval", + inputs: [ + { + name: "owner", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "spender", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "value", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "Transfer", + inputs: [ + { + name: "from", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "to", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "value", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "error", + name: "ERC20InsufficientAllowance", + inputs: [ + { + name: "spender", + type: "address", + internalType: "address", + }, + { + name: "allowance", + type: "uint256", + internalType: "uint256", + }, + { + name: "needed", + type: "uint256", + internalType: "uint256", + }, + ], + }, + { + type: "error", + name: "ERC20InsufficientBalance", + inputs: [ + { + name: "sender", + type: "address", + internalType: "address", + }, + { + name: "balance", + type: "uint256", + internalType: "uint256", + }, + { + name: "needed", + type: "uint256", + internalType: "uint256", + }, + ], + }, + { + type: "error", + name: "ERC20InvalidApprover", + inputs: [ + { + name: "approver", + type: "address", + internalType: "address", + }, + ], + }, + { + type: "error", + name: "ERC20InvalidReceiver", + inputs: [ + { + name: "receiver", + type: "address", + internalType: "address", + }, + ], + }, + { + type: "error", + name: "ERC20InvalidSender", + inputs: [ + { + name: "sender", + type: "address", + internalType: "address", + }, + ], + }, + { + type: "error", + name: "ERC20InvalidSpender", + inputs: [ + { + name: "spender", + type: "address", + internalType: "address", + }, + ], + }, + ], + inheritedFunctions: { + allowance: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + approve: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + balanceOf: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + decimals: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + name: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + symbol: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + totalSupply: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + transfer: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + transferFrom: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + }, + }, + MockToken2: { + address: "0x6c205d1b1c20352e9d33a88569f18d103004762d", + abi: [ + { + type: "constructor", + inputs: [ + { + name: "name", + type: "string", + internalType: "string", + }, + { + name: "symbol", + type: "string", + internalType: "string", + }, + { + name: "initialSupply", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "allowance", + inputs: [ + { + name: "owner", + type: "address", + internalType: "address", + }, + { + name: "spender", + type: "address", + internalType: "address", + }, + ], + outputs: [ + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "approve", + inputs: [ + { + name: "spender", + type: "address", + internalType: "address", + }, + { + name: "value", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "balanceOf", + inputs: [ + { + name: "account", + type: "address", + internalType: "address", + }, + ], + outputs: [ + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "decimals", + inputs: [], + outputs: [ + { + name: "", + type: "uint8", + internalType: "uint8", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "mint", + inputs: [ + { + name: "amount", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "name", + inputs: [], + outputs: [ + { + name: "", + type: "string", + internalType: "string", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "symbol", + inputs: [], + outputs: [ + { + name: "", + type: "string", + internalType: "string", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "totalSupply", + inputs: [], + outputs: [ + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "transfer", + inputs: [ + { + name: "to", + type: "address", + internalType: "address", + }, + { + name: "value", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "transferFrom", + inputs: [ + { + name: "from", + type: "address", + internalType: "address", + }, + { + name: "to", + type: "address", + internalType: "address", + }, + { + name: "value", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "event", + name: "Approval", + inputs: [ + { + name: "owner", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "spender", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "value", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "Transfer", + inputs: [ + { + name: "from", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "to", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "value", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "error", + name: "ERC20InsufficientAllowance", + inputs: [ + { + name: "spender", + type: "address", + internalType: "address", + }, + { + name: "allowance", + type: "uint256", + internalType: "uint256", + }, + { + name: "needed", + type: "uint256", + internalType: "uint256", + }, + ], + }, + { + type: "error", + name: "ERC20InsufficientBalance", + inputs: [ + { + name: "sender", + type: "address", + internalType: "address", + }, + { + name: "balance", + type: "uint256", + internalType: "uint256", + }, + { + name: "needed", + type: "uint256", + internalType: "uint256", + }, + ], + }, + { + type: "error", + name: "ERC20InvalidApprover", + inputs: [ + { + name: "approver", + type: "address", + internalType: "address", + }, + ], + }, + { + type: "error", + name: "ERC20InvalidReceiver", + inputs: [ + { + name: "receiver", + type: "address", + internalType: "address", + }, + ], + }, + { + type: "error", + name: "ERC20InvalidSender", + inputs: [ + { + name: "sender", + type: "address", + internalType: "address", + }, + ], + }, + { + type: "error", + name: "ERC20InvalidSpender", + inputs: [ + { + name: "spender", + type: "address", + internalType: "address", + }, + ], + }, + ], + inheritedFunctions: { + allowance: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + approve: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + balanceOf: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + decimals: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + name: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + symbol: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + totalSupply: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + transfer: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + transferFrom: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + }, + }, + MockVeBAL: { + address: "0x72007ee16e562335c7505f190e53073428bfdc25", + abi: [ + { + type: "constructor", + inputs: [ + { + name: "name", + type: "string", + internalType: "string", + }, + { + name: "symbol", + type: "string", + internalType: "string", + }, + { + name: "initialSupply", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "allowance", + inputs: [ + { + name: "owner", + type: "address", + internalType: "address", + }, + { + name: "spender", + type: "address", + internalType: "address", + }, + ], + outputs: [ + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "approve", + inputs: [ + { + name: "spender", + type: "address", + internalType: "address", + }, + { + name: "value", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "balanceOf", + inputs: [ + { + name: "account", + type: "address", + internalType: "address", + }, + ], + outputs: [ + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "decimals", + inputs: [], + outputs: [ + { + name: "", + type: "uint8", + internalType: "uint8", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "mint", + inputs: [ + { + name: "amount", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "name", + inputs: [], + outputs: [ + { + name: "", + type: "string", + internalType: "string", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "symbol", + inputs: [], + outputs: [ + { + name: "", + type: "string", + internalType: "string", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "totalSupply", + inputs: [], + outputs: [ + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "transfer", + inputs: [ + { + name: "to", + type: "address", + internalType: "address", + }, + { + name: "value", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "transferFrom", + inputs: [ + { + name: "from", + type: "address", + internalType: "address", + }, + { + name: "to", + type: "address", + internalType: "address", + }, + { + name: "value", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "", + type: "bool", + internalType: "bool", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "event", + name: "Approval", + inputs: [ + { + name: "owner", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "spender", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "value", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "event", + name: "Transfer", + inputs: [ + { + name: "from", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "to", + type: "address", + indexed: true, + internalType: "address", + }, + { + name: "value", + type: "uint256", + indexed: false, + internalType: "uint256", + }, + ], + anonymous: false, + }, + { + type: "error", + name: "ERC20InsufficientAllowance", + inputs: [ + { + name: "spender", + type: "address", + internalType: "address", + }, + { + name: "allowance", + type: "uint256", + internalType: "uint256", + }, + { + name: "needed", + type: "uint256", + internalType: "uint256", + }, + ], + }, + { + type: "error", + name: "ERC20InsufficientBalance", + inputs: [ + { + name: "sender", + type: "address", + internalType: "address", + }, + { + name: "balance", + type: "uint256", + internalType: "uint256", + }, + { + name: "needed", + type: "uint256", + internalType: "uint256", + }, + ], + }, + { + type: "error", + name: "ERC20InvalidApprover", + inputs: [ + { + name: "approver", + type: "address", + internalType: "address", + }, + ], + }, + { + type: "error", + name: "ERC20InvalidReceiver", + inputs: [ + { + name: "receiver", + type: "address", + internalType: "address", + }, + ], + }, + { + type: "error", + name: "ERC20InvalidSender", + inputs: [ + { + name: "sender", + type: "address", + internalType: "address", + }, + ], + }, + { + type: "error", + name: "ERC20InvalidSpender", + inputs: [ + { + name: "spender", + type: "address", + internalType: "address", + }, + ], + }, + ], + inheritedFunctions: { + allowance: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + approve: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + balanceOf: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + decimals: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + name: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + symbol: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + totalSupply: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + transfer: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + transferFrom: "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol", + }, + }, + ConstantSumFactory: { + address: "0xd8a5cb276f76e675bffd98d02cedb75191e668a0", + abi: [ + { + type: "constructor", + inputs: [ + { + name: "vault", + type: "address", + internalType: "contract IVault", + }, + { + name: "pauseWindowDuration", + type: "uint32", + internalType: "uint32", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "create", + inputs: [ + { + name: "name", + type: "string", + internalType: "string", + }, + { + name: "symbol", + type: "string", + internalType: "string", + }, + { + name: "salt", + type: "bytes32", + internalType: "bytes32", + }, + { + name: "tokens", + type: "tuple[]", + internalType: "struct TokenConfig[]", + components: [ + { + name: "token", + type: "address", + internalType: "contract IERC20", + }, + { + name: "tokenType", + type: "uint8", + internalType: "enum TokenType", + }, + { + name: "rateProvider", + type: "address", + internalType: "contract IRateProvider", + }, + { + name: "paysYieldFees", + type: "bool", + internalType: "bool", + }, + ], + }, + { + name: "swapFeePercentage", + type: "uint256", + internalType: "uint256", + }, + { + name: "protocolFeeExempt", + type: "bool", + internalType: "bool", + }, + { + name: "roleAccounts", + type: "tuple", + internalType: "struct PoolRoleAccounts", + components: [ + { + name: "pauseManager", + type: "address", + internalType: "address", + }, + { + name: "swapFeeManager", + type: "address", + internalType: "address", + }, + { + name: "poolCreator", + type: "address", + internalType: "address", + }, + ], + }, + { + name: "poolHooksContract", + type: "address", + internalType: "address", + }, + { + name: "liquidityManagement", + type: "tuple", + internalType: "struct LiquidityManagement", + components: [ + { + name: "disableUnbalancedLiquidity", + type: "bool", + internalType: "bool", + }, + { + name: "enableAddLiquidityCustom", + type: "bool", + internalType: "bool", + }, + { + name: "enableRemoveLiquidityCustom", + type: "bool", + internalType: "bool", + }, + { + name: "enableDonation", + type: "bool", + internalType: "bool", + }, + ], + }, + ], + outputs: [ + { + name: "pool", + type: "address", + internalType: "address", + }, + ], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "disable", + inputs: [], + outputs: [], + stateMutability: "nonpayable", + }, + { + type: "function", + name: "getActionId", + inputs: [ + { + name: "selector", + type: "bytes4", + internalType: "bytes4", + }, + ], + outputs: [ + { + name: "", + type: "bytes32", + internalType: "bytes32", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getAuthorizer", + inputs: [], + outputs: [ + { + name: "", + type: "address", + internalType: "contract IAuthorizer", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getDefaultLiquidityManagement", + inputs: [], + outputs: [ + { + name: "liquidityManagement", + type: "tuple", + internalType: "struct LiquidityManagement", + components: [ + { + name: "disableUnbalancedLiquidity", + type: "bool", + internalType: "bool", + }, + { + name: "enableAddLiquidityCustom", + type: "bool", + internalType: "bool", + }, + { + name: "enableRemoveLiquidityCustom", + type: "bool", + internalType: "bool", + }, + { + name: "enableDonation", + type: "bool", + internalType: "bool", + }, + ], + }, + ], + stateMutability: "pure", + }, + { + type: "function", + name: "getDefaultPoolHooksContract", + inputs: [], + outputs: [ + { + name: "", + type: "address", + internalType: "address", + }, + ], + stateMutability: "pure", + }, + { + type: "function", + name: "getDeploymentAddress", + inputs: [ + { + name: "constructorArgs", + type: "bytes", + internalType: "bytes", + }, { name: "salt", type: "bytes32", @@ -1364,6 +6419,56 @@ const deployedContracts = { ], stateMutability: "view", }, + { + type: "function", + name: "getPoolCount", + inputs: [], + outputs: [ + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getPools", + inputs: [], + outputs: [ + { + name: "", + type: "address[]", + internalType: "address[]", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getPoolsInRange", + inputs: [ + { + name: "start", + type: "uint256", + internalType: "uint256", + }, + { + name: "count", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "pools", + type: "address[]", + internalType: "address[]", + }, + ], + stateMutability: "view", + }, { type: "function", name: "getVault", @@ -1428,11 +6533,42 @@ const deployedContracts = { ], anonymous: false, }, + { + type: "error", + name: "Create2EmptyBytecode", + inputs: [], + }, + { + type: "error", + name: "Create2FailedDeployment", + inputs: [], + }, + { + type: "error", + name: "Create2InsufficientBalance", + inputs: [ + { + name: "balance", + type: "uint256", + internalType: "uint256", + }, + { + name: "needed", + type: "uint256", + internalType: "uint256", + }, + ], + }, { type: "error", name: "Disabled", inputs: [], }, + { + type: "error", + name: "IndexOutOfBounds", + inputs: [], + }, { type: "error", name: "PoolPauseWindowDurationOverflow", @@ -1459,13 +6595,16 @@ const deployedContracts = { getNewPoolPauseWindowEndTime: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", getOriginalPauseWindowEndTime: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", getPauseWindowDuration: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getPoolCount: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getPools: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getPoolsInRange: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", getVault: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", isDisabled: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", isPoolFromFactory: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", }, }, VeBALFeeDiscountHookExample: { - address: "0x0d5e217f22a9f92f1dd2d5d5ede64ffc913a626d", + address: "0xa42537a573f81173e0989ed75f7d9e612a90e625", abi: [ { type: "constructor", @@ -2175,7 +7314,7 @@ const deployedContracts = { }, }, ConstantProductFactory: { - address: "0x35b2e11b8c2b27fd74bd28da018eee10a67c95a8", + address: "0x04e08a0ce01c5b8418f93ab38d9a0123a44c1cb3", abi: [ { type: "constructor", @@ -2404,6 +7543,11 @@ const deployedContracts = { type: "function", name: "getDeploymentAddress", inputs: [ + { + name: "constructorArgs", + type: "bytes", + internalType: "bytes", + }, { name: "salt", type: "bytes32", @@ -2458,6 +7602,56 @@ const deployedContracts = { ], stateMutability: "view", }, + { + type: "function", + name: "getPoolCount", + inputs: [], + outputs: [ + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getPools", + inputs: [], + outputs: [ + { + name: "", + type: "address[]", + internalType: "address[]", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getPoolsInRange", + inputs: [ + { + name: "start", + type: "uint256", + internalType: "uint256", + }, + { + name: "count", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "pools", + type: "address[]", + internalType: "address[]", + }, + ], + stateMutability: "view", + }, { type: "function", name: "getVault", @@ -2522,11 +7716,42 @@ const deployedContracts = { ], anonymous: false, }, + { + type: "error", + name: "Create2EmptyBytecode", + inputs: [], + }, + { + type: "error", + name: "Create2FailedDeployment", + inputs: [], + }, + { + type: "error", + name: "Create2InsufficientBalance", + inputs: [ + { + name: "balance", + type: "uint256", + internalType: "uint256", + }, + { + name: "needed", + type: "uint256", + internalType: "uint256", + }, + ], + }, { type: "error", name: "Disabled", inputs: [], }, + { + type: "error", + name: "IndexOutOfBounds", + inputs: [], + }, { type: "error", name: "PoolPauseWindowDurationOverflow", @@ -2553,13 +7778,16 @@ const deployedContracts = { getNewPoolPauseWindowEndTime: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", getOriginalPauseWindowEndTime: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", getPauseWindowDuration: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getPoolCount: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getPools: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getPoolsInRange: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", getVault: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", isDisabled: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", isPoolFromFactory: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", }, }, LotteryHookExample: { - address: "0xf92fb772445695d6d5a5a4dbbfd2d886b1500a52", + address: "0x84a94a689ea85b0c880bb61a62e3c6833d68262a", abi: [ { type: "constructor", @@ -3513,7 +8741,7 @@ const deployedContracts = { }, }, WeightedPoolFactory: { - address: "0x6def85e32294b59ad5084a12304d1284737b4389", + address: "0xa3dba161c34940d4a145448a4cdc3f5b88e8a179", abi: [ { type: "constructor", @@ -3735,6 +8963,11 @@ const deployedContracts = { type: "function", name: "getDeploymentAddress", inputs: [ + { + name: "constructorArgs", + type: "bytes", + internalType: "bytes", + }, { name: "salt", type: "bytes32", @@ -3789,6 +9022,19 @@ const deployedContracts = { ], stateMutability: "view", }, + { + type: "function", + name: "getPoolCount", + inputs: [], + outputs: [ + { + name: "", + type: "uint256", + internalType: "uint256", + }, + ], + stateMutability: "view", + }, { type: "function", name: "getPoolVersion", @@ -3802,6 +9048,43 @@ const deployedContracts = { ], stateMutability: "view", }, + { + type: "function", + name: "getPools", + inputs: [], + outputs: [ + { + name: "", + type: "address[]", + internalType: "address[]", + }, + ], + stateMutability: "view", + }, + { + type: "function", + name: "getPoolsInRange", + inputs: [ + { + name: "start", + type: "uint256", + internalType: "uint256", + }, + { + name: "count", + type: "uint256", + internalType: "uint256", + }, + ], + outputs: [ + { + name: "pools", + type: "address[]", + internalType: "address[]", + }, + ], + stateMutability: "view", + }, { type: "function", name: "getVault", @@ -3879,11 +9162,42 @@ const deployedContracts = { ], anonymous: false, }, + { + type: "error", + name: "Create2EmptyBytecode", + inputs: [], + }, + { + type: "error", + name: "Create2FailedDeployment", + inputs: [], + }, + { + type: "error", + name: "Create2InsufficientBalance", + inputs: [ + { + name: "balance", + type: "uint256", + internalType: "uint256", + }, + { + name: "needed", + type: "uint256", + internalType: "uint256", + }, + ], + }, { type: "error", name: "Disabled", inputs: [], }, + { + type: "error", + name: "IndexOutOfBounds", + inputs: [], + }, { type: "error", name: "PoolPauseWindowDurationOverflow", @@ -3911,6 +9225,9 @@ const deployedContracts = { getNewPoolPauseWindowEndTime: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", getOriginalPauseWindowEndTime: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", getPauseWindowDuration: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getPoolCount: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getPools: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", + getPoolsInRange: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", getVault: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", isDisabled: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", isPoolFromFactory: "lib/balancer-v3-monorepo/pkg/pool-utils/contracts/BasePoolFactory.sol", @@ -3918,7 +9235,7 @@ const deployedContracts = { }, }, ExitFeeHookExample: { - address: "0x8a5450ce448a84ac5e6aea0ca03fb16d590d6227", + address: "0x6d3fdf461f8ca0c6ca9928705687f3794a2cb671", abi: [ { type: "constructor", diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index 29954456..527e7c10 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -14,7 +14,7 @@ "vercel:yolo": "vercel --build-env NEXT_PUBLIC_IGNORE_BUILD_ERROR=true" }, "dependencies": { - "@balancer/sdk": "^0.26.0", + "@balancer/sdk": "^0.33.5", "@ethersproject/providers": "^5.7.2", "@heroicons/react": "^2.0.11", "@rainbow-me/rainbowkit": "1.3.5", diff --git a/packages/nextjs/scaffold.config.ts b/packages/nextjs/scaffold.config.ts index 867de17e..c8768a2f 100644 --- a/packages/nextjs/scaffold.config.ts +++ b/packages/nextjs/scaffold.config.ts @@ -15,7 +15,7 @@ const scaffoldConfig = { targetNetworks: [chains.foundry], // If using chains.foundry as your targetNetwork, you must specify a network to fork - targetFork: chains.sepolia, + targetFork: chains.mainnet, // The interval at which your front-end polls the RPC servers for new data // it has no effect if you only target the local network (default is 4000) diff --git a/yarn.lock b/yarn.lock index 84396280..c7b14300 100644 --- a/yarn.lock +++ b/yarn.lock @@ -183,14 +183,14 @@ __metadata: languageName: node linkType: hard -"@balancer/sdk@npm:^0.26.0": - version: 0.26.0 - resolution: "@balancer/sdk@npm:0.26.0" +"@balancer/sdk@npm:^0.33.5": + version: 0.33.5 + resolution: "@balancer/sdk@npm:0.33.5" dependencies: decimal.js-light: ^2.5.1 lodash.clonedeep: ^4.5.0 viem: ^2.12.1 - checksum: e29881c013c515968f754562b6cf1cb258d4f36f661d32b291ad481dd4e8e39dd50c03d27d853da1b41963357323b03e7c8fc5a708119f7ffed93b76bf17b3ac + checksum: ce4ababe319489278ed74f8b9745fb02ddce656853adcb6a5e5bc86ef7d8f5341e24b86f31ee3dbbfa2a1aa966794921668f3c1a971be843fae856b9d9b6f192 languageName: node linkType: hard @@ -1457,7 +1457,7 @@ __metadata: version: 0.0.0-use.local resolution: "@se-2/nextjs@workspace:packages/nextjs" dependencies: - "@balancer/sdk": ^0.26.0 + "@balancer/sdk": ^0.33.5 "@ethersproject/providers": ^5.7.2 "@heroicons/react": ^2.0.11 "@rainbow-me/rainbowkit": 1.3.5