Source Code
Overview
ETH Balance
0 ETH
More Info
ContractCreator
Multichain Info
N/A
Loading...
Loading
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
PrestakingTestUI
Compiler Version
v0.8.25+commit.b61c2a91
Optimization Enabled:
No with 200 runs
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity 0.8.25;
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract PrestakingTestUI {
using SafeERC20 for IERC20;
IERC20 public token;
struct PrestakingEpoch {
uint256 startDepositTime;
uint256 endDepositTime;
uint256 duration;
uint256 maxTokens;
uint256 basisPoints;
uint256 releaseTime;
}
mapping(uint256 => PrestakingEpoch) public epochs;
uint256 public epochsCount;
struct StakingWallet {
address beneficiary;
uint256 balance;
uint256 yieldAmount;
uint256 epochIndex;
}
mapping(uint256 => StakingWallet) public stakingWallets;
mapping(address => uint256[]) public addressToWalletIndices;
uint256 public nextWalletIndex;
event LogLockupDeposit(
address sender,
address beneficiary,
uint256 principalAmount,
uint256 yieldAmount,
uint256 releaseTime,
uint256 epochIndex
);
event LogLockupWithdrawal(
address receiver,
uint256 principalAmount,
uint256 yieldAmount,
uint256 epochIndex
);
event EpochDetail(
address by,
uint256 startDepositTime,
uint256 endDepositTime,
uint256 duration,
uint256 maxTokens,
uint256 basisPoints
);
event LogBeneficiaryUpdated(
uint256 stakingWalletNumber,
address oldBeneficiary,
address newBeneficiary
);
constructor() {
// Create a default epoch for testing
createNewEpoch(
block.timestamp- 200 days,
block.timestamp - 190 days,
30 days,
1000000 * 10**18,
1000 // 10% APY
);
// Create initial wallet for zero address to ensure array is initialized
createDefaultWallets(address(0));
}
function createNewEpoch(
uint256 newStartDepositTime,
uint256 newEndDepositTime,
uint256 newDuration,
uint256 newMaxTokens,
uint256 newBasisPoints
) public {
PrestakingEpoch memory e;
e.startDepositTime = newStartDepositTime;
e.endDepositTime = newEndDepositTime;
e.duration = newDuration;
e.maxTokens = newMaxTokens;
e.basisPoints = newBasisPoints;
e.releaseTime = newEndDepositTime + newDuration;
epochs[epochsCount] = e;
epochsCount++;
emit EpochDetail(
msg.sender,
newStartDepositTime,
newEndDepositTime,
newDuration,
newMaxTokens,
newBasisPoints
);
}
function withdrawPrincipal(uint256 stakingWalletNumber) public {
StakingWallet storage w = stakingWallets[stakingWalletNumber];
uint256 amount = w.balance;
w.balance = 0;
emit LogLockupWithdrawal(
w.beneficiary,
amount,
w.yieldAmount,
w.epochIndex
);
w.yieldAmount = 0;
}
function updateBeneficiary(
uint256 stakingWalletNumber,
address newBeneficiary
) public {
StakingWallet storage w = stakingWallets[stakingWalletNumber];
emit LogBeneficiaryUpdated(
stakingWalletNumber,
w.beneficiary,
newBeneficiary
);
w.beneficiary = newBeneficiary;
}
function createDefaultWallets(address user) internal {
if (addressToWalletIndices[user].length == 0) {
// Create first default wallet
StakingWallet memory w1;
w1.beneficiary = user;
w1.balance = 1000 * 10**18; // 1000 tokens
w1.yieldAmount = 100 * 10**18; // 10% yield
w1.epochIndex = 0;
uint256 index1 = nextWalletIndex;
stakingWallets[index1] = w1;
addressToWalletIndices[user].push(index1);
nextWalletIndex++;
// Create second default wallet
StakingWallet memory w2;
w2.beneficiary = user;
w2.balance = 2000 * 10**18; // 2000 tokens
w2.yieldAmount = 200 * 10**18; // 10% yield
w2.epochIndex = 0;
uint256 index2 = nextWalletIndex;
stakingWallets[index2] = w2;
addressToWalletIndices[user].push(index2);
nextWalletIndex++;
// Emit deposit events for the default wallets
emit LogLockupDeposit(
address(this),
user,
w1.balance,
w1.yieldAmount,
epochs[0].releaseTime,
0
);
emit LogLockupDeposit(
address(this),
user,
w2.balance,
w2.yieldAmount,
epochs[0].releaseTime,
0
);
}
}
function getStakingWalletsForAddress(
address query
) external returns (uint256[] memory) {
createDefaultWallets(query);
return addressToWalletIndices[query];
}
function getWalletByIndex(uint256 index) external view returns (StakingWallet memory) {
return stakingWallets[index];
}
function getTotalWallets() external view returns (uint256) {
return nextWalletIndex;
}
function updateStakingWallet(
uint256 walletIndex,
uint256 newBalance
) external {
StakingWallet storage wallet = stakingWallets[walletIndex];
wallet.balance = newBalance;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
/**
* @dev An operation with an ERC20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data);
if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*
* CAUTION: See Security Considerations above.
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error AddressInsufficientBalance(address account);
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedInnerCall();
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert AddressInsufficientBalance(address(this));
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert FailedInnerCall();
}
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {FailedInnerCall} error.
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert AddressInsufficientBalance(address(this));
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
* unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {FailedInnerCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
*/
function _revert(bytes memory returndata) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert FailedInnerCall();
}
}
}{
"remappings": [
"@openzeppelin/contracts/=lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/",
"@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
"ds-test/=lib/forge-std/lib/ds-test/src/",
"erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/",
"forge-std/=lib/forge-std/src/",
"halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
"openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
"openzeppelin-contracts/=lib/openzeppelin-contracts/",
"openzeppelin-foundry-upgrades/=lib/openzeppelin-foundry-upgrades/src/",
"solidity-stringutils/=lib/openzeppelin-foundry-upgrades/lib/solidity-stringutils/"
],
"optimizer": {
"enabled": false,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "cancun",
"viaIR": false,
"libraries": {}
}Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"by","type":"address"},{"indexed":false,"internalType":"uint256","name":"startDepositTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endDepositTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxTokens","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"basisPoints","type":"uint256"}],"name":"EpochDetail","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"stakingWalletNumber","type":"uint256"},{"indexed":false,"internalType":"address","name":"oldBeneficiary","type":"address"},{"indexed":false,"internalType":"address","name":"newBeneficiary","type":"address"}],"name":"LogBeneficiaryUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"principalAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"yieldAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"releaseTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"epochIndex","type":"uint256"}],"name":"LogLockupDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"principalAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"yieldAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"epochIndex","type":"uint256"}],"name":"LogLockupWithdrawal","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"addressToWalletIndices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newStartDepositTime","type":"uint256"},{"internalType":"uint256","name":"newEndDepositTime","type":"uint256"},{"internalType":"uint256","name":"newDuration","type":"uint256"},{"internalType":"uint256","name":"newMaxTokens","type":"uint256"},{"internalType":"uint256","name":"newBasisPoints","type":"uint256"}],"name":"createNewEpoch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"epochs","outputs":[{"internalType":"uint256","name":"startDepositTime","type":"uint256"},{"internalType":"uint256","name":"endDepositTime","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"maxTokens","type":"uint256"},{"internalType":"uint256","name":"basisPoints","type":"uint256"},{"internalType":"uint256","name":"releaseTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"epochsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"query","type":"address"}],"name":"getStakingWalletsForAddress","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getTotalWallets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getWalletByIndex","outputs":[{"components":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"yieldAmount","type":"uint256"},{"internalType":"uint256","name":"epochIndex","type":"uint256"}],"internalType":"struct PrestakingTestUI.StakingWallet","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextWalletIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakingWallets","outputs":[{"internalType":"address","name":"beneficiary","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"yieldAmount","type":"uint256"},{"internalType":"uint256","name":"epochIndex","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"stakingWalletNumber","type":"uint256"},{"internalType":"address","name":"newBeneficiary","type":"address"}],"name":"updateBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"walletIndex","type":"uint256"},{"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"updateStakingWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"stakingWalletNumber","type":"uint256"}],"name":"withdrawPrincipal","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561000f575f80fd5b5061004f630107ac004261002391906105d3565b62fa7d004261003291906105d3565b62278d0069d3c21bcecceda10000006103e861006360201b60201c565b61005e5f61016260201b60201c565b6107ce565b61006b610533565b85815f0181815250508481602001818152505083816040018181525050828160600181815250508181608001818152505083856100a89190610606565b8160a00181815250508060015f60025481526020019081526020015f205f820151815f01556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015590505060025f81548092919061011490610639565b91905055507f8f8712850d373813c56522940dd45cc1f9a86200bb933a6e85adc6947951d95e338787878787604051610152969594939291906106ce565b60405180910390a1505050505050565b5f60045f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208054905003610530576101b1610563565b81815f019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050683635c9adc5dea0000081602001818152505068056bc75e2d631000008160400181815250505f8160600181815250505f60055490508160035f8381526020019081526020015f205f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015590505060045f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081908060018154018082558091505060019003905f5260205f20015f909190919091505560055f81548092919061030890610639565b9190505550610315610563565b83815f019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050686c6b935b8bbd400000816020018181525050680ad78ebc5ac62000008160400181815250505f8160600181815250505f60055490508160035f8381526020019081526020015f205f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015590505060045f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081908060018154018082558091505060019003905f5260205f20015f909190919091505560055f81548092919061046c90610639565b91905055507f8ff2afe5bf15aa57e72e86736ca68277d602654e295a55095fee00adf1c99baf30868660200151876040015160015f8081526020019081526020015f20600501545f6040516104c69695949392919061076f565b60405180910390a17f8ff2afe5bf15aa57e72e86736ca68277d602654e295a55095fee00adf1c99baf30868460200151856040015160015f8081526020019081526020015f20600501545f6040516105239695949392919061076f565b60405180910390a1505050505b50565b6040518060c001604052805f81526020015f81526020015f81526020015f81526020015f81526020015f81525090565b60405180608001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81526020015f81526020015f81525090565b5f819050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6105dd8261059d565b91506105e88361059d565b9250828203905081811115610600576105ff6105a6565b5b92915050565b5f6106108261059d565b915061061b8361059d565b9250828201905080821115610633576106326105a6565b5b92915050565b5f6106438261059d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610675576106746105a6565b5b600182019050919050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6106a982610680565b9050919050565b6106b98161069f565b82525050565b6106c88161059d565b82525050565b5f60c0820190506106e15f8301896106b0565b6106ee60208301886106bf565b6106fb60408301876106bf565b61070860608301866106bf565b61071560808301856106bf565b61072260a08301846106bf565b979650505050505050565b5f819050919050565b5f819050919050565b5f61075961075461074f8461072d565b610736565b61059d565b9050919050565b6107698161073f565b82525050565b5f60c0820190506107825f8301896106b0565b61078f60208301886106b0565b61079c60408301876106bf565b6107a960608301866106bf565b6107b660808301856106bf565b6107c360a0830184610760565b979650505050505050565b61123d806107db5f395ff3fe608060405234801561000f575f80fd5b50600436106100cd575f3560e01c8063916e1c571161008a578063c6b61e4c11610064578063c6b61e4c1461020d578063c832021714610242578063f5f50eb114610275578063fc0c546a14610293576100cd565b8063916e1c57146101a3578063b037916c146101c1578063b3d34ca7146101f1576100cd565b80630fd67b89146100d1578063234ad47b146101015780633e8eb5a41461011d578063658e28a41461013957806389c3c7b114610155578063915e2a0b14610185575b5f80fd5b6100eb60048036038101906100e69190610bdb565b6102b1565b6040516100f89190610cc6565b60405180910390f35b61011b60048036038101906101169190610d10565b61034d565b005b61013760048036038101906101329190610d4e565b61036f565b005b610153600480360381019061014e9190610d8c565b610426565b005b61016f600480360381019061016a9190610d8c565b6104c0565b60405161017c9190610e19565b60405180910390f35b61018d61055d565b60405161019a9190610e41565b60405180910390f35b6101ab610563565b6040516101b89190610e41565b60405180910390f35b6101db60048036038101906101d69190610e5a565b610569565b6040516101e89190610e41565b60405180910390f35b61020b60048036038101906102069190610e98565b610594565b005b61022760048036038101906102229190610d8c565b610693565b60405161023996959493929190610f0f565b60405180910390f35b61025c60048036038101906102579190610d8c565b6106cb565b60405161026c9493929190610f7d565b60405180910390f35b61027d610716565b60405161028a9190610e41565b60405180910390f35b61029b61071f565b6040516102a8919061101b565b60405180910390f35b60606102bc82610742565b60045f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2080548060200260200160405190810160405280929190818152602001828054801561034157602002820191905f5260205f20905b81548152602001906001019080831161032d575b50505050509050919050565b5f60035f8481526020019081526020015f209050818160010181905550505050565b5f60035f8481526020019081526020015f2090507f7f8d930af4f1e09fccb8ee8ce553646768d6fd9fb24fbb51b679f1ff9ba9c12883825f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040516103d893929190611034565b60405180910390a181815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b5f60035f8381526020019081526020015f2090505f816001015490505f82600101819055507fa56ce8328f57ebd1d5115b1e7269b82b2ac8d61e3cad35b4d7429f04d49cbc1c825f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682846002015485600301546040516104aa9493929190610f7d565b60405180910390a15f8260020181905550505050565b6104c8610b13565b60035f8381526020019081526020015f206040518060800160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152602001600282015481526020016003820154815250509050919050565b60055481565b60025481565b6004602052815f5260405f208181548110610582575f80fd5b905f5260205f20015f91509150505481565b61059c610b4d565b85815f0181815250508481602001818152505083816040018181525050828160600181815250508181608001818152505083856105d99190611096565b8160a00181815250508060015f60025481526020019081526020015f205f820151815f01556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015590505060025f815480929190610645906110c9565b91905055507f8f8712850d373813c56522940dd45cc1f9a86200bb933a6e85adc6947951d95e33878787878760405161068396959493929190611110565b60405180910390a1505050505050565b6001602052805f5260405f205f91509050805f0154908060010154908060020154908060030154908060040154908060050154905086565b6003602052805f5260405f205f91509050805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154905084565b5f600554905090565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60045f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208054905003610b1057610791610b13565b81815f019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050683635c9adc5dea0000081602001818152505068056bc75e2d631000008160400181815250505f8160600181815250505f60055490508160035f8381526020019081526020015f205f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015590505060045f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081908060018154018082558091505060019003905f5260205f20015f909190919091505560055f8154809291906108e8906110c9565b91905055506108f5610b13565b83815f019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050686c6b935b8bbd400000816020018181525050680ad78ebc5ac62000008160400181815250505f8160600181815250505f60055490508160035f8381526020019081526020015f205f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015590505060045f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081908060018154018082558091505060019003905f5260205f20015f909190919091505560055f815480929190610a4c906110c9565b91905055507f8ff2afe5bf15aa57e72e86736ca68277d602654e295a55095fee00adf1c99baf30868660200151876040015160015f8081526020019081526020015f20600501545f604051610aa6969594939291906111a8565b60405180910390a17f8ff2afe5bf15aa57e72e86736ca68277d602654e295a55095fee00adf1c99baf30868460200151856040015160015f8081526020019081526020015f20600501545f604051610b03969594939291906111a8565b60405180910390a1505050505b50565b60405180608001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81526020015f81526020015f81525090565b6040518060c001604052805f81526020015f81526020015f81526020015f81526020015f81526020015f81525090565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610baa82610b81565b9050919050565b610bba81610ba0565b8114610bc4575f80fd5b50565b5f81359050610bd581610bb1565b92915050565b5f60208284031215610bf057610bef610b7d565b5b5f610bfd84828501610bc7565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b610c4181610c2f565b82525050565b5f610c528383610c38565b60208301905092915050565b5f602082019050919050565b5f610c7482610c06565b610c7e8185610c10565b9350610c8983610c20565b805f5b83811015610cb9578151610ca08882610c47565b9750610cab83610c5e565b925050600181019050610c8c565b5085935050505092915050565b5f6020820190508181035f830152610cde8184610c6a565b905092915050565b610cef81610c2f565b8114610cf9575f80fd5b50565b5f81359050610d0a81610ce6565b92915050565b5f8060408385031215610d2657610d25610b7d565b5b5f610d3385828601610cfc565b9250506020610d4485828601610cfc565b9150509250929050565b5f8060408385031215610d6457610d63610b7d565b5b5f610d7185828601610cfc565b9250506020610d8285828601610bc7565b9150509250929050565b5f60208284031215610da157610da0610b7d565b5b5f610dae84828501610cfc565b91505092915050565b610dc081610ba0565b82525050565b608082015f820151610dda5f850182610db7565b506020820151610ded6020850182610c38565b506040820151610e006040850182610c38565b506060820151610e136060850182610c38565b50505050565b5f608082019050610e2c5f830184610dc6565b92915050565b610e3b81610c2f565b82525050565b5f602082019050610e545f830184610e32565b92915050565b5f8060408385031215610e7057610e6f610b7d565b5b5f610e7d85828601610bc7565b9250506020610e8e85828601610cfc565b9150509250929050565b5f805f805f60a08688031215610eb157610eb0610b7d565b5b5f610ebe88828901610cfc565b9550506020610ecf88828901610cfc565b9450506040610ee088828901610cfc565b9350506060610ef188828901610cfc565b9250506080610f0288828901610cfc565b9150509295509295909350565b5f60c082019050610f225f830189610e32565b610f2f6020830188610e32565b610f3c6040830187610e32565b610f496060830186610e32565b610f566080830185610e32565b610f6360a0830184610e32565b979650505050505050565b610f7781610ba0565b82525050565b5f608082019050610f905f830187610f6e565b610f9d6020830186610e32565b610faa6040830185610e32565b610fb76060830184610e32565b95945050505050565b5f819050919050565b5f610fe3610fde610fd984610b81565b610fc0565b610b81565b9050919050565b5f610ff482610fc9565b9050919050565b5f61100582610fea565b9050919050565b61101581610ffb565b82525050565b5f60208201905061102e5f83018461100c565b92915050565b5f6060820190506110475f830186610e32565b6110546020830185610f6e565b6110616040830184610f6e565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6110a082610c2f565b91506110ab83610c2f565b92508282019050808211156110c3576110c2611069565b5b92915050565b5f6110d382610c2f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361110557611104611069565b5b600182019050919050565b5f60c0820190506111235f830189610f6e565b6111306020830188610e32565b61113d6040830187610e32565b61114a6060830186610e32565b6111576080830185610e32565b61116460a0830184610e32565b979650505050505050565b5f819050919050565b5f61119261118d6111888461116f565b610fc0565b610c2f565b9050919050565b6111a281611178565b82525050565b5f60c0820190506111bb5f830189610f6e565b6111c86020830188610f6e565b6111d56040830187610e32565b6111e26060830186610e32565b6111ef6080830185610e32565b6111fc60a0830184611199565b97965050505050505056fea2646970667358221220d71119d4086f75b18a44e6bd88887bba5fd53aef0c7a817996bf5e577b3a30e864736f6c63430008190033
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106100cd575f3560e01c8063916e1c571161008a578063c6b61e4c11610064578063c6b61e4c1461020d578063c832021714610242578063f5f50eb114610275578063fc0c546a14610293576100cd565b8063916e1c57146101a3578063b037916c146101c1578063b3d34ca7146101f1576100cd565b80630fd67b89146100d1578063234ad47b146101015780633e8eb5a41461011d578063658e28a41461013957806389c3c7b114610155578063915e2a0b14610185575b5f80fd5b6100eb60048036038101906100e69190610bdb565b6102b1565b6040516100f89190610cc6565b60405180910390f35b61011b60048036038101906101169190610d10565b61034d565b005b61013760048036038101906101329190610d4e565b61036f565b005b610153600480360381019061014e9190610d8c565b610426565b005b61016f600480360381019061016a9190610d8c565b6104c0565b60405161017c9190610e19565b60405180910390f35b61018d61055d565b60405161019a9190610e41565b60405180910390f35b6101ab610563565b6040516101b89190610e41565b60405180910390f35b6101db60048036038101906101d69190610e5a565b610569565b6040516101e89190610e41565b60405180910390f35b61020b60048036038101906102069190610e98565b610594565b005b61022760048036038101906102229190610d8c565b610693565b60405161023996959493929190610f0f565b60405180910390f35b61025c60048036038101906102579190610d8c565b6106cb565b60405161026c9493929190610f7d565b60405180910390f35b61027d610716565b60405161028a9190610e41565b60405180910390f35b61029b61071f565b6040516102a8919061101b565b60405180910390f35b60606102bc82610742565b60045f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2080548060200260200160405190810160405280929190818152602001828054801561034157602002820191905f5260205f20905b81548152602001906001019080831161032d575b50505050509050919050565b5f60035f8481526020019081526020015f209050818160010181905550505050565b5f60035f8481526020019081526020015f2090507f7f8d930af4f1e09fccb8ee8ce553646768d6fd9fb24fbb51b679f1ff9ba9c12883825f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040516103d893929190611034565b60405180910390a181815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b5f60035f8381526020019081526020015f2090505f816001015490505f82600101819055507fa56ce8328f57ebd1d5115b1e7269b82b2ac8d61e3cad35b4d7429f04d49cbc1c825f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682846002015485600301546040516104aa9493929190610f7d565b60405180910390a15f8260020181905550505050565b6104c8610b13565b60035f8381526020019081526020015f206040518060800160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152602001600282015481526020016003820154815250509050919050565b60055481565b60025481565b6004602052815f5260405f208181548110610582575f80fd5b905f5260205f20015f91509150505481565b61059c610b4d565b85815f0181815250508481602001818152505083816040018181525050828160600181815250508181608001818152505083856105d99190611096565b8160a00181815250508060015f60025481526020019081526020015f205f820151815f01556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015590505060025f815480929190610645906110c9565b91905055507f8f8712850d373813c56522940dd45cc1f9a86200bb933a6e85adc6947951d95e33878787878760405161068396959493929190611110565b60405180910390a1505050505050565b6001602052805f5260405f205f91509050805f0154908060010154908060020154908060030154908060040154908060050154905086565b6003602052805f5260405f205f91509050805f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030154905084565b5f600554905090565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60045f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208054905003610b1057610791610b13565b81815f019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050683635c9adc5dea0000081602001818152505068056bc75e2d631000008160400181815250505f8160600181815250505f60055490508160035f8381526020019081526020015f205f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015590505060045f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081908060018154018082558091505060019003905f5260205f20015f909190919091505560055f8154809291906108e8906110c9565b91905055506108f5610b13565b83815f019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050686c6b935b8bbd400000816020018181525050680ad78ebc5ac62000008160400181815250505f8160600181815250505f60055490508160035f8381526020019081526020015f205f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010155604082015181600201556060820151816003015590505060045f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081908060018154018082558091505060019003905f5260205f20015f909190919091505560055f815480929190610a4c906110c9565b91905055507f8ff2afe5bf15aa57e72e86736ca68277d602654e295a55095fee00adf1c99baf30868660200151876040015160015f8081526020019081526020015f20600501545f604051610aa6969594939291906111a8565b60405180910390a17f8ff2afe5bf15aa57e72e86736ca68277d602654e295a55095fee00adf1c99baf30868460200151856040015160015f8081526020019081526020015f20600501545f604051610b03969594939291906111a8565b60405180910390a1505050505b50565b60405180608001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81526020015f81526020015f81525090565b6040518060c001604052805f81526020015f81526020015f81526020015f81526020015f81526020015f81525090565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f610baa82610b81565b9050919050565b610bba81610ba0565b8114610bc4575f80fd5b50565b5f81359050610bd581610bb1565b92915050565b5f60208284031215610bf057610bef610b7d565b5b5f610bfd84828501610bc7565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b610c4181610c2f565b82525050565b5f610c528383610c38565b60208301905092915050565b5f602082019050919050565b5f610c7482610c06565b610c7e8185610c10565b9350610c8983610c20565b805f5b83811015610cb9578151610ca08882610c47565b9750610cab83610c5e565b925050600181019050610c8c565b5085935050505092915050565b5f6020820190508181035f830152610cde8184610c6a565b905092915050565b610cef81610c2f565b8114610cf9575f80fd5b50565b5f81359050610d0a81610ce6565b92915050565b5f8060408385031215610d2657610d25610b7d565b5b5f610d3385828601610cfc565b9250506020610d4485828601610cfc565b9150509250929050565b5f8060408385031215610d6457610d63610b7d565b5b5f610d7185828601610cfc565b9250506020610d8285828601610bc7565b9150509250929050565b5f60208284031215610da157610da0610b7d565b5b5f610dae84828501610cfc565b91505092915050565b610dc081610ba0565b82525050565b608082015f820151610dda5f850182610db7565b506020820151610ded6020850182610c38565b506040820151610e006040850182610c38565b506060820151610e136060850182610c38565b50505050565b5f608082019050610e2c5f830184610dc6565b92915050565b610e3b81610c2f565b82525050565b5f602082019050610e545f830184610e32565b92915050565b5f8060408385031215610e7057610e6f610b7d565b5b5f610e7d85828601610bc7565b9250506020610e8e85828601610cfc565b9150509250929050565b5f805f805f60a08688031215610eb157610eb0610b7d565b5b5f610ebe88828901610cfc565b9550506020610ecf88828901610cfc565b9450506040610ee088828901610cfc565b9350506060610ef188828901610cfc565b9250506080610f0288828901610cfc565b9150509295509295909350565b5f60c082019050610f225f830189610e32565b610f2f6020830188610e32565b610f3c6040830187610e32565b610f496060830186610e32565b610f566080830185610e32565b610f6360a0830184610e32565b979650505050505050565b610f7781610ba0565b82525050565b5f608082019050610f905f830187610f6e565b610f9d6020830186610e32565b610faa6040830185610e32565b610fb76060830184610e32565b95945050505050565b5f819050919050565b5f610fe3610fde610fd984610b81565b610fc0565b610b81565b9050919050565b5f610ff482610fc9565b9050919050565b5f61100582610fea565b9050919050565b61101581610ffb565b82525050565b5f60208201905061102e5f83018461100c565b92915050565b5f6060820190506110475f830186610e32565b6110546020830185610f6e565b6110616040830184610f6e565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6110a082610c2f565b91506110ab83610c2f565b92508282019050808211156110c3576110c2611069565b5b92915050565b5f6110d382610c2f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361110557611104611069565b5b600182019050919050565b5f60c0820190506111235f830189610f6e565b6111306020830188610e32565b61113d6040830187610e32565b61114a6060830186610e32565b6111576080830185610e32565b61116460a0830184610e32565b979650505050505050565b5f819050919050565b5f61119261118d6111888461116f565b610fc0565b610c2f565b9050919050565b6111a281611178565b82525050565b5f60c0820190506111bb5f830189610f6e565b6111c86020830188610f6e565b6111d56040830187610e32565b6111e26060830186610e32565b6111ef6080830185610e32565b6111fc60a0830184611199565b97965050505050505056fea2646970667358221220d71119d4086f75b18a44e6bd88887bba5fd53aef0c7a817996bf5e577b3a30e864736f6c63430008190033
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.