Source Code
Latest 25 from a total of 696 transactions
| Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Setup | 140383444 | 110 days ago | IN | 0.0014 ETH | 0.000000126067 | ||||
| Setup | 140101976 | 116 days ago | IN | 0.0014 ETH | 0.000000126363 | ||||
| Setup | 139730312 | 125 days ago | IN | 0.000003 ETH | 0.000000143481 | ||||
| Setup | 139496874 | 130 days ago | IN | 0.000003 ETH | 0.000000140638 | ||||
| Setup | 139392757 | 133 days ago | IN | 0.000003 ETH | 0.000000135034 | ||||
| Setup | 139348935 | 134 days ago | IN | 0.000003 ETH | 0.000000135271 | ||||
| Setup | 139329510 | 134 days ago | IN | 0.000003 ETH | 0.000000016583 | ||||
| Setup | 139186437 | 137 days ago | IN | 0.000003 ETH | 0.000000208084 | ||||
| Setup | 139163666 | 138 days ago | IN | 0.000003 ETH | 0.000000170876 | ||||
| Setup | 139140780 | 138 days ago | IN | 0.000003 ETH | 0.000000184781 | ||||
| Setup | 139133506 | 139 days ago | IN | 0.000003 ETH | 0.000000164706 | ||||
| Setup | 139130920 | 139 days ago | IN | 0.000003 ETH | 0.000000167328 | ||||
| Setup | 139130812 | 139 days ago | IN | 0.000003 ETH | 0.000000165054 | ||||
| Setup | 139076743 | 140 days ago | IN | 0.000003 ETH | 0.00000013665 | ||||
| Setup | 139059335 | 140 days ago | IN | 0.000003 ETH | 0.000000159055 | ||||
| Setup | 139052785 | 140 days ago | IN | 0.000003 ETH | 0.000000135478 | ||||
| Setup | 139051831 | 141 days ago | IN | 0.000003 ETH | 0.000000017251 | ||||
| Setup | 138930335 | 143 days ago | IN | 0.000003 ETH | 0.000000146524 | ||||
| Setup | 138881285 | 144 days ago | IN | 0.000003 ETH | 0.000000146936 | ||||
| Setup | 138675389 | 149 days ago | IN | 0.000003 ETH | 0.000000144941 | ||||
| Setup | 138652580 | 150 days ago | IN | 0.000003 ETH | 0.000000146045 | ||||
| Setup | 138629459 | 150 days ago | IN | 0.000003 ETH | 0.000000191649 | ||||
| Setup | 138593797 | 151 days ago | IN | 0.000003 ETH | 0.000000204985 | ||||
| Setup | 138580096 | 151 days ago | IN | 0.000003 ETH | 0.000000204317 | ||||
| Setup | 138578011 | 151 days ago | IN | 0.000003 ETH | 0.000000191896 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 140431097 | 109 days ago | 0.0014 ETH | ||||
| 140431097 | 109 days ago | 0.0014 ETH | ||||
| 140383444 | 110 days ago | 0.0014 ETH | ||||
| 140266982 | 112 days ago | 0.0014 ETH | ||||
| 140266982 | 112 days ago | 0.0014 ETH | ||||
| 140101976 | 116 days ago | 0.0014 ETH | ||||
| 139730312 | 125 days ago | 1 wei | ||||
| 139730312 | 125 days ago | 0.000003 ETH | ||||
| 139496874 | 130 days ago | 1 wei | ||||
| 139496874 | 130 days ago | 0.000003 ETH | ||||
| 139392757 | 133 days ago | 1 wei | ||||
| 139392757 | 133 days ago | 0.000003 ETH | ||||
| 139348935 | 134 days ago | 1 wei | ||||
| 139348935 | 134 days ago | 0.000003 ETH | ||||
| 139329510 | 134 days ago | 1 wei | ||||
| 139329510 | 134 days ago | 0.000003 ETH | ||||
| 139186437 | 137 days ago | 1 wei | ||||
| 139186437 | 137 days ago | 0.000003 ETH | ||||
| 139163666 | 138 days ago | 1 wei | ||||
| 139163666 | 138 days ago | 0.000003 ETH | ||||
| 139140780 | 138 days ago | 1 wei | ||||
| 139140780 | 138 days ago | 0.000003 ETH | ||||
| 139133506 | 139 days ago | 1 wei | ||||
| 139133506 | 139 days ago | 0.000003 ETH | ||||
| 139130920 | 139 days ago | 1 wei |
Latest 25 Deposits
Cross-Chain Transactions
Loading...
Loading
Contract Name:
PurchaseDelegator
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
london EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: AGPL-3.0
// GitHub: https://github.com/attestate/checkout-portal
pragma solidity ^0.8.13;
address constant collectionLocation = 0x66747bdC903d17C586fA09eE5D6b54CC85bBEA45;
interface IERC721Drop {
struct SaleDetails {
bool publicSaleActive;
bool presaleActive;
uint256 publicSalePrice;
uint64 publicSaleStart;
uint64 publicSaleEnd;
uint64 presaleStart;
uint64 presaleEnd;
bytes32 presaleMerkleRoot;
uint256 maxSalePurchasePerAddress;
uint256 totalMinted;
uint256 maxSupply;
}
function adminMint(address recipient, uint256 quantity) external returns (uint256);
function saleDetails() external view returns (SaleDetails memory);
}
address constant delegator2Location = 0x08b7ECFac2c5754ABafb789c84F8fa37c9f088B0;
interface Delegator2 {
function etch(bytes32[3] calldata data) external;
}
address constant kiwiTreasury = 0x1337E2624ffEC537087c6774e9A18031CFEAf0a9;
contract PurchaseDelegator {
error ErrValue();
function getPrice() view internal returns (uint256 price) {
IERC721Drop collection = IERC721Drop(collectionLocation);
return collection.saleDetails().publicSalePrice;
}
function setup(
bytes32[3] calldata data,
address[] calldata beneficiaries,
uint256[] calldata amounts
) external payable {
uint256 price = getPrice();
if (msg.value < price) revert ErrValue();
IERC721Drop collection = IERC721Drop(collectionLocation);
Delegator2 delegator2 = Delegator2(delegator2Location);
uint256 quantity = 1;
collection.adminMint(msg.sender, quantity);
delegator2.etch(data);
kiwiTreasury.call{value: price}("");
uint256 remainder = msg.value - price;
if (remainder > 0) {
for (uint256 i = 0; i < beneficiaries.length; i++) {
payable(beneficiaries[i]).transfer(amounts[i]);
}
uint256 balance = address(this).balance;
if (balance > 0) {
payable(msg.sender).transfer(balance);
}
}
}
}{
"remappings": [
"ds-test/=lib/forge-std/lib/ds-test/src/",
"forge-std/=lib/forge-std/src/"
],
"optimizer": {
"enabled": true,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs"
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "london",
"viaIR": false,
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"name":"ErrValue","type":"error"},{"inputs":[{"internalType":"bytes32[3]","name":"data","type":"bytes32[3]"},{"internalType":"address[]","name":"beneficiaries","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"setup","outputs":[],"stateMutability":"payable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b5061060a806100206000396000f3fe60806040526004361061001e5760003560e01c806340dd9ed714610023575b600080fd5b61003661003136600461037a565b610038565b005b60006100426102a7565b905080341015610065576040516349798bf960e11b815260040160405180910390fd5b60405163e58306f960e01b81523360048201526001602482018190527366747bdc903d17c586fa09ee5d6b54cc85bbea45917308b7ecfac2c5754abafb789c84f8fa37c9f088b09190839063e58306f9906044016020604051808303816000875af11580156100d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100fc9190610400565b50604051630175507f60e31b81526001600160a01b03831690630baa83f890610129908c90600401610419565b600060405180830381600087803b15801561014357600080fd5b505af1158015610157573d6000803e3d6000fd5b5050604051731337e2624ffec537087c6774e9a18031cfeaf0a99250869150600081818185875af1925050503d80600081146101af576040519150601f19603f3d011682016040523d82523d6000602084013e6101b4565b606091505b505050600084346101c5919061043e565b9050801561029b5760005b88811015610262578989828181106101ea576101ea610457565b90506020020160208101906101ff919061046d565b6001600160a01b03166108fc89898481811061021d5761021d610457565b905060200201359081150290604051600060405180830381858888f1935050505015801561024f573d6000803e3d6000fd5b508061025a8161049d565b9150506101d0565b5047801561029957604051339082156108fc029083906000818181858888f19350505050158015610297573d6000803e3d6000fd5b505b505b50505050505050505050565b6000807366747bdc903d17c586fa09ee5d6b54cc85bbea459050806001600160a01b0316633474a4a66040518163ffffffff1660e01b815260040161016060405180830381865afa158015610300573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610324919061051b565b6040015191505090565b60008083601f84011261034057600080fd5b50813567ffffffffffffffff81111561035857600080fd5b6020830191508360208260051b850101111561037357600080fd5b9250929050565b600080600080600060a0868803121561039257600080fd5b60608601878111156103a357600080fd5b8695503567ffffffffffffffff808211156103bd57600080fd5b6103c989838a0161032e565b909650945060808801359150808211156103e257600080fd5b506103ef8882890161032e565b969995985093965092949392505050565b60006020828403121561041257600080fd5b5051919050565b60608181019083833792915050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561045157610451610428565b92915050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561047f57600080fd5b81356001600160a01b038116811461049657600080fd5b9392505050565b6000600182016104af576104af610428565b5060010190565b604051610160810167ffffffffffffffff811182821017156104e857634e487b7160e01b600052604160045260246000fd5b60405290565b805180151581146104fe57600080fd5b919050565b805167ffffffffffffffff811681146104fe57600080fd5b6000610160828403121561052e57600080fd5b6105366104b6565b61053f836104ee565b815261054d602084016104ee565b60208201526040830151604082015261056860608401610503565b606082015261057960808401610503565b608082015261058a60a08401610503565b60a082015261059b60c08401610503565b60c082015260e083810151908201526101008084015190820152610120808401519082015261014092830151928101929092525091905056fea2646970667358221220d920b65db758586d2a1e36589150fddfac3860b49fab684b1329524f9d5f11dd64736f6c63430008110033
Deployed Bytecode
0x60806040526004361061001e5760003560e01c806340dd9ed714610023575b600080fd5b61003661003136600461037a565b610038565b005b60006100426102a7565b905080341015610065576040516349798bf960e11b815260040160405180910390fd5b60405163e58306f960e01b81523360048201526001602482018190527366747bdc903d17c586fa09ee5d6b54cc85bbea45917308b7ecfac2c5754abafb789c84f8fa37c9f088b09190839063e58306f9906044016020604051808303816000875af11580156100d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100fc9190610400565b50604051630175507f60e31b81526001600160a01b03831690630baa83f890610129908c90600401610419565b600060405180830381600087803b15801561014357600080fd5b505af1158015610157573d6000803e3d6000fd5b5050604051731337e2624ffec537087c6774e9a18031cfeaf0a99250869150600081818185875af1925050503d80600081146101af576040519150601f19603f3d011682016040523d82523d6000602084013e6101b4565b606091505b505050600084346101c5919061043e565b9050801561029b5760005b88811015610262578989828181106101ea576101ea610457565b90506020020160208101906101ff919061046d565b6001600160a01b03166108fc89898481811061021d5761021d610457565b905060200201359081150290604051600060405180830381858888f1935050505015801561024f573d6000803e3d6000fd5b508061025a8161049d565b9150506101d0565b5047801561029957604051339082156108fc029083906000818181858888f19350505050158015610297573d6000803e3d6000fd5b505b505b50505050505050505050565b6000807366747bdc903d17c586fa09ee5d6b54cc85bbea459050806001600160a01b0316633474a4a66040518163ffffffff1660e01b815260040161016060405180830381865afa158015610300573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610324919061051b565b6040015191505090565b60008083601f84011261034057600080fd5b50813567ffffffffffffffff81111561035857600080fd5b6020830191508360208260051b850101111561037357600080fd5b9250929050565b600080600080600060a0868803121561039257600080fd5b60608601878111156103a357600080fd5b8695503567ffffffffffffffff808211156103bd57600080fd5b6103c989838a0161032e565b909650945060808801359150808211156103e257600080fd5b506103ef8882890161032e565b969995985093965092949392505050565b60006020828403121561041257600080fd5b5051919050565b60608181019083833792915050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561045157610451610428565b92915050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561047f57600080fd5b81356001600160a01b038116811461049657600080fd5b9392505050565b6000600182016104af576104af610428565b5060010190565b604051610160810167ffffffffffffffff811182821017156104e857634e487b7160e01b600052604160045260246000fd5b60405290565b805180151581146104fe57600080fd5b919050565b805167ffffffffffffffff811681146104fe57600080fd5b6000610160828403121561052e57600080fd5b6105366104b6565b61053f836104ee565b815261054d602084016104ee565b60208201526040830151604082015261056860608401610503565b606082015261057960808401610503565b608082015261058a60a08401610503565b60a082015261059b60c08401610503565b60c082015260e083810151908201526101008084015190820152610120808401519082015261014092830151928101929092525091905056fea2646970667358221220d920b65db758586d2a1e36589150fddfac3860b49fab684b1329524f9d5f11dd64736f6c63430008110033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| BASE | 100.00% | $2,956.7 | 0.000003 | $0.00887 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.