Source Code
Overview
ETH Balance
0 ETH
ETH Value
$0.00Latest 1 from a total of 1 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer Ownersh... | 360831309 | 206 days ago | IN | 0 ETH | 0.00000053 |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
BurnMintTokenPool
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
No with 200 runs
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.24;
import {ITypeAndVersion} from "../../shared/interfaces/ITypeAndVersion.sol";
import {IBurnMintERC20} from "../../shared/token/ERC20/IBurnMintERC20.sol";
import {BurnMintTokenPoolAbstract} from "./BurnMintTokenPoolAbstract.sol";
import {TokenPool} from "./TokenPool.sol";
/// @notice This pool mints and burns a 3rd-party token.
/// @dev Pool whitelisting mode is set in the constructor and cannot be modified later.
/// It either accepts any address as originalSender, or only accepts whitelisted originalSender.
/// The only way to change whitelisting mode is to deploy a new pool.
/// If that is expected, please make sure the token's burner/minter roles are adjustable.
/// @dev This contract is a variant of BurnMintTokenPool that uses `burn(amount)`.
contract BurnMintTokenPool is BurnMintTokenPoolAbstract, ITypeAndVersion {
string public constant override typeAndVersion = "BurnMintTokenPool 1.5.1";
constructor(
IBurnMintERC20 token,
uint8 localTokenDecimals,
address[] memory allowlist,
address rmnProxy,
address router
) TokenPool(token, localTokenDecimals, allowlist, rmnProxy, router) {}
/// @inheritdoc BurnMintTokenPoolAbstract
function _burn(
uint256 amount
) internal virtual override {
IBurnMintERC20(address(i_token)).burn(amount);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface ITypeAndVersion {
function typeAndVersion() external pure returns (string memory);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {IERC20} from "../../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol";
interface IBurnMintERC20 is IERC20 {
/// @notice Mints new tokens for a given address.
/// @param account The address to mint the new tokens to.
/// @param amount The number of tokens to be minted.
/// @dev this function increases the total supply.
function mint(address account, uint256 amount) external;
/// @notice Burns tokens from the sender.
/// @param amount The number of tokens to be burned.
/// @dev this function decreases the total supply.
function burn(uint256 amount) external;
/// @notice Burns tokens from a given address..
/// @param account The address to burn tokens from.
/// @param amount The number of tokens to be burned.
/// @dev this function decreases the total supply.
function burn(address account, uint256 amount) external;
/// @notice Burns tokens from a given address..
/// @param account The address to burn tokens from.
/// @param amount The number of tokens to be burned.
/// @dev this function decreases the total supply.
function burnFrom(address account, uint256 amount) external;
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.24;
import {IBurnMintERC20} from "../../shared/token/ERC20/IBurnMintERC20.sol";
import {Pool} from "../libraries/Pool.sol";
import {TokenPool} from "./TokenPool.sol";
abstract contract BurnMintTokenPoolAbstract is TokenPool {
/// @notice Contains the specific burn call for a pool.
/// @dev overriding this method allows us to create pools with different burn signatures
/// without duplicating the underlying logic.
function _burn(
uint256 amount
) internal virtual;
/// @notice Burn the token in the pool
/// @dev The _validateLockOrBurn check is an essential security check
function lockOrBurn(
Pool.LockOrBurnInV1 calldata lockOrBurnIn
) external virtual override returns (Pool.LockOrBurnOutV1 memory) {
_validateLockOrBurn(lockOrBurnIn);
_burn(lockOrBurnIn.amount);
emit Burned(msg.sender, lockOrBurnIn.amount);
return Pool.LockOrBurnOutV1({
destTokenAddress: getRemoteToken(lockOrBurnIn.remoteChainSelector),
destPoolData: _encodeLocalDecimals()
});
}
/// @notice Mint tokens from the pool to the recipient
/// @dev The _validateReleaseOrMint check is an essential security check
function releaseOrMint(
Pool.ReleaseOrMintInV1 calldata releaseOrMintIn
) external virtual override returns (Pool.ReleaseOrMintOutV1 memory) {
_validateReleaseOrMint(releaseOrMintIn);
// Calculate the local amount
uint256 localAmount =
_calculateLocalAmount(releaseOrMintIn.amount, _parseRemoteDecimals(releaseOrMintIn.sourcePoolData));
// Mint to the receiver
IBurnMintERC20(address(i_token)).mint(releaseOrMintIn.receiver, localAmount);
emit Minted(msg.sender, releaseOrMintIn.receiver, localAmount);
return Pool.ReleaseOrMintOutV1({destinationAmount: localAmount});
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.24;
import {IPoolV1} from "../interfaces/IPool.sol";
import {IRMN} from "../interfaces/IRMN.sol";
import {IRouter} from "../interfaces/IRouter.sol";
import {Ownable2StepMsgSender} from "../../shared/access/Ownable2StepMsgSender.sol";
import {Pool} from "../libraries/Pool.sol";
import {RateLimiter} from "../libraries/RateLimiter.sol";
import {IERC20} from "../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol";
import {IERC20Metadata} from
"../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import {IERC165} from "../../vendor/openzeppelin-solidity/v5.0.2/contracts/utils/introspection/IERC165.sol";
import {EnumerableSet} from "../../vendor/openzeppelin-solidity/v5.0.2/contracts/utils/structs/EnumerableSet.sol";
/// @dev This pool supports different decimals on different chains but using this feature could impact the total number
/// of tokens in circulation. Since all of the tokens are locked/burned on the source, and a rounded amount is minted/released on the
/// destination, the number of tokens minted/released could be less than the number of tokens burned/locked. This is because the source
/// chain does not know about the destination token decimals. This is not a problem if the decimals are the same on both
/// chains.
///
/// Example:
/// Assume there is a token with 6 decimals on chain A and 3 decimals on chain B.
/// - 1.234567 tokens are burned on chain A.
/// - 1.234 tokens are minted on chain B.
/// When sending the 1.234 tokens back to chain A, you will receive 1.234000 tokens on chain A, effectively losing
/// 0.000567 tokens.
/// In the case of a burnMint pool on chain A, these funds are burned in the pool on chain A.
/// In the case of a lockRelease pool on chain A, these funds accumulate in the pool on chain A.
abstract contract TokenPool is IPoolV1, Ownable2StepMsgSender {
using EnumerableSet for EnumerableSet.Bytes32Set;
using EnumerableSet for EnumerableSet.AddressSet;
using EnumerableSet for EnumerableSet.UintSet;
using RateLimiter for RateLimiter.TokenBucket;
error CallerIsNotARampOnRouter(address caller);
error ZeroAddressNotAllowed();
error SenderNotAllowed(address sender);
error AllowListNotEnabled();
error NonExistentChain(uint64 remoteChainSelector);
error ChainNotAllowed(uint64 remoteChainSelector);
error CursedByRMN();
error ChainAlreadyExists(uint64 chainSelector);
error InvalidSourcePoolAddress(bytes sourcePoolAddress);
error InvalidToken(address token);
error Unauthorized(address caller);
error PoolAlreadyAdded(uint64 remoteChainSelector, bytes remotePoolAddress);
error InvalidRemotePoolForChain(uint64 remoteChainSelector, bytes remotePoolAddress);
error InvalidRemoteChainDecimals(bytes sourcePoolData);
error MismatchedArrayLengths();
error OverflowDetected(uint8 remoteDecimals, uint8 localDecimals, uint256 remoteAmount);
error InvalidDecimalArgs(uint8 expected, uint8 actual);
event Locked(address indexed sender, uint256 amount);
event Burned(address indexed sender, uint256 amount);
event Released(address indexed sender, address indexed recipient, uint256 amount);
event Minted(address indexed sender, address indexed recipient, uint256 amount);
event ChainAdded(
uint64 remoteChainSelector,
bytes remoteToken,
RateLimiter.Config outboundRateLimiterConfig,
RateLimiter.Config inboundRateLimiterConfig
);
event ChainConfigured(
uint64 remoteChainSelector,
RateLimiter.Config outboundRateLimiterConfig,
RateLimiter.Config inboundRateLimiterConfig
);
event ChainRemoved(uint64 remoteChainSelector);
event RemotePoolAdded(uint64 indexed remoteChainSelector, bytes remotePoolAddress);
event RemotePoolRemoved(uint64 indexed remoteChainSelector, bytes remotePoolAddress);
event AllowListAdd(address sender);
event AllowListRemove(address sender);
event RouterUpdated(address oldRouter, address newRouter);
event RateLimitAdminSet(address rateLimitAdmin);
struct ChainUpdate {
uint64 remoteChainSelector; // Remote chain selector
bytes[] remotePoolAddresses; // Address of the remote pool, ABI encoded in the case of a remote EVM chain.
bytes remoteTokenAddress; // Address of the remote token, ABI encoded in the case of a remote EVM chain.
RateLimiter.Config outboundRateLimiterConfig; // Outbound rate limited config, meaning the rate limits for all of the onRamps for the given chain
RateLimiter.Config inboundRateLimiterConfig; // Inbound rate limited config, meaning the rate limits for all of the offRamps for the given chain
}
struct RemoteChainConfig {
RateLimiter.TokenBucket outboundRateLimiterConfig; // Outbound rate limited config, meaning the rate limits for all of the onRamps for the given chain
RateLimiter.TokenBucket inboundRateLimiterConfig; // Inbound rate limited config, meaning the rate limits for all of the offRamps for the given chain
bytes remoteTokenAddress; // Address of the remote token, ABI encoded in the case of a remote EVM chain.
EnumerableSet.Bytes32Set remotePools; // Set of remote pool hashes, ABI encoded in the case of a remote EVM chain.
}
/// @dev The bridgeable token that is managed by this pool. Pools could support multiple tokens at the same time if
/// required, but this implementation only supports one token.
IERC20 internal immutable i_token;
/// @dev The number of decimals of the token managed by this pool.
uint8 internal immutable i_tokenDecimals;
/// @dev The address of the RMN proxy
address internal immutable i_rmnProxy;
/// @dev The immutable flag that indicates if the pool is access-controlled.
bool internal immutable i_allowlistEnabled;
/// @dev A set of addresses allowed to trigger lockOrBurn as original senders.
/// Only takes effect if i_allowlistEnabled is true.
/// This can be used to ensure only token-issuer specified addresses can move tokens.
EnumerableSet.AddressSet internal s_allowlist;
/// @dev The address of the router
IRouter internal s_router;
/// @dev A set of allowed chain selectors. We want the allowlist to be enumerable to
/// be able to quickly determine (without parsing logs) who can access the pool.
/// @dev The chain selectors are in uint256 format because of the EnumerableSet implementation.
EnumerableSet.UintSet internal s_remoteChainSelectors;
mapping(uint64 remoteChainSelector => RemoteChainConfig) internal s_remoteChainConfigs;
/// @notice A mapping of hashed pool addresses to their unhashed form. This is used to be able to find the actually
/// configured pools and not just their hashed versions.
mapping(bytes32 poolAddressHash => bytes poolAddress) internal s_remotePoolAddresses;
/// @notice The address of the rate limiter admin.
/// @dev Can be address(0) if none is configured.
address internal s_rateLimitAdmin;
constructor(IERC20 token, uint8 localTokenDecimals, address[] memory allowlist, address rmnProxy, address router) {
if (address(token) == address(0) || router == address(0) || rmnProxy == address(0)) revert ZeroAddressNotAllowed();
i_token = token;
i_rmnProxy = rmnProxy;
try IERC20Metadata(address(token)).decimals() returns (uint8 actualTokenDecimals) {
if (localTokenDecimals != actualTokenDecimals) {
revert InvalidDecimalArgs(localTokenDecimals, actualTokenDecimals);
}
} catch {
// The decimals function doesn't exist, which is possible since it's optional in the ERC20 spec. We skip the check and
// assume the supplied token decimals are correct.
}
i_tokenDecimals = localTokenDecimals;
s_router = IRouter(router);
// Pool can be set as permissioned or permissionless at deployment time only to save hot-path gas.
i_allowlistEnabled = allowlist.length > 0;
if (i_allowlistEnabled) {
_applyAllowListUpdates(new address[](0), allowlist);
}
}
/// @inheritdoc IPoolV1
function isSupportedToken(
address token
) public view virtual returns (bool) {
return token == address(i_token);
}
/// @notice Gets the IERC20 token that this pool can lock or burn.
/// @return token The IERC20 token representation.
function getToken() public view returns (IERC20 token) {
return i_token;
}
/// @notice Get RMN proxy address
/// @return rmnProxy Address of RMN proxy
function getRmnProxy() public view returns (address rmnProxy) {
return i_rmnProxy;
}
/// @notice Gets the pool's Router
/// @return router The pool's Router
function getRouter() public view returns (address router) {
return address(s_router);
}
/// @notice Sets the pool's Router
/// @param newRouter The new Router
function setRouter(
address newRouter
) public onlyOwner {
if (newRouter == address(0)) revert ZeroAddressNotAllowed();
address oldRouter = address(s_router);
s_router = IRouter(newRouter);
emit RouterUpdated(oldRouter, newRouter);
}
/// @notice Signals which version of the pool interface is supported
function supportsInterface(
bytes4 interfaceId
) public pure virtual override returns (bool) {
return interfaceId == Pool.CCIP_POOL_V1 || interfaceId == type(IPoolV1).interfaceId
|| interfaceId == type(IERC165).interfaceId;
}
// ================================================================
// │ Validation │
// ================================================================
/// @notice Validates the lock or burn input for correctness on
/// - token to be locked or burned
/// - RMN curse status
/// - allowlist status
/// - if the sender is a valid onRamp
/// - rate limit status
/// @param lockOrBurnIn The input to validate.
/// @dev This function should always be called before executing a lock or burn. Not doing so would allow
/// for various exploits.
function _validateLockOrBurn(
Pool.LockOrBurnInV1 calldata lockOrBurnIn
) internal {
if (!isSupportedToken(lockOrBurnIn.localToken)) revert InvalidToken(lockOrBurnIn.localToken);
if (IRMN(i_rmnProxy).isCursed(bytes16(uint128(lockOrBurnIn.remoteChainSelector)))) revert CursedByRMN();
_checkAllowList(lockOrBurnIn.originalSender);
_onlyOnRamp(lockOrBurnIn.remoteChainSelector);
_consumeOutboundRateLimit(lockOrBurnIn.remoteChainSelector, lockOrBurnIn.amount);
}
/// @notice Validates the release or mint input for correctness on
/// - token to be released or minted
/// - RMN curse status
/// - if the sender is a valid offRamp
/// - if the source pool is valid
/// - rate limit status
/// @param releaseOrMintIn The input to validate.
/// @dev This function should always be called before executing a release or mint. Not doing so would allow
/// for various exploits.
function _validateReleaseOrMint(
Pool.ReleaseOrMintInV1 calldata releaseOrMintIn
) internal {
if (!isSupportedToken(releaseOrMintIn.localToken)) revert InvalidToken(releaseOrMintIn.localToken);
if (IRMN(i_rmnProxy).isCursed(bytes16(uint128(releaseOrMintIn.remoteChainSelector)))) revert CursedByRMN();
_onlyOffRamp(releaseOrMintIn.remoteChainSelector);
// Validates that the source pool address is configured on this pool.
if (!isRemotePool(releaseOrMintIn.remoteChainSelector, releaseOrMintIn.sourcePoolAddress)) {
revert InvalidSourcePoolAddress(releaseOrMintIn.sourcePoolAddress);
}
_consumeInboundRateLimit(releaseOrMintIn.remoteChainSelector, releaseOrMintIn.amount);
}
// ================================================================
// │ Token decimals │
// ================================================================
/// @notice Gets the IERC20 token decimals on the local chain.
function getTokenDecimals() public view virtual returns (uint8 decimals) {
return i_tokenDecimals;
}
function _encodeLocalDecimals() internal view virtual returns (bytes memory) {
return abi.encode(i_tokenDecimals);
}
function _parseRemoteDecimals(
bytes memory sourcePoolData
) internal view virtual returns (uint8) {
// Fallback to the local token decimals if the source pool data is empty. This allows for backwards compatibility.
if (sourcePoolData.length == 0) {
return i_tokenDecimals;
}
if (sourcePoolData.length != 32) {
revert InvalidRemoteChainDecimals(sourcePoolData);
}
uint256 remoteDecimals = abi.decode(sourcePoolData, (uint256));
if (remoteDecimals > type(uint8).max) {
revert InvalidRemoteChainDecimals(sourcePoolData);
}
return uint8(remoteDecimals);
}
/// @notice Calculates the local amount based on the remote amount and decimals.
/// @param remoteAmount The amount on the remote chain.
/// @param remoteDecimals The decimals of the token on the remote chain.
/// @return The local amount.
/// @dev This function protects against overflows. If there is a transaction that hits the overflow check, it is
/// probably incorrect as that means the amount cannot be represented on this chain. If the local decimals have been
/// wrongly configured, the token issuer could redeploy the pool with the correct decimals and manually re-execute the
/// CCIP tx to fix the issue.
function _calculateLocalAmount(uint256 remoteAmount, uint8 remoteDecimals) internal view virtual returns (uint256) {
if (remoteDecimals == i_tokenDecimals) {
return remoteAmount;
}
if (remoteDecimals > i_tokenDecimals) {
uint8 decimalsDiff = remoteDecimals - i_tokenDecimals;
if (decimalsDiff > 77) {
// This is a safety check to prevent overflow in the next calculation.
revert OverflowDetected(remoteDecimals, i_tokenDecimals, remoteAmount);
}
// Solidity rounds down so there is no risk of minting more tokens than the remote chain sent.
return remoteAmount / (10 ** decimalsDiff);
}
// This is a safety check to prevent overflow in the next calculation.
// More than 77 would never fit in a uint256 and would cause an overflow. We also check if the resulting amount
// would overflow.
uint8 diffDecimals = i_tokenDecimals - remoteDecimals;
if (diffDecimals > 77 || remoteAmount > type(uint256).max / (10 ** diffDecimals)) {
revert OverflowDetected(remoteDecimals, i_tokenDecimals, remoteAmount);
}
return remoteAmount * (10 ** diffDecimals);
}
// ================================================================
// │ Chain permissions │
// ================================================================
/// @notice Gets the pool address on the remote chain.
/// @param remoteChainSelector Remote chain selector.
/// @dev To support non-evm chains, this value is encoded into bytes
function getRemotePools(
uint64 remoteChainSelector
) public view returns (bytes[] memory) {
bytes32[] memory remotePoolHashes = s_remoteChainConfigs[remoteChainSelector].remotePools.values();
bytes[] memory remotePools = new bytes[](remotePoolHashes.length);
for (uint256 i = 0; i < remotePoolHashes.length; ++i) {
remotePools[i] = s_remotePoolAddresses[remotePoolHashes[i]];
}
return remotePools;
}
/// @notice Checks if the pool address is configured on the remote chain.
/// @param remoteChainSelector Remote chain selector.
/// @param remotePoolAddress The address of the remote pool.
function isRemotePool(uint64 remoteChainSelector, bytes calldata remotePoolAddress) public view returns (bool) {
return s_remoteChainConfigs[remoteChainSelector].remotePools.contains(keccak256(remotePoolAddress));
}
/// @notice Gets the token address on the remote chain.
/// @param remoteChainSelector Remote chain selector.
/// @dev To support non-evm chains, this value is encoded into bytes
function getRemoteToken(
uint64 remoteChainSelector
) public view returns (bytes memory) {
return s_remoteChainConfigs[remoteChainSelector].remoteTokenAddress;
}
/// @notice Adds a remote pool for a given chain selector. This could be due to a pool being upgraded on the remote
/// chain. We don't simply want to replace the old pool as there could still be valid inflight messages from the old
/// pool. This function allows for multiple pools to be added for a single chain selector.
/// @param remoteChainSelector The remote chain selector for which the remote pool address is being added.
/// @param remotePoolAddress The address of the new remote pool.
function addRemotePool(uint64 remoteChainSelector, bytes calldata remotePoolAddress) external onlyOwner {
if (!isSupportedChain(remoteChainSelector)) revert NonExistentChain(remoteChainSelector);
_setRemotePool(remoteChainSelector, remotePoolAddress);
}
/// @notice Removes the remote pool address for a given chain selector.
/// @dev All inflight txs from the remote pool will be rejected after it is removed. To ensure no loss of funds, there
/// should be no inflight txs from the given pool.
function removeRemotePool(uint64 remoteChainSelector, bytes calldata remotePoolAddress) external onlyOwner {
if (!isSupportedChain(remoteChainSelector)) revert NonExistentChain(remoteChainSelector);
if (!s_remoteChainConfigs[remoteChainSelector].remotePools.remove(keccak256(remotePoolAddress))) {
revert InvalidRemotePoolForChain(remoteChainSelector, remotePoolAddress);
}
emit RemotePoolRemoved(remoteChainSelector, remotePoolAddress);
}
/// @inheritdoc IPoolV1
function isSupportedChain(
uint64 remoteChainSelector
) public view returns (bool) {
return s_remoteChainSelectors.contains(remoteChainSelector);
}
/// @notice Get list of allowed chains
/// @return list of chains.
function getSupportedChains() public view returns (uint64[] memory) {
uint256[] memory uint256ChainSelectors = s_remoteChainSelectors.values();
uint64[] memory chainSelectors = new uint64[](uint256ChainSelectors.length);
for (uint256 i = 0; i < uint256ChainSelectors.length; ++i) {
chainSelectors[i] = uint64(uint256ChainSelectors[i]);
}
return chainSelectors;
}
/// @notice Sets the permissions for a list of chains selectors. Actual senders for these chains
/// need to be allowed on the Router to interact with this pool.
/// @param remoteChainSelectorsToRemove A list of chain selectors to remove.
/// @param chainsToAdd A list of chains and their new permission status & rate limits. Rate limits
/// are only used when the chain is being added through `allowed` being true.
/// @dev Only callable by the owner
function applyChainUpdates(
uint64[] calldata remoteChainSelectorsToRemove,
ChainUpdate[] calldata chainsToAdd
) external virtual onlyOwner {
for (uint256 i = 0; i < remoteChainSelectorsToRemove.length; ++i) {
uint64 remoteChainSelectorToRemove = remoteChainSelectorsToRemove[i];
// If the chain doesn't exist, revert
if (!s_remoteChainSelectors.remove(remoteChainSelectorToRemove)) {
revert NonExistentChain(remoteChainSelectorToRemove);
}
// Remove all remote pool hashes for the chain
bytes32[] memory remotePools = s_remoteChainConfigs[remoteChainSelectorToRemove].remotePools.values();
for (uint256 j = 0; j < remotePools.length; ++j) {
s_remoteChainConfigs[remoteChainSelectorToRemove].remotePools.remove(remotePools[j]);
}
delete s_remoteChainConfigs[remoteChainSelectorToRemove];
emit ChainRemoved(remoteChainSelectorToRemove);
}
for (uint256 i = 0; i < chainsToAdd.length; ++i) {
ChainUpdate memory newChain = chainsToAdd[i];
RateLimiter._validateTokenBucketConfig(newChain.outboundRateLimiterConfig, false);
RateLimiter._validateTokenBucketConfig(newChain.inboundRateLimiterConfig, false);
if (newChain.remoteTokenAddress.length == 0) {
revert ZeroAddressNotAllowed();
}
// If the chain already exists, revert
if (!s_remoteChainSelectors.add(newChain.remoteChainSelector)) {
revert ChainAlreadyExists(newChain.remoteChainSelector);
}
RemoteChainConfig storage remoteChainConfig = s_remoteChainConfigs[newChain.remoteChainSelector];
remoteChainConfig.outboundRateLimiterConfig = RateLimiter.TokenBucket({
rate: newChain.outboundRateLimiterConfig.rate,
capacity: newChain.outboundRateLimiterConfig.capacity,
tokens: newChain.outboundRateLimiterConfig.capacity,
lastUpdated: uint32(block.timestamp),
isEnabled: newChain.outboundRateLimiterConfig.isEnabled
});
remoteChainConfig.inboundRateLimiterConfig = RateLimiter.TokenBucket({
rate: newChain.inboundRateLimiterConfig.rate,
capacity: newChain.inboundRateLimiterConfig.capacity,
tokens: newChain.inboundRateLimiterConfig.capacity,
lastUpdated: uint32(block.timestamp),
isEnabled: newChain.inboundRateLimiterConfig.isEnabled
});
remoteChainConfig.remoteTokenAddress = newChain.remoteTokenAddress;
for (uint256 j = 0; j < newChain.remotePoolAddresses.length; ++j) {
_setRemotePool(newChain.remoteChainSelector, newChain.remotePoolAddresses[j]);
}
emit ChainAdded(
newChain.remoteChainSelector,
newChain.remoteTokenAddress,
newChain.outboundRateLimiterConfig,
newChain.inboundRateLimiterConfig
);
}
}
/// @notice Adds a pool address to the allowed remote token pools for a particular chain.
/// @param remoteChainSelector The remote chain selector for which the remote pool address is being added.
/// @param remotePoolAddress The address of the new remote pool.
function _setRemotePool(uint64 remoteChainSelector, bytes memory remotePoolAddress) internal {
if (remotePoolAddress.length == 0) {
revert ZeroAddressNotAllowed();
}
bytes32 poolHash = keccak256(remotePoolAddress);
// Check if the pool already exists.
if (!s_remoteChainConfigs[remoteChainSelector].remotePools.add(poolHash)) {
revert PoolAlreadyAdded(remoteChainSelector, remotePoolAddress);
}
// Add the pool to the mapping to be able to un-hash it later.
s_remotePoolAddresses[poolHash] = remotePoolAddress;
emit RemotePoolAdded(remoteChainSelector, remotePoolAddress);
}
// ================================================================
// │ Rate limiting │
// ================================================================
/// @dev The inbound rate limits should be slightly higher than the outbound rate limits. This is because many chains
/// finalize blocks in batches. CCIP also commits messages in batches: the commit plugin bundles multiple messages in
/// a single merkle root.
/// Imagine the following scenario.
/// - Chain A has an inbound and outbound rate limit of 100 tokens capacity and 1 token per second refill rate.
/// - Chain B has an inbound and outbound rate limit of 100 tokens capacity and 1 token per second refill rate.
///
/// At time 0:
/// - Chain A sends 100 tokens to Chain B.
/// At time 5:
/// - Chain A sends 5 tokens to Chain B.
/// At time 6:
/// The epoch that contains blocks [0-5] is finalized.
/// Both transactions will be included in the same merkle root and become executable at the same time. This means
/// the token pool on chain B requires a capacity of 105 to successfully execute both messages at the same time.
/// The exact additional capacity required depends on the refill rate and the size of the source chain epochs and the
/// CCIP round time. For simplicity, a 5-10% buffer should be sufficient in most cases.
/// @notice Sets the rate limiter admin address.
/// @dev Only callable by the owner.
/// @param rateLimitAdmin The new rate limiter admin address.
function setRateLimitAdmin(
address rateLimitAdmin
) external onlyOwner {
s_rateLimitAdmin = rateLimitAdmin;
emit RateLimitAdminSet(rateLimitAdmin);
}
/// @notice Gets the rate limiter admin address.
function getRateLimitAdmin() external view returns (address) {
return s_rateLimitAdmin;
}
/// @notice Consumes outbound rate limiting capacity in this pool
function _consumeOutboundRateLimit(uint64 remoteChainSelector, uint256 amount) internal {
s_remoteChainConfigs[remoteChainSelector].outboundRateLimiterConfig._consume(amount, address(i_token));
}
/// @notice Consumes inbound rate limiting capacity in this pool
function _consumeInboundRateLimit(uint64 remoteChainSelector, uint256 amount) internal {
s_remoteChainConfigs[remoteChainSelector].inboundRateLimiterConfig._consume(amount, address(i_token));
}
/// @notice Gets the token bucket with its values for the block it was requested at.
/// @return The token bucket.
function getCurrentOutboundRateLimiterState(
uint64 remoteChainSelector
) external view returns (RateLimiter.TokenBucket memory) {
return s_remoteChainConfigs[remoteChainSelector].outboundRateLimiterConfig._currentTokenBucketState();
}
/// @notice Gets the token bucket with its values for the block it was requested at.
/// @return The token bucket.
function getCurrentInboundRateLimiterState(
uint64 remoteChainSelector
) external view returns (RateLimiter.TokenBucket memory) {
return s_remoteChainConfigs[remoteChainSelector].inboundRateLimiterConfig._currentTokenBucketState();
}
/// @notice Sets multiple chain rate limiter configs.
/// @param remoteChainSelectors The remote chain selector for which the rate limits apply.
/// @param outboundConfigs The new outbound rate limiter config, meaning the onRamp rate limits for the given chain.
/// @param inboundConfigs The new inbound rate limiter config, meaning the offRamp rate limits for the given chain.
function setChainRateLimiterConfigs(
uint64[] calldata remoteChainSelectors,
RateLimiter.Config[] calldata outboundConfigs,
RateLimiter.Config[] calldata inboundConfigs
) external {
if (msg.sender != s_rateLimitAdmin && msg.sender != owner()) revert Unauthorized(msg.sender);
if (remoteChainSelectors.length != outboundConfigs.length || remoteChainSelectors.length != inboundConfigs.length) {
revert MismatchedArrayLengths();
}
for (uint256 i = 0; i < remoteChainSelectors.length; ++i) {
_setRateLimitConfig(remoteChainSelectors[i], outboundConfigs[i], inboundConfigs[i]);
}
}
/// @notice Sets the chain rate limiter config.
/// @param remoteChainSelector The remote chain selector for which the rate limits apply.
/// @param outboundConfig The new outbound rate limiter config, meaning the onRamp rate limits for the given chain.
/// @param inboundConfig The new inbound rate limiter config, meaning the offRamp rate limits for the given chain.
function setChainRateLimiterConfig(
uint64 remoteChainSelector,
RateLimiter.Config memory outboundConfig,
RateLimiter.Config memory inboundConfig
) external {
if (msg.sender != s_rateLimitAdmin && msg.sender != owner()) revert Unauthorized(msg.sender);
_setRateLimitConfig(remoteChainSelector, outboundConfig, inboundConfig);
}
function _setRateLimitConfig(
uint64 remoteChainSelector,
RateLimiter.Config memory outboundConfig,
RateLimiter.Config memory inboundConfig
) internal {
if (!isSupportedChain(remoteChainSelector)) revert NonExistentChain(remoteChainSelector);
RateLimiter._validateTokenBucketConfig(outboundConfig, false);
s_remoteChainConfigs[remoteChainSelector].outboundRateLimiterConfig._setTokenBucketConfig(outboundConfig);
RateLimiter._validateTokenBucketConfig(inboundConfig, false);
s_remoteChainConfigs[remoteChainSelector].inboundRateLimiterConfig._setTokenBucketConfig(inboundConfig);
emit ChainConfigured(remoteChainSelector, outboundConfig, inboundConfig);
}
// ================================================================
// │ Access │
// ================================================================
/// @notice Checks whether remote chain selector is configured on this contract, and if the msg.sender
/// is a permissioned onRamp for the given chain on the Router.
function _onlyOnRamp(
uint64 remoteChainSelector
) internal view {
if (!isSupportedChain(remoteChainSelector)) revert ChainNotAllowed(remoteChainSelector);
if (!(msg.sender == s_router.getOnRamp(remoteChainSelector))) revert CallerIsNotARampOnRouter(msg.sender);
}
/// @notice Checks whether remote chain selector is configured on this contract, and if the msg.sender
/// is a permissioned offRamp for the given chain on the Router.
function _onlyOffRamp(
uint64 remoteChainSelector
) internal view {
if (!isSupportedChain(remoteChainSelector)) revert ChainNotAllowed(remoteChainSelector);
if (!s_router.isOffRamp(remoteChainSelector, msg.sender)) revert CallerIsNotARampOnRouter(msg.sender);
}
// ================================================================
// │ Allowlist │
// ================================================================
function _checkAllowList(
address sender
) internal view {
if (i_allowlistEnabled) {
if (!s_allowlist.contains(sender)) {
revert SenderNotAllowed(sender);
}
}
}
/// @notice Gets whether the allowlist functionality is enabled.
/// @return true is enabled, false if not.
function getAllowListEnabled() external view returns (bool) {
return i_allowlistEnabled;
}
/// @notice Gets the allowed addresses.
/// @return The allowed addresses.
function getAllowList() external view returns (address[] memory) {
return s_allowlist.values();
}
/// @notice Apply updates to the allow list.
/// @param removes The addresses to be removed.
/// @param adds The addresses to be added.
function applyAllowListUpdates(address[] calldata removes, address[] calldata adds) external onlyOwner {
_applyAllowListUpdates(removes, adds);
}
/// @notice Internal version of applyAllowListUpdates to allow for reuse in the constructor.
function _applyAllowListUpdates(address[] memory removes, address[] memory adds) internal {
if (!i_allowlistEnabled) revert AllowListNotEnabled();
for (uint256 i = 0; i < removes.length; ++i) {
address toRemove = removes[i];
if (s_allowlist.remove(toRemove)) {
emit AllowListRemove(toRemove);
}
}
for (uint256 i = 0; i < adds.length; ++i) {
address toAdd = adds[i];
if (toAdd == address(0)) {
continue;
}
if (s_allowlist.add(toAdd)) {
emit AllowListAdd(toAdd);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @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 amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` 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 amount) 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 `amount` 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 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` 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 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @notice This library contains various token pool functions to aid constructing the return data.
library Pool {
// The tag used to signal support for the pool v1 standard
// bytes4(keccak256("CCIP_POOL_V1"))
bytes4 public constant CCIP_POOL_V1 = 0xaff2afbf;
// The number of bytes in the return data for a pool v1 releaseOrMint call.
// This should match the size of the ReleaseOrMintOutV1 struct.
uint16 public constant CCIP_POOL_V1_RET_BYTES = 32;
// The default max number of bytes in the return data for a pool v1 lockOrBurn call.
// This data can be used to send information to the destination chain token pool. Can be overwritten
// in the TokenTransferFeeConfig.destBytesOverhead if more data is required.
uint32 public constant CCIP_LOCK_OR_BURN_V1_RET_BYTES = 32;
struct LockOrBurnInV1 {
bytes receiver; // The recipient of the tokens on the destination chain, abi encoded
uint64 remoteChainSelector; // ─╮ The chain ID of the destination chain
address originalSender; // ─────╯ The original sender of the tx on the source chain
uint256 amount; // The amount of tokens to lock or burn, denominated in the source token's decimals
address localToken; // The address on this chain of the token to lock or burn
}
struct LockOrBurnOutV1 {
// The address of the destination token, abi encoded in the case of EVM chains
// This value is UNTRUSTED as any pool owner can return whatever value they want.
bytes destTokenAddress;
// Optional pool data to be transferred to the destination chain. Be default this is capped at
// CCIP_LOCK_OR_BURN_V1_RET_BYTES bytes. If more data is required, the TokenTransferFeeConfig.destBytesOverhead
// has to be set for the specific token.
bytes destPoolData;
}
struct ReleaseOrMintInV1 {
bytes originalSender; // The original sender of the tx on the source chain
uint64 remoteChainSelector; // ─╮ The chain ID of the source chain
address receiver; // ───────────╯ The recipient of the tokens on the destination chain.
uint256 amount; // The amount of tokens to release or mint, denominated in the source token's decimals
address localToken; // The address on this chain of the token to release or mint
/// @dev WARNING: sourcePoolAddress should be checked prior to any processing of funds. Make sure it matches the
/// expected pool address for the given remoteChainSelector.
bytes sourcePoolAddress; // The address of the source pool, abi encoded in the case of EVM chains
bytes sourcePoolData; // The data received from the source pool to process the release or mint
/// @dev WARNING: offchainTokenData is untrusted data.
bytes offchainTokenData; // The offchain data to process the release or mint
}
struct ReleaseOrMintOutV1 {
// The number of tokens released or minted on the destination chain, denominated in the local token's decimals.
// This value is expected to be equal to the ReleaseOrMintInV1.amount in the case where the source and destination
// chain have the same number of decimals.
uint256 destinationAmount;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {Pool} from "../libraries/Pool.sol";
import {IERC165} from "../../vendor/openzeppelin-solidity/v5.0.2/contracts/utils/introspection/IERC165.sol";
/// @notice Shared public interface for multiple V1 pool types.
/// Each pool type handles a different child token model (lock/unlock, mint/burn.)
interface IPoolV1 is IERC165 {
/// @notice Lock tokens into the pool or burn the tokens.
/// @param lockOrBurnIn Encoded data fields for the processing of tokens on the source chain.
/// @return lockOrBurnOut Encoded data fields for the processing of tokens on the destination chain.
function lockOrBurn(
Pool.LockOrBurnInV1 calldata lockOrBurnIn
) external returns (Pool.LockOrBurnOutV1 memory lockOrBurnOut);
/// @notice Releases or mints tokens to the receiver address.
/// @param releaseOrMintIn All data required to release or mint tokens.
/// @return releaseOrMintOut The amount of tokens released or minted on the local chain, denominated
/// in the local token's decimals.
/// @dev The offramp asserts that the balanceOf of the receiver has been incremented by exactly the number
/// of tokens that is returned in ReleaseOrMintOutV1.destinationAmount. If the amounts do not match, the tx reverts.
function releaseOrMint(
Pool.ReleaseOrMintInV1 calldata releaseOrMintIn
) external returns (Pool.ReleaseOrMintOutV1 memory);
/// @notice Checks whether a remote chain is supported in the token pool.
/// @param remoteChainSelector The selector of the remote chain.
/// @return true if the given chain is a permissioned remote chain.
function isSupportedChain(
uint64 remoteChainSelector
) external view returns (bool);
/// @notice Returns if the token pool supports the given token.
/// @param token The address of the token.
/// @return true if the token is supported by the pool.
function isSupportedToken(
address token
) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/// @notice This interface contains the only RMN-related functions that might be used on-chain by other CCIP contracts.
interface IRMN {
/// @notice A Merkle root tagged with the address of the commit store contract it is destined for.
struct TaggedRoot {
address commitStore;
bytes32 root;
}
/// @notice Callers MUST NOT cache the return value as a blessed tagged root could become unblessed.
function isBlessed(
TaggedRoot calldata taggedRoot
) external view returns (bool);
/// @notice Iff there is an active global or legacy curse, this function returns true.
function isCursed() external view returns (bool);
/// @notice Iff there is an active global curse, or an active curse for `subject`, this function returns true.
/// @param subject To check whether a particular chain is cursed, set to bytes16(uint128(chainSelector)).
function isCursed(
bytes16 subject
) external view returns (bool);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {Client} from "../libraries/Client.sol";
interface IRouter {
error OnlyOffRamp();
/// @notice Route the message to its intended receiver contract.
/// @param message Client.Any2EVMMessage struct.
/// @param gasForCallExactCheck of params for exec
/// @param gasLimit set of params for exec
/// @param receiver set of params for exec
/// @dev if the receiver is a contracts that signals support for CCIP execution through EIP-165.
/// the contract is called. If not, only tokens are transferred.
/// @return success A boolean value indicating whether the ccip message was received without errors.
/// @return retBytes A bytes array containing return data form CCIP receiver.
/// @return gasUsed the gas used by the external customer call. Does not include any overhead.
function routeMessage(
Client.Any2EVMMessage calldata message,
uint16 gasForCallExactCheck,
uint256 gasLimit,
address receiver
) external returns (bool success, bytes memory retBytes, uint256 gasUsed);
/// @notice Returns the configured onramp for a specific destination chain.
/// @param destChainSelector The destination chain Id to get the onRamp for.
/// @return onRampAddress The address of the onRamp.
function getOnRamp(
uint64 destChainSelector
) external view returns (address onRampAddress);
/// @notice Return true if the given offRamp is a configured offRamp for the given source chain.
/// @param sourceChainSelector The source chain selector to check.
/// @param offRamp The address of the offRamp to check.
function isOffRamp(uint64 sourceChainSelector, address offRamp) external view returns (bool isOffRamp);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import {Ownable2Step} from "./Ownable2Step.sol";
/// @notice Sets the msg.sender to be the owner of the contract and does not set a pending owner.
contract Ownable2StepMsgSender is Ownable2Step {
constructor() Ownable2Step(msg.sender, address(0)) {}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.4;
/// @notice Implements Token Bucket rate limiting.
/// @dev uint128 is safe for rate limiter state.
/// For USD value rate limiting, it can adequately store USD value in 18 decimals.
/// For ERC20 token amount rate limiting, all tokens that will be listed will have at most
/// a supply of uint128.max tokens, and it will therefore not overflow the bucket.
/// In exceptional scenarios where tokens consumed may be larger than uint128,
/// e.g. compromised issuer, an enabled RateLimiter will check and revert.
library RateLimiter {
error BucketOverfilled();
error OnlyCallableByAdminOrOwner();
error TokenMaxCapacityExceeded(uint256 capacity, uint256 requested, address tokenAddress);
error TokenRateLimitReached(uint256 minWaitInSeconds, uint256 available, address tokenAddress);
error AggregateValueMaxCapacityExceeded(uint256 capacity, uint256 requested);
error AggregateValueRateLimitReached(uint256 minWaitInSeconds, uint256 available);
error InvalidRateLimitRate(Config rateLimiterConfig);
error DisabledNonZeroRateLimit(Config config);
error RateLimitMustBeDisabled();
event TokensConsumed(uint256 tokens);
event ConfigChanged(Config config);
struct TokenBucket {
uint128 tokens; // ──────╮ Current number of tokens that are in the bucket.
uint32 lastUpdated; // │ Timestamp in seconds of the last token refill, good for 100+ years.
bool isEnabled; // ──────╯ Indication whether the rate limiting is enabled or not
uint128 capacity; // ────╮ Maximum number of tokens that can be in the bucket.
uint128 rate; // ────────╯ Number of tokens per second that the bucket is refilled.
}
struct Config {
bool isEnabled; // Indication whether the rate limiting should be enabled
uint128 capacity; // ────╮ Specifies the capacity of the rate limiter
uint128 rate; // ───────╯ Specifies the rate of the rate limiter
}
/// @notice _consume removes the given tokens from the pool, lowering the
/// rate tokens allowed to be consumed for subsequent calls.
/// @param requestTokens The total tokens to be consumed from the bucket.
/// @param tokenAddress The token to consume capacity for, use 0x0 to indicate aggregate value capacity.
/// @dev Reverts when requestTokens exceeds bucket capacity or available tokens in the bucket
/// @dev emits removal of requestTokens if requestTokens is > 0
function _consume(TokenBucket storage s_bucket, uint256 requestTokens, address tokenAddress) internal {
// If there is no value to remove or rate limiting is turned off, skip this step to reduce gas usage
if (!s_bucket.isEnabled || requestTokens == 0) {
return;
}
uint256 tokens = s_bucket.tokens;
uint256 capacity = s_bucket.capacity;
uint256 timeDiff = block.timestamp - s_bucket.lastUpdated;
if (timeDiff != 0) {
if (tokens > capacity) revert BucketOverfilled();
// Refill tokens when arriving at a new block time
tokens = _calculateRefill(capacity, tokens, timeDiff, s_bucket.rate);
s_bucket.lastUpdated = uint32(block.timestamp);
}
if (capacity < requestTokens) {
// Token address 0 indicates consuming aggregate value rate limit capacity.
if (tokenAddress == address(0)) revert AggregateValueMaxCapacityExceeded(capacity, requestTokens);
revert TokenMaxCapacityExceeded(capacity, requestTokens, tokenAddress);
}
if (tokens < requestTokens) {
uint256 rate = s_bucket.rate;
// Wait required until the bucket is refilled enough to accept this value, round up to next higher second
// Consume is not guaranteed to succeed after wait time passes if there is competing traffic.
// This acts as a lower bound of wait time.
uint256 minWaitInSeconds = ((requestTokens - tokens) + (rate - 1)) / rate;
if (tokenAddress == address(0)) revert AggregateValueRateLimitReached(minWaitInSeconds, tokens);
revert TokenRateLimitReached(minWaitInSeconds, tokens, tokenAddress);
}
tokens -= requestTokens;
// Downcast is safe here, as tokens is not larger than capacity
s_bucket.tokens = uint128(tokens);
emit TokensConsumed(requestTokens);
}
/// @notice Gets the token bucket with its values for the block it was requested at.
/// @return The token bucket.
function _currentTokenBucketState(
TokenBucket memory bucket
) internal view returns (TokenBucket memory) {
// We update the bucket to reflect the status at the exact time of the
// call. This means we might need to refill a part of the bucket based
// on the time that has passed since the last update.
bucket.tokens =
uint128(_calculateRefill(bucket.capacity, bucket.tokens, block.timestamp - bucket.lastUpdated, bucket.rate));
bucket.lastUpdated = uint32(block.timestamp);
return bucket;
}
/// @notice Sets the rate limited config.
/// @param s_bucket The token bucket
/// @param config The new config
function _setTokenBucketConfig(TokenBucket storage s_bucket, Config memory config) internal {
// First update the bucket to make sure the proper rate is used for all the time
// up until the config change.
uint256 timeDiff = block.timestamp - s_bucket.lastUpdated;
if (timeDiff != 0) {
s_bucket.tokens = uint128(_calculateRefill(s_bucket.capacity, s_bucket.tokens, timeDiff, s_bucket.rate));
s_bucket.lastUpdated = uint32(block.timestamp);
}
s_bucket.tokens = uint128(_min(config.capacity, s_bucket.tokens));
s_bucket.isEnabled = config.isEnabled;
s_bucket.capacity = config.capacity;
s_bucket.rate = config.rate;
emit ConfigChanged(config);
}
/// @notice Validates the token bucket config
function _validateTokenBucketConfig(Config memory config, bool mustBeDisabled) internal pure {
if (config.isEnabled) {
if (config.rate >= config.capacity || config.rate == 0) {
revert InvalidRateLimitRate(config);
}
if (mustBeDisabled) {
revert RateLimitMustBeDisabled();
}
} else {
if (config.rate != 0 || config.capacity != 0) {
revert DisabledNonZeroRateLimit(config);
}
}
}
/// @notice Calculate refilled tokens
/// @param capacity bucket capacity
/// @param tokens current bucket tokens
/// @param timeDiff block time difference since last refill
/// @param rate bucket refill rate
/// @return the value of tokens after refill
function _calculateRefill(
uint256 capacity,
uint256 tokens,
uint256 timeDiff,
uint256 rate
) private pure returns (uint256) {
return _min(capacity, tokens + timeDiff * rate);
}
/// @notice Return the smallest of two integers
/// @param a first int
/// @param b second int
/// @return smallest
function _min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*
* _Available since v4.1._
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.
pragma solidity ^0.8.20;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```solidity
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*
* [WARNING]
* ====
* Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
* unusable.
* See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
*
* In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
* array of EnumerableSet.
* ====
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position is the index of the value in the `values` array plus 1.
// Position 0 is used to mean a value is not in the set.
mapping(bytes32 value => uint256) _positions;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._positions[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We cache the value's position to prevent multiple reads from the same storage slot
uint256 position = set._positions[value];
if (position != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 valueIndex = position - 1;
uint256 lastIndex = set._values.length - 1;
if (valueIndex != lastIndex) {
bytes32 lastValue = set._values[lastIndex];
// Move the lastValue to the index where the value to delete is
set._values[valueIndex] = lastValue;
// Update the tracked position of the lastValue (that was just moved)
set._positions[lastValue] = position;
}
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the tracked position for the deleted slot
delete set._positions[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._positions[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
bytes32[] memory store = _values(set._inner);
bytes32[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(AddressSet storage set) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(UintSet storage set) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// End consumer library.
library Client {
/// @dev RMN depends on this struct, if changing, please notify the RMN maintainers.
struct EVMTokenAmount {
address token; // token address on the local chain.
uint256 amount; // Amount of tokens.
}
struct Any2EVMMessage {
bytes32 messageId; // MessageId corresponding to ccipSend on source.
uint64 sourceChainSelector; // Source chain selector.
bytes sender; // abi.decode(sender) if coming from an EVM chain.
bytes data; // payload sent in original message.
EVMTokenAmount[] destTokenAmounts; // Tokens and their amounts in their destination chain representation.
}
// If extraArgs is empty bytes, the default is 200k gas limit.
struct EVM2AnyMessage {
bytes receiver; // abi.encode(receiver address) for dest EVM chains
bytes data; // Data payload
EVMTokenAmount[] tokenAmounts; // Token transfers
address feeToken; // Address of feeToken. address(0) means you will send msg.value.
bytes extraArgs; // Populate this with _argsToBytes(EVMExtraArgsV2)
}
// bytes4(keccak256("CCIP EVMExtraArgsV1"));
bytes4 public constant EVM_EXTRA_ARGS_V1_TAG = 0x97a657c9;
struct EVMExtraArgsV1 {
uint256 gasLimit;
}
function _argsToBytes(
EVMExtraArgsV1 memory extraArgs
) internal pure returns (bytes memory bts) {
return abi.encodeWithSelector(EVM_EXTRA_ARGS_V1_TAG, extraArgs);
}
// bytes4(keccak256("CCIP EVMExtraArgsV2"));
bytes4 public constant EVM_EXTRA_ARGS_V2_TAG = 0x181dcf10;
/// @param gasLimit: gas limit for the callback on the destination chain.
/// @param allowOutOfOrderExecution: if true, it indicates that the message can be executed in any order relative to other messages from the same sender.
/// This value's default varies by chain. On some chains, a particular value is enforced, meaning if the expected value
/// is not set, the message request will revert.
struct EVMExtraArgsV2 {
uint256 gasLimit;
bool allowOutOfOrderExecution;
}
function _argsToBytes(
EVMExtraArgsV2 memory extraArgs
) internal pure returns (bytes memory bts) {
return abi.encodeWithSelector(EVM_EXTRA_ARGS_V2_TAG, extraArgs);
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import {IOwnable} from "../interfaces/IOwnable.sol";
/// @notice A minimal contract that implements 2-step ownership transfer and nothing more. It's made to be minimal
/// to reduce the impact of the bytecode size on any contract that inherits from it.
contract Ownable2Step is IOwnable {
/// @notice The pending owner is the address to which ownership may be transferred.
address private s_pendingOwner;
/// @notice The owner is the current owner of the contract.
/// @dev The owner is the second storage variable so any implementing contract could pack other state with it
/// instead of the much less used s_pendingOwner.
address private s_owner;
error OwnerCannotBeZero();
error MustBeProposedOwner();
error CannotTransferToSelf();
error OnlyCallableByOwner();
event OwnershipTransferRequested(address indexed from, address indexed to);
event OwnershipTransferred(address indexed from, address indexed to);
constructor(address newOwner, address pendingOwner) {
if (newOwner == address(0)) {
revert OwnerCannotBeZero();
}
s_owner = newOwner;
if (pendingOwner != address(0)) {
_transferOwnership(pendingOwner);
}
}
/// @notice Get the current owner
function owner() public view override returns (address) {
return s_owner;
}
/// @notice Allows an owner to begin transferring ownership to a new address. The new owner needs to call
/// `acceptOwnership` to accept the transfer before any permissions are changed.
/// @param to The address to which ownership will be transferred.
function transferOwnership(address to) public override onlyOwner {
_transferOwnership(to);
}
/// @notice validate, transfer ownership, and emit relevant events
/// @param to The address to which ownership will be transferred.
function _transferOwnership(address to) private {
if (to == msg.sender) {
revert CannotTransferToSelf();
}
s_pendingOwner = to;
emit OwnershipTransferRequested(s_owner, to);
}
/// @notice Allows an ownership transfer to be completed by the recipient.
function acceptOwnership() external override {
if (msg.sender != s_pendingOwner) {
revert MustBeProposedOwner();
}
address oldOwner = s_owner;
s_owner = msg.sender;
s_pendingOwner = address(0);
emit OwnershipTransferred(oldOwner, msg.sender);
}
/// @notice validate access
function _validateOwnership() internal view {
if (msg.sender != s_owner) {
revert OnlyCallableByOwner();
}
}
/// @notice Reverts if called by anyone other than the contract owner.
modifier onlyOwner() {
_validateOwnership();
_;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IOwnable {
function owner() external returns (address);
function transferOwnership(address recipient) external;
function acceptOwnership() external;
}{
"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 Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IBurnMintERC20","name":"token","type":"address"},{"internalType":"uint8","name":"localTokenDecimals","type":"uint8"},{"internalType":"address[]","name":"allowlist","type":"address[]"},{"internalType":"address","name":"rmnProxy","type":"address"},{"internalType":"address","name":"router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"capacity","type":"uint256"},{"internalType":"uint256","name":"requested","type":"uint256"}],"name":"AggregateValueMaxCapacityExceeded","type":"error"},{"inputs":[{"internalType":"uint256","name":"minWaitInSeconds","type":"uint256"},{"internalType":"uint256","name":"available","type":"uint256"}],"name":"AggregateValueRateLimitReached","type":"error"},{"inputs":[],"name":"AllowListNotEnabled","type":"error"},{"inputs":[],"name":"BucketOverfilled","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"CallerIsNotARampOnRouter","type":"error"},{"inputs":[],"name":"CannotTransferToSelf","type":"error"},{"inputs":[{"internalType":"uint64","name":"chainSelector","type":"uint64"}],"name":"ChainAlreadyExists","type":"error"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"}],"name":"ChainNotAllowed","type":"error"},{"inputs":[],"name":"CursedByRMN","type":"error"},{"inputs":[{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"internalType":"struct RateLimiter.Config","name":"config","type":"tuple"}],"name":"DisabledNonZeroRateLimit","type":"error"},{"inputs":[{"internalType":"uint8","name":"expected","type":"uint8"},{"internalType":"uint8","name":"actual","type":"uint8"}],"name":"InvalidDecimalArgs","type":"error"},{"inputs":[{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"internalType":"struct RateLimiter.Config","name":"rateLimiterConfig","type":"tuple"}],"name":"InvalidRateLimitRate","type":"error"},{"inputs":[{"internalType":"bytes","name":"sourcePoolData","type":"bytes"}],"name":"InvalidRemoteChainDecimals","type":"error"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"internalType":"bytes","name":"remotePoolAddress","type":"bytes"}],"name":"InvalidRemotePoolForChain","type":"error"},{"inputs":[{"internalType":"bytes","name":"sourcePoolAddress","type":"bytes"}],"name":"InvalidSourcePoolAddress","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"InvalidToken","type":"error"},{"inputs":[],"name":"MismatchedArrayLengths","type":"error"},{"inputs":[],"name":"MustBeProposedOwner","type":"error"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"}],"name":"NonExistentChain","type":"error"},{"inputs":[],"name":"OnlyCallableByOwner","type":"error"},{"inputs":[{"internalType":"uint8","name":"remoteDecimals","type":"uint8"},{"internalType":"uint8","name":"localDecimals","type":"uint8"},{"internalType":"uint256","name":"remoteAmount","type":"uint256"}],"name":"OverflowDetected","type":"error"},{"inputs":[],"name":"OwnerCannotBeZero","type":"error"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"internalType":"bytes","name":"remotePoolAddress","type":"bytes"}],"name":"PoolAlreadyAdded","type":"error"},{"inputs":[],"name":"RateLimitMustBeDisabled","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"SenderNotAllowed","type":"error"},{"inputs":[{"internalType":"uint256","name":"capacity","type":"uint256"},{"internalType":"uint256","name":"requested","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"TokenMaxCapacityExceeded","type":"error"},{"inputs":[{"internalType":"uint256","name":"minWaitInSeconds","type":"uint256"},{"internalType":"uint256","name":"available","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"TokenRateLimitReached","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"ZeroAddressNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"AllowListAdd","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"AllowListRemove","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"indexed":false,"internalType":"bytes","name":"remoteToken","type":"bytes"},{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"indexed":false,"internalType":"struct RateLimiter.Config","name":"outboundRateLimiterConfig","type":"tuple"},{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"indexed":false,"internalType":"struct RateLimiter.Config","name":"inboundRateLimiterConfig","type":"tuple"}],"name":"ChainAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"indexed":false,"internalType":"struct RateLimiter.Config","name":"outboundRateLimiterConfig","type":"tuple"},{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"indexed":false,"internalType":"struct RateLimiter.Config","name":"inboundRateLimiterConfig","type":"tuple"}],"name":"ChainConfigured","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"remoteChainSelector","type":"uint64"}],"name":"ChainRemoved","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"indexed":false,"internalType":"struct RateLimiter.Config","name":"config","type":"tuple"}],"name":"ConfigChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Locked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"OwnershipTransferRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"rateLimitAdmin","type":"address"}],"name":"RateLimitAdminSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Released","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"indexed":false,"internalType":"bytes","name":"remotePoolAddress","type":"bytes"}],"name":"RemotePoolAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"indexed":false,"internalType":"bytes","name":"remotePoolAddress","type":"bytes"}],"name":"RemotePoolRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldRouter","type":"address"},{"indexed":false,"internalType":"address","name":"newRouter","type":"address"}],"name":"RouterUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"TokensConsumed","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"internalType":"bytes","name":"remotePoolAddress","type":"bytes"}],"name":"addRemotePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"removes","type":"address[]"},{"internalType":"address[]","name":"adds","type":"address[]"}],"name":"applyAllowListUpdates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64[]","name":"remoteChainSelectorsToRemove","type":"uint64[]"},{"components":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"internalType":"bytes[]","name":"remotePoolAddresses","type":"bytes[]"},{"internalType":"bytes","name":"remoteTokenAddress","type":"bytes"},{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"internalType":"struct RateLimiter.Config","name":"outboundRateLimiterConfig","type":"tuple"},{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"internalType":"struct RateLimiter.Config","name":"inboundRateLimiterConfig","type":"tuple"}],"internalType":"struct TokenPool.ChainUpdate[]","name":"chainsToAdd","type":"tuple[]"}],"name":"applyChainUpdates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllowList","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllowListEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"}],"name":"getCurrentInboundRateLimiterState","outputs":[{"components":[{"internalType":"uint128","name":"tokens","type":"uint128"},{"internalType":"uint32","name":"lastUpdated","type":"uint32"},{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"internalType":"struct RateLimiter.TokenBucket","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"}],"name":"getCurrentOutboundRateLimiterState","outputs":[{"components":[{"internalType":"uint128","name":"tokens","type":"uint128"},{"internalType":"uint32","name":"lastUpdated","type":"uint32"},{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"internalType":"struct RateLimiter.TokenBucket","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRateLimitAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"}],"name":"getRemotePools","outputs":[{"internalType":"bytes[]","name":"","type":"bytes[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"}],"name":"getRemoteToken","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRmnProxy","outputs":[{"internalType":"address","name":"rmnProxy","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRouter","outputs":[{"internalType":"address","name":"router","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSupportedChains","outputs":[{"internalType":"uint64[]","name":"","type":"uint64[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getToken","outputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenDecimals","outputs":[{"internalType":"uint8","name":"decimals","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"internalType":"bytes","name":"remotePoolAddress","type":"bytes"}],"name":"isRemotePool","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"}],"name":"isSupportedChain","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"isSupportedToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"receiver","type":"bytes"},{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"internalType":"address","name":"originalSender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"localToken","type":"address"}],"internalType":"struct Pool.LockOrBurnInV1","name":"lockOrBurnIn","type":"tuple"}],"name":"lockOrBurn","outputs":[{"components":[{"internalType":"bytes","name":"destTokenAddress","type":"bytes"},{"internalType":"bytes","name":"destPoolData","type":"bytes"}],"internalType":"struct Pool.LockOrBurnOutV1","name":"","type":"tuple"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"originalSender","type":"bytes"},{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"localToken","type":"address"},{"internalType":"bytes","name":"sourcePoolAddress","type":"bytes"},{"internalType":"bytes","name":"sourcePoolData","type":"bytes"},{"internalType":"bytes","name":"offchainTokenData","type":"bytes"}],"internalType":"struct Pool.ReleaseOrMintInV1","name":"releaseOrMintIn","type":"tuple"}],"name":"releaseOrMint","outputs":[{"components":[{"internalType":"uint256","name":"destinationAmount","type":"uint256"}],"internalType":"struct Pool.ReleaseOrMintOutV1","name":"","type":"tuple"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"internalType":"bytes","name":"remotePoolAddress","type":"bytes"}],"name":"removeRemotePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"internalType":"struct RateLimiter.Config","name":"outboundConfig","type":"tuple"},{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"internalType":"struct RateLimiter.Config","name":"inboundConfig","type":"tuple"}],"name":"setChainRateLimiterConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64[]","name":"remoteChainSelectors","type":"uint64[]"},{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"internalType":"struct RateLimiter.Config[]","name":"outboundConfigs","type":"tuple[]"},{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"internalType":"struct RateLimiter.Config[]","name":"inboundConfigs","type":"tuple[]"}],"name":"setChainRateLimiterConfigs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"rateLimitAdmin","type":"address"}],"name":"setRateLimitAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRouter","type":"address"}],"name":"setRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"typeAndVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]Contract Creation Code
61010060405234801562000011575f80fd5b50604051620068d1380380620068d1833981810160405281019062000037919062000b21565b8484848484335f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620000a4576040517f9b15e16f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8160015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146200012a5762000129816200040060201b60201c565b5b50505f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614806200019257505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b80620001c957505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b1562000201576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508173ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff16815250508473ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015620002d457506040513d601f19601f82011682018060405250810190620002d1919062000bc4565b60015b156200032b578060ff168560ff1614620003295784816040517f655a7c0e0000000000000000000000000000000000000000000000000000000081526004016200032092919062000c05565b60405180910390fd5b505b8360ff1660a08160ff16815250508060045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505f835111151560e08115158152505060e05115620003f057620003ef5f67ffffffffffffffff811115620003b257620003b16200099a565b5b604051908082528060200260200182016040528015620003e15781602001602082028036833780820191505090505b50846200052360201b60201c565b5b5050505050505050505062000d26565b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362000466576040517fdad89dca00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff1660015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae127860405160405180910390a350565b60e0516200055d576040517f35f4a7b300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b8251811015620005ed575f83828151811062000580576200057f62000c30565b5b60200260200101519050620005a0816002620006bf60201b90919060201c565b15620005e0577f800671136ab6cfee9fbe5ed1fb7ca417811aca3cf864800d127b927adedf756681604051620005d7919062000c6e565b60405180910390a15b508060010190506200055f565b505f5b8151811015620006ba575f82828151811062000611576200061062000c30565b5b602002602001015190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620006565750620006ae565b6200066c816002620006f460201b90919060201c565b15620006ac577f2640d4d76caf8bf478aabfa982fa4e1c4eb71a37f93cd15e80dbc657911546d881604051620006a3919062000c6e565b60405180910390a15b505b806001019050620005f0565b505050565b5f620006ec835f018373ffffffffffffffffffffffffffffffffffffffff165f1b6200072960201b60201c565b905092915050565b5f62000721835f018373ffffffffffffffffffffffffffffffffffffffff165f1b6200083560201b60201c565b905092915050565b5f80836001015f8481526020019081526020015f205490505f81146200082a575f60018262000759919062000cbf565b90505f6001865f018054905062000771919062000cbf565b9050808214620007de575f865f01828154811062000794576200079362000c30565b5b905f5260205f200154905080875f018481548110620007b857620007b762000c30565b5b905f5260205f20018190555083876001015f8381526020019081526020015f2081905550505b855f01805480620007f457620007f362000cf9565b5b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f9055600193505050506200082f565b5f9150505b92915050565b5f620008488383620008a660201b60201c565b6200089c57825f0182908060018154018082558091505060019003905f5260205f20015f9091909190915055825f0180549050836001015f8481526020019081526020015f208190555060019050620008a0565b5f90505b92915050565b5f80836001015f8481526020019081526020015f20541415905092915050565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6200090282620008d7565b9050919050565b5f6200091582620008f6565b9050919050565b620009278162000909565b811462000932575f80fd5b50565b5f8151905062000945816200091c565b92915050565b5f60ff82169050919050565b62000962816200094b565b81146200096d575f80fd5b50565b5f81519050620009808162000957565b92915050565b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b620009d2826200098a565b810181811067ffffffffffffffff82111715620009f457620009f36200099a565b5b80604052505050565b5f62000a08620008c6565b905062000a168282620009c7565b919050565b5f67ffffffffffffffff82111562000a385762000a376200099a565b5b602082029050602081019050919050565b5f80fd5b62000a5881620008f6565b811462000a63575f80fd5b50565b5f8151905062000a768162000a4d565b92915050565b5f62000a9262000a8c8462000a1b565b620009fd565b9050808382526020820190506020840283018581111562000ab85762000ab762000a49565b5b835b8181101562000ae5578062000ad0888262000a66565b84526020840193505060208101905062000aba565b5050509392505050565b5f82601f83011262000b065762000b0562000986565b5b815162000b1884826020860162000a7c565b91505092915050565b5f805f805f60a0868803121562000b3d5762000b3c620008cf565b5b5f62000b4c8882890162000935565b955050602062000b5f8882890162000970565b945050604086015167ffffffffffffffff81111562000b835762000b82620008d3565b5b62000b918882890162000aef565b935050606062000ba48882890162000a66565b925050608062000bb78882890162000a66565b9150509295509295909350565b5f6020828403121562000bdc5762000bdb620008cf565b5b5f62000beb8482850162000970565b91505092915050565b62000bff816200094b565b82525050565b5f60408201905062000c1a5f83018562000bf4565b62000c29602083018462000bf4565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b62000c6881620008f6565b82525050565b5f60208201905062000c835f83018462000c5d565b92915050565b5f819050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f62000ccb8262000c89565b915062000cd88362000c89565b925082820390508181111562000cf35762000cf262000c92565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd5b60805160a05160c05160e051615b0062000dd15f395f818161195e0152818161273f015261362b01525f8181611937015281816121fb0152612ba001525f81816107c8015281816123ac01528181612484015281816124b9015281816124e801528181612523015281816125a5015281816126200152612d7201525f818161074a015281816107710152818161086901528181612ce7015281816132b801526138030152615b005ff3fe608060405234801561000f575f80fd5b50600436106101d8575f3560e01c80639a4575b911610102578063c0d78655116100a0578063dc0bd9711161006f578063dc0bd9711461057a578063e0351e1314610598578063e8a1da17146105b6578063f2fde38b146105d2576101d8565b8063c0d78655146104f4578063c4bffe2b14610510578063c75eea9c1461052e578063cf7401f31461055e576101d8565b8063acfecf91116100dc578063acfecf911461045a578063af58d59f14610476578063b0f479a1146104a6578063b7946580146104c4576101d8565b80639a4575b9146103dc578063a42a7b8b1461040c578063a7cd63b71461043c576101d8565b806354c8a4f31161017a5780637d54534e116101495780637d54534e146103565780638926f54f146103725780638da5cb5b146103a2578063962d4020146103c0576101d8565b806354c8a4f3146102f657806362ddd3c4146103125780636d3d1a581461032e57806379ba50971461034c576101d8565b8063240028e8116101b6578063240028e81461024857806324f65ee71461027857806339077537146102965780634c5ef0ed146102c6576101d8565b806301ffc9a7146101dc578063181f5a771461020c57806321df0da71461022a575b5f80fd5b6101f660048036038101906101f19190613fcc565b6105ee565b6040516102039190614011565b60405180910390f35b61021461070e565b60405161022191906140b4565b60405180910390f35b610232610747565b60405161023f919061414e565b60405180910390f35b610262600480360381019061025d91906141a2565b61076e565b60405161026f9190614011565b60405180910390f35b6102806107c5565b60405161028d91906141e8565b60405180910390f35b6102b060048036038101906102ab9190614224565b6107ec565b6040516102bd919061429d565b60405180910390f35b6102e060048036038101906102db9190614354565b61098f565b6040516102ed9190614011565b60405180910390f35b610310600480360381019061030b9190614406565b6109ea565b005b61032c60048036038101906103279190614354565b610a82565b005b610336610b26565b6040516103439190614493565b60405180910390f35b610354610b4e565b005b610370600480360381019061036b91906141a2565b610cd3565b005b61038c600480360381019061038791906144ac565b610d55565b6040516103999190614011565b60405180910390f35b6103aa610d7b565b6040516103b79190614493565b60405180910390f35b6103da60048036038101906103d59190614581565b610da3565b005b6103f660048036038101906103f1919061464f565b610f6a565b6040516104039190614729565b60405180910390f35b610426600480360381019061042191906144ac565b611017565b6040516104339190614804565b60405180910390f35b61044461118f565b60405161045191906148db565b60405180910390f35b610474600480360381019061046f9190614354565b6111a0565b005b610490600480360381019061048b91906144ac565b6112d1565b60405161049d91906149b8565b60405180910390f35b6104ae611435565b6040516104bb9190614493565b60405180910390f35b6104de60048036038101906104d991906144ac565b61145d565b6040516104eb9190614a19565b60405180910390f35b61050e600480360381019061050991906141a2565b611515565b005b610518611624565b6040516105259190614af0565b60405180910390f35b610548600480360381019061054391906144ac565b6116ef565b60405161055591906149b8565b60405180910390f35b61057860048036038101906105739190614c45565b611852565b005b610582611934565b60405161058f9190614493565b60405180910390f35b6105a061195b565b6040516105ad9190614011565b60405180910390f35b6105d060048036038101906105cb9190614cea565b611982565b005b6105ec60048036038101906105e791906141a2565b612177565b005b5f63aff2afbf60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061069f57507f0e64dd29000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061070757507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6040518060400160405280601781526020017f4275726e4d696e74546f6b656e506f6f6c20312e352e3100000000000000000081525081565b5f7f0000000000000000000000000000000000000000000000000000000000000000905090565b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b5f7f0000000000000000000000000000000000000000000000000000000000000000905090565b6107f4613e41565b6107fd8261218b565b5f6108658360600135610860858060c001906108199190614d74565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f820116905080830192505050505050506123a1565b612481565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166340c10f198460400160208101906108b691906141a2565b836040518363ffffffff1660e01b81526004016108d4929190614de5565b5f604051808303815f87803b1580156108eb575f80fd5b505af11580156108fd573d5f803e3d5ffd5b5050505082604001602081019061091491906141a2565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f9d228d69b5fdb8d273a2336f8fb8612d039631024ea9bf09c424a9503aa078f0836040516109709190614e0c565b60405180910390a3604051806020016040528082815250915050919050565b5f6109e183836040516109a3929190614e61565b604051809103902060075f8767ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f206005016126a090919063ffffffff16565b90509392505050565b6109f26126b5565b610a7c8484808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f820116905080830192505050505050508383808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f8201169050808301925050505050505061273d565b50505050565b610a8a6126b5565b610a9383610d55565b610ad457826040517f1e670e4b000000000000000000000000000000000000000000000000000000008152600401610acb9190614e88565b60405180910390fd5b610b218383838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f820116905080830192505050505050506128e0565b505050565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610bd2576040517f02b543c600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690503360015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505f805f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a350565b610cdb6126b5565b8060095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f44676b5284b809a22248eba0da87391d79098be38bb03154be88a58bf4d0917481604051610d4a9190614493565b60405180910390a150565b5f610d748267ffffffffffffffff166005612a0890919063ffffffff16565b9050919050565b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015610e335750610e03610d7b565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15610e7557336040517f8e4a23d6000000000000000000000000000000000000000000000000000000008152600401610e6c9190614493565b60405180910390fd5b8383905086869050141580610e905750818190508686905014155b15610ec7576040517f568efce200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b86869050811015610f6157610f56878783818110610eea57610ee9614ea1565b5b9050602002016020810190610eff91906144ac565b868684818110610f1257610f11614ea1565b5b905060600201803603810190610f289190614ece565b858585818110610f3b57610f3a614ea1565b5b905060600201803603810190610f519190614ece565b612a1f565b806001019050610ec9565b50505050505050565b610f72613e53565b610f7b82612b30565b610f888260600135612ce5565b3373ffffffffffffffffffffffffffffffffffffffff167f696de425f79f4a40bc6d2122ca50507f0efbeabbff86a84871b7196ab8ea8df78360600135604051610fd29190614e0c565b60405180910390a26040518060400160405280611000846020016020810190610ffb91906144ac565b61145d565b815260200161100d612d6e565b8152509050919050565b60605f61104a60075f8567ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f20600501612db5565b90505f815167ffffffffffffffff81111561106857611067614b14565b5b60405190808252806020026020018201604052801561109b57816020015b60608152602001906001900390816110865790505b5090505f5b82518110156111845760085f8483815181106110bf576110be614ea1565b5b602002602001015181526020019081526020015f2080546110df90614f26565b80601f016020809104026020016040519081016040528092919081815260200182805461110b90614f26565b80156111565780601f1061112d57610100808354040283529160200191611156565b820191905f5260205f20905b81548152906001019060200180831161113957829003601f168201915b505050505082828151811061116e5761116d614ea1565b5b60200260200101819052508060010190506110a0565b508092505050919050565b606061119b6002612dd4565b905090565b6111a86126b5565b6111b183610d55565b6111f257826040517f1e670e4b0000000000000000000000000000000000000000000000000000000081526004016111e99190614e88565b60405180910390fd5b6112438282604051611205929190614e61565b604051809103902060075f8667ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f20600501612df390919063ffffffff16565b611288578282826040517f74f23c7c00000000000000000000000000000000000000000000000000000000815260040161127f93929190614f82565b60405180910390fd5b8267ffffffffffffffff167f52d00ee4d9bd51b40168f2afc5848837288ce258784ad914278791464b3f4d7683836040516112c4929190614fb2565b60405180910390a2505050565b6112d9613e6d565b61142e60075f8467ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f206002016040518060a00160405290815f82015f9054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020015f820160109054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020015f820160149054906101000a900460ff16151515158152602001600182015f9054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016001820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681525050612e08565b9050919050565b5f60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060075f8367ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f20600401805461149290614f26565b80601f01602080910402602001604051908101604052809291908181526020018280546114be90614f26565b80156115095780601f106114e057610100808354040283529160200191611509565b820191905f5260205f20905b8154815290600101906020018083116114ec57829003601f168201915b50505050509050919050565b61151d6126b5565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611582576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f02dc5c233404867c793b749c6d644beb2277536d18a7e7974d3f238e4c6f16848183604051611618929190614fd4565b60405180910390a15050565b60605f6116316005612ec0565b90505f815167ffffffffffffffff81111561164f5761164e614b14565b5b60405190808252806020026020018201604052801561167d5781602001602082028036833780820191505090505b5090505f5b82518110156116e65782818151811061169e5761169d614ea1565b5b60200260200101518282815181106116b9576116b8614ea1565b5b602002602001019067ffffffffffffffff16908167ffffffffffffffff1681525050806001019050611682565b50809250505090565b6116f7613e6d565b61184b60075f8467ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f205f016040518060a00160405290815f82015f9054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020015f820160109054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020015f820160149054906101000a900460ff16151515158152602001600182015f9054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016001820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681525050612e08565b9050919050565b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141580156118e257506118b2610d7b565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b1561192457336040517f8e4a23d600000000000000000000000000000000000000000000000000000000815260040161191b9190614493565b60405180910390fd5b61192f838383612a1f565b505050565b5f7f0000000000000000000000000000000000000000000000000000000000000000905090565b5f7f0000000000000000000000000000000000000000000000000000000000000000905090565b61198a6126b5565b5f5b84849050811015611c81575f8585838181106119ab576119aa614ea1565b5b90506020020160208101906119c091906144ac565b90506119e08167ffffffffffffffff166005612edf90919063ffffffff16565b611a2157806040517f1e670e4b000000000000000000000000000000000000000000000000000000008152600401611a189190614e88565b60405180910390fd5b5f611a5260075f8467ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f20600501612db5565b90505f5b8151811015611abf57611ab3828281518110611a7557611a74614ea1565b5b602002602001015160075f8667ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f20600501612df390919063ffffffff16565b50806001019050611a56565b5060075f8367ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f205f8082015f8082015f6101000a8154906fffffffffffffffffffffffffffffffff02191690555f820160106101000a81549063ffffffff02191690555f820160146101000a81549060ff0219169055600182015f6101000a8154906fffffffffffffffffffffffffffffffff02191690556001820160106101000a8154906fffffffffffffffffffffffffffffffff02191690555050600282015f8082015f6101000a8154906fffffffffffffffffffffffffffffffff02191690555f820160106101000a81549063ffffffff02191690555f820160146101000a81549060ff0219169055600182015f6101000a8154906fffffffffffffffffffffffffffffffff02191690556001820160106101000a8154906fffffffffffffffffffffffffffffffff02191690555050600482015f611c209190613ed5565b600582015f8082015f8082015f611c379190613f12565b5050505050507f5204aec90a3c794d8e90fded8b46ae9c7c552803e7e832e0c1d358396d85991682604051611c6c9190614e88565b60405180910390a1505080600101905061198c565b505f5b82829050811015612170575f838383818110611ca357611ca2614ea1565b5b9050602002810190611cb59190614ffb565b611cbe90615265565b9050611cce81606001515f612ef6565b611cdc81608001515f612ef6565b5f81604001515103611d1a576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611d3b815f015167ffffffffffffffff16600561305090919063ffffffff16565b611d7f57805f01516040517f1d5ad3c5000000000000000000000000000000000000000000000000000000008152600401611d769190614e88565b60405180910390fd5b5f60075f835f015167ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f2090506040518060a001604052808360600151602001516fffffffffffffffffffffffffffffffff1681526020014263ffffffff16815260200183606001515f0151151581526020018360600151602001516fffffffffffffffffffffffffffffffff1681526020018360600151604001516fffffffffffffffffffffffffffffffff16815250815f015f820151815f015f6101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506020820151815f0160106101000a81548163ffffffff021916908363ffffffff1602179055506040820151815f0160146101000a81548160ff0219169083151502179055506060820151816001015f6101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060808201518160010160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055509050506040518060a001604052808360800151602001516fffffffffffffffffffffffffffffffff1681526020014263ffffffff16815260200183608001515f0151151581526020018360800151602001516fffffffffffffffffffffffffffffffff1681526020018360800151604001516fffffffffffffffffffffffffffffffff16815250816002015f820151815f015f6101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506020820151815f0160106101000a81548163ffffffff021916908363ffffffff1602179055506040820151815f0160146101000a81548160ff0219169083151502179055506060820151816001015f6101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060808201518160010160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505081604001518160040190816120d0919061540b565b505f5b8260200151518110156121165761210b835f0151846020015183815181106120fe576120fd614ea1565b5b60200260200101516128e0565b8060010190506120d3565b507f8d340f17e19058004c20453540862a9c62778504476f6756755cb33bcd6c38c2825f015183604001518460600151856080015160405161215b949392919061551a565b60405180910390a15050806001019050611c84565b5050505050565b61217f6126b5565b61218881613067565b50565b6121a68160800160208101906121a191906141a2565b61076e565b6121f9578060800160208101906121bd91906141a2565b6040517f961c9a4f0000000000000000000000000000000000000000000000000000000081526004016121f09190614493565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632cbc26bb82602001602081019061224891906144ac565b67ffffffffffffffff1660801b6040518263ffffffff1660e01b8152600401612271919061559f565b602060405180830381865afa15801561228c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906122b091906155cc565b156122e7576040517f53ad11d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123028160200160208101906122fd91906144ac565b613189565b61232d81602001602081019061231891906144ac565b828060a001906123289190614d74565b61098f565b61237e57808060a001906123419190614d74565b6040517f24eb47e5000000000000000000000000000000000000000000000000000000008152600401612375929190614fb2565b60405180910390fd5b61239e81602001602081019061239491906144ac565b82606001356132b2565b50565b5f808251036123d2577f0000000000000000000000000000000000000000000000000000000000000000905061247c565b602082511461241857816040517f953576f700000000000000000000000000000000000000000000000000000000815260040161240f9190614a19565b60405180910390fd5b5f8280602001905181019061242d9190615621565b905060ff801681111561247757826040517f953576f700000000000000000000000000000000000000000000000000000000815260040161246e9190614a19565b60405180910390fd5b809150505b919050565b5f7f000000000000000000000000000000000000000000000000000000000000000060ff168260ff16036124b75782905061269a565b7f000000000000000000000000000000000000000000000000000000000000000060ff168260ff1611156125a1575f7f0000000000000000000000000000000000000000000000000000000000000000836125129190615679565b9050604d8160ff16111561258157827f0000000000000000000000000000000000000000000000000000000000000000856040517fa9cb113d000000000000000000000000000000000000000000000000000000008152600401612578939291906156ad565b60405180910390fd5b80600a61258e9190615811565b846125999190615888565b91505061269a565b5f827f00000000000000000000000000000000000000000000000000000000000000006125ce9190615679565b9050604d8160ff161180612618575080600a6125ea9190615811565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6126159190615888565b84115b1561267e57827f0000000000000000000000000000000000000000000000000000000000000000856040517fa9cb113d000000000000000000000000000000000000000000000000000000008152600401612675939291906156ad565b60405180910390fd5b80600a61268b9190615811565b8461269691906158b8565b9150505b92915050565b5f6126ad835f0183613312565b905092915050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461273b576040517f2b5c74de00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b7f0000000000000000000000000000000000000000000000000000000000000000612794576040517f35f4a7b300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b825181101561281a575f8382815181106127b3576127b2614ea1565b5b602002602001015190506127d181600261333290919063ffffffff16565b1561280e577f800671136ab6cfee9fbe5ed1fb7ca417811aca3cf864800d127b927adedf7566816040516128059190614493565b60405180910390a15b50806001019050612796565b505f5b81518110156128db575f82828151811061283a57612839614ea1565b5b602002602001015190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361287d57506128d0565b61289181600261335f90919063ffffffff16565b156128ce577f2640d4d76caf8bf478aabfa982fa4e1c4eb71a37f93cd15e80dbc657911546d8816040516128c59190614493565b60405180910390a15b505b80600101905061281d565b505050565b5f81510361291a576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8180519060200120905061295f8160075f8667ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f2060050161338c90919063ffffffff16565b6129a25782826040517f393b8ad20000000000000000000000000000000000000000000000000000000081526004016129999291906158f9565b60405180910390fd5b8160085f8381526020019081526020015f2090816129c0919061540b565b508267ffffffffffffffff167f7d628c9a1796743d365ab521a8b2a4686e419b3269919dc9145ea2ce853b54ea836040516129fb9190614a19565b60405180910390a2505050565b5f612a17835f01835f1b613312565b905092915050565b612a2883610d55565b612a6957826040517f1e670e4b000000000000000000000000000000000000000000000000000000008152600401612a609190614e88565b60405180910390fd5b612a73825f612ef6565b612aac8260075f8667ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f205f016133a190919063ffffffff16565b612ab6815f612ef6565b612af08160075f8667ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f206002016133a190919063ffffffff16565b7f0350d63aa5f270e01729d00d627eeb8f3429772b1818c016c66a588a864f912b838383604051612b2393929190615927565b60405180910390a1505050565b612b4b816080016020810190612b4691906141a2565b61076e565b612b9e57806080016020810190612b6291906141a2565b6040517f961c9a4f000000000000000000000000000000000000000000000000000000008152600401612b959190614493565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632cbc26bb826020016020810190612bed91906144ac565b67ffffffffffffffff1660801b6040518263ffffffff1660e01b8152600401612c16919061559f565b602060405180830381865afa158015612c31573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612c5591906155cc565b15612c8c576040517f53ad11d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612ca7816040016020810190612ca291906141a2565b613629565b612cc2816020016020810190612cbd91906144ac565b6136a8565b612ce2816020016020810190612cd891906144ac565b82606001356137fd565b50565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166342966c68826040518263ffffffff1660e01b8152600401612d3e9190614e0c565b5f604051808303815f87803b158015612d55575f80fd5b505af1158015612d67573d5f803e3d5ffd5b5050505050565b60607f0000000000000000000000000000000000000000000000000000000000000000604051602001612da191906141e8565b604051602081830303815290604052905090565b60605f612dc3835f0161385c565b905060608190508092505050919050565b60605f612de2835f0161385c565b905060608190508092505050919050565b5f612e00835f01836138b5565b905092915050565b612e10613e6d565b612e7282606001516fffffffffffffffffffffffffffffffff16835f01516fffffffffffffffffffffffffffffffff16846020015163ffffffff1642612e56919061595c565b85608001516fffffffffffffffffffffffffffffffff166139b1565b825f01906fffffffffffffffffffffffffffffffff1690816fffffffffffffffffffffffffffffffff168152505042826020019063ffffffff16908163ffffffff1681525050819050919050565b60605f612ece835f0161385c565b905060608190508092505050919050565b5f612eee835f01835f1b6138b5565b905092915050565b815f015115612fce5781602001516fffffffffffffffffffffffffffffffff1682604001516fffffffffffffffffffffffffffffffff16101580612f4f57505f82604001516fffffffffffffffffffffffffffffffff16145b15612f9157816040517f8020d124000000000000000000000000000000000000000000000000000000008152600401612f88919061598f565b60405180910390fd5b8015612fc9576040517f433fc33d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61304c565b5f82604001516fffffffffffffffffffffffffffffffff1614158061300957505f82602001516fffffffffffffffffffffffffffffffff1614155b1561304b57816040517fd68af9cc000000000000000000000000000000000000000000000000000000008152600401613042919061598f565b60405180910390fd5b5b5050565b5f61305f835f01835f1b6139dc565b905092915050565b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036130cc576040517fdad89dca00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff1660015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae127860405160405180910390a350565b61319281610d55565b6131d357806040517fa9902c7e0000000000000000000000000000000000000000000000000000000081526004016131ca9190614e88565b60405180910390fd5b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166383826b2b82336040518363ffffffff1660e01b815260040161322f9291906159a8565b602060405180830381865afa15801561324a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061326e91906155cc565b6132af57336040517f728fe07b0000000000000000000000000000000000000000000000000000000081526004016132a69190614493565b60405180910390fd5b50565b61330e817f000000000000000000000000000000000000000000000000000000000000000060075f8667ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f20600201613a439092919063ffffffff16565b5050565b5f80836001015f8481526020019081526020015f20541415905092915050565b5f613357835f018373ffffffffffffffffffffffffffffffffffffffff165f1b6138b5565b905092915050565b5f613384835f018373ffffffffffffffffffffffffffffffffffffffff165f1b6139dc565b905092915050565b5f613399835f01836139dc565b905092915050565b5f825f0160109054906101000a900463ffffffff1663ffffffff16426133c7919061595c565b90505f81146134ca5761346f836001015f9054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16845f015f9054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16838660010160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166139b1565b835f015f6101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555042835f0160106101000a81548163ffffffff021916908363ffffffff1602179055505b61351a82602001516fffffffffffffffffffffffffffffffff16845f015f9054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16613dfc565b835f015f6101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550815f0151835f0160146101000a81548160ff0219169083151502179055508160200151836001015f6101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555081604001518360010160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055507f9ea3374b67bf275e6bb9c8ae68f9cae023e1c528b4b27e092f0bb209d3531c198260405161361c919061598f565b60405180910390a1505050565b7f0000000000000000000000000000000000000000000000000000000000000000156136a557613663816002613e1490919063ffffffff16565b6136a457806040517fd0d2597600000000000000000000000000000000000000000000000000000000815260040161369b9190614493565b60405180910390fd5b5b50565b6136b181610d55565b6136f257806040517fa9902c7e0000000000000000000000000000000000000000000000000000000081526004016136e99190614e88565b60405180910390fd5b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a8d87a3b826040518263ffffffff1660e01b815260040161374c9190614e88565b602060405180830381865afa158015613767573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061378b91906159e3565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146137fa57336040517f728fe07b0000000000000000000000000000000000000000000000000000000081526004016137f19190614493565b60405180910390fd5b50565b613858817f000000000000000000000000000000000000000000000000000000000000000060075f8667ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f205f01613a439092919063ffffffff16565b5050565b6060815f018054806020026020016040519081016040528092919081815260200182805480156138a957602002820191905f5260205f20905b815481526020019060010190808311613895575b50505050509050919050565b5f80836001015f8481526020019081526020015f205490505f81146139a6575f6001826138e2919061595c565b90505f6001865f01805490506138f8919061595c565b905080821461395e575f865f01828154811061391757613916614ea1565b5b905f5260205f200154905080875f01848154811061393857613937614ea1565b5b905f5260205f20018190555083876001015f8381526020019081526020015f2081905550505b855f0180548061397157613970615a0e565b5b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f9055600193505050506139ab565b5f9150505b92915050565b5f6139d28583856139c291906158b8565b866139cd9190615a3b565b613dfc565b9050949350505050565b5f6139e78383613312565b613a3957825f0182908060018154018082558091505060019003905f5260205f20015f9091909190915055825f0180549050836001015f8481526020019081526020015f208190555060019050613a3d565b5f90505b92915050565b825f0160149054906101000a900460ff161580613a5f57505f82145b613df7575f835f015f9054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1690505f846001015f9054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1690505f855f0160109054906101000a900463ffffffff1663ffffffff1642613af2919061595c565b90505f8114613b985781831115613b35576040517f9725942a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613b738284838960010160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166139b1565b925042865f0160106101000a81548163ffffffff021916908363ffffffff1602179055505b84821015613c53575f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603613c125781856040517ff94ebcd1000000000000000000000000000000000000000000000000000000008152600401613c09929190615a6e565b60405180910390fd5b8185856040517f1a76572a000000000000000000000000000000000000000000000000000000008152600401613c4a93929190615a95565b60405180910390fd5b84831015613d75575f8660010160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1690505f81600183613ca0919061595c565b8689613cac919061595c565b613cb69190615a3b565b613cc09190615888565b90505f73ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1603613d345780856040517f15279c08000000000000000000000000000000000000000000000000000000008152600401613d2b929190615a6e565b60405180910390fd5b8085876040517fd0c8d23a000000000000000000000000000000000000000000000000000000008152600401613d6c93929190615a95565b60405180910390fd5b8483613d81919061595c565b925082865f015f6101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055507f1871cdf8010e63f2eb8384381a68dfa7416dc571a5517e66e88b2d2d0c0a690a85604051613deb9190614e0c565b60405180910390a15050505b505050565b5f818310613e0a5781613e0c565b825b905092915050565b5f613e39835f018373ffffffffffffffffffffffffffffffffffffffff165f1b613312565b905092915050565b60405180602001604052805f81525090565b604051806040016040528060608152602001606081525090565b6040518060a001604052805f6fffffffffffffffffffffffffffffffff1681526020015f63ffffffff1681526020015f151581526020015f6fffffffffffffffffffffffffffffffff1681526020015f6fffffffffffffffffffffffffffffffff1681525090565b508054613ee190614f26565b5f825580601f10613ef25750613f0f565b601f0160209004905f5260205f2090810190613f0e9190613f30565b5b50565b5080545f8255905f5260205f2090810190613f2d9190613f4b565b50565b5b80821115613f47575f815f905550600101613f31565b5090565b5b80821115613f62575f815f905550600101613f4c565b5090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613fab81613f77565b8114613fb5575f80fd5b50565b5f81359050613fc681613fa2565b92915050565b5f60208284031215613fe157613fe0613f6f565b5b5f613fee84828501613fb8565b91505092915050565b5f8115159050919050565b61400b81613ff7565b82525050565b5f6020820190506140245f830184614002565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015614061578082015181840152602081019050614046565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6140868261402a565b6140908185614034565b93506140a0818560208601614044565b6140a98161406c565b840191505092915050565b5f6020820190508181035f8301526140cc818461407c565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61411661411161410c846140d4565b6140f3565b6140d4565b9050919050565b5f614127826140fc565b9050919050565b5f6141388261411d565b9050919050565b6141488161412e565b82525050565b5f6020820190506141615f83018461413f565b92915050565b5f614171826140d4565b9050919050565b61418181614167565b811461418b575f80fd5b50565b5f8135905061419c81614178565b92915050565b5f602082840312156141b7576141b6613f6f565b5b5f6141c48482850161418e565b91505092915050565b5f60ff82169050919050565b6141e2816141cd565b82525050565b5f6020820190506141fb5f8301846141d9565b92915050565b5f80fd5b5f610100828403121561421b5761421a614201565b5b81905092915050565b5f6020828403121561423957614238613f6f565b5b5f82013567ffffffffffffffff81111561425657614255613f73565b5b61426284828501614205565b91505092915050565b5f819050919050565b61427d8161426b565b82525050565b602082015f8201516142975f850182614274565b50505050565b5f6020820190506142b05f830184614283565b92915050565b5f67ffffffffffffffff82169050919050565b6142d2816142b6565b81146142dc575f80fd5b50565b5f813590506142ed816142c9565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112614314576143136142f3565b5b8235905067ffffffffffffffff811115614331576143306142f7565b5b60208301915083600182028301111561434d5761434c6142fb565b5b9250929050565b5f805f6040848603121561436b5761436a613f6f565b5b5f614378868287016142df565b935050602084013567ffffffffffffffff81111561439957614398613f73565b5b6143a5868287016142ff565b92509250509250925092565b5f8083601f8401126143c6576143c56142f3565b5b8235905067ffffffffffffffff8111156143e3576143e26142f7565b5b6020830191508360208202830111156143ff576143fe6142fb565b5b9250929050565b5f805f806040858703121561441e5761441d613f6f565b5b5f85013567ffffffffffffffff81111561443b5761443a613f73565b5b614447878288016143b1565b9450945050602085013567ffffffffffffffff81111561446a57614469613f73565b5b614476878288016143b1565b925092505092959194509250565b61448d81614167565b82525050565b5f6020820190506144a65f830184614484565b92915050565b5f602082840312156144c1576144c0613f6f565b5b5f6144ce848285016142df565b91505092915050565b5f8083601f8401126144ec576144eb6142f3565b5b8235905067ffffffffffffffff811115614509576145086142f7565b5b602083019150836020820283011115614525576145246142fb565b5b9250929050565b5f8083601f840112614541576145406142f3565b5b8235905067ffffffffffffffff81111561455e5761455d6142f7565b5b60208301915083606082028301111561457a576145796142fb565b5b9250929050565b5f805f805f806060878903121561459b5761459a613f6f565b5b5f87013567ffffffffffffffff8111156145b8576145b7613f73565b5b6145c489828a016144d7565b9650965050602087013567ffffffffffffffff8111156145e7576145e6613f73565b5b6145f389828a0161452c565b9450945050604087013567ffffffffffffffff81111561461657614615613f73565b5b61462289828a0161452c565b92509250509295509295509295565b5f60a0828403121561464657614645614201565b5b81905092915050565b5f6020828403121561466457614663613f6f565b5b5f82013567ffffffffffffffff81111561468157614680613f73565b5b61468d84828501614631565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f6146ba82614696565b6146c481856146a0565b93506146d4818560208601614044565b6146dd8161406c565b840191505092915050565b5f604083015f8301518482035f86015261470282826146b0565b9150506020830151848203602086015261471c82826146b0565b9150508091505092915050565b5f6020820190508181035f83015261474181846146e8565b905092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f61477d83836146b0565b905092915050565b5f602082019050919050565b5f61479b82614749565b6147a58185614753565b9350836020820285016147b785614763565b805f5b858110156147f257848403895281516147d38582614772565b94506147de83614785565b925060208a019950506001810190506147ba565b50829750879550505050505092915050565b5f6020820190508181035f83015261481c8184614791565b905092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61485681614167565b82525050565b5f614867838361484d565b60208301905092915050565b5f602082019050919050565b5f61488982614824565b614893818561482e565b935061489e8361483e565b805f5b838110156148ce5781516148b5888261485c565b97506148c083614873565b9250506001810190506148a1565b5085935050505092915050565b5f6020820190508181035f8301526148f3818461487f565b905092915050565b5f6fffffffffffffffffffffffffffffffff82169050919050565b61491f816148fb565b82525050565b5f63ffffffff82169050919050565b61493d81614925565b82525050565b61494c81613ff7565b82525050565b60a082015f8201516149665f850182614916565b5060208201516149796020850182614934565b50604082015161498c6040850182614943565b50606082015161499f6060850182614916565b5060808201516149b26080850182614916565b50505050565b5f60a0820190506149cb5f830184614952565b92915050565b5f82825260208201905092915050565b5f6149eb82614696565b6149f581856149d1565b9350614a05818560208601614044565b614a0e8161406c565b840191505092915050565b5f6020820190508181035f830152614a3181846149e1565b905092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b614a6b816142b6565b82525050565b5f614a7c8383614a62565b60208301905092915050565b5f602082019050919050565b5f614a9e82614a39565b614aa88185614a43565b9350614ab383614a53565b805f5b83811015614ae3578151614aca8882614a71565b9750614ad583614a88565b925050600181019050614ab6565b5085935050505092915050565b5f6020820190508181035f830152614b088184614a94565b905092915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b614b4a8261406c565b810181811067ffffffffffffffff82111715614b6957614b68614b14565b5b80604052505050565b5f614b7b613f66565b9050614b878282614b41565b919050565b5f80fd5b614b9981613ff7565b8114614ba3575f80fd5b50565b5f81359050614bb481614b90565b92915050565b614bc3816148fb565b8114614bcd575f80fd5b50565b5f81359050614bde81614bba565b92915050565b5f60608284031215614bf957614bf8614b10565b5b614c036060614b72565b90505f614c1284828501614ba6565b5f830152506020614c2584828501614bd0565b6020830152506040614c3984828501614bd0565b60408301525092915050565b5f805f60e08486031215614c5c57614c5b613f6f565b5b5f614c69868287016142df565b9350506020614c7a86828701614be4565b9250506080614c8b86828701614be4565b9150509250925092565b5f8083601f840112614caa57614ca96142f3565b5b8235905067ffffffffffffffff811115614cc757614cc66142f7565b5b602083019150836020820283011115614ce357614ce26142fb565b5b9250929050565b5f805f8060408587031215614d0257614d01613f6f565b5b5f85013567ffffffffffffffff811115614d1f57614d1e613f73565b5b614d2b878288016144d7565b9450945050602085013567ffffffffffffffff811115614d4e57614d4d613f73565b5b614d5a87828801614c95565b925092505092959194509250565b5f80fd5b5f80fd5b5f80fd5b5f8083356001602003843603038112614d9057614d8f614d68565b5b80840192508235915067ffffffffffffffff821115614db257614db1614d6c565b5b602083019250600182023603831315614dce57614dcd614d70565b5b509250929050565b614ddf8161426b565b82525050565b5f604082019050614df85f830185614484565b614e056020830184614dd6565b9392505050565b5f602082019050614e1f5f830184614dd6565b92915050565b5f81905092915050565b828183375f83830152505050565b5f614e488385614e25565b9350614e55838584614e2f565b82840190509392505050565b5f614e6d828486614e3d565b91508190509392505050565b614e82816142b6565b82525050565b5f602082019050614e9b5f830184614e79565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f60608284031215614ee357614ee2613f6f565b5b5f614ef084828501614be4565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680614f3d57607f821691505b602082108103614f5057614f4f614ef9565b5b50919050565b5f614f6183856149d1565b9350614f6e838584614e2f565b614f778361406c565b840190509392505050565b5f604082019050614f955f830186614e79565b8181036020830152614fa8818486614f56565b9050949350505050565b5f6020820190508181035f830152614fcb818486614f56565b90509392505050565b5f604082019050614fe75f830185614484565b614ff46020830184614484565b9392505050565b5f823560016101200383360303811261501757615016614d68565b5b80830191505092915050565b5f67ffffffffffffffff82111561503d5761503c614b14565b5b602082029050602081019050919050565b5f80fd5b5f67ffffffffffffffff82111561506c5761506b614b14565b5b6150758261406c565b9050602081019050919050565b5f61509461508f84615052565b614b72565b9050828152602081018484840111156150b0576150af61504e565b5b6150bb848285614e2f565b509392505050565b5f82601f8301126150d7576150d66142f3565b5b81356150e7848260208601615082565b91505092915050565b5f6151026150fd84615023565b614b72565b90508083825260208201905060208402830185811115615125576151246142fb565b5b835b8181101561516c57803567ffffffffffffffff81111561514a576151496142f3565b5b80860161515789826150c3565b85526020850194505050602081019050615127565b5050509392505050565b5f82601f83011261518a576151896142f3565b5b813561519a8482602086016150f0565b91505092915050565b5f61012082840312156151b9576151b8614b10565b5b6151c360a0614b72565b90505f6151d2848285016142df565b5f83015250602082013567ffffffffffffffff8111156151f5576151f4614b8c565b5b61520184828501615176565b602083015250604082013567ffffffffffffffff81111561522557615224614b8c565b5b615231848285016150c3565b604083015250606061524584828501614be4565b60608301525060c061525984828501614be4565b60808301525092915050565b5f61527036836151a3565b9050919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026152d37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82615298565b6152dd8683615298565b95508019841693508086168417925050509392505050565b5f61530f61530a6153058461426b565b6140f3565b61426b565b9050919050565b5f819050919050565b615328836152f5565b61533c61533482615316565b8484546152a4565b825550505050565b5f90565b615350615344565b61535b81848461531f565b505050565b5b8181101561537e576153735f82615348565b600181019050615361565b5050565b601f8211156153c35761539481615277565b61539d84615289565b810160208510156153ac578190505b6153c06153b885615289565b830182615360565b50505b505050565b5f82821c905092915050565b5f6153e35f19846008026153c8565b1980831691505092915050565b5f6153fb83836153d4565b9150826002028217905092915050565b61541482614696565b67ffffffffffffffff81111561542d5761542c614b14565b5b6154378254614f26565b615442828285615382565b5f60209050601f831160018114615473575f8415615461578287015190505b61546b85826153f0565b8655506154d2565b601f19841661548186615277565b5f5b828110156154a857848901518255600182019150602085019450602081019050615483565b868310156154c557848901516154c1601f8916826153d4565b8355505b6001600288020188555050505b505050505050565b606082015f8201516154ee5f850182614943565b5060208201516155016020850182614916565b5060408201516155146040850182614916565b50505050565b5f6101008201905061552e5f830187614e79565b818103602083015261554081866149e1565b905061554f60408301856154da565b61555c60a08301846154da565b95945050505050565b5f7fffffffffffffffffffffffffffffffff0000000000000000000000000000000082169050919050565b61559981615565565b82525050565b5f6020820190506155b25f830184615590565b92915050565b5f815190506155c681614b90565b92915050565b5f602082840312156155e1576155e0613f6f565b5b5f6155ee848285016155b8565b91505092915050565b6156008161426b565b811461560a575f80fd5b50565b5f8151905061561b816155f7565b92915050565b5f6020828403121561563657615635613f6f565b5b5f6156438482850161560d565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f615683826141cd565b915061568e836141cd565b9250828203905060ff8111156156a7576156a661564c565b5b92915050565b5f6060820190506156c05f8301866141d9565b6156cd60208301856141d9565b6156da6040830184614dd6565b949350505050565b5f8160011c9050919050565b5f808291508390505b6001851115615737578086048111156157135761571261564c565b5b60018516156157225780820291505b8081029050615730856156e2565b94506156f7565b94509492505050565b5f8261574f576001905061580a565b8161575c575f905061580a565b8160018114615772576002811461577c576157ab565b600191505061580a565b60ff84111561578e5761578d61564c565b5b8360020a9150848211156157a5576157a461564c565b5b5061580a565b5060208310610133831016604e8410600b84101617156157e05782820a9050838111156157db576157da61564c565b5b61580a565b6157ed84848460016156ee565b925090508184048111156158045761580361564c565b5b81810290505b9392505050565b5f61581b8261426b565b9150615826836141cd565b92506158537fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484615740565b905092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6158928261426b565b915061589d8361426b565b9250826158ad576158ac61585b565b5b828204905092915050565b5f6158c28261426b565b91506158cd8361426b565b92508282026158db8161426b565b915082820484148315176158f2576158f161564c565b5b5092915050565b5f60408201905061590c5f830185614e79565b818103602083015261591e81846149e1565b90509392505050565b5f60e08201905061593a5f830186614e79565b61594760208301856154da565b61595460808301846154da565b949350505050565b5f6159668261426b565b91506159718361426b565b92508282039050818111156159895761598861564c565b5b92915050565b5f6060820190506159a25f8301846154da565b92915050565b5f6040820190506159bb5f830185614e79565b6159c86020830184614484565b9392505050565b5f815190506159dd81614178565b92915050565b5f602082840312156159f8576159f7613f6f565b5b5f615a05848285016159cf565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd5b5f615a458261426b565b9150615a508361426b565b9250828201905080821115615a6857615a6761564c565b5b92915050565b5f604082019050615a815f830185614dd6565b615a8e6020830184614dd6565b9392505050565b5f606082019050615aa85f830186614dd6565b615ab56020830185614dd6565b615ac26040830184614484565b94935050505056fea26469706673582212205271da5afdedd023717a0eea973fa48bb829177bb2d7e306a8a6ad83d2f4b9a264736f6c6343000818003300000000000000000000000041ca7586cc1311807b4605fbb748a3b8862b42b5000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000c311a21e6fef769344eb1515588b9d535662a145000000000000000000000000141fa059441e0ca23ce184b6a78bafd2a517dde80000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106101d8575f3560e01c80639a4575b911610102578063c0d78655116100a0578063dc0bd9711161006f578063dc0bd9711461057a578063e0351e1314610598578063e8a1da17146105b6578063f2fde38b146105d2576101d8565b8063c0d78655146104f4578063c4bffe2b14610510578063c75eea9c1461052e578063cf7401f31461055e576101d8565b8063acfecf91116100dc578063acfecf911461045a578063af58d59f14610476578063b0f479a1146104a6578063b7946580146104c4576101d8565b80639a4575b9146103dc578063a42a7b8b1461040c578063a7cd63b71461043c576101d8565b806354c8a4f31161017a5780637d54534e116101495780637d54534e146103565780638926f54f146103725780638da5cb5b146103a2578063962d4020146103c0576101d8565b806354c8a4f3146102f657806362ddd3c4146103125780636d3d1a581461032e57806379ba50971461034c576101d8565b8063240028e8116101b6578063240028e81461024857806324f65ee71461027857806339077537146102965780634c5ef0ed146102c6576101d8565b806301ffc9a7146101dc578063181f5a771461020c57806321df0da71461022a575b5f80fd5b6101f660048036038101906101f19190613fcc565b6105ee565b6040516102039190614011565b60405180910390f35b61021461070e565b60405161022191906140b4565b60405180910390f35b610232610747565b60405161023f919061414e565b60405180910390f35b610262600480360381019061025d91906141a2565b61076e565b60405161026f9190614011565b60405180910390f35b6102806107c5565b60405161028d91906141e8565b60405180910390f35b6102b060048036038101906102ab9190614224565b6107ec565b6040516102bd919061429d565b60405180910390f35b6102e060048036038101906102db9190614354565b61098f565b6040516102ed9190614011565b60405180910390f35b610310600480360381019061030b9190614406565b6109ea565b005b61032c60048036038101906103279190614354565b610a82565b005b610336610b26565b6040516103439190614493565b60405180910390f35b610354610b4e565b005b610370600480360381019061036b91906141a2565b610cd3565b005b61038c600480360381019061038791906144ac565b610d55565b6040516103999190614011565b60405180910390f35b6103aa610d7b565b6040516103b79190614493565b60405180910390f35b6103da60048036038101906103d59190614581565b610da3565b005b6103f660048036038101906103f1919061464f565b610f6a565b6040516104039190614729565b60405180910390f35b610426600480360381019061042191906144ac565b611017565b6040516104339190614804565b60405180910390f35b61044461118f565b60405161045191906148db565b60405180910390f35b610474600480360381019061046f9190614354565b6111a0565b005b610490600480360381019061048b91906144ac565b6112d1565b60405161049d91906149b8565b60405180910390f35b6104ae611435565b6040516104bb9190614493565b60405180910390f35b6104de60048036038101906104d991906144ac565b61145d565b6040516104eb9190614a19565b60405180910390f35b61050e600480360381019061050991906141a2565b611515565b005b610518611624565b6040516105259190614af0565b60405180910390f35b610548600480360381019061054391906144ac565b6116ef565b60405161055591906149b8565b60405180910390f35b61057860048036038101906105739190614c45565b611852565b005b610582611934565b60405161058f9190614493565b60405180910390f35b6105a061195b565b6040516105ad9190614011565b60405180910390f35b6105d060048036038101906105cb9190614cea565b611982565b005b6105ec60048036038101906105e791906141a2565b612177565b005b5f63aff2afbf60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061069f57507f0e64dd29000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061070757507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6040518060400160405280601781526020017f4275726e4d696e74546f6b656e506f6f6c20312e352e3100000000000000000081525081565b5f7f00000000000000000000000041ca7586cc1311807b4605fbb748a3b8862b42b5905090565b5f7f00000000000000000000000041ca7586cc1311807b4605fbb748a3b8862b42b573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16149050919050565b5f7f0000000000000000000000000000000000000000000000000000000000000006905090565b6107f4613e41565b6107fd8261218b565b5f6108658360600135610860858060c001906108199190614d74565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f820116905080830192505050505050506123a1565b612481565b90507f00000000000000000000000041ca7586cc1311807b4605fbb748a3b8862b42b573ffffffffffffffffffffffffffffffffffffffff166340c10f198460400160208101906108b691906141a2565b836040518363ffffffff1660e01b81526004016108d4929190614de5565b5f604051808303815f87803b1580156108eb575f80fd5b505af11580156108fd573d5f803e3d5ffd5b5050505082604001602081019061091491906141a2565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f9d228d69b5fdb8d273a2336f8fb8612d039631024ea9bf09c424a9503aa078f0836040516109709190614e0c565b60405180910390a3604051806020016040528082815250915050919050565b5f6109e183836040516109a3929190614e61565b604051809103902060075f8767ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f206005016126a090919063ffffffff16565b90509392505050565b6109f26126b5565b610a7c8484808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f820116905080830192505050505050508383808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f8201169050808301925050505050505061273d565b50505050565b610a8a6126b5565b610a9383610d55565b610ad457826040517f1e670e4b000000000000000000000000000000000000000000000000000000008152600401610acb9190614e88565b60405180910390fd5b610b218383838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f81840152601f19601f820116905080830192505050505050506128e0565b505050565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610bd2576040517f02b543c600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690503360015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505f805f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a350565b610cdb6126b5565b8060095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f44676b5284b809a22248eba0da87391d79098be38bb03154be88a58bf4d0917481604051610d4a9190614493565b60405180910390a150565b5f610d748267ffffffffffffffff166005612a0890919063ffffffff16565b9050919050565b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614158015610e335750610e03610d7b565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15610e7557336040517f8e4a23d6000000000000000000000000000000000000000000000000000000008152600401610e6c9190614493565b60405180910390fd5b8383905086869050141580610e905750818190508686905014155b15610ec7576040517f568efce200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b86869050811015610f6157610f56878783818110610eea57610ee9614ea1565b5b9050602002016020810190610eff91906144ac565b868684818110610f1257610f11614ea1565b5b905060600201803603810190610f289190614ece565b858585818110610f3b57610f3a614ea1565b5b905060600201803603810190610f519190614ece565b612a1f565b806001019050610ec9565b50505050505050565b610f72613e53565b610f7b82612b30565b610f888260600135612ce5565b3373ffffffffffffffffffffffffffffffffffffffff167f696de425f79f4a40bc6d2122ca50507f0efbeabbff86a84871b7196ab8ea8df78360600135604051610fd29190614e0c565b60405180910390a26040518060400160405280611000846020016020810190610ffb91906144ac565b61145d565b815260200161100d612d6e565b8152509050919050565b60605f61104a60075f8567ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f20600501612db5565b90505f815167ffffffffffffffff81111561106857611067614b14565b5b60405190808252806020026020018201604052801561109b57816020015b60608152602001906001900390816110865790505b5090505f5b82518110156111845760085f8483815181106110bf576110be614ea1565b5b602002602001015181526020019081526020015f2080546110df90614f26565b80601f016020809104026020016040519081016040528092919081815260200182805461110b90614f26565b80156111565780601f1061112d57610100808354040283529160200191611156565b820191905f5260205f20905b81548152906001019060200180831161113957829003601f168201915b505050505082828151811061116e5761116d614ea1565b5b60200260200101819052508060010190506110a0565b508092505050919050565b606061119b6002612dd4565b905090565b6111a86126b5565b6111b183610d55565b6111f257826040517f1e670e4b0000000000000000000000000000000000000000000000000000000081526004016111e99190614e88565b60405180910390fd5b6112438282604051611205929190614e61565b604051809103902060075f8667ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f20600501612df390919063ffffffff16565b611288578282826040517f74f23c7c00000000000000000000000000000000000000000000000000000000815260040161127f93929190614f82565b60405180910390fd5b8267ffffffffffffffff167f52d00ee4d9bd51b40168f2afc5848837288ce258784ad914278791464b3f4d7683836040516112c4929190614fb2565b60405180910390a2505050565b6112d9613e6d565b61142e60075f8467ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f206002016040518060a00160405290815f82015f9054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020015f820160109054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020015f820160149054906101000a900460ff16151515158152602001600182015f9054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016001820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681525050612e08565b9050919050565b5f60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060075f8367ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f20600401805461149290614f26565b80601f01602080910402602001604051908101604052809291908181526020018280546114be90614f26565b80156115095780601f106114e057610100808354040283529160200191611509565b820191905f5260205f20905b8154815290600101906020018083116114ec57829003601f168201915b50505050509050919050565b61151d6126b5565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611582576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f02dc5c233404867c793b749c6d644beb2277536d18a7e7974d3f238e4c6f16848183604051611618929190614fd4565b60405180910390a15050565b60605f6116316005612ec0565b90505f815167ffffffffffffffff81111561164f5761164e614b14565b5b60405190808252806020026020018201604052801561167d5781602001602082028036833780820191505090505b5090505f5b82518110156116e65782818151811061169e5761169d614ea1565b5b60200260200101518282815181106116b9576116b8614ea1565b5b602002602001019067ffffffffffffffff16908167ffffffffffffffff1681525050806001019050611682565b50809250505090565b6116f7613e6d565b61184b60075f8467ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f205f016040518060a00160405290815f82015f9054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020015f820160109054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020015f820160149054906101000a900460ff16151515158152602001600182015f9054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681526020016001820160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681525050612e08565b9050919050565b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141580156118e257506118b2610d7b565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b1561192457336040517f8e4a23d600000000000000000000000000000000000000000000000000000000815260040161191b9190614493565b60405180910390fd5b61192f838383612a1f565b505050565b5f7f000000000000000000000000c311a21e6fef769344eb1515588b9d535662a145905090565b5f7f0000000000000000000000000000000000000000000000000000000000000000905090565b61198a6126b5565b5f5b84849050811015611c81575f8585838181106119ab576119aa614ea1565b5b90506020020160208101906119c091906144ac565b90506119e08167ffffffffffffffff166005612edf90919063ffffffff16565b611a2157806040517f1e670e4b000000000000000000000000000000000000000000000000000000008152600401611a189190614e88565b60405180910390fd5b5f611a5260075f8467ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f20600501612db5565b90505f5b8151811015611abf57611ab3828281518110611a7557611a74614ea1565b5b602002602001015160075f8667ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f20600501612df390919063ffffffff16565b50806001019050611a56565b5060075f8367ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f205f8082015f8082015f6101000a8154906fffffffffffffffffffffffffffffffff02191690555f820160106101000a81549063ffffffff02191690555f820160146101000a81549060ff0219169055600182015f6101000a8154906fffffffffffffffffffffffffffffffff02191690556001820160106101000a8154906fffffffffffffffffffffffffffffffff02191690555050600282015f8082015f6101000a8154906fffffffffffffffffffffffffffffffff02191690555f820160106101000a81549063ffffffff02191690555f820160146101000a81549060ff0219169055600182015f6101000a8154906fffffffffffffffffffffffffffffffff02191690556001820160106101000a8154906fffffffffffffffffffffffffffffffff02191690555050600482015f611c209190613ed5565b600582015f8082015f8082015f611c379190613f12565b5050505050507f5204aec90a3c794d8e90fded8b46ae9c7c552803e7e832e0c1d358396d85991682604051611c6c9190614e88565b60405180910390a1505080600101905061198c565b505f5b82829050811015612170575f838383818110611ca357611ca2614ea1565b5b9050602002810190611cb59190614ffb565b611cbe90615265565b9050611cce81606001515f612ef6565b611cdc81608001515f612ef6565b5f81604001515103611d1a576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611d3b815f015167ffffffffffffffff16600561305090919063ffffffff16565b611d7f57805f01516040517f1d5ad3c5000000000000000000000000000000000000000000000000000000008152600401611d769190614e88565b60405180910390fd5b5f60075f835f015167ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f2090506040518060a001604052808360600151602001516fffffffffffffffffffffffffffffffff1681526020014263ffffffff16815260200183606001515f0151151581526020018360600151602001516fffffffffffffffffffffffffffffffff1681526020018360600151604001516fffffffffffffffffffffffffffffffff16815250815f015f820151815f015f6101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506020820151815f0160106101000a81548163ffffffff021916908363ffffffff1602179055506040820151815f0160146101000a81548160ff0219169083151502179055506060820151816001015f6101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060808201518160010160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055509050506040518060a001604052808360800151602001516fffffffffffffffffffffffffffffffff1681526020014263ffffffff16815260200183608001515f0151151581526020018360800151602001516fffffffffffffffffffffffffffffffff1681526020018360800151604001516fffffffffffffffffffffffffffffffff16815250816002015f820151815f015f6101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506020820151815f0160106101000a81548163ffffffff021916908363ffffffff1602179055506040820151815f0160146101000a81548160ff0219169083151502179055506060820151816001015f6101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555060808201518160010160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555090505081604001518160040190816120d0919061540b565b505f5b8260200151518110156121165761210b835f0151846020015183815181106120fe576120fd614ea1565b5b60200260200101516128e0565b8060010190506120d3565b507f8d340f17e19058004c20453540862a9c62778504476f6756755cb33bcd6c38c2825f015183604001518460600151856080015160405161215b949392919061551a565b60405180910390a15050806001019050611c84565b5050505050565b61217f6126b5565b61218881613067565b50565b6121a68160800160208101906121a191906141a2565b61076e565b6121f9578060800160208101906121bd91906141a2565b6040517f961c9a4f0000000000000000000000000000000000000000000000000000000081526004016121f09190614493565b60405180910390fd5b7f000000000000000000000000c311a21e6fef769344eb1515588b9d535662a14573ffffffffffffffffffffffffffffffffffffffff16632cbc26bb82602001602081019061224891906144ac565b67ffffffffffffffff1660801b6040518263ffffffff1660e01b8152600401612271919061559f565b602060405180830381865afa15801561228c573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906122b091906155cc565b156122e7576040517f53ad11d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6123028160200160208101906122fd91906144ac565b613189565b61232d81602001602081019061231891906144ac565b828060a001906123289190614d74565b61098f565b61237e57808060a001906123419190614d74565b6040517f24eb47e5000000000000000000000000000000000000000000000000000000008152600401612375929190614fb2565b60405180910390fd5b61239e81602001602081019061239491906144ac565b82606001356132b2565b50565b5f808251036123d2577f0000000000000000000000000000000000000000000000000000000000000006905061247c565b602082511461241857816040517f953576f700000000000000000000000000000000000000000000000000000000815260040161240f9190614a19565b60405180910390fd5b5f8280602001905181019061242d9190615621565b905060ff801681111561247757826040517f953576f700000000000000000000000000000000000000000000000000000000815260040161246e9190614a19565b60405180910390fd5b809150505b919050565b5f7f000000000000000000000000000000000000000000000000000000000000000660ff168260ff16036124b75782905061269a565b7f000000000000000000000000000000000000000000000000000000000000000660ff168260ff1611156125a1575f7f0000000000000000000000000000000000000000000000000000000000000006836125129190615679565b9050604d8160ff16111561258157827f0000000000000000000000000000000000000000000000000000000000000006856040517fa9cb113d000000000000000000000000000000000000000000000000000000008152600401612578939291906156ad565b60405180910390fd5b80600a61258e9190615811565b846125999190615888565b91505061269a565b5f827f00000000000000000000000000000000000000000000000000000000000000066125ce9190615679565b9050604d8160ff161180612618575080600a6125ea9190615811565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6126159190615888565b84115b1561267e57827f0000000000000000000000000000000000000000000000000000000000000006856040517fa9cb113d000000000000000000000000000000000000000000000000000000008152600401612675939291906156ad565b60405180910390fd5b80600a61268b9190615811565b8461269691906158b8565b9150505b92915050565b5f6126ad835f0183613312565b905092915050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461273b576040517f2b5c74de00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b7f0000000000000000000000000000000000000000000000000000000000000000612794576040517f35f4a7b300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b825181101561281a575f8382815181106127b3576127b2614ea1565b5b602002602001015190506127d181600261333290919063ffffffff16565b1561280e577f800671136ab6cfee9fbe5ed1fb7ca417811aca3cf864800d127b927adedf7566816040516128059190614493565b60405180910390a15b50806001019050612796565b505f5b81518110156128db575f82828151811061283a57612839614ea1565b5b602002602001015190505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361287d57506128d0565b61289181600261335f90919063ffffffff16565b156128ce577f2640d4d76caf8bf478aabfa982fa4e1c4eb71a37f93cd15e80dbc657911546d8816040516128c59190614493565b60405180910390a15b505b80600101905061281d565b505050565b5f81510361291a576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8180519060200120905061295f8160075f8667ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f2060050161338c90919063ffffffff16565b6129a25782826040517f393b8ad20000000000000000000000000000000000000000000000000000000081526004016129999291906158f9565b60405180910390fd5b8160085f8381526020019081526020015f2090816129c0919061540b565b508267ffffffffffffffff167f7d628c9a1796743d365ab521a8b2a4686e419b3269919dc9145ea2ce853b54ea836040516129fb9190614a19565b60405180910390a2505050565b5f612a17835f01835f1b613312565b905092915050565b612a2883610d55565b612a6957826040517f1e670e4b000000000000000000000000000000000000000000000000000000008152600401612a609190614e88565b60405180910390fd5b612a73825f612ef6565b612aac8260075f8667ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f205f016133a190919063ffffffff16565b612ab6815f612ef6565b612af08160075f8667ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f206002016133a190919063ffffffff16565b7f0350d63aa5f270e01729d00d627eeb8f3429772b1818c016c66a588a864f912b838383604051612b2393929190615927565b60405180910390a1505050565b612b4b816080016020810190612b4691906141a2565b61076e565b612b9e57806080016020810190612b6291906141a2565b6040517f961c9a4f000000000000000000000000000000000000000000000000000000008152600401612b959190614493565b60405180910390fd5b7f000000000000000000000000c311a21e6fef769344eb1515588b9d535662a14573ffffffffffffffffffffffffffffffffffffffff16632cbc26bb826020016020810190612bed91906144ac565b67ffffffffffffffff1660801b6040518263ffffffff1660e01b8152600401612c16919061559f565b602060405180830381865afa158015612c31573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612c5591906155cc565b15612c8c576040517f53ad11d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612ca7816040016020810190612ca291906141a2565b613629565b612cc2816020016020810190612cbd91906144ac565b6136a8565b612ce2816020016020810190612cd891906144ac565b82606001356137fd565b50565b7f00000000000000000000000041ca7586cc1311807b4605fbb748a3b8862b42b573ffffffffffffffffffffffffffffffffffffffff166342966c68826040518263ffffffff1660e01b8152600401612d3e9190614e0c565b5f604051808303815f87803b158015612d55575f80fd5b505af1158015612d67573d5f803e3d5ffd5b5050505050565b60607f0000000000000000000000000000000000000000000000000000000000000006604051602001612da191906141e8565b604051602081830303815290604052905090565b60605f612dc3835f0161385c565b905060608190508092505050919050565b60605f612de2835f0161385c565b905060608190508092505050919050565b5f612e00835f01836138b5565b905092915050565b612e10613e6d565b612e7282606001516fffffffffffffffffffffffffffffffff16835f01516fffffffffffffffffffffffffffffffff16846020015163ffffffff1642612e56919061595c565b85608001516fffffffffffffffffffffffffffffffff166139b1565b825f01906fffffffffffffffffffffffffffffffff1690816fffffffffffffffffffffffffffffffff168152505042826020019063ffffffff16908163ffffffff1681525050819050919050565b60605f612ece835f0161385c565b905060608190508092505050919050565b5f612eee835f01835f1b6138b5565b905092915050565b815f015115612fce5781602001516fffffffffffffffffffffffffffffffff1682604001516fffffffffffffffffffffffffffffffff16101580612f4f57505f82604001516fffffffffffffffffffffffffffffffff16145b15612f9157816040517f8020d124000000000000000000000000000000000000000000000000000000008152600401612f88919061598f565b60405180910390fd5b8015612fc9576040517f433fc33d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61304c565b5f82604001516fffffffffffffffffffffffffffffffff1614158061300957505f82602001516fffffffffffffffffffffffffffffffff1614155b1561304b57816040517fd68af9cc000000000000000000000000000000000000000000000000000000008152600401613042919061598f565b60405180910390fd5b5b5050565b5f61305f835f01835f1b6139dc565b905092915050565b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036130cc576040517fdad89dca00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff1660015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae127860405160405180910390a350565b61319281610d55565b6131d357806040517fa9902c7e0000000000000000000000000000000000000000000000000000000081526004016131ca9190614e88565b60405180910390fd5b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166383826b2b82336040518363ffffffff1660e01b815260040161322f9291906159a8565b602060405180830381865afa15801561324a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061326e91906155cc565b6132af57336040517f728fe07b0000000000000000000000000000000000000000000000000000000081526004016132a69190614493565b60405180910390fd5b50565b61330e817f00000000000000000000000041ca7586cc1311807b4605fbb748a3b8862b42b560075f8667ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f20600201613a439092919063ffffffff16565b5050565b5f80836001015f8481526020019081526020015f20541415905092915050565b5f613357835f018373ffffffffffffffffffffffffffffffffffffffff165f1b6138b5565b905092915050565b5f613384835f018373ffffffffffffffffffffffffffffffffffffffff165f1b6139dc565b905092915050565b5f613399835f01836139dc565b905092915050565b5f825f0160109054906101000a900463ffffffff1663ffffffff16426133c7919061595c565b90505f81146134ca5761346f836001015f9054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16845f015f9054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16838660010160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166139b1565b835f015f6101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555042835f0160106101000a81548163ffffffff021916908363ffffffff1602179055505b61351a82602001516fffffffffffffffffffffffffffffffff16845f015f9054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16613dfc565b835f015f6101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550815f0151835f0160146101000a81548160ff0219169083151502179055508160200151836001015f6101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555081604001518360010160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055507f9ea3374b67bf275e6bb9c8ae68f9cae023e1c528b4b27e092f0bb209d3531c198260405161361c919061598f565b60405180910390a1505050565b7f0000000000000000000000000000000000000000000000000000000000000000156136a557613663816002613e1490919063ffffffff16565b6136a457806040517fd0d2597600000000000000000000000000000000000000000000000000000000815260040161369b9190614493565b60405180910390fd5b5b50565b6136b181610d55565b6136f257806040517fa9902c7e0000000000000000000000000000000000000000000000000000000081526004016136e99190614e88565b60405180910390fd5b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a8d87a3b826040518263ffffffff1660e01b815260040161374c9190614e88565b602060405180830381865afa158015613767573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061378b91906159e3565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146137fa57336040517f728fe07b0000000000000000000000000000000000000000000000000000000081526004016137f19190614493565b60405180910390fd5b50565b613858817f00000000000000000000000041ca7586cc1311807b4605fbb748a3b8862b42b560075f8667ffffffffffffffff1667ffffffffffffffff1681526020019081526020015f205f01613a439092919063ffffffff16565b5050565b6060815f018054806020026020016040519081016040528092919081815260200182805480156138a957602002820191905f5260205f20905b815481526020019060010190808311613895575b50505050509050919050565b5f80836001015f8481526020019081526020015f205490505f81146139a6575f6001826138e2919061595c565b90505f6001865f01805490506138f8919061595c565b905080821461395e575f865f01828154811061391757613916614ea1565b5b905f5260205f200154905080875f01848154811061393857613937614ea1565b5b905f5260205f20018190555083876001015f8381526020019081526020015f2081905550505b855f0180548061397157613970615a0e565b5b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f9055600193505050506139ab565b5f9150505b92915050565b5f6139d28583856139c291906158b8565b866139cd9190615a3b565b613dfc565b9050949350505050565b5f6139e78383613312565b613a3957825f0182908060018154018082558091505060019003905f5260205f20015f9091909190915055825f0180549050836001015f8481526020019081526020015f208190555060019050613a3d565b5f90505b92915050565b825f0160149054906101000a900460ff161580613a5f57505f82145b613df7575f835f015f9054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1690505f846001015f9054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1690505f855f0160109054906101000a900463ffffffff1663ffffffff1642613af2919061595c565b90505f8114613b985781831115613b35576040517f9725942a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613b738284838960010160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166139b1565b925042865f0160106101000a81548163ffffffff021916908363ffffffff1602179055505b84821015613c53575f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603613c125781856040517ff94ebcd1000000000000000000000000000000000000000000000000000000008152600401613c09929190615a6e565b60405180910390fd5b8185856040517f1a76572a000000000000000000000000000000000000000000000000000000008152600401613c4a93929190615a95565b60405180910390fd5b84831015613d75575f8660010160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1690505f81600183613ca0919061595c565b8689613cac919061595c565b613cb69190615a3b565b613cc09190615888565b90505f73ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1603613d345780856040517f15279c08000000000000000000000000000000000000000000000000000000008152600401613d2b929190615a6e565b60405180910390fd5b8085876040517fd0c8d23a000000000000000000000000000000000000000000000000000000008152600401613d6c93929190615a95565b60405180910390fd5b8483613d81919061595c565b925082865f015f6101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055507f1871cdf8010e63f2eb8384381a68dfa7416dc571a5517e66e88b2d2d0c0a690a85604051613deb9190614e0c565b60405180910390a15050505b505050565b5f818310613e0a5781613e0c565b825b905092915050565b5f613e39835f018373ffffffffffffffffffffffffffffffffffffffff165f1b613312565b905092915050565b60405180602001604052805f81525090565b604051806040016040528060608152602001606081525090565b6040518060a001604052805f6fffffffffffffffffffffffffffffffff1681526020015f63ffffffff1681526020015f151581526020015f6fffffffffffffffffffffffffffffffff1681526020015f6fffffffffffffffffffffffffffffffff1681525090565b508054613ee190614f26565b5f825580601f10613ef25750613f0f565b601f0160209004905f5260205f2090810190613f0e9190613f30565b5b50565b5080545f8255905f5260205f2090810190613f2d9190613f4b565b50565b5b80821115613f47575f815f905550600101613f31565b5090565b5b80821115613f62575f815f905550600101613f4c565b5090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613fab81613f77565b8114613fb5575f80fd5b50565b5f81359050613fc681613fa2565b92915050565b5f60208284031215613fe157613fe0613f6f565b5b5f613fee84828501613fb8565b91505092915050565b5f8115159050919050565b61400b81613ff7565b82525050565b5f6020820190506140245f830184614002565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b83811015614061578082015181840152602081019050614046565b5f8484015250505050565b5f601f19601f8301169050919050565b5f6140868261402a565b6140908185614034565b93506140a0818560208601614044565b6140a98161406c565b840191505092915050565b5f6020820190508181035f8301526140cc818461407c565b905092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61411661411161410c846140d4565b6140f3565b6140d4565b9050919050565b5f614127826140fc565b9050919050565b5f6141388261411d565b9050919050565b6141488161412e565b82525050565b5f6020820190506141615f83018461413f565b92915050565b5f614171826140d4565b9050919050565b61418181614167565b811461418b575f80fd5b50565b5f8135905061419c81614178565b92915050565b5f602082840312156141b7576141b6613f6f565b5b5f6141c48482850161418e565b91505092915050565b5f60ff82169050919050565b6141e2816141cd565b82525050565b5f6020820190506141fb5f8301846141d9565b92915050565b5f80fd5b5f610100828403121561421b5761421a614201565b5b81905092915050565b5f6020828403121561423957614238613f6f565b5b5f82013567ffffffffffffffff81111561425657614255613f73565b5b61426284828501614205565b91505092915050565b5f819050919050565b61427d8161426b565b82525050565b602082015f8201516142975f850182614274565b50505050565b5f6020820190506142b05f830184614283565b92915050565b5f67ffffffffffffffff82169050919050565b6142d2816142b6565b81146142dc575f80fd5b50565b5f813590506142ed816142c9565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112614314576143136142f3565b5b8235905067ffffffffffffffff811115614331576143306142f7565b5b60208301915083600182028301111561434d5761434c6142fb565b5b9250929050565b5f805f6040848603121561436b5761436a613f6f565b5b5f614378868287016142df565b935050602084013567ffffffffffffffff81111561439957614398613f73565b5b6143a5868287016142ff565b92509250509250925092565b5f8083601f8401126143c6576143c56142f3565b5b8235905067ffffffffffffffff8111156143e3576143e26142f7565b5b6020830191508360208202830111156143ff576143fe6142fb565b5b9250929050565b5f805f806040858703121561441e5761441d613f6f565b5b5f85013567ffffffffffffffff81111561443b5761443a613f73565b5b614447878288016143b1565b9450945050602085013567ffffffffffffffff81111561446a57614469613f73565b5b614476878288016143b1565b925092505092959194509250565b61448d81614167565b82525050565b5f6020820190506144a65f830184614484565b92915050565b5f602082840312156144c1576144c0613f6f565b5b5f6144ce848285016142df565b91505092915050565b5f8083601f8401126144ec576144eb6142f3565b5b8235905067ffffffffffffffff811115614509576145086142f7565b5b602083019150836020820283011115614525576145246142fb565b5b9250929050565b5f8083601f840112614541576145406142f3565b5b8235905067ffffffffffffffff81111561455e5761455d6142f7565b5b60208301915083606082028301111561457a576145796142fb565b5b9250929050565b5f805f805f806060878903121561459b5761459a613f6f565b5b5f87013567ffffffffffffffff8111156145b8576145b7613f73565b5b6145c489828a016144d7565b9650965050602087013567ffffffffffffffff8111156145e7576145e6613f73565b5b6145f389828a0161452c565b9450945050604087013567ffffffffffffffff81111561461657614615613f73565b5b61462289828a0161452c565b92509250509295509295509295565b5f60a0828403121561464657614645614201565b5b81905092915050565b5f6020828403121561466457614663613f6f565b5b5f82013567ffffffffffffffff81111561468157614680613f73565b5b61468d84828501614631565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f6146ba82614696565b6146c481856146a0565b93506146d4818560208601614044565b6146dd8161406c565b840191505092915050565b5f604083015f8301518482035f86015261470282826146b0565b9150506020830151848203602086015261471c82826146b0565b9150508091505092915050565b5f6020820190508181035f83015261474181846146e8565b905092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f61477d83836146b0565b905092915050565b5f602082019050919050565b5f61479b82614749565b6147a58185614753565b9350836020820285016147b785614763565b805f5b858110156147f257848403895281516147d38582614772565b94506147de83614785565b925060208a019950506001810190506147ba565b50829750879550505050505092915050565b5f6020820190508181035f83015261481c8184614791565b905092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b61485681614167565b82525050565b5f614867838361484d565b60208301905092915050565b5f602082019050919050565b5f61488982614824565b614893818561482e565b935061489e8361483e565b805f5b838110156148ce5781516148b5888261485c565b97506148c083614873565b9250506001810190506148a1565b5085935050505092915050565b5f6020820190508181035f8301526148f3818461487f565b905092915050565b5f6fffffffffffffffffffffffffffffffff82169050919050565b61491f816148fb565b82525050565b5f63ffffffff82169050919050565b61493d81614925565b82525050565b61494c81613ff7565b82525050565b60a082015f8201516149665f850182614916565b5060208201516149796020850182614934565b50604082015161498c6040850182614943565b50606082015161499f6060850182614916565b5060808201516149b26080850182614916565b50505050565b5f60a0820190506149cb5f830184614952565b92915050565b5f82825260208201905092915050565b5f6149eb82614696565b6149f581856149d1565b9350614a05818560208601614044565b614a0e8161406c565b840191505092915050565b5f6020820190508181035f830152614a3181846149e1565b905092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b614a6b816142b6565b82525050565b5f614a7c8383614a62565b60208301905092915050565b5f602082019050919050565b5f614a9e82614a39565b614aa88185614a43565b9350614ab383614a53565b805f5b83811015614ae3578151614aca8882614a71565b9750614ad583614a88565b925050600181019050614ab6565b5085935050505092915050565b5f6020820190508181035f830152614b088184614a94565b905092915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b614b4a8261406c565b810181811067ffffffffffffffff82111715614b6957614b68614b14565b5b80604052505050565b5f614b7b613f66565b9050614b878282614b41565b919050565b5f80fd5b614b9981613ff7565b8114614ba3575f80fd5b50565b5f81359050614bb481614b90565b92915050565b614bc3816148fb565b8114614bcd575f80fd5b50565b5f81359050614bde81614bba565b92915050565b5f60608284031215614bf957614bf8614b10565b5b614c036060614b72565b90505f614c1284828501614ba6565b5f830152506020614c2584828501614bd0565b6020830152506040614c3984828501614bd0565b60408301525092915050565b5f805f60e08486031215614c5c57614c5b613f6f565b5b5f614c69868287016142df565b9350506020614c7a86828701614be4565b9250506080614c8b86828701614be4565b9150509250925092565b5f8083601f840112614caa57614ca96142f3565b5b8235905067ffffffffffffffff811115614cc757614cc66142f7565b5b602083019150836020820283011115614ce357614ce26142fb565b5b9250929050565b5f805f8060408587031215614d0257614d01613f6f565b5b5f85013567ffffffffffffffff811115614d1f57614d1e613f73565b5b614d2b878288016144d7565b9450945050602085013567ffffffffffffffff811115614d4e57614d4d613f73565b5b614d5a87828801614c95565b925092505092959194509250565b5f80fd5b5f80fd5b5f80fd5b5f8083356001602003843603038112614d9057614d8f614d68565b5b80840192508235915067ffffffffffffffff821115614db257614db1614d6c565b5b602083019250600182023603831315614dce57614dcd614d70565b5b509250929050565b614ddf8161426b565b82525050565b5f604082019050614df85f830185614484565b614e056020830184614dd6565b9392505050565b5f602082019050614e1f5f830184614dd6565b92915050565b5f81905092915050565b828183375f83830152505050565b5f614e488385614e25565b9350614e55838584614e2f565b82840190509392505050565b5f614e6d828486614e3d565b91508190509392505050565b614e82816142b6565b82525050565b5f602082019050614e9b5f830184614e79565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f60608284031215614ee357614ee2613f6f565b5b5f614ef084828501614be4565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680614f3d57607f821691505b602082108103614f5057614f4f614ef9565b5b50919050565b5f614f6183856149d1565b9350614f6e838584614e2f565b614f778361406c565b840190509392505050565b5f604082019050614f955f830186614e79565b8181036020830152614fa8818486614f56565b9050949350505050565b5f6020820190508181035f830152614fcb818486614f56565b90509392505050565b5f604082019050614fe75f830185614484565b614ff46020830184614484565b9392505050565b5f823560016101200383360303811261501757615016614d68565b5b80830191505092915050565b5f67ffffffffffffffff82111561503d5761503c614b14565b5b602082029050602081019050919050565b5f80fd5b5f67ffffffffffffffff82111561506c5761506b614b14565b5b6150758261406c565b9050602081019050919050565b5f61509461508f84615052565b614b72565b9050828152602081018484840111156150b0576150af61504e565b5b6150bb848285614e2f565b509392505050565b5f82601f8301126150d7576150d66142f3565b5b81356150e7848260208601615082565b91505092915050565b5f6151026150fd84615023565b614b72565b90508083825260208201905060208402830185811115615125576151246142fb565b5b835b8181101561516c57803567ffffffffffffffff81111561514a576151496142f3565b5b80860161515789826150c3565b85526020850194505050602081019050615127565b5050509392505050565b5f82601f83011261518a576151896142f3565b5b813561519a8482602086016150f0565b91505092915050565b5f61012082840312156151b9576151b8614b10565b5b6151c360a0614b72565b90505f6151d2848285016142df565b5f83015250602082013567ffffffffffffffff8111156151f5576151f4614b8c565b5b61520184828501615176565b602083015250604082013567ffffffffffffffff81111561522557615224614b8c565b5b615231848285016150c3565b604083015250606061524584828501614be4565b60608301525060c061525984828501614be4565b60808301525092915050565b5f61527036836151a3565b9050919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026152d37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82615298565b6152dd8683615298565b95508019841693508086168417925050509392505050565b5f61530f61530a6153058461426b565b6140f3565b61426b565b9050919050565b5f819050919050565b615328836152f5565b61533c61533482615316565b8484546152a4565b825550505050565b5f90565b615350615344565b61535b81848461531f565b505050565b5b8181101561537e576153735f82615348565b600181019050615361565b5050565b601f8211156153c35761539481615277565b61539d84615289565b810160208510156153ac578190505b6153c06153b885615289565b830182615360565b50505b505050565b5f82821c905092915050565b5f6153e35f19846008026153c8565b1980831691505092915050565b5f6153fb83836153d4565b9150826002028217905092915050565b61541482614696565b67ffffffffffffffff81111561542d5761542c614b14565b5b6154378254614f26565b615442828285615382565b5f60209050601f831160018114615473575f8415615461578287015190505b61546b85826153f0565b8655506154d2565b601f19841661548186615277565b5f5b828110156154a857848901518255600182019150602085019450602081019050615483565b868310156154c557848901516154c1601f8916826153d4565b8355505b6001600288020188555050505b505050505050565b606082015f8201516154ee5f850182614943565b5060208201516155016020850182614916565b5060408201516155146040850182614916565b50505050565b5f6101008201905061552e5f830187614e79565b818103602083015261554081866149e1565b905061554f60408301856154da565b61555c60a08301846154da565b95945050505050565b5f7fffffffffffffffffffffffffffffffff0000000000000000000000000000000082169050919050565b61559981615565565b82525050565b5f6020820190506155b25f830184615590565b92915050565b5f815190506155c681614b90565b92915050565b5f602082840312156155e1576155e0613f6f565b5b5f6155ee848285016155b8565b91505092915050565b6156008161426b565b811461560a575f80fd5b50565b5f8151905061561b816155f7565b92915050565b5f6020828403121561563657615635613f6f565b5b5f6156438482850161560d565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f615683826141cd565b915061568e836141cd565b9250828203905060ff8111156156a7576156a661564c565b5b92915050565b5f6060820190506156c05f8301866141d9565b6156cd60208301856141d9565b6156da6040830184614dd6565b949350505050565b5f8160011c9050919050565b5f808291508390505b6001851115615737578086048111156157135761571261564c565b5b60018516156157225780820291505b8081029050615730856156e2565b94506156f7565b94509492505050565b5f8261574f576001905061580a565b8161575c575f905061580a565b8160018114615772576002811461577c576157ab565b600191505061580a565b60ff84111561578e5761578d61564c565b5b8360020a9150848211156157a5576157a461564c565b5b5061580a565b5060208310610133831016604e8410600b84101617156157e05782820a9050838111156157db576157da61564c565b5b61580a565b6157ed84848460016156ee565b925090508184048111156158045761580361564c565b5b81810290505b9392505050565b5f61581b8261426b565b9150615826836141cd565b92506158537fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484615740565b905092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6158928261426b565b915061589d8361426b565b9250826158ad576158ac61585b565b5b828204905092915050565b5f6158c28261426b565b91506158cd8361426b565b92508282026158db8161426b565b915082820484148315176158f2576158f161564c565b5b5092915050565b5f60408201905061590c5f830185614e79565b818103602083015261591e81846149e1565b90509392505050565b5f60e08201905061593a5f830186614e79565b61594760208301856154da565b61595460808301846154da565b949350505050565b5f6159668261426b565b91506159718361426b565b92508282039050818111156159895761598861564c565b5b92915050565b5f6060820190506159a25f8301846154da565b92915050565b5f6040820190506159bb5f830185614e79565b6159c86020830184614484565b9392505050565b5f815190506159dd81614178565b92915050565b5f602082840312156159f8576159f7613f6f565b5b5f615a05848285016159cf565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd5b5f615a458261426b565b9150615a508361426b565b9250828201905080821115615a6857615a6761564c565b5b92915050565b5f604082019050615a815f830185614dd6565b615a8e6020830184614dd6565b9392505050565b5f606082019050615aa85f830186614dd6565b615ab56020830185614dd6565b615ac26040830184614484565b94935050505056fea26469706673582212205271da5afdedd023717a0eea973fa48bb829177bb2d7e306a8a6ad83d2f4b9a264736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000041ca7586cc1311807b4605fbb748a3b8862b42b5000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000c311a21e6fef769344eb1515588b9d535662a145000000000000000000000000141fa059441e0ca23ce184b6a78bafd2a517dde80000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : token (address): 0x41CA7586cC1311807B4605fBB748a3B8862b42b5
Arg [1] : localTokenDecimals (uint8): 6
Arg [2] : allowlist (address[]):
Arg [3] : rmnProxy (address): 0xC311a21e6fEf769344EB1515588B9d535662a145
Arg [4] : router (address): 0x141fa059441E0ca23ce184B6A78bafD2A517DdE8
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 00000000000000000000000041ca7586cc1311807b4605fbb748a3b8862b42b5
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 000000000000000000000000c311a21e6fef769344eb1515588b9d535662a145
Arg [4] : 000000000000000000000000141fa059441e0ca23ce184b6a78bafd2a517dde8
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
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.