Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00| Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
Latest 1 internal transaction
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 74524679 | 992 days ago | Contract Creation | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
DiamondCutSimpleFacet
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.14; /******************************************************************************\ * Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen) * EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535 /******************************************************************************/ import "../interfaces/IDiamondCutSimple.sol"; import "../libraries/LibDiamond.sol"; /** * @dev This facet is being attached on the diamond during construction, then, within the same * transaction, it is used to remove itself and add all the other facets (including * DiamondCutGovernableFacet). This way we always have the same init code accross networks and * CREATE2 yields the same address. */ contract DiamondCutSimpleFacet is IDiamondCutSimple { /// @notice Add/replace/remove any number of functions and optionally execute /// a function with delegatecall /// @param _diamondCut Contains the facet addresses and function selectors /// @param _init The address of the contract or facet to execute _calldata /// @param _calldata A function call, including function selector and arguments /// _calldata is executed with delegatecall on _init function diamondCut(FacetCut[] calldata _diamondCut, address _init, bytes calldata _calldata) external override { LibDiamond.diamondCut(_diamondCut, _init, _calldata); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.14; /******************************************************************************\ * Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen) * EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535 /******************************************************************************/ import "./IDiamondCut.sol"; interface IDiamondCutSimple is IDiamondCut { /// @notice Add/replace/remove any number of functions and optionally execute /// a function with delegatecall /// @param _diamondCut Contains the facet addresses and function selectors /// @param _init The address of the contract or facet to execute _calldata /// @param _calldata A function call, including function selector and arguments /// _calldata is executed with delegatecall on _init function diamondCut( FacetCut[] calldata _diamondCut, address _init, bytes calldata _calldata ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.14; /******************************************************************************\ * Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen) * EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535 /******************************************************************************/ import { IDiamondCut } from "../interfaces/IDiamondCut.sol"; library LibDiamond { bytes32 constant DIAMOND_STORAGE_POSITION = keccak256("diamond.standard.diamond.storage"); struct DiamondStorage { // maps function selectors to the facets that execute the functions. // and maps the selectors to their position in the selectorSlots array. // func selector => address facet, selector position mapping(bytes4 => bytes32) facets; // array of slots of function selectors. // each slot holds 8 function selectors. mapping(uint256 => bytes32) selectorSlots; // The number of function selectors in selectorSlots uint16 selectorCount; } function diamondStorage() internal pure returns (DiamondStorage storage ds) { bytes32 position = DIAMOND_STORAGE_POSITION; assembly { ds.slot := position } } event DiamondCut(IDiamondCut.FacetCut[] _diamondCut, address _init, bytes _calldata); bytes32 constant CLEAR_ADDRESS_MASK = bytes32(uint256(0xffffffffffffffffffffffff)); bytes32 constant CLEAR_SELECTOR_MASK = bytes32(uint256(0xffffffff << 224)); // Internal function version of diamondCut // This code is almost the same as the external diamondCut, // except it is using 'Facet[] memory _diamondCut' instead of // 'Facet[] calldata _diamondCut'. // The code is duplicated to prevent copying calldata to memory which // causes an error for a two dimensional array. function diamondCut( IDiamondCut.FacetCut[] memory _diamondCut, address _init, bytes memory _calldata ) internal { DiamondStorage storage ds = diamondStorage(); uint256 originalSelectorCount = ds.selectorCount; uint256 selectorCount = originalSelectorCount; bytes32 selectorSlot; // Check if last selector slot is not full // "selectorCount & 7" is a gas efficient modulo by eight "selectorCount % 8" if (selectorCount & 7 > 0) { // get last selectorSlot // "selectorSlot >> 3" is a gas efficient division by 8 "selectorSlot / 8" selectorSlot = ds.selectorSlots[selectorCount >> 3]; } // loop through diamond cut for (uint256 facetIndex = 0; facetIndex < _diamondCut.length;) { (selectorCount, selectorSlot) = addReplaceRemoveFacetSelectors( selectorCount, selectorSlot, _diamondCut[facetIndex].facetAddress, _diamondCut[facetIndex].action, _diamondCut[facetIndex].functionSelectors ); unchecked { facetIndex += 1; } } if (selectorCount != originalSelectorCount) { ds.selectorCount = uint16(selectorCount); } // If last selector slot is not full // "selectorCount & 7" is a gas efficient modulo by eight "selectorCount % 8" if (selectorCount & 7 > 0) { // "selectorSlot >> 3" is a gas efficient division by 8 "selectorSlot / 8" ds.selectorSlots[selectorCount >> 3] = selectorSlot; } emit DiamondCut(_diamondCut, _init, _calldata); initializeDiamondCut(_init, _calldata); } function addReplaceRemoveFacetSelectors( uint256 _selectorCount, bytes32 _selectorSlot, address _newFacetAddress, IDiamondCut.FacetCutAction _action, bytes4[] memory _selectors ) internal returns (uint256, bytes32) { DiamondStorage storage ds = diamondStorage(); require(_selectors.length > 0, "LibDiamondCut: No selectors in facet to cut"); if (_action == IDiamondCut.FacetCutAction.Add) { enforceHasContractCode(_newFacetAddress, "LibDiamondCut: Add facet has no code"); for (uint256 selectorIndex = 0; selectorIndex < _selectors.length;) { bytes4 selector = _selectors[selectorIndex]; bytes32 oldFacet = ds.facets[selector]; require(address(bytes20(oldFacet)) == address(0), "LibDiamondCut: Can't add function that already exists"); // add facet for selector ds.facets[selector] = bytes20(_newFacetAddress) | bytes32(_selectorCount); // "_selectorCount & 7" is a gas efficient modulo by eight "_selectorCount % 8" uint256 selectorInSlotPosition = (_selectorCount & 7) << 5; // clear selector position in slot and add selector _selectorSlot = (_selectorSlot & ~(CLEAR_SELECTOR_MASK >> selectorInSlotPosition)) | (bytes32(selector) >> selectorInSlotPosition); // if slot is full then write it to storage if (selectorInSlotPosition == 224) { // "_selectorSlot >> 3" is a gas efficient division by 8 "_selectorSlot / 8" ds.selectorSlots[_selectorCount >> 3] = _selectorSlot; _selectorSlot = 0; } _selectorCount++; unchecked { selectorIndex += 1; } } } else if (_action == IDiamondCut.FacetCutAction.Replace) { enforceHasContractCode(_newFacetAddress, "LibDiamondCut: Replace facet has no code"); for (uint256 selectorIndex = 0; selectorIndex < _selectors.length;) { bytes4 selector = _selectors[selectorIndex]; bytes32 oldFacet = ds.facets[selector]; address oldFacetAddress = address(bytes20(oldFacet)); // only useful if immutable functions exist require(oldFacetAddress != address(this), "LibDiamondCut: Can't replace immutable function"); require(oldFacetAddress != _newFacetAddress, "LibDiamondCut: Can't replace function with same function"); require(oldFacetAddress != address(0), "LibDiamondCut: Can't replace function that doesn't exist"); // replace old facet address ds.facets[selector] = (oldFacet & CLEAR_ADDRESS_MASK) | bytes20(_newFacetAddress); unchecked { selectorIndex += 1; } } } else if (_action == IDiamondCut.FacetCutAction.Remove) { require(_newFacetAddress == address(0), "LibDiamondCut: Remove facet address must be address(0)"); // "_selectorCount >> 3" is a gas efficient division by 8 "_selectorCount / 8" uint256 selectorSlotCount = _selectorCount >> 3; // "_selectorCount & 7" is a gas efficient modulo by eight "_selectorCount % 8" uint256 selectorInSlotIndex = _selectorCount & 7; for (uint256 selectorIndex = 0; selectorIndex < _selectors.length;) { if (_selectorSlot == 0) { // get last selectorSlot selectorSlotCount--; _selectorSlot = ds.selectorSlots[selectorSlotCount]; selectorInSlotIndex = 7; } else { selectorInSlotIndex--; } bytes4 lastSelector; uint256 oldSelectorsSlotCount; uint256 oldSelectorInSlotPosition; // adding a block here prevents stack too deep error { bytes4 selector = _selectors[selectorIndex]; bytes32 oldFacet = ds.facets[selector]; require(address(bytes20(oldFacet)) != address(0), "LibDiamondCut: Can't remove function that doesn't exist"); // only useful if immutable functions exist require(address(bytes20(oldFacet)) != address(this), "LibDiamondCut: Can't remove immutable function"); // replace selector with last selector in ds.facets // gets the last selector lastSelector = bytes4(_selectorSlot << (selectorInSlotIndex << 5)); if (lastSelector != selector) { // update last selector slot position info ds.facets[lastSelector] = (oldFacet & CLEAR_ADDRESS_MASK) | bytes20(ds.facets[lastSelector]); } delete ds.facets[selector]; uint256 oldSelectorCount = uint16(uint256(oldFacet)); // "oldSelectorCount >> 3" is a gas efficient division by 8 "oldSelectorCount / 8" oldSelectorsSlotCount = oldSelectorCount >> 3; // "oldSelectorCount & 7" is a gas efficient modulo by eight "oldSelectorCount % 8" oldSelectorInSlotPosition = (oldSelectorCount & 7) << 5; } if (oldSelectorsSlotCount != selectorSlotCount) { bytes32 oldSelectorSlot = ds.selectorSlots[oldSelectorsSlotCount]; // clears the selector we are deleting and puts the last selector in its place. oldSelectorSlot = (oldSelectorSlot & ~(CLEAR_SELECTOR_MASK >> oldSelectorInSlotPosition)) | (bytes32(lastSelector) >> oldSelectorInSlotPosition); // update storage with the modified slot ds.selectorSlots[oldSelectorsSlotCount] = oldSelectorSlot; } else { // clears the selector we are deleting and puts the last selector in its place. _selectorSlot = (_selectorSlot & ~(CLEAR_SELECTOR_MASK >> oldSelectorInSlotPosition)) | (bytes32(lastSelector) >> oldSelectorInSlotPosition); } if (selectorInSlotIndex == 0) { delete ds.selectorSlots[selectorSlotCount]; _selectorSlot = 0; } unchecked { selectorIndex += 1; } } _selectorCount = selectorSlotCount * 8 + selectorInSlotIndex; } else { revert("LibDiamondCut: Incorrect FacetCutAction"); } return (_selectorCount, _selectorSlot); } function initializeDiamondCut(address _init, bytes memory _calldata) internal { if (_init == address(0)) { require(_calldata.length == 0, "LibDiamondCut: _init is address(0) but_calldata is not empty"); } else { require(_calldata.length > 0, "LibDiamondCut: _calldata is empty but _init is not address(0)"); if (_init != address(this)) { enforceHasContractCode(_init, "LibDiamondCut: _init address has no code"); } (bool success, bytes memory error) = _init.delegatecall(_calldata); if (!success) { if (error.length > 0) { // bubble up the error revert(string(error)); } else { revert("LibDiamondCut: _init function reverted"); } } } } function enforceHasContractCode(address _contract, string memory _errorMessage) internal view { uint256 contractSize; assembly { contractSize := extcodesize(_contract) } require(contractSize > 0, _errorMessage); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.14; /******************************************************************************\ * Author: Nick Mudge <[email protected]> (https://twitter.com/mudgen) * EIP-2535 Diamonds: https://eips.ethereum.org/EIPS/eip-2535 /******************************************************************************/ interface IDiamondCut { enum FacetCutAction {Add, Replace, Remove} // Add=0, Replace=1, Remove=2 struct FacetCut { address facetAddress; FacetCutAction action; bytes4[] functionSelectors; } event DiamondCut(FacetCut[] _diamondCut, address _init, bytes _calldata); }
{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"components":[{"internalType":"address","name":"facetAddress","type":"address"},{"internalType":"enum IDiamondCut.FacetCutAction","name":"action","type":"uint8"},{"internalType":"bytes4[]","name":"functionSelectors","type":"bytes4[]"}],"indexed":false,"internalType":"struct IDiamondCut.FacetCut[]","name":"_diamondCut","type":"tuple[]"},{"indexed":false,"internalType":"address","name":"_init","type":"address"},{"indexed":false,"internalType":"bytes","name":"_calldata","type":"bytes"}],"name":"DiamondCut","type":"event"},{"inputs":[{"components":[{"internalType":"address","name":"facetAddress","type":"address"},{"internalType":"enum IDiamondCut.FacetCutAction","name":"action","type":"uint8"},{"internalType":"bytes4[]","name":"functionSelectors","type":"bytes4[]"}],"internalType":"struct IDiamondCut.FacetCut[]","name":"_diamondCut","type":"tuple[]"},{"internalType":"address","name":"_init","type":"address"},{"internalType":"bytes","name":"_calldata","type":"bytes"}],"name":"diamondCut","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b506111e8806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80631f931c1c14610030575b600080fd5b61004361003e366004610c7d565b610045565b005b61008f6100528587610dc3565b8484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061009692505050565b5050505050565b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131e547fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c9061ffff8116908190600090600716156101055750600381901c60009081526001840160205260409020545b60005b87518110156101825761017583838a848151811061012857610128610f07565b6020026020010151600001518b858151811061014657610146610f07565b6020026020010151602001518c868151811061016457610164610f07565b60200260200101516040015161020e565b9093509150600101610108565b5082821461019e5760028401805461ffff191661ffff84161790555b60078216156101c057600382901c600090815260018501602052604090208190555b7f8faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb6738787876040516101f393929190610f8b565b60405180910390a161020586866109e4565b50505050505050565b600080807fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c9050600084511161029f5760405162461bcd60e51b815260206004820152602b60248201527f4c69624469616d6f6e644375743a204e6f2073656c6563746f727320696e206660448201526a1858d95d081d1bc818dd5d60aa1b60648201526084015b60405180910390fd5b60008560028111156102b3576102b3610f1d565b03610418576102da8660405180606001604052806024815260200161113f60249139610bf7565b60005b84518110156104125760008582815181106102fa576102fa610f07565b6020908102919091018101516001600160e01b03198116600090815291859052604090912054909150606081901c156103935760405162461bcd60e51b815260206004820152603560248201527f4c69624469616d6f6e644375743a2043616e2774206164642066756e6374696f6044820152746e207468617420616c72656164792065786973747360581b6064820152608401610296565b6001600160e01b031980831660008181526020879052604090206001600160601b031960608d901b168e17905560e060058e901b811692831c199c909c1690821c179a8190036103f75760038c901c600090815260018601602052604081209b909b555b8b610401816110a1565b9c50506001840193505050506102dd565b506109d8565b600185600281111561042c5761042c610f1d565b03610651576104538660405180606001604052806028815260200161118b60289139610bf7565b60005b845181101561041257600085828151811061047357610473610f07565b6020908102919091018101516001600160e01b03198116600090815291859052604090912054909150606081901c3081036105085760405162461bcd60e51b815260206004820152602f60248201527f4c69624469616d6f6e644375743a2043616e2774207265706c61636520696d6d60448201526e3aba30b1363290333ab731ba34b7b760891b6064820152608401610296565b896001600160a01b0316816001600160a01b03160361058f5760405162461bcd60e51b815260206004820152603860248201527f4c69624469616d6f6e644375743a2043616e2774207265706c6163652066756e60448201527f6374696f6e20776974682073616d652066756e6374696f6e00000000000000006064820152608401610296565b6001600160a01b03811661060b5760405162461bcd60e51b815260206004820152603860248201527f4c69624469616d6f6e644375743a2043616e2774207265706c6163652066756e60448201527f6374696f6e207468617420646f65736e277420657869737400000000000000006064820152608401610296565b506001600160e01b031990911660009081526020849052604090206bffffffffffffffffffffffff919091166001600160601b031960608a901b16179055600101610456565b600285600281111561066557610665610f1d565b03610980576001600160a01b038616156106e05760405162461bcd60e51b815260206004820152603660248201527f4c69624469616d6f6e644375743a2052656d6f76652066616365742061646472604482015275657373206d757374206265206164647265737328302960501b6064820152608401610296565b600388901c6007891660005b86518110156109605760008a90036107285782610708816110ba565b60008181526001870160205260409020549b509350600792506107369050565b81610732816110ba565b9250505b6000806000808a858151811061074e5761074e610f07565b6020908102919091018101516001600160e01b031981166000908152918a9052604090912054909150606081901c6107ee5760405162461bcd60e51b815260206004820152603760248201527f4c69624469616d6f6e644375743a2043616e27742072656d6f76652066756e6360448201527f74696f6e207468617420646f65736e27742065786973740000000000000000006064820152608401610296565b30606082901c036108585760405162461bcd60e51b815260206004820152602e60248201527f4c69624469616d6f6e644375743a2043616e27742072656d6f766520696d6d7560448201526d3a30b1363290333ab731ba34b7b760911b6064820152608401610296565b600587901b8f901b94506001600160e01b0319808616908316146108ae576001600160e01b03198516600090815260208a90526040902080546001600160601b0319166bffffffffffffffffffffffff83161790555b6001600160e01b031991909116600090815260208990526040812055600381901c611fff16925060051b60e0169050858214610913576000828152600188016020526040902080546001600160e01b031980841c19909116908516831c179055610937565b80836001600160e01b031916901c816001600160e01b031960001b901c198e16179c505b8460000361095557600086815260018801602052604081208190559c505b5050506001016106ec565b508061096d8360086110d1565b61097791906110f0565b995050506109d8565b60405162461bcd60e51b815260206004820152602760248201527f4c69624469616d6f6e644375743a20496e636f727265637420466163657443756044820152663a20b1ba34b7b760c91b6064820152608401610296565b50959694955050505050565b6001600160a01b038216610a6b57805115610a675760405162461bcd60e51b815260206004820152603c60248201527f4c69624469616d6f6e644375743a205f696e697420697320616464726573732860448201527f3029206275745f63616c6c64617461206973206e6f7420656d707479000000006064820152608401610296565b5050565b6000815111610ae25760405162461bcd60e51b815260206004820152603d60248201527f4c69624469616d6f6e644375743a205f63616c6c6461746120697320656d707460448201527f7920627574205f696e6974206973206e6f7420616464726573732830290000006064820152608401610296565b6001600160a01b0382163014610b1457610b148260405180606001604052806028815260200161116360289139610bf7565b600080836001600160a01b031683604051610b2f9190611108565b600060405180830381855af49150503d8060008114610b6a576040519150601f19603f3d011682016040523d82523d6000602084013e610b6f565b606091505b509150915081610bf157805115610b9a578060405162461bcd60e51b81526004016102969190611124565b60405162461bcd60e51b815260206004820152602660248201527f4c69624469616d6f6e644375743a205f696e69742066756e6374696f6e2072656044820152651d995c9d195960d21b6064820152608401610296565b50505050565b813b8181610bf15760405162461bcd60e51b81526004016102969190611124565b80356001600160a01b0381168114610c2f57600080fd5b919050565b60008083601f840112610c4657600080fd5b50813567ffffffffffffffff811115610c5e57600080fd5b602083019150836020828501011115610c7657600080fd5b9250929050565b600080600080600060608688031215610c9557600080fd5b853567ffffffffffffffff80821115610cad57600080fd5b818801915088601f830112610cc157600080fd5b813581811115610cd057600080fd5b8960208260051b8501011115610ce557600080fd5b60208301975080965050610cfb60208901610c18565b94506040880135915080821115610d1157600080fd5b50610d1e88828901610c34565b969995985093965092949392505050565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff81118282101715610d6857610d68610d2f565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610d9757610d97610d2f565b604052919050565b600067ffffffffffffffff821115610db957610db9610d2f565b5060051b60200190565b6000610dd6610dd184610d9f565b610d6e565b83815260208082019190600586811b860136811115610df457600080fd5b865b81811015610efa57803567ffffffffffffffff80821115610e175760008081fd5b818a01915060608236031215610e2d5760008081fd5b610e35610d45565b610e3e83610c18565b81528683013560038110610e525760008081fd5b8188015260408381013583811115610e6a5760008081fd5b939093019236601f850112610e8157600092508283fd5b83359250610e91610dd184610d9f565b83815292871b84018801928881019036851115610eae5760008081fd5b948901945b84861015610ee35785356001600160e01b031981168114610ed45760008081fd5b82529489019490890190610eb3565b918301919091525088525050948301948301610df6565b5092979650505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b60005b83811015610f4e578181015183820152602001610f36565b83811115610bf15750506000910152565b60008151808452610f77816020860160208601610f33565b601f01601f19169290920160200192915050565b60006060808301818452808751808352608092508286019150828160051b8701016020808b0160005b8481101561105b57898403607f19018652815180516001600160a01b03168552838101518986019060038110610ffa57634e487b7160e01b600052602160045260246000fd5b868601526040918201519186018a905281519081905290840190600090898701905b808310156110465783516001600160e01b031916825292860192600192909201919086019061101c565b50978501979550505090820190600101610fb4565b50506001600160a01b038a1690880152868103604088015261107d8189610f5f565b9a9950505050505050505050565b634e487b7160e01b600052601160045260246000fd5b6000600182016110b3576110b361108b565b5060010190565b6000816110c9576110c961108b565b506000190190565b60008160001904831182151516156110eb576110eb61108b565b500290565b600082198211156111035761110361108b565b500190565b6000825161111a818460208701610f33565b9190910192915050565b6020815260006111376020830184610f5f565b939250505056fe4c69624469616d6f6e644375743a2041646420666163657420686173206e6f20636f64654c69624469616d6f6e644375743a205f696e6974206164647265737320686173206e6f20636f64654c69624469616d6f6e644375743a205265706c61636520666163657420686173206e6f20636f6465a2646970667358221220c03e8eb3db083303e13b86d64f0ad8d778cc440aec59b2eaea984e8706cd9d1a64736f6c634300080e0033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061002b5760003560e01c80631f931c1c14610030575b600080fd5b61004361003e366004610c7d565b610045565b005b61008f6100528587610dc3565b8484848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061009692505050565b5050505050565b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131e547fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c9061ffff8116908190600090600716156101055750600381901c60009081526001840160205260409020545b60005b87518110156101825761017583838a848151811061012857610128610f07565b6020026020010151600001518b858151811061014657610146610f07565b6020026020010151602001518c868151811061016457610164610f07565b60200260200101516040015161020e565b9093509150600101610108565b5082821461019e5760028401805461ffff191661ffff84161790555b60078216156101c057600382901c600090815260018501602052604090208190555b7f8faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb6738787876040516101f393929190610f8b565b60405180910390a161020586866109e4565b50505050505050565b600080807fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c9050600084511161029f5760405162461bcd60e51b815260206004820152602b60248201527f4c69624469616d6f6e644375743a204e6f2073656c6563746f727320696e206660448201526a1858d95d081d1bc818dd5d60aa1b60648201526084015b60405180910390fd5b60008560028111156102b3576102b3610f1d565b03610418576102da8660405180606001604052806024815260200161113f60249139610bf7565b60005b84518110156104125760008582815181106102fa576102fa610f07565b6020908102919091018101516001600160e01b03198116600090815291859052604090912054909150606081901c156103935760405162461bcd60e51b815260206004820152603560248201527f4c69624469616d6f6e644375743a2043616e2774206164642066756e6374696f6044820152746e207468617420616c72656164792065786973747360581b6064820152608401610296565b6001600160e01b031980831660008181526020879052604090206001600160601b031960608d901b168e17905560e060058e901b811692831c199c909c1690821c179a8190036103f75760038c901c600090815260018601602052604081209b909b555b8b610401816110a1565b9c50506001840193505050506102dd565b506109d8565b600185600281111561042c5761042c610f1d565b03610651576104538660405180606001604052806028815260200161118b60289139610bf7565b60005b845181101561041257600085828151811061047357610473610f07565b6020908102919091018101516001600160e01b03198116600090815291859052604090912054909150606081901c3081036105085760405162461bcd60e51b815260206004820152602f60248201527f4c69624469616d6f6e644375743a2043616e2774207265706c61636520696d6d60448201526e3aba30b1363290333ab731ba34b7b760891b6064820152608401610296565b896001600160a01b0316816001600160a01b03160361058f5760405162461bcd60e51b815260206004820152603860248201527f4c69624469616d6f6e644375743a2043616e2774207265706c6163652066756e60448201527f6374696f6e20776974682073616d652066756e6374696f6e00000000000000006064820152608401610296565b6001600160a01b03811661060b5760405162461bcd60e51b815260206004820152603860248201527f4c69624469616d6f6e644375743a2043616e2774207265706c6163652066756e60448201527f6374696f6e207468617420646f65736e277420657869737400000000000000006064820152608401610296565b506001600160e01b031990911660009081526020849052604090206bffffffffffffffffffffffff919091166001600160601b031960608a901b16179055600101610456565b600285600281111561066557610665610f1d565b03610980576001600160a01b038616156106e05760405162461bcd60e51b815260206004820152603660248201527f4c69624469616d6f6e644375743a2052656d6f76652066616365742061646472604482015275657373206d757374206265206164647265737328302960501b6064820152608401610296565b600388901c6007891660005b86518110156109605760008a90036107285782610708816110ba565b60008181526001870160205260409020549b509350600792506107369050565b81610732816110ba565b9250505b6000806000808a858151811061074e5761074e610f07565b6020908102919091018101516001600160e01b031981166000908152918a9052604090912054909150606081901c6107ee5760405162461bcd60e51b815260206004820152603760248201527f4c69624469616d6f6e644375743a2043616e27742072656d6f76652066756e6360448201527f74696f6e207468617420646f65736e27742065786973740000000000000000006064820152608401610296565b30606082901c036108585760405162461bcd60e51b815260206004820152602e60248201527f4c69624469616d6f6e644375743a2043616e27742072656d6f766520696d6d7560448201526d3a30b1363290333ab731ba34b7b760911b6064820152608401610296565b600587901b8f901b94506001600160e01b0319808616908316146108ae576001600160e01b03198516600090815260208a90526040902080546001600160601b0319166bffffffffffffffffffffffff83161790555b6001600160e01b031991909116600090815260208990526040812055600381901c611fff16925060051b60e0169050858214610913576000828152600188016020526040902080546001600160e01b031980841c19909116908516831c179055610937565b80836001600160e01b031916901c816001600160e01b031960001b901c198e16179c505b8460000361095557600086815260018801602052604081208190559c505b5050506001016106ec565b508061096d8360086110d1565b61097791906110f0565b995050506109d8565b60405162461bcd60e51b815260206004820152602760248201527f4c69624469616d6f6e644375743a20496e636f727265637420466163657443756044820152663a20b1ba34b7b760c91b6064820152608401610296565b50959694955050505050565b6001600160a01b038216610a6b57805115610a675760405162461bcd60e51b815260206004820152603c60248201527f4c69624469616d6f6e644375743a205f696e697420697320616464726573732860448201527f3029206275745f63616c6c64617461206973206e6f7420656d707479000000006064820152608401610296565b5050565b6000815111610ae25760405162461bcd60e51b815260206004820152603d60248201527f4c69624469616d6f6e644375743a205f63616c6c6461746120697320656d707460448201527f7920627574205f696e6974206973206e6f7420616464726573732830290000006064820152608401610296565b6001600160a01b0382163014610b1457610b148260405180606001604052806028815260200161116360289139610bf7565b600080836001600160a01b031683604051610b2f9190611108565b600060405180830381855af49150503d8060008114610b6a576040519150601f19603f3d011682016040523d82523d6000602084013e610b6f565b606091505b509150915081610bf157805115610b9a578060405162461bcd60e51b81526004016102969190611124565b60405162461bcd60e51b815260206004820152602660248201527f4c69624469616d6f6e644375743a205f696e69742066756e6374696f6e2072656044820152651d995c9d195960d21b6064820152608401610296565b50505050565b813b8181610bf15760405162461bcd60e51b81526004016102969190611124565b80356001600160a01b0381168114610c2f57600080fd5b919050565b60008083601f840112610c4657600080fd5b50813567ffffffffffffffff811115610c5e57600080fd5b602083019150836020828501011115610c7657600080fd5b9250929050565b600080600080600060608688031215610c9557600080fd5b853567ffffffffffffffff80821115610cad57600080fd5b818801915088601f830112610cc157600080fd5b813581811115610cd057600080fd5b8960208260051b8501011115610ce557600080fd5b60208301975080965050610cfb60208901610c18565b94506040880135915080821115610d1157600080fd5b50610d1e88828901610c34565b969995985093965092949392505050565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff81118282101715610d6857610d68610d2f565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610d9757610d97610d2f565b604052919050565b600067ffffffffffffffff821115610db957610db9610d2f565b5060051b60200190565b6000610dd6610dd184610d9f565b610d6e565b83815260208082019190600586811b860136811115610df457600080fd5b865b81811015610efa57803567ffffffffffffffff80821115610e175760008081fd5b818a01915060608236031215610e2d5760008081fd5b610e35610d45565b610e3e83610c18565b81528683013560038110610e525760008081fd5b8188015260408381013583811115610e6a5760008081fd5b939093019236601f850112610e8157600092508283fd5b83359250610e91610dd184610d9f565b83815292871b84018801928881019036851115610eae5760008081fd5b948901945b84861015610ee35785356001600160e01b031981168114610ed45760008081fd5b82529489019490890190610eb3565b918301919091525088525050948301948301610df6565b5092979650505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b60005b83811015610f4e578181015183820152602001610f36565b83811115610bf15750506000910152565b60008151808452610f77816020860160208601610f33565b601f01601f19169290920160200192915050565b60006060808301818452808751808352608092508286019150828160051b8701016020808b0160005b8481101561105b57898403607f19018652815180516001600160a01b03168552838101518986019060038110610ffa57634e487b7160e01b600052602160045260246000fd5b868601526040918201519186018a905281519081905290840190600090898701905b808310156110465783516001600160e01b031916825292860192600192909201919086019061101c565b50978501979550505090820190600101610fb4565b50506001600160a01b038a1690880152868103604088015261107d8189610f5f565b9a9950505050505050505050565b634e487b7160e01b600052601160045260246000fd5b6000600182016110b3576110b361108b565b5060010190565b6000816110c9576110c961108b565b506000190190565b60008160001904831182151516156110eb576110eb61108b565b500290565b600082198211156111035761110361108b565b500190565b6000825161111a818460208701610f33565b9190910192915050565b6020815260006111376020830184610f5f565b939250505056fe4c69624469616d6f6e644375743a2041646420666163657420686173206e6f20636f64654c69624469616d6f6e644375743a205f696e6974206164647265737320686173206e6f20636f64654c69624469616d6f6e644375743a205265706c61636520666163657420686173206e6f20636f6465a2646970667358221220c03e8eb3db083303e13b86d64f0ad8d778cc440aec59b2eaea984e8706cd9d1a64736f6c634300080e0033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.