-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d0e3d7
commit dd15933
Showing
5 changed files
with
298 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,294 @@ | ||
[ | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "baseToken_", | ||
"type": "address" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "constructor" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "AlreadyClaimed", | ||
"type": "error" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "EpochTooHigh", | ||
"type": "error" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "TransferFailed", | ||
"type": "error" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "token", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "account", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "uint256", | ||
"name": "epoch", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "amount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "Claim", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "token", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "uint256", | ||
"name": "epoch", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "amount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "Distribution", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "baseToken", | ||
"outputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "", | ||
"type": "address" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "token_", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "startEpoch_", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "endEpoch_", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "destination_", | ||
"type": "address" | ||
} | ||
], | ||
"name": "claim", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "claimed_", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "token_", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "epoch_", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "destination_", | ||
"type": "address" | ||
} | ||
], | ||
"name": "claim", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "claimed_", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "token_", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256[]", | ||
"name": "epochs_", | ||
"type": "uint256[]" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "destination_", | ||
"type": "address" | ||
} | ||
], | ||
"name": "claim", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "claimed_", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "token_", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "account_", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "epoch_", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "claimableOfAt", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "claimable_", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "token_", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "account_", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256[]", | ||
"name": "epochs_", | ||
"type": "uint256[]" | ||
} | ||
], | ||
"name": "claimableOfAt", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "claimable_", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "token_", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "account_", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "startEpoch_", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "endEpoch_", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "claimableOfBetween", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "claimable_", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "token_", | ||
"type": "address" | ||
} | ||
], | ||
"name": "distribute", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ "bytecode": "0x60a060405234801561000f575f80fd5b5060405161146938038061146983398101604081905261002e9161003f565b6001600160a01b031660805261006c565b5f6020828403121561004f575f80fd5b81516001600160a01b0381168114610065575f80fd5b9392505050565b6080516113bb6100ae5f395f818161012801528181610307015281816103e00152818161068a015281816107720152818161092401526109e301526113bb5ff3fe608060405234801561000f575f80fd5b5060043610610085575f3560e01c80639e96a260116100585780639e96a260146100ea578063a914affb146100fd578063aded67ef14610110578063c55dae6314610123575f80fd5b8063093c4e0e14610089578063514593b6146100af57806363453ae1146100c25780638f8577a4146100d7575b5f80fd5b61009c610097366004610e86565b61016f565b6040519081526020015b60405180910390f35b61009c6100bd366004610ec9565b6102b0565b6100d56100d0366004610f08565b6104fd565b005b61009c6100e5366004610f21565b610681565b61009c6100f8366004610f5a565b6107ff565b61009c61010b366004610fdb565b610920565b61009c61011e366004611038565b610b18565b61014a7f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100a6565b5f61017c853386866102b0565b9050835b83811161022c5773ffffffffffffffffffffffffffffffffffffffff86165f8181526002602090815260408083208584528252808320338085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055518581528493917f865ca08d59f5cb456e85cd2f7ef63664ea4f73327414e9d8152c4158b0e94645910160405180910390a4610225816110bb565b9050610180565b5073ffffffffffffffffffffffffffffffffffffffff85165f90815260208190526040812080548392906102619084906110f2565b909155506102729050858383610c01565b6102a8576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b949350505050565b6040517f8ba613ef00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015260248201849052604482018390525f9182917f00000000000000000000000000000000000000000000000000000000000000001690638ba613ef906064015f60405180830381865afa15801561034b573d5f803e3d5ffd5b505050506040513d5f823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526103909190810190611132565b6040517f740ba21800000000000000000000000000000000000000000000000000000000815260048101869052602481018590529091505f9073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063740ba218906044015f60405180830381865afa158015610424573d5f803e3d5ffd5b505050506040513d5f823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526104699190810190611132565b90505f61047686866110f2565b610481906001611209565b90505f5b818110156104f1576104d5898961049c848b611209565b8785815181106104ae576104ae61121c565b60200260200101518786815181106104c8576104c861121c565b6020026020010151610c90565b6104df9086611209565b94506104ea816110bb565b9050610485565b50505050949350505050565b5f610506610d61565b73ffffffffffffffffffffffffffffffffffffffff83165f818152602081905260408082205490517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015293945092909183916370a0823190602401602060405180830381865afa158015610583573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105a79190611249565b6105b191906110f2565b9050828473ffffffffffffffffffffffffffffffffffffffff167fa8ee3e5c0b1fd681042265199e8b28cf463b81bc21f6658d4c73e741aeabd3f5836040516105fc91815260200190565b60405180910390a373ffffffffffffffffffffffffffffffffffffffff84165f90815260016020908152604080832086845290915281208054839290610643908490611209565b9091555061065390508183611209565b73ffffffffffffffffffffffffffffffffffffffff9094165f90815260208190526040902093909355505050565b5f6107f58484847f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634ee2cd7e88886040518363ffffffff1660e01b815260040161070492919073ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b602060405180830381865afa15801561071f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107439190611249565b6040517f981b24d0000000000000000000000000000000000000000000000000000000008152600481018890527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063981b24d090602401602060405180830381865afa1580156107cc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107f09190611249565b610c90565b90505b9392505050565b5f61080b843385610681565b73ffffffffffffffffffffffffffffffffffffffff85165f8181526002602090815260408083208884528252808320338085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790555184815293945086939192917f865ca08d59f5cb456e85cd2f7ef63664ea4f73327414e9d8152c4158b0e94645910160405180910390a473ffffffffffffffffffffffffffffffffffffffff84165f90815260208190526040812080548392906108d99084906110f2565b909155506108ea9050848383610c01565b6107f8576040517f90b8ec1800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166347fdc5488686866040518463ffffffff1660e01b815260040161097f939291906112a9565b5f60405180830381865afa158015610999573d5f803e3d5ffd5b505050506040513d5f823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526109de9190810190611132565b90505f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631d60230386866040518363ffffffff1660e01b8152600401610a3c9291906112d8565b5f60405180830381865afa158015610a56573d5f803e3d5ffd5b505050506040513d5f823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610a9b9190810190611132565b90505f5b84811015610b0d57610af18888888885818110610abe57610abe61121c565b90506020020135868581518110610ad757610ad761121c565b60200260200101518686815181106104c8576104c861121c565b610afb9085611209565b9350610b06816110bb565b9050610a9f565b505050949350505050565b5f610b2585338686610920565b90505f5b8381101561022c575f858583818110610b4457610b4461121c565b73ffffffffffffffffffffffffffffffffffffffff8a165f81815260026020908152604080832094820296909601358083529381528582203380845291529085902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055935191945084939250907f865ca08d59f5cb456e85cd2f7ef63664ea4f73327414e9d8152c4158b0e9464590610be89088815260200190565b60405180910390a450610bfa816110bb565b9050610b29565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790525f906107f5908590610d8a565b5f610c99610d61565b8410610cd1576040517fbdcb8b3600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8087165f90815260026020908152604080832088845282528083209389168352929052205460ff1615610d1a57505f610d58565b73ffffffffffffffffffffffffffffffffffffffff86165f908152600160209081526040808320878452909152902054610d55908484610e48565b90505b95945050505050565b5f610d70600c6213c6806112eb565b610d7a90436112eb565b610d85906001611209565b905090565b5f73ffffffffffffffffffffffffffffffffffffffff83163b610dae57505f610e42565b60608373ffffffffffffffffffffffffffffffffffffffff1683604051610dd59190611323565b5f604051808303815f865af19150503d805f8114610e0e576040519150601f19603f3d011682016040523d82523d5f602084013e610e13565b606091505b509092509050818015610e3e575080511580610e3e575080806020019051810190610e3e919061134f565b9150505b92915050565b5f81610e54848661136e565b6107f591906112eb565b803573ffffffffffffffffffffffffffffffffffffffff81168114610e81575f80fd5b919050565b5f805f8060808587031215610e99575f80fd5b610ea285610e5e565b93506020850135925060408501359150610ebe60608601610e5e565b905092959194509250565b5f805f8060808587031215610edc575f80fd5b610ee585610e5e565b9350610ef360208601610e5e565b93969395505050506040820135916060013590565b5f60208284031215610f18575f80fd5b6107f882610e5e565b5f805f60608486031215610f33575f80fd5b610f3c84610e5e565b9250610f4a60208501610e5e565b9150604084013590509250925092565b5f805f60608486031215610f6c575f80fd5b610f7584610e5e565b925060208401359150610f8a60408501610e5e565b90509250925092565b5f8083601f840112610fa3575f80fd5b50813567ffffffffffffffff811115610fba575f80fd5b6020830191508360208260051b8501011115610fd4575f80fd5b9250929050565b5f805f8060608587031215610fee575f80fd5b610ff785610e5e565b935061100560208601610e5e565b9250604085013567ffffffffffffffff811115611020575f80fd5b61102c87828801610f93565b95989497509550505050565b5f805f806060858703121561104b575f80fd5b61105485610e5e565b9350602085013567ffffffffffffffff81111561106f575f80fd5b61107b87828801610f93565b9094509250610ebe905060408601610e5e565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036110eb576110eb61108e565b5060010190565b81810381811115610e4257610e4261108e565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f6020808385031215611143575f80fd5b825167ffffffffffffffff8082111561115a575f80fd5b818501915085601f83011261116d575f80fd5b81518181111561117f5761117f611105565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f830116810181811085821117156111c2576111c2611105565b6040529182528482019250838101850191888311156111df575f80fd5b938501935b828510156111fd578451845293850193928501926111e4565b98975050505050505050565b80820180821115610e4257610e4261108e565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f60208284031215611259575f80fd5b5051919050565b8183525f7f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115611290575f80fd5b8260051b80836020870137939093016020019392505050565b73ffffffffffffffffffffffffffffffffffffffff84168152604060208201525f610d58604083018486611260565b602081525f6107f5602083018486611260565b5f8261131e577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b5f82515f5b818110156113425760208186018101518583015201611328565b505f920191825250919050565b5f6020828403121561135f575f80fd5b815180151581146107f8575f80fd5b8082028115828204841417610e4257610e4261108e56fea26469706673582212207c76f043c72bccd9edf3259c55d4753acf9805fa69e57617299760db5bffc94664736f6c63430008150033" } |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.