Skip to content

Commit

Permalink
deploy new LooteryETHAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincharm committed Sep 22, 2024
1 parent fe3fc70 commit c366605
Show file tree
Hide file tree
Showing 9 changed files with 234,487 additions and 2 deletions.
1 change: 1 addition & 0 deletions contracts/periphery/LooteryETHAdapter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pragma solidity 0.8.27;
import {Lootery} from "../Lootery.sol";
import {IWETH9} from "../interfaces/IWETH9.sol";

/// @custom:version 1.5.0
contract LooteryETHAdapter {
IWETH9 public immutable wrappedToken;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../build-info/7b6b180537dbee39808c6af272a154dd.json"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"_format": "hh-sol-artifact-1",
"contractName": "LooteryETHAdapter",
"sourceName": "contracts/periphery/LooteryETHAdapter.sol",
"abi": [
{
"inputs": [
{
"internalType": "address payable",
"name": "_wrappedTokenAddress",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "whomst",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "JackpotSeeded",
"type": "event"
},
{
"inputs": [
{
"internalType": "address payable",
"name": "looteryAddress",
"type": "address"
},
{
"components": [
{
"internalType": "address",
"name": "whomst",
"type": "address"
},
{
"internalType": "uint8[]",
"name": "pick",
"type": "uint8[]"
}
],
"internalType": "struct ILootery.Ticket[]",
"name": "tickets",
"type": "tuple[]"
},
{
"internalType": "address",
"name": "beneficiary",
"type": "address"
}
],
"name": "purchase",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address payable",
"name": "looteryAddress",
"type": "address"
}
],
"name": "seedJackpot",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "wrappedToken",
"outputs": [
{
"internalType": "contract IWETH9",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x60a060405234801561001057600080fd5b5060405161083838038061083883398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b6080516107936100a56000396000818160730152818160b80152818161014c0152818161035601526103eb01526107936000f3fe6080604052600436106100345760003560e01c8063417478d5146100395780637aac823e1461004e578063996c6cc314610061575b600080fd5b61004c6100473660046104f9565b6100b1565b005b61004c61005c36600461051d565b610269565b34801561006d57600080fd5b506100957f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b60008190507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561011157600080fd5b505af1158015610125573d6000803e3d6000fd5b505060405163095ea7b360e01b81526001600160a01b0386811660048301523460248301527f000000000000000000000000000000000000000000000000000000000000000016935063095ea7b3925060440190506020604051808303816000875af1158015610199573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101bd91906105ba565b506040517f02950fb90000000000000000000000000000000000000000000000000000000081523460048201526001600160a01b038216906302950fb990602401600060405180830381600087803b15801561021857600080fd5b505af115801561022c573d6000803e3d6000fd5b50506040513481523392507f0a45ec0e27527fa1519b691bab30b4fedbc1da4b3d04ba9d3663f1696be54104915060200160405180910390a25050565b60008490506000848490509050600081836001600160a01b0316631209b1f66040518163ffffffff1660e01b8152600401602060405180830381865afa1580156102b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102db91906105dc565b6102e591906105f5565b9050803414610354576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f4e65656420746f2070726f766964652065786163742066756e64730000000000604482015260640160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156103af57600080fd5b505af11580156103c3573d6000803e3d6000fd5b505060405163095ea7b360e01b81526001600160a01b038b81166004830152602482018690527f000000000000000000000000000000000000000000000000000000000000000016935063095ea7b3925060440190506020604051808303816000875af1158015610438573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045c91906105ba565b506040517f62ff220f0000000000000000000000000000000000000000000000000000000081526001600160a01b038416906362ff220f906104a690899089908990600401610639565b600060405180830381600087803b1580156104c057600080fd5b505af11580156104d4573d6000803e3d6000fd5b5050505050505050505050565b6001600160a01b03811681146104f657600080fd5b50565b60006020828403121561050b57600080fd5b8135610516816104e1565b9392505050565b6000806000806060858703121561053357600080fd5b843561053e816104e1565b9350602085013567ffffffffffffffff81111561055a57600080fd5b8501601f8101871361056b57600080fd5b803567ffffffffffffffff81111561058257600080fd5b8760208260051b840101111561059757600080fd5b6020919091019350915060408501356105af816104e1565b939692955090935050565b6000602082840312156105cc57600080fd5b8151801515811461051657600080fd5b6000602082840312156105ee57600080fd5b5051919050565b8082028115828204841417610633577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b92915050565b6040808252810183905260006060600585901b830181019083018683603e1936839003015b8882101561074057868503605f19018452823581811261067d57600080fd5b8a0160408601813561068e816104e1565b6001600160a01b03168752602082013536839003601e190181126106b157600080fd5b60209201918201913567ffffffffffffffff8111156106cf57600080fd5b8060051b36038313156106e157600080fd5b6040602089015290819052600090606088015b8183101561072457833560ff811680821461070e57600080fd5b82525060209384019360019390930192016106f4565b975050506020948501949390930192506001919091019061065e565b5050506001600160a01b038516602085015250905094935050505056fea26469706673582212206ce6f27cb44cd8832a9175d904d2451e73e7535e077a0d0fcceba999f5083bbb64736f6c634300081b0033",
"deployedBytecode": "0x6080604052600436106100345760003560e01c8063417478d5146100395780637aac823e1461004e578063996c6cc314610061575b600080fd5b61004c6100473660046104f9565b6100b1565b005b61004c61005c36600461051d565b610269565b34801561006d57600080fd5b506100957f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b60008190507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561011157600080fd5b505af1158015610125573d6000803e3d6000fd5b505060405163095ea7b360e01b81526001600160a01b0386811660048301523460248301527f000000000000000000000000000000000000000000000000000000000000000016935063095ea7b3925060440190506020604051808303816000875af1158015610199573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101bd91906105ba565b506040517f02950fb90000000000000000000000000000000000000000000000000000000081523460048201526001600160a01b038216906302950fb990602401600060405180830381600087803b15801561021857600080fd5b505af115801561022c573d6000803e3d6000fd5b50506040513481523392507f0a45ec0e27527fa1519b691bab30b4fedbc1da4b3d04ba9d3663f1696be54104915060200160405180910390a25050565b60008490506000848490509050600081836001600160a01b0316631209b1f66040518163ffffffff1660e01b8152600401602060405180830381865afa1580156102b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102db91906105dc565b6102e591906105f5565b9050803414610354576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f4e65656420746f2070726f766964652065786163742066756e64730000000000604482015260640160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156103af57600080fd5b505af11580156103c3573d6000803e3d6000fd5b505060405163095ea7b360e01b81526001600160a01b038b81166004830152602482018690527f000000000000000000000000000000000000000000000000000000000000000016935063095ea7b3925060440190506020604051808303816000875af1158015610438573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045c91906105ba565b506040517f62ff220f0000000000000000000000000000000000000000000000000000000081526001600160a01b038416906362ff220f906104a690899089908990600401610639565b600060405180830381600087803b1580156104c057600080fd5b505af11580156104d4573d6000803e3d6000fd5b5050505050505050505050565b6001600160a01b03811681146104f657600080fd5b50565b60006020828403121561050b57600080fd5b8135610516816104e1565b9392505050565b6000806000806060858703121561053357600080fd5b843561053e816104e1565b9350602085013567ffffffffffffffff81111561055a57600080fd5b8501601f8101871361056b57600080fd5b803567ffffffffffffffff81111561058257600080fd5b8760208260051b840101111561059757600080fd5b6020919091019350915060408501356105af816104e1565b939692955090935050565b6000602082840312156105cc57600080fd5b8151801515811461051657600080fd5b6000602082840312156105ee57600080fd5b5051919050565b8082028115828204841417610633577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b92915050565b6040808252810183905260006060600585901b830181019083018683603e1936839003015b8882101561074057868503605f19018452823581811261067d57600080fd5b8a0160408601813561068e816104e1565b6001600160a01b03168752602082013536839003601e190181126106b157600080fd5b60209201918201913567ffffffffffffffff8111156106cf57600080fd5b8060051b36038313156106e157600080fd5b6040602089015290819052600090606088015b8183101561072457833560ff811680821461070e57600080fd5b82525060209384019360019390930192016106f4565b975050506020948501949390930192506001919091019061065e565b5050506001600160a01b038516602085015250905094935050505056fea26469706673582212206ce6f27cb44cd8832a9175d904d2451e73e7535e077a0d0fcceba999f5083bbb64736f6c634300081b0033",
"linkReferences": {},
"deployedLinkReferences": {}
}
Loading

0 comments on commit c366605

Please sign in to comment.