@stargatefinance/stg-evm-sdk-v2 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/src/StargatePool.sol/StargatePool.json +2 -2
- package/artifacts/src/StargatePoolNative.sol/StargatePoolNative.json +2 -2
- package/artifacts/src/feelibs/FeeLibV1.sol/FeeLibV1.json +28 -16
- package/artifacts/src/libs/Bus.sol/BusLib.json +4 -4
- package/artifacts/src/messaging/TokenMessaging.sol/TokenMessaging.json +4 -4
- package/artifacts/src/mocks/WETH.sol/WETH.json +2 -2
- package/artifacts/src/peripheral/RebateCampaign.sol/RebateCampaign.json +2 -2
- package/artifacts/src/peripheral/rewarder/StargateMultiRewarder.sol/StargateMultiRewarder.json +3 -3
- package/artifacts/src/peripheral/rewarder/StargateStaking.sol/StargateStaking.json +3 -3
- package/artifacts/src/peripheral/rewarder/lib/RewardLib.sol/RewardLib.json +2 -2
- package/artifacts/src/peripheral/rewarder/lib/RewardRegistryLib.sol/RewardRegistryLib.json +2 -2
- package/artifacts/src/peripheral/rewarder/lib/StakingLib.sol/StakingLib.json +2 -2
- package/artifacts/src/usdc/StargatePoolUSDC.sol/StargatePoolUSDC.json +2 -2
- package/deployments/bsc-sandbox-local/CreditMessaging.json +16 -16
- package/deployments/bsc-sandbox-local/FeeLibV1BUSD.json +39 -27
- package/deployments/bsc-sandbox-local/FeeLibV1ETH.json +39 -27
- package/deployments/bsc-sandbox-local/FeeLibV1LUSD.json +39 -27
- package/deployments/bsc-sandbox-local/FeeLibV1USDC.json +39 -27
- package/deployments/bsc-sandbox-local/FeeLibV1USDT.json +39 -27
- package/deployments/bsc-sandbox-local/IntentOFTBUSD.json +11 -11
- package/deployments/bsc-sandbox-local/IntentOFTETH.json +11 -11
- package/deployments/bsc-sandbox-local/IntentOFTLUSD.json +11 -11
- package/deployments/bsc-sandbox-local/IntentOFTUSDC.json +11 -11
- package/deployments/bsc-sandbox-local/IntentOFTUSDT.json +11 -11
- package/deployments/bsc-sandbox-local/OFTTokenBUSD.json +8 -8
- package/deployments/bsc-sandbox-local/OFTTokenETH.json +8 -8
- package/deployments/bsc-sandbox-local/OFTTokenLUSD.json +8 -8
- package/deployments/bsc-sandbox-local/OFTTokenSTGRewardMock.json +8 -8
- package/deployments/bsc-sandbox-local/OFTTokenUSDC.json +8 -8
- package/deployments/bsc-sandbox-local/OFTTokenUSDT.json +8 -8
- package/deployments/bsc-sandbox-local/Permit2Mock.json +2 -2
- package/deployments/bsc-sandbox-local/RewardLib.json +5 -5
- package/deployments/bsc-sandbox-local/RewardRegistryLib.json +5 -5
- package/deployments/bsc-sandbox-local/StargateMultiRewarder.json +39 -39
- package/deployments/bsc-sandbox-local/StargateOFTBUSD.json +17 -17
- package/deployments/bsc-sandbox-local/StargateOFTETH.json +17 -17
- package/deployments/bsc-sandbox-local/StargateOFTLUSD.json +17 -17
- package/deployments/bsc-sandbox-local/StargateOFTUSDC.json +17 -17
- package/deployments/bsc-sandbox-local/StargateOFTUSDT.json +17 -17
- package/deployments/bsc-sandbox-local/StargateStaking.json +20 -20
- package/deployments/bsc-sandbox-local/TokenMessaging.json +35 -35
- package/deployments/bsc-sandbox-local/WETH.json +5 -5
- package/deployments/ethereum-sandbox-local/CreditMessaging.json +16 -16
- package/deployments/ethereum-sandbox-local/FeeLibV1BUSD.json +39 -27
- package/deployments/ethereum-sandbox-local/FeeLibV1ETH.json +39 -27
- package/deployments/ethereum-sandbox-local/FeeLibV1LUSD.json +39 -27
- package/deployments/ethereum-sandbox-local/FeeLibV1USDC.json +39 -27
- package/deployments/ethereum-sandbox-local/FeeLibV1USDT.json +39 -27
- package/deployments/ethereum-sandbox-local/IntentOFTBUSD.json +11 -11
- package/deployments/ethereum-sandbox-local/IntentPoolLUSD.json +11 -11
- package/deployments/ethereum-sandbox-local/IntentPoolNative.json +8 -8
- package/deployments/ethereum-sandbox-local/IntentPoolUSDC.json +11 -11
- package/deployments/ethereum-sandbox-local/IntentPoolUSDT.json +11 -11
- package/deployments/ethereum-sandbox-local/OFTTokenBUSD.json +8 -8
- package/deployments/ethereum-sandbox-local/OFTTokenSTGRewardMock.json +8 -8
- package/deployments/ethereum-sandbox-local/Permit2Mock.json +2 -2
- package/deployments/ethereum-sandbox-local/PoolTokenLUSD.json +11 -11
- package/deployments/ethereum-sandbox-local/PoolTokenUSDC.json +11 -11
- package/deployments/ethereum-sandbox-local/PoolTokenUSDT.json +11 -11
- package/deployments/ethereum-sandbox-local/RewardLib.json +5 -5
- package/deployments/ethereum-sandbox-local/RewardRegistryLib.json +5 -5
- package/deployments/ethereum-sandbox-local/StargateMultiRewarder.json +39 -39
- package/deployments/ethereum-sandbox-local/StargateOFTBUSD.json +17 -17
- package/deployments/ethereum-sandbox-local/StargatePoolLUSD.json +17 -17
- package/deployments/ethereum-sandbox-local/StargatePoolNative.json +17 -17
- package/deployments/ethereum-sandbox-local/StargatePoolUSDC.json +17 -17
- package/deployments/ethereum-sandbox-local/StargatePoolUSDT.json +17 -17
- package/deployments/ethereum-sandbox-local/StargateStaking.json +20 -20
- package/deployments/ethereum-sandbox-local/TokenMessaging.json +35 -35
- package/deployments/ethereum-sandbox-local/WETH.json +5 -5
- package/deployments/polygon-sandbox-local/CreditMessaging.json +16 -16
- package/deployments/polygon-sandbox-local/FeeLibV1BUSD.json +39 -27
- package/deployments/polygon-sandbox-local/FeeLibV1ETH.json +39 -27
- package/deployments/polygon-sandbox-local/FeeLibV1LUSD.json +39 -27
- package/deployments/polygon-sandbox-local/FeeLibV1USDC.json +39 -27
- package/deployments/polygon-sandbox-local/FeeLibV1USDT.json +39 -27
- package/deployments/polygon-sandbox-local/IntentOFTBUSD.json +11 -11
- package/deployments/polygon-sandbox-local/IntentOFTETH.json +11 -11
- package/deployments/polygon-sandbox-local/IntentOFTLUSD.json +11 -11
- package/deployments/polygon-sandbox-local/IntentOFTUSDC.json +11 -11
- package/deployments/polygon-sandbox-local/IntentPoolUSDT.json +11 -11
- package/deployments/polygon-sandbox-local/OFTTokenBUSD.json +8 -8
- package/deployments/polygon-sandbox-local/OFTTokenETH.json +8 -8
- package/deployments/polygon-sandbox-local/OFTTokenLUSD.json +8 -8
- package/deployments/polygon-sandbox-local/OFTTokenSTGRewardMock.json +8 -8
- package/deployments/polygon-sandbox-local/OFTTokenUSDC.json +8 -8
- package/deployments/polygon-sandbox-local/Permit2Mock.json +2 -2
- package/deployments/polygon-sandbox-local/PoolTokenUSDT.json +11 -11
- package/deployments/polygon-sandbox-local/RewardLib.json +5 -5
- package/deployments/polygon-sandbox-local/RewardRegistryLib.json +5 -5
- package/deployments/polygon-sandbox-local/StargateMultiRewarder.json +39 -39
- package/deployments/polygon-sandbox-local/StargateOFTBUSD.json +17 -17
- package/deployments/polygon-sandbox-local/StargateOFTETH.json +17 -17
- package/deployments/polygon-sandbox-local/StargateOFTLUSD.json +17 -17
- package/deployments/polygon-sandbox-local/StargateOFTUSDC.json +17 -17
- package/deployments/polygon-sandbox-local/StargatePoolUSDT.json +17 -17
- package/deployments/polygon-sandbox-local/StargateStaking.json +20 -20
- package/deployments/polygon-sandbox-local/TokenMessaging.json +35 -35
- package/deployments/polygon-sandbox-local/WETH.json +5 -5
- package/dist/index.cjs +68 -46
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +105 -94
- package/dist/index.d.ts +105 -94
- package/dist/index.mjs +68 -46
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -372,7 +372,7 @@
|
|
|
372
372
|
"type": "function"
|
|
373
373
|
}
|
|
374
374
|
],
|
|
375
|
-
"transactionHash": "
|
|
375
|
+
"transactionHash": "0xb373cca1ec4c0936b53aef993137f9d7d15e88a15c81bc403c156c6640fa55b9",
|
|
376
376
|
"receipt": {
|
|
377
377
|
"to": null,
|
|
378
378
|
"from": "0x14dC79964da2C08b23698B3D3cc7Ca32193d9955",
|
|
@@ -380,13 +380,13 @@
|
|
|
380
380
|
"transactionIndex": 0,
|
|
381
381
|
"gasUsed": "1036963",
|
|
382
382
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000001000000000400000000000000000000000000020002000000000000000800000000000000000000000000000000400000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000",
|
|
383
|
-
"blockHash": "
|
|
384
|
-
"transactionHash": "
|
|
383
|
+
"blockHash": "0xfe5baf286a7a0266ce2deae10983bd215752e4ff51daf44c7923441d344e5401",
|
|
384
|
+
"transactionHash": "0xb373cca1ec4c0936b53aef993137f9d7d15e88a15c81bc403c156c6640fa55b9",
|
|
385
385
|
"logs": [
|
|
386
386
|
{
|
|
387
387
|
"transactionIndex": 0,
|
|
388
|
-
"blockNumber":
|
|
389
|
-
"transactionHash": "
|
|
388
|
+
"blockNumber": 321,
|
|
389
|
+
"transactionHash": "0xb373cca1ec4c0936b53aef993137f9d7d15e88a15c81bc403c156c6640fa55b9",
|
|
390
390
|
"address": "0x3d63CC6672Ff08479EadC4606EFD22aeDa592C9E",
|
|
391
391
|
"topics": [
|
|
392
392
|
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
|
|
@@ -395,10 +395,10 @@
|
|
|
395
395
|
],
|
|
396
396
|
"data": "0x",
|
|
397
397
|
"logIndex": 0,
|
|
398
|
-
"blockHash": "
|
|
398
|
+
"blockHash": "0xfe5baf286a7a0266ce2deae10983bd215752e4ff51daf44c7923441d344e5401"
|
|
399
399
|
}
|
|
400
400
|
],
|
|
401
|
-
"blockNumber":
|
|
401
|
+
"blockNumber": 321,
|
|
402
402
|
"cumulativeGasUsed": "1036963",
|
|
403
403
|
"status": 1,
|
|
404
404
|
"byzantium": true
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
"USDC"
|
|
408
408
|
],
|
|
409
409
|
"numDeployments": 1,
|
|
410
|
-
"solcInputHash": "
|
|
410
|
+
"solcInputHash": "ab2f1acabd9de40c31737c205d413598",
|
|
411
411
|
"metadata": "{\"compiler\":{\"version\":\"0.8.22+commit.4fc1097e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_symbol\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_qty\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero.\"}},\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"See {IERC20-allowance}.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on `transferFrom`. This is semantically equivalent to an infinite approval. Requirements: - `spender` cannot be the zero address.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"decimals()\":{\"details\":\"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the default value returned by this function, unless it's overridden. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`.\"},\"increaseAllowance(address,uint256)\":{\"details\":\"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address.\"},\"name()\":{\"details\":\"Returns the name of the token.\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"symbol()\":{\"details\":\"Returns the symbol of the token, usually a shorter version of the name.\"},\"totalSupply()\":{\"details\":\"See {IERC20-totalSupply}.\"},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. NOTE: Does not update the allowance if the current allowance is the maximum `uint256`. Requirements: - `from` and `to` cannot be the zero address. - `from` must have a balance of at least `amount`. - the caller must have allowance for ``from``'s tokens of at least `amount`.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/mocks/USDC.sol\":\"USDC\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":13000},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xba43b97fba0d32eb4254f6a5a297b39a19a247082a02d6e69349e071e2946218\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/ERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC20.sol\\\";\\nimport \\\"./extensions/IERC20Metadata.sol\\\";\\nimport \\\"../../utils/Context.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC20} interface.\\n *\\n * This implementation is agnostic to the way tokens are created. This means\\n * that a supply mechanism has to be added in a derived contract using {_mint}.\\n * For a generic mechanism see {ERC20PresetMinterPauser}.\\n *\\n * TIP: For a detailed writeup see our guide\\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\\n * to implement supply mechanisms].\\n *\\n * The default value of {decimals} is 18. To change this, you should override\\n * this function so it returns a different value.\\n *\\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\\n * instead returning `false` on failure. This behavior is nonetheless\\n * conventional and does not conflict with the expectations of ERC20\\n * applications.\\n *\\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\\n * This allows applications to reconstruct the allowance for all accounts just\\n * by listening to said events. Other implementations of the EIP may not emit\\n * these events, as it isn't required by the specification.\\n *\\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\\n * functions have been added to mitigate the well-known issues around setting\\n * allowances. See {IERC20-approve}.\\n */\\ncontract ERC20 is Context, IERC20, IERC20Metadata {\\n mapping(address => uint256) private _balances;\\n\\n mapping(address => mapping(address => uint256)) private _allowances;\\n\\n uint256 private _totalSupply;\\n\\n string private _name;\\n string private _symbol;\\n\\n /**\\n * @dev Sets the values for {name} and {symbol}.\\n *\\n * All two of these values are immutable: they can only be set once during\\n * construction.\\n */\\n constructor(string memory name_, string memory symbol_) {\\n _name = name_;\\n _symbol = symbol_;\\n }\\n\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() public view virtual override returns (string memory) {\\n return _name;\\n }\\n\\n /**\\n * @dev Returns the symbol of the token, usually a shorter version of the\\n * name.\\n */\\n function symbol() public view virtual override returns (string memory) {\\n return _symbol;\\n }\\n\\n /**\\n * @dev Returns the number of decimals used to get its user representation.\\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\\n * be displayed to a user as `5.05` (`505 / 10 ** 2`).\\n *\\n * Tokens usually opt for a value of 18, imitating the relationship between\\n * Ether and Wei. This is the default value returned by this function, unless\\n * it's overridden.\\n *\\n * NOTE: This information is only used for _display_ purposes: it in\\n * no way affects any of the arithmetic of the contract, including\\n * {IERC20-balanceOf} and {IERC20-transfer}.\\n */\\n function decimals() public view virtual override returns (uint8) {\\n return 18;\\n }\\n\\n /**\\n * @dev See {IERC20-totalSupply}.\\n */\\n function totalSupply() public view virtual override returns (uint256) {\\n return _totalSupply;\\n }\\n\\n /**\\n * @dev See {IERC20-balanceOf}.\\n */\\n function balanceOf(address account) public view virtual override returns (uint256) {\\n return _balances[account];\\n }\\n\\n /**\\n * @dev See {IERC20-transfer}.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n * - the caller must have a balance of at least `amount`.\\n */\\n function transfer(address to, uint256 amount) public virtual override returns (bool) {\\n address owner = _msgSender();\\n _transfer(owner, to, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-allowance}.\\n */\\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\\n return _allowances[owner][spender];\\n }\\n\\n /**\\n * @dev See {IERC20-approve}.\\n *\\n * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on\\n * `transferFrom`. This is semantically equivalent to an infinite approval.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\\n address owner = _msgSender();\\n _approve(owner, spender, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-transferFrom}.\\n *\\n * Emits an {Approval} event indicating the updated allowance. This is not\\n * required by the EIP. See the note at the beginning of {ERC20}.\\n *\\n * NOTE: Does not update the allowance if the current allowance\\n * is the maximum `uint256`.\\n *\\n * Requirements:\\n *\\n * - `from` and `to` cannot be the zero address.\\n * - `from` must have a balance of at least `amount`.\\n * - the caller must have allowance for ``from``'s tokens of at least\\n * `amount`.\\n */\\n function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {\\n address spender = _msgSender();\\n _spendAllowance(from, spender, amount);\\n _transfer(from, to, amount);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically increases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\\n address owner = _msgSender();\\n _approve(owner, spender, allowance(owner, spender) + addedValue);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `spender` must have allowance for the caller of at least\\n * `subtractedValue`.\\n */\\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\\n address owner = _msgSender();\\n uint256 currentAllowance = allowance(owner, spender);\\n require(currentAllowance >= subtractedValue, \\\"ERC20: decreased allowance below zero\\\");\\n unchecked {\\n _approve(owner, spender, currentAllowance - subtractedValue);\\n }\\n\\n return true;\\n }\\n\\n /**\\n * @dev Moves `amount` of tokens from `from` to `to`.\\n *\\n * This internal function is equivalent to {transfer}, and can be used to\\n * e.g. implement automatic token fees, slashing mechanisms, etc.\\n *\\n * Emits a {Transfer} event.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `to` cannot be the zero address.\\n * - `from` must have a balance of at least `amount`.\\n */\\n function _transfer(address from, address to, uint256 amount) internal virtual {\\n require(from != address(0), \\\"ERC20: transfer from the zero address\\\");\\n require(to != address(0), \\\"ERC20: transfer to the zero address\\\");\\n\\n _beforeTokenTransfer(from, to, amount);\\n\\n uint256 fromBalance = _balances[from];\\n require(fromBalance >= amount, \\\"ERC20: transfer amount exceeds balance\\\");\\n unchecked {\\n _balances[from] = fromBalance - amount;\\n // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by\\n // decrementing then incrementing.\\n _balances[to] += amount;\\n }\\n\\n emit Transfer(from, to, amount);\\n\\n _afterTokenTransfer(from, to, amount);\\n }\\n\\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\\n * the total supply.\\n *\\n * Emits a {Transfer} event with `from` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n */\\n function _mint(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: mint to the zero address\\\");\\n\\n _beforeTokenTransfer(address(0), account, amount);\\n\\n _totalSupply += amount;\\n unchecked {\\n // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.\\n _balances[account] += amount;\\n }\\n emit Transfer(address(0), account, amount);\\n\\n _afterTokenTransfer(address(0), account, amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, reducing the\\n * total supply.\\n *\\n * Emits a {Transfer} event with `to` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n * - `account` must have at least `amount` tokens.\\n */\\n function _burn(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: burn from the zero address\\\");\\n\\n _beforeTokenTransfer(account, address(0), amount);\\n\\n uint256 accountBalance = _balances[account];\\n require(accountBalance >= amount, \\\"ERC20: burn amount exceeds balance\\\");\\n unchecked {\\n _balances[account] = accountBalance - amount;\\n // Overflow not possible: amount <= accountBalance <= totalSupply.\\n _totalSupply -= amount;\\n }\\n\\n emit Transfer(account, address(0), amount);\\n\\n _afterTokenTransfer(account, address(0), amount);\\n }\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\\n *\\n * This internal function is equivalent to `approve`, and can be used to\\n * e.g. set automatic allowances for certain subsystems, etc.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `owner` cannot be the zero address.\\n * - `spender` cannot be the zero address.\\n */\\n function _approve(address owner, address spender, uint256 amount) internal virtual {\\n require(owner != address(0), \\\"ERC20: approve from the zero address\\\");\\n require(spender != address(0), \\\"ERC20: approve to the zero address\\\");\\n\\n _allowances[owner][spender] = amount;\\n emit Approval(owner, spender, amount);\\n }\\n\\n /**\\n * @dev Updates `owner` s allowance for `spender` based on spent `amount`.\\n *\\n * Does not update the allowance amount in case of infinite allowance.\\n * Revert if not enough allowance is available.\\n *\\n * Might emit an {Approval} event.\\n */\\n function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {\\n uint256 currentAllowance = allowance(owner, spender);\\n if (currentAllowance != type(uint256).max) {\\n require(currentAllowance >= amount, \\\"ERC20: insufficient allowance\\\");\\n unchecked {\\n _approve(owner, spender, currentAllowance - amount);\\n }\\n }\\n }\\n\\n /**\\n * @dev Hook that is called before any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * will be transferred to `to`.\\n * - when `from` is zero, `amount` tokens will be minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}\\n\\n /**\\n * @dev Hook that is called after any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * has been transferred to `to`.\\n * - when `from` is zero, `amount` tokens have been minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens have been burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}\\n}\\n\",\"keccak256\":\"0xa56ca923f70c1748830700250b19c61b70db9a683516dc5e216694a50445d99c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address from, address to, uint256 amount) external returns (bool);\\n}\\n\",\"keccak256\":\"0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\n\\n/**\\n * @dev Interface for the optional metadata functions from the ERC20 standard.\\n *\\n * _Available since v4.1._\\n */\\ninterface IERC20Metadata is IERC20 {\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() external view returns (string memory);\\n\\n /**\\n * @dev Returns the symbol of the token.\\n */\\n function symbol() external view returns (string memory);\\n\\n /**\\n * @dev Returns the decimals places of the token.\\n */\\n function decimals() external view returns (uint8);\\n}\\n\",\"keccak256\":\"0x8de418a5503946cabe331f35fe242d3201a73f67f77aaeb7110acb1f30423aca\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xa92e4fa126feb6907daa0513ddd816b2eb91f30a808de54f63c17d0e162c3439\",\"license\":\"MIT\"},\"src/interfaces/IBridgedUSDCMinter.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.0;\\n\\n/// @title Interface for Bridge USDC\\n/// @dev https://github.com/circlefin/stablecoin-evm/blob/master/contracts/v1/FiatTokenV1.sol\\ninterface IBridgedUSDCMinter {\\n function mint(address _to, uint256 _amount) external returns (bool);\\n function burn(uint256 _amount) external;\\n}\\n\",\"keccak256\":\"0x19a1177884b7a4088f0415de8bca98e741239808ad436b351dee3cd9e85efb13\",\"license\":\"BUSL-1.1\"},\"src/mocks/USDC.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity ^0.8.0;\\n\\nimport { ERC20 } from \\\"@openzeppelin/contracts/token/ERC20/ERC20.sol\\\";\\nimport { Ownable } from \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\nimport { IBridgedUSDCMinter } from \\\"../interfaces/IBridgedUSDCMinter.sol\\\";\\n\\ncontract USDC is ERC20, Ownable, IBridgedUSDCMinter {\\n constructor(string memory _symbol) ERC20(\\\"USDC Token\\\", _symbol) {}\\n\\n function mint(address _to, uint256 _qty) public override onlyOwner returns (bool) {\\n _mint(_to, _qty);\\n return true;\\n }\\n\\n function burn(uint256 _amount) public override {\\n _burn(_msgSender(), _amount);\\n }\\n}\\n\",\"keccak256\":\"0x2248c5c69b8af704a7c7e2039bf7385eda142ae5e721013b54ee68c833be0259\",\"license\":\"BUSL-1.1\"}},\"version\":1}",
|
|
412
412
|
"bytecode": "0x60806040523480156200001157600080fd5b50604051620013b6380380620013b6833981016040819052620000349162000103565b60408051808201909152600a8152692aa9a221902a37b5b2b760b11b602082015281600362000064838262000269565b50600462000073828262000269565b505050620000906200008a6200009760201b60201c565b6200009b565b5062000335565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200011757600080fd5b82516001600160401b03808211156200012f57600080fd5b818501915085601f8301126200014457600080fd5b815181811115620001595762000159620000ed565b604051601f8201601f19908116603f01168101908382118183101715620001845762000184620000ed565b8160405282815288868487010111156200019d57600080fd5b600093505b82841015620001c15784840186015181850187015292850192620001a2565b600086848301015280965050505050505092915050565b600181811c90821680620001ed57607f821691505b6020821081036200020e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000264576000816000526020600020601f850160051c810160208610156200023f5750805b601f850160051c820191505b8181101562000260578281556001016200024b565b5050505b505050565b81516001600160401b03811115620002855762000285620000ed565b6200029d81620002968454620001d8565b8462000214565b602080601f831160018114620002d55760008415620002bc5750858301515b600019600386901b1c1916600185901b17855562000260565b600085815260208120601f198616915b828110156200030657888601518255948401946001909101908401620002e5565b5085821015620003255787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61107180620003456000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806370a0823111610097578063a457c2d711610066578063a457c2d714610223578063a9059cbb14610236578063dd62ed3e14610249578063f2fde38b1461028f57600080fd5b806370a08231146101b5578063715018a6146101eb5780638da5cb5b146101f357806395d89b411461021b57600080fd5b8063313ce567116100d3578063313ce5671461016b578063395093511461017a57806340c10f191461018d57806342966c68146101a057600080fd5b806306fdde0314610105578063095ea7b31461012357806318160ddd1461014657806323b872dd14610158575b600080fd5b61010d6102a2565b60405161011a9190610e44565b60405180910390f35b610136610131366004610eda565b610334565b604051901515815260200161011a565b6002545b60405190815260200161011a565b610136610166366004610f04565b61034e565b6040516012815260200161011a565b610136610188366004610eda565b610372565b61013661019b366004610eda565b6103be565b6101b36101ae366004610f40565b6103db565b005b61014a6101c3366004610f59565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6101b36103e8565b60055460405173ffffffffffffffffffffffffffffffffffffffff909116815260200161011a565b61010d6103fc565b610136610231366004610eda565b61040b565b610136610244366004610eda565b6104e1565b61014a610257366004610f7b565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b6101b361029d366004610f59565b6104ef565b6060600380546102b190610fae565b80601f01602080910402602001604051908101604052809291908181526020018280546102dd90610fae565b801561032a5780601f106102ff5761010080835404028352916020019161032a565b820191906000526020600020905b81548152906001019060200180831161030d57829003601f168201915b5050505050905090565b6000336103428185856105a3565b60019150505b92915050565b60003361035c858285610757565b61036785858561082e565b506001949350505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919061034290829086906103b9908790611001565b6105a3565b60006103c8610a9d565b6103d28383610b1e565b50600192915050565b6103e53382610c11565b50565b6103f0610a9d565b6103fa6000610dcd565b565b6060600480546102b190610fae565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909190838110156104d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61036782868684036105a3565b60003361034281858561082e565b6104f7610a9d565b73ffffffffffffffffffffffffffffffffffffffff811661059a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104cb565b6103e581610dcd565b73ffffffffffffffffffffffffffffffffffffffff8316610645576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016104cb565b73ffffffffffffffffffffffffffffffffffffffff82166106e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016104cb565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610828578181101561081b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016104cb565b61082884848484036105a3565b50505050565b73ffffffffffffffffffffffffffffffffffffffff83166108d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016104cb565b73ffffffffffffffffffffffffffffffffffffffff8216610974576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016104cb565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015610a2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016104cb565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610828565b60055473ffffffffffffffffffffffffffffffffffffffff1633146103fa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104cb565b73ffffffffffffffffffffffffffffffffffffffff8216610b9b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104cb565b8060026000828254610bad9190611001565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff8216610cb4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016104cb565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090205481811015610d6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016104cb565b73ffffffffffffffffffffffffffffffffffffffff83166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910161074a565b6005805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006020808352835180602085015260005b81811015610e7257858101830151858201604001528201610e56565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610ed557600080fd5b919050565b60008060408385031215610eed57600080fd5b610ef683610eb1565b946020939093013593505050565b600080600060608486031215610f1957600080fd5b610f2284610eb1565b9250610f3060208501610eb1565b9150604084013590509250925092565b600060208284031215610f5257600080fd5b5035919050565b600060208284031215610f6b57600080fd5b610f7482610eb1565b9392505050565b60008060408385031215610f8e57600080fd5b610f9783610eb1565b9150610fa560208401610eb1565b90509250929050565b600181811c90821680610fc257607f821691505b602082108103610ffb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b80820180821115610348577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea26469706673582212203de3fe70aa45c95a83050bcc8b6d83a8fa8e15f9a44d798fae83fd1586a589c364736f6c63430008160033",
|
|
413
413
|
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101005760003560e01c806370a0823111610097578063a457c2d711610066578063a457c2d714610223578063a9059cbb14610236578063dd62ed3e14610249578063f2fde38b1461028f57600080fd5b806370a08231146101b5578063715018a6146101eb5780638da5cb5b146101f357806395d89b411461021b57600080fd5b8063313ce567116100d3578063313ce5671461016b578063395093511461017a57806340c10f191461018d57806342966c68146101a057600080fd5b806306fdde0314610105578063095ea7b31461012357806318160ddd1461014657806323b872dd14610158575b600080fd5b61010d6102a2565b60405161011a9190610e44565b60405180910390f35b610136610131366004610eda565b610334565b604051901515815260200161011a565b6002545b60405190815260200161011a565b610136610166366004610f04565b61034e565b6040516012815260200161011a565b610136610188366004610eda565b610372565b61013661019b366004610eda565b6103be565b6101b36101ae366004610f40565b6103db565b005b61014a6101c3366004610f59565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6101b36103e8565b60055460405173ffffffffffffffffffffffffffffffffffffffff909116815260200161011a565b61010d6103fc565b610136610231366004610eda565b61040b565b610136610244366004610eda565b6104e1565b61014a610257366004610f7b565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b6101b361029d366004610f59565b6104ef565b6060600380546102b190610fae565b80601f01602080910402602001604051908101604052809291908181526020018280546102dd90610fae565b801561032a5780601f106102ff5761010080835404028352916020019161032a565b820191906000526020600020905b81548152906001019060200180831161030d57829003601f168201915b5050505050905090565b6000336103428185856105a3565b60019150505b92915050565b60003361035c858285610757565b61036785858561082e565b506001949350505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716845290915281205490919061034290829086906103b9908790611001565b6105a3565b60006103c8610a9d565b6103d28383610b1e565b50600192915050565b6103e53382610c11565b50565b6103f0610a9d565b6103fa6000610dcd565b565b6060600480546102b190610fae565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909190838110156104d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61036782868684036105a3565b60003361034281858561082e565b6104f7610a9d565b73ffffffffffffffffffffffffffffffffffffffff811661059a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104cb565b6103e581610dcd565b73ffffffffffffffffffffffffffffffffffffffff8316610645576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016104cb565b73ffffffffffffffffffffffffffffffffffffffff82166106e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016104cb565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610828578181101561081b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016104cb565b61082884848484036105a3565b50505050565b73ffffffffffffffffffffffffffffffffffffffff83166108d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016104cb565b73ffffffffffffffffffffffffffffffffffffffff8216610974576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016104cb565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015610a2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016104cb565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610828565b60055473ffffffffffffffffffffffffffffffffffffffff1633146103fa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104cb565b73ffffffffffffffffffffffffffffffffffffffff8216610b9b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104cb565b8060026000828254610bad9190611001565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff8216610cb4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016104cb565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090205481811015610d6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016104cb565b73ffffffffffffffffffffffffffffffffffffffff83166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910161074a565b6005805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006020808352835180602085015260005b81811015610e7257858101830151858201604001528201610e56565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b803573ffffffffffffffffffffffffffffffffffffffff81168114610ed557600080fd5b919050565b60008060408385031215610eed57600080fd5b610ef683610eb1565b946020939093013593505050565b600080600060608486031215610f1957600080fd5b610f2284610eb1565b9250610f3060208501610eb1565b9150604084013590509250925092565b600060208284031215610f5257600080fd5b5035919050565b600060208284031215610f6b57600080fd5b610f7482610eb1565b9392505050565b60008060408385031215610f8e57600080fd5b610f9783610eb1565b9150610fa560208401610eb1565b90509250929050565b600181811c90821680610fc257607f821691505b602082108103610ffb577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b80820180821115610348577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea26469706673582212203de3fe70aa45c95a83050bcc8b6d83a8fa8e15f9a44d798fae83fd1586a589c364736f6c63430008160033",
|
|
@@ -909,10 +909,10 @@
|
|
|
909
909
|
"transactionIndex": 0,
|
|
910
910
|
"gasUsed": "1932206",
|
|
911
911
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
912
|
-
"blockHash": "
|
|
912
|
+
"blockHash": "0x36b05a0fbf23c496bf78fa71977fc4b1f54cd2c402a7bcb771dad6aac7feb4a5",
|
|
913
913
|
"transactionHash": "0xdbf3473161d1136268f749279f65a1efa66e1fc4ac9a6844f9bb563ce8a1c380",
|
|
914
914
|
"logs": [],
|
|
915
|
-
"blockNumber":
|
|
915
|
+
"blockNumber": 271,
|
|
916
916
|
"cumulativeGasUsed": "1932206",
|
|
917
917
|
"status": 1,
|
|
918
918
|
"byzantium": true
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
"type": "function"
|
|
398
398
|
}
|
|
399
399
|
],
|
|
400
|
-
"transactionHash": "
|
|
400
|
+
"transactionHash": "0xf67b4aa71abb580d27e9f4c9c96beb9d14dad42493086043c4d82d7cdb18cd2a",
|
|
401
401
|
"receipt": {
|
|
402
402
|
"to": null,
|
|
403
403
|
"from": "0x14dC79964da2C08b23698B3D3cc7Ca32193d9955",
|
|
@@ -405,13 +405,13 @@
|
|
|
405
405
|
"transactionIndex": 0,
|
|
406
406
|
"gasUsed": "1163837",
|
|
407
407
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000001000000000400000000000000000000000000020000000000000000000800001000000000000000000010000800400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000002000000000000000000000000040000000000000000000000000020000000000020000000000000000000000000000000000000000000000000000000",
|
|
408
|
-
"blockHash": "
|
|
409
|
-
"transactionHash": "
|
|
408
|
+
"blockHash": "0x55247d4a44c1a6ce6823a1d9e81299652644e086081e4fb8cacf348f02ad34b4",
|
|
409
|
+
"transactionHash": "0xf67b4aa71abb580d27e9f4c9c96beb9d14dad42493086043c4d82d7cdb18cd2a",
|
|
410
410
|
"logs": [
|
|
411
411
|
{
|
|
412
412
|
"transactionIndex": 0,
|
|
413
|
-
"blockNumber":
|
|
414
|
-
"transactionHash": "
|
|
413
|
+
"blockNumber": 363,
|
|
414
|
+
"transactionHash": "0xf67b4aa71abb580d27e9f4c9c96beb9d14dad42493086043c4d82d7cdb18cd2a",
|
|
415
415
|
"address": "0xc2475BB51a7E110749181A165791B494c280A583",
|
|
416
416
|
"topics": [
|
|
417
417
|
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
|
|
@@ -420,12 +420,12 @@
|
|
|
420
420
|
],
|
|
421
421
|
"data": "0x",
|
|
422
422
|
"logIndex": 0,
|
|
423
|
-
"blockHash": "
|
|
423
|
+
"blockHash": "0x55247d4a44c1a6ce6823a1d9e81299652644e086081e4fb8cacf348f02ad34b4"
|
|
424
424
|
},
|
|
425
425
|
{
|
|
426
426
|
"transactionIndex": 0,
|
|
427
|
-
"blockNumber":
|
|
428
|
-
"transactionHash": "
|
|
427
|
+
"blockNumber": 363,
|
|
428
|
+
"transactionHash": "0xf67b4aa71abb580d27e9f4c9c96beb9d14dad42493086043c4d82d7cdb18cd2a",
|
|
429
429
|
"address": "0xc2475BB51a7E110749181A165791B494c280A583",
|
|
430
430
|
"topics": [
|
|
431
431
|
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
|
|
@@ -434,10 +434,10 @@
|
|
|
434
434
|
],
|
|
435
435
|
"data": "0x0000000000000000000000000000000000000001431e0fae6d7217caa0000000",
|
|
436
436
|
"logIndex": 1,
|
|
437
|
-
"blockHash": "
|
|
437
|
+
"blockHash": "0x55247d4a44c1a6ce6823a1d9e81299652644e086081e4fb8cacf348f02ad34b4"
|
|
438
438
|
}
|
|
439
439
|
],
|
|
440
|
-
"blockNumber":
|
|
440
|
+
"blockNumber": 363,
|
|
441
441
|
"cumulativeGasUsed": "1163837",
|
|
442
442
|
"status": 1,
|
|
443
443
|
"byzantium": true
|
|
@@ -446,7 +446,7 @@
|
|
|
446
446
|
"USDT"
|
|
447
447
|
],
|
|
448
448
|
"numDeployments": 1,
|
|
449
|
-
"solcInputHash": "
|
|
449
|
+
"solcInputHash": "ab2f1acabd9de40c31737c205d413598",
|
|
450
450
|
"metadata": "{\"compiler\":{\"version\":\"0.8.22+commit.4fc1097e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_symbol\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MINT_CAP_AMOUNT\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"burnFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_qty\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"events\":{\"Approval(address,address,uint256)\":{\"details\":\"Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance.\"},\"Transfer(address,address,uint256)\":{\"details\":\"Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero.\"}},\"kind\":\"dev\",\"methods\":{\"allowance(address,address)\":{\"details\":\"See {IERC20-allowance}.\"},\"approve(address,uint256)\":{\"details\":\"See {IERC20-approve}. NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on `transferFrom`. This is semantically equivalent to an infinite approval. Requirements: - `spender` cannot be the zero address.\"},\"balanceOf(address)\":{\"details\":\"See {IERC20-balanceOf}.\"},\"decimals()\":{\"details\":\"Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the default value returned by this function, unless it's overridden. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}.\"},\"decreaseAllowance(address,uint256)\":{\"details\":\"Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`.\"},\"increaseAllowance(address,uint256)\":{\"details\":\"Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address.\"},\"name()\":{\"details\":\"Returns the name of the token.\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"symbol()\":{\"details\":\"Returns the symbol of the token, usually a shorter version of the name.\"},\"totalSupply()\":{\"details\":\"See {IERC20-totalSupply}.\"},\"transfer(address,uint256)\":{\"details\":\"See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `amount`.\"},\"transferFrom(address,address,uint256)\":{\"details\":\"See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. NOTE: Does not update the allowance if the current allowance is the maximum `uint256`. Requirements: - `from` and `to` cannot be the zero address. - `from` must have a balance of at least `amount`. - the caller must have allowance for ``from``'s tokens of at least `amount`.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/mocks/PoolToken.sol\":\"PoolToken\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":13000},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xba43b97fba0d32eb4254f6a5a297b39a19a247082a02d6e69349e071e2946218\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/ERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC20.sol\\\";\\nimport \\\"./extensions/IERC20Metadata.sol\\\";\\nimport \\\"../../utils/Context.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC20} interface.\\n *\\n * This implementation is agnostic to the way tokens are created. This means\\n * that a supply mechanism has to be added in a derived contract using {_mint}.\\n * For a generic mechanism see {ERC20PresetMinterPauser}.\\n *\\n * TIP: For a detailed writeup see our guide\\n * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How\\n * to implement supply mechanisms].\\n *\\n * The default value of {decimals} is 18. To change this, you should override\\n * this function so it returns a different value.\\n *\\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\\n * instead returning `false` on failure. This behavior is nonetheless\\n * conventional and does not conflict with the expectations of ERC20\\n * applications.\\n *\\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\\n * This allows applications to reconstruct the allowance for all accounts just\\n * by listening to said events. Other implementations of the EIP may not emit\\n * these events, as it isn't required by the specification.\\n *\\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\\n * functions have been added to mitigate the well-known issues around setting\\n * allowances. See {IERC20-approve}.\\n */\\ncontract ERC20 is Context, IERC20, IERC20Metadata {\\n mapping(address => uint256) private _balances;\\n\\n mapping(address => mapping(address => uint256)) private _allowances;\\n\\n uint256 private _totalSupply;\\n\\n string private _name;\\n string private _symbol;\\n\\n /**\\n * @dev Sets the values for {name} and {symbol}.\\n *\\n * All two of these values are immutable: they can only be set once during\\n * construction.\\n */\\n constructor(string memory name_, string memory symbol_) {\\n _name = name_;\\n _symbol = symbol_;\\n }\\n\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() public view virtual override returns (string memory) {\\n return _name;\\n }\\n\\n /**\\n * @dev Returns the symbol of the token, usually a shorter version of the\\n * name.\\n */\\n function symbol() public view virtual override returns (string memory) {\\n return _symbol;\\n }\\n\\n /**\\n * @dev Returns the number of decimals used to get its user representation.\\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\\n * be displayed to a user as `5.05` (`505 / 10 ** 2`).\\n *\\n * Tokens usually opt for a value of 18, imitating the relationship between\\n * Ether and Wei. This is the default value returned by this function, unless\\n * it's overridden.\\n *\\n * NOTE: This information is only used for _display_ purposes: it in\\n * no way affects any of the arithmetic of the contract, including\\n * {IERC20-balanceOf} and {IERC20-transfer}.\\n */\\n function decimals() public view virtual override returns (uint8) {\\n return 18;\\n }\\n\\n /**\\n * @dev See {IERC20-totalSupply}.\\n */\\n function totalSupply() public view virtual override returns (uint256) {\\n return _totalSupply;\\n }\\n\\n /**\\n * @dev See {IERC20-balanceOf}.\\n */\\n function balanceOf(address account) public view virtual override returns (uint256) {\\n return _balances[account];\\n }\\n\\n /**\\n * @dev See {IERC20-transfer}.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n * - the caller must have a balance of at least `amount`.\\n */\\n function transfer(address to, uint256 amount) public virtual override returns (bool) {\\n address owner = _msgSender();\\n _transfer(owner, to, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-allowance}.\\n */\\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\\n return _allowances[owner][spender];\\n }\\n\\n /**\\n * @dev See {IERC20-approve}.\\n *\\n * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on\\n * `transferFrom`. This is semantically equivalent to an infinite approval.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\\n address owner = _msgSender();\\n _approve(owner, spender, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-transferFrom}.\\n *\\n * Emits an {Approval} event indicating the updated allowance. This is not\\n * required by the EIP. See the note at the beginning of {ERC20}.\\n *\\n * NOTE: Does not update the allowance if the current allowance\\n * is the maximum `uint256`.\\n *\\n * Requirements:\\n *\\n * - `from` and `to` cannot be the zero address.\\n * - `from` must have a balance of at least `amount`.\\n * - the caller must have allowance for ``from``'s tokens of at least\\n * `amount`.\\n */\\n function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {\\n address spender = _msgSender();\\n _spendAllowance(from, spender, amount);\\n _transfer(from, to, amount);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically increases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\\n address owner = _msgSender();\\n _approve(owner, spender, allowance(owner, spender) + addedValue);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `spender` must have allowance for the caller of at least\\n * `subtractedValue`.\\n */\\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\\n address owner = _msgSender();\\n uint256 currentAllowance = allowance(owner, spender);\\n require(currentAllowance >= subtractedValue, \\\"ERC20: decreased allowance below zero\\\");\\n unchecked {\\n _approve(owner, spender, currentAllowance - subtractedValue);\\n }\\n\\n return true;\\n }\\n\\n /**\\n * @dev Moves `amount` of tokens from `from` to `to`.\\n *\\n * This internal function is equivalent to {transfer}, and can be used to\\n * e.g. implement automatic token fees, slashing mechanisms, etc.\\n *\\n * Emits a {Transfer} event.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `to` cannot be the zero address.\\n * - `from` must have a balance of at least `amount`.\\n */\\n function _transfer(address from, address to, uint256 amount) internal virtual {\\n require(from != address(0), \\\"ERC20: transfer from the zero address\\\");\\n require(to != address(0), \\\"ERC20: transfer to the zero address\\\");\\n\\n _beforeTokenTransfer(from, to, amount);\\n\\n uint256 fromBalance = _balances[from];\\n require(fromBalance >= amount, \\\"ERC20: transfer amount exceeds balance\\\");\\n unchecked {\\n _balances[from] = fromBalance - amount;\\n // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by\\n // decrementing then incrementing.\\n _balances[to] += amount;\\n }\\n\\n emit Transfer(from, to, amount);\\n\\n _afterTokenTransfer(from, to, amount);\\n }\\n\\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\\n * the total supply.\\n *\\n * Emits a {Transfer} event with `from` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n */\\n function _mint(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: mint to the zero address\\\");\\n\\n _beforeTokenTransfer(address(0), account, amount);\\n\\n _totalSupply += amount;\\n unchecked {\\n // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.\\n _balances[account] += amount;\\n }\\n emit Transfer(address(0), account, amount);\\n\\n _afterTokenTransfer(address(0), account, amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, reducing the\\n * total supply.\\n *\\n * Emits a {Transfer} event with `to` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n * - `account` must have at least `amount` tokens.\\n */\\n function _burn(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: burn from the zero address\\\");\\n\\n _beforeTokenTransfer(account, address(0), amount);\\n\\n uint256 accountBalance = _balances[account];\\n require(accountBalance >= amount, \\\"ERC20: burn amount exceeds balance\\\");\\n unchecked {\\n _balances[account] = accountBalance - amount;\\n // Overflow not possible: amount <= accountBalance <= totalSupply.\\n _totalSupply -= amount;\\n }\\n\\n emit Transfer(account, address(0), amount);\\n\\n _afterTokenTransfer(account, address(0), amount);\\n }\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\\n *\\n * This internal function is equivalent to `approve`, and can be used to\\n * e.g. set automatic allowances for certain subsystems, etc.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `owner` cannot be the zero address.\\n * - `spender` cannot be the zero address.\\n */\\n function _approve(address owner, address spender, uint256 amount) internal virtual {\\n require(owner != address(0), \\\"ERC20: approve from the zero address\\\");\\n require(spender != address(0), \\\"ERC20: approve to the zero address\\\");\\n\\n _allowances[owner][spender] = amount;\\n emit Approval(owner, spender, amount);\\n }\\n\\n /**\\n * @dev Updates `owner` s allowance for `spender` based on spent `amount`.\\n *\\n * Does not update the allowance amount in case of infinite allowance.\\n * Revert if not enough allowance is available.\\n *\\n * Might emit an {Approval} event.\\n */\\n function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {\\n uint256 currentAllowance = allowance(owner, spender);\\n if (currentAllowance != type(uint256).max) {\\n require(currentAllowance >= amount, \\\"ERC20: insufficient allowance\\\");\\n unchecked {\\n _approve(owner, spender, currentAllowance - amount);\\n }\\n }\\n }\\n\\n /**\\n * @dev Hook that is called before any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * will be transferred to `to`.\\n * - when `from` is zero, `amount` tokens will be minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}\\n\\n /**\\n * @dev Hook that is called after any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * has been transferred to `to`.\\n * - when `from` is zero, `amount` tokens have been minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens have been burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}\\n}\\n\",\"keccak256\":\"0xa56ca923f70c1748830700250b19c61b70db9a683516dc5e216694a50445d99c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address from, address to, uint256 amount) external returns (bool);\\n}\\n\",\"keccak256\":\"0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\n\\n/**\\n * @dev Interface for the optional metadata functions from the ERC20 standard.\\n *\\n * _Available since v4.1._\\n */\\ninterface IERC20Metadata is IERC20 {\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() external view returns (string memory);\\n\\n /**\\n * @dev Returns the symbol of the token.\\n */\\n function symbol() external view returns (string memory);\\n\\n /**\\n * @dev Returns the decimals places of the token.\\n */\\n function decimals() external view returns (uint8);\\n}\\n\",\"keccak256\":\"0x8de418a5503946cabe331f35fe242d3201a73f67f77aaeb7110acb1f30423aca\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xa92e4fa126feb6907daa0513ddd816b2eb91f30a808de54f63c17d0e162c3439\",\"license\":\"MIT\"},\"src/mocks/PoolToken.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity ^0.8.0;\\n\\nimport { ERC20 } from \\\"@openzeppelin/contracts/token/ERC20/ERC20.sol\\\";\\nimport { Ownable } from \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\n\\ncontract PoolToken is ERC20, Ownable {\\n uint256 public immutable MINT_CAP_AMOUNT;\\n\\n constructor(string memory _symbol) ERC20(\\\"Pool Token\\\", _symbol) {\\n MINT_CAP_AMOUNT = 1000 * 10 ** decimals();\\n _mint(msg.sender, 100_000_000_000 * 10 ** decimals());\\n }\\n\\n // remember this is a MOCK token - public mint is useful!\\n function mint(address _to, uint256 _qty) public {\\n if (_qty > MINT_CAP_AMOUNT && msg.sender != owner()) {\\n revert(\\\"PoolToken: cannot mint more than 1000 tokens at a time\\\");\\n }\\n _mint(_to, _qty);\\n }\\n\\n // burn tokens from the caller\\n function burn(uint256 _amount) public virtual {\\n _burn(_msgSender(), _amount);\\n }\\n\\n // burn tokens from the account (caller must have allowance)\\n function burnFrom(address _account, uint256 _amount) public virtual {\\n _spendAllowance(_account, _msgSender(), _amount);\\n _burn(_account, _amount);\\n }\\n}\\n\",\"keccak256\":\"0xd24292200653be3dce5cc851fc7f8bb7181ad18415a99ba034c56a967883ffde\",\"license\":\"BUSL-1.1\"}},\"version\":1}",
|
|
451
451
|
"bytecode": "0x60a06040523480156200001157600080fd5b506040516200178338038062001783833981016040819052620000349162000217565b60408051808201909152600a8152692837b7b6102a37b5b2b760b11b60208201528160036200006483826200037c565b5060046200007382826200037c565b505050620000906200008a620000e060201b60201c565b620000e4565b6200009e6012600a6200055d565b620000ac906103e862000575565b608052620000d933620000c26012600a6200055d565b620000d39064174876e80062000575565b62000136565b50620005a5565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620001915760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620001a591906200058f565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b505050565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200022b57600080fd5b82516001600160401b03808211156200024357600080fd5b818501915085601f8301126200025857600080fd5b8151818111156200026d576200026d62000201565b604051601f8201601f19908116603f0116810190838211818310171562000298576200029862000201565b816040528281528886848701011115620002b157600080fd5b600093505b82841015620002d55784840186015181850187015292850192620002b6565b600086848301015280965050505050505092915050565b600181811c908216806200030157607f821691505b6020821081036200032257634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001fc576000816000526020600020601f850160051c81016020861015620003535750805b601f850160051c820191505b8181101562000374578281556001016200035f565b505050505050565b81516001600160401b0381111562000398576200039862000201565b620003b081620003a98454620002ec565b8462000328565b602080601f831160018114620003e85760008415620003cf5750858301515b600019600386901b1c1916600185901b17855562000374565b600085815260208120601f198616915b828110156200041957888601518255948401946001909101908401620003f8565b5085821015620004385787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156200049f57816000190482111562000483576200048362000448565b808516156200049157918102915b93841c939080029062000463565b509250929050565b600082620004b85750600162000557565b81620004c75750600062000557565b8160018114620004e05760028114620004eb576200050b565b600191505062000557565b60ff841115620004ff57620004ff62000448565b50506001821b62000557565b5060208310610133831016604e8410600b841016171562000530575081810a62000557565b6200053c83836200045e565b806000190482111562000553576200055362000448565b0290505b92915050565b60006200056e60ff841683620004a7565b9392505050565b808202811582820484141762000557576200055762000448565b8082018082111562000557576200055762000448565b6080516111bb620005c860003960008181610269015261043001526111bb6000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c8063715018a6116100b257806395d89b4111610081578063a9059cbb11610066578063a9059cbb146102a6578063dd62ed3e146102b9578063f2fde38b146102ff57600080fd5b806395d89b411461028b578063a457c2d71461029357600080fd5b8063715018a61461022157806379cc6790146102295780638da5cb5b1461023c578063927de3a51461026457600080fd5b8063313ce5671161010957806340c10f19116100ee57806340c10f19146101c357806342966c68146101d857806370a08231146101eb57600080fd5b8063313ce567146101a157806339509351146101b057600080fd5b806306fdde031461013b578063095ea7b31461015957806318160ddd1461017c57806323b872dd1461018e575b600080fd5b610143610312565b6040516101509190610f8e565b60405180910390f35b61016c610167366004611024565b6103a4565b6040519015158152602001610150565b6002545b604051908152602001610150565b61016c61019c36600461104e565b6103be565b60405160128152602001610150565b61016c6101be366004611024565b6103e2565b6101d66101d1366004611024565b61042e565b005b6101d66101e636600461108a565b610515565b6101806101f93660046110a3565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6101d6610522565b6101d6610237366004611024565b610536565b60055460405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610150565b6101807f000000000000000000000000000000000000000000000000000000000000000081565b61014361054b565b61016c6102a1366004611024565b61055a565b61016c6102b4366004611024565b61062b565b6101806102c73660046110c5565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b6101d661030d3660046110a3565b610639565b606060038054610321906110f8565b80601f016020809104026020016040519081016040528092919081815260200182805461034d906110f8565b801561039a5780601f1061036f5761010080835404028352916020019161039a565b820191906000526020600020905b81548152906001019060200180831161037d57829003601f168201915b5050505050905090565b6000336103b28185856106ed565b60019150505b92915050565b6000336103cc8582856108a1565b6103d7858585610978565b506001949350505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906103b2908290869061042990879061114b565b6106ed565b7f000000000000000000000000000000000000000000000000000000000000000081118015610475575060055473ffffffffffffffffffffffffffffffffffffffff163314155b15610507576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f506f6f6c546f6b656e3a2063616e6e6f74206d696e74206d6f7265207468616e60448201527f203130303020746f6b656e7320617420612074696d650000000000000000000060648201526084015b60405180910390fd5b6105118282610be7565b5050565b61051f3382610cda565b50565b61052a610e96565b6105346000610f17565b565b6105418233836108a1565b6105118282610cda565b606060048054610321906110f8565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091908381101561061e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016104fe565b6103d782868684036106ed565b6000336103b2818585610978565b610641610e96565b73ffffffffffffffffffffffffffffffffffffffff81166106e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104fe565b61051f81610f17565b73ffffffffffffffffffffffffffffffffffffffff831661078f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016104fe565b73ffffffffffffffffffffffffffffffffffffffff8216610832576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016104fe565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146109725781811015610965576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016104fe565b61097284848484036106ed565b50505050565b73ffffffffffffffffffffffffffffffffffffffff8316610a1b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016104fe565b73ffffffffffffffffffffffffffffffffffffffff8216610abe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016104fe565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015610b74576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016104fe565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610972565b73ffffffffffffffffffffffffffffffffffffffff8216610c64576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104fe565b8060026000828254610c76919061114b565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff8216610d7d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016104fe565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090205481811015610e33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016104fe565b73ffffffffffffffffffffffffffffffffffffffff83166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610894565b60055473ffffffffffffffffffffffffffffffffffffffff163314610534576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104fe565b6005805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006020808352835180602085015260005b81811015610fbc57858101830151858201604001528201610fa0565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461101f57600080fd5b919050565b6000806040838503121561103757600080fd5b61104083610ffb565b946020939093013593505050565b60008060006060848603121561106357600080fd5b61106c84610ffb565b925061107a60208501610ffb565b9150604084013590509250925092565b60006020828403121561109c57600080fd5b5035919050565b6000602082840312156110b557600080fd5b6110be82610ffb565b9392505050565b600080604083850312156110d857600080fd5b6110e183610ffb565b91506110ef60208401610ffb565b90509250929050565b600181811c9082168061110c57607f821691505b602082108103611145577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b808201808211156103b8577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea26469706673582212200c19376a882640bd69d0556e783e0030a7dc274b61b5ac866ed14b06a7217b8664736f6c63430008160033",
|
|
452
452
|
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101365760003560e01c8063715018a6116100b257806395d89b4111610081578063a9059cbb11610066578063a9059cbb146102a6578063dd62ed3e146102b9578063f2fde38b146102ff57600080fd5b806395d89b411461028b578063a457c2d71461029357600080fd5b8063715018a61461022157806379cc6790146102295780638da5cb5b1461023c578063927de3a51461026457600080fd5b8063313ce5671161010957806340c10f19116100ee57806340c10f19146101c357806342966c68146101d857806370a08231146101eb57600080fd5b8063313ce567146101a157806339509351146101b057600080fd5b806306fdde031461013b578063095ea7b31461015957806318160ddd1461017c57806323b872dd1461018e575b600080fd5b610143610312565b6040516101509190610f8e565b60405180910390f35b61016c610167366004611024565b6103a4565b6040519015158152602001610150565b6002545b604051908152602001610150565b61016c61019c36600461104e565b6103be565b60405160128152602001610150565b61016c6101be366004611024565b6103e2565b6101d66101d1366004611024565b61042e565b005b6101d66101e636600461108a565b610515565b6101806101f93660046110a3565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6101d6610522565b6101d6610237366004611024565b610536565b60055460405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610150565b6101807f000000000000000000000000000000000000000000000000000000000000000081565b61014361054b565b61016c6102a1366004611024565b61055a565b61016c6102b4366004611024565b61062b565b6101806102c73660046110c5565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b6101d661030d3660046110a3565b610639565b606060038054610321906110f8565b80601f016020809104026020016040519081016040528092919081815260200182805461034d906110f8565b801561039a5780601f1061036f5761010080835404028352916020019161039a565b820191906000526020600020905b81548152906001019060200180831161037d57829003601f168201915b5050505050905090565b6000336103b28185856106ed565b60019150505b92915050565b6000336103cc8582856108a1565b6103d7858585610978565b506001949350505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906103b2908290869061042990879061114b565b6106ed565b7f000000000000000000000000000000000000000000000000000000000000000081118015610475575060055473ffffffffffffffffffffffffffffffffffffffff163314155b15610507576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f506f6f6c546f6b656e3a2063616e6e6f74206d696e74206d6f7265207468616e60448201527f203130303020746f6b656e7320617420612074696d650000000000000000000060648201526084015b60405180910390fd5b6105118282610be7565b5050565b61051f3382610cda565b50565b61052a610e96565b6105346000610f17565b565b6105418233836108a1565b6105118282610cda565b606060048054610321906110f8565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091908381101561061e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016104fe565b6103d782868684036106ed565b6000336103b2818585610978565b610641610e96565b73ffffffffffffffffffffffffffffffffffffffff81166106e4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016104fe565b61051f81610f17565b73ffffffffffffffffffffffffffffffffffffffff831661078f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016104fe565b73ffffffffffffffffffffffffffffffffffffffff8216610832576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016104fe565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146109725781811015610965576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016104fe565b61097284848484036106ed565b50505050565b73ffffffffffffffffffffffffffffffffffffffff8316610a1b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016104fe565b73ffffffffffffffffffffffffffffffffffffffff8216610abe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016104fe565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015610b74576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016104fe565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610972565b73ffffffffffffffffffffffffffffffffffffffff8216610c64576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104fe565b8060026000828254610c76919061114b565b909155505073ffffffffffffffffffffffffffffffffffffffff8216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff8216610d7d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016104fe565b73ffffffffffffffffffffffffffffffffffffffff821660009081526020819052604090205481811015610e33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016104fe565b73ffffffffffffffffffffffffffffffffffffffff83166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610894565b60055473ffffffffffffffffffffffffffffffffffffffff163314610534576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104fe565b6005805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006020808352835180602085015260005b81811015610fbc57858101830151858201604001528201610fa0565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461101f57600080fd5b919050565b6000806040838503121561103757600080fd5b61104083610ffb565b946020939093013593505050565b60008060006060848603121561106357600080fd5b61106c84610ffb565b925061107a60208501610ffb565b9150604084013590509250925092565b60006020828403121561109c57600080fd5b5035919050565b6000602082840312156110b557600080fd5b6110be82610ffb565b9392505050565b600080604083850312156110d857600080fd5b6110e183610ffb565b91506110ef60208401610ffb565b90509250929050565b600181811c9082168061110c57607f821691505b602082108103611145577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b808201808211156103b8577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea26469706673582212200c19376a882640bd69d0556e783e0030a7dc274b61b5ac866ed14b06a7217b8664736f6c63430008160033",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"address": "0xdBF1f67E9DaF0d252eC64f26972d7fDc7f782b2A",
|
|
3
3
|
"abi": [],
|
|
4
|
-
"transactionHash": "
|
|
4
|
+
"transactionHash": "0x28e8f7e16b4da980f9742b76554953462986cdbb1601a49b0d7813261a08fd20",
|
|
5
5
|
"receipt": {
|
|
6
6
|
"to": null,
|
|
7
7
|
"from": "0x14dC79964da2C08b23698B3D3cc7Ca32193d9955",
|
|
@@ -9,17 +9,17 @@
|
|
|
9
9
|
"transactionIndex": 0,
|
|
10
10
|
"gasUsed": "72227",
|
|
11
11
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
12
|
-
"blockHash": "
|
|
13
|
-
"transactionHash": "
|
|
12
|
+
"blockHash": "0x08d7ea367278a95efc9c606d278758a6a95947c47e2317321549b8e1bf3b028e",
|
|
13
|
+
"transactionHash": "0x28e8f7e16b4da980f9742b76554953462986cdbb1601a49b0d7813261a08fd20",
|
|
14
14
|
"logs": [],
|
|
15
|
-
"blockNumber":
|
|
15
|
+
"blockNumber": 280,
|
|
16
16
|
"cumulativeGasUsed": "72227",
|
|
17
17
|
"status": 1,
|
|
18
18
|
"byzantium": true
|
|
19
19
|
},
|
|
20
20
|
"args": [],
|
|
21
21
|
"numDeployments": 1,
|
|
22
|
-
"solcInputHash": "
|
|
22
|
+
"solcInputHash": "ab2f1acabd9de40c31737c205d413598",
|
|
23
23
|
"metadata": "{\"compiler\":{\"version\":\"0.8.22+commit.4fc1097e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Library which handles staking rewards.\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/peripheral/rewarder/lib/RewardLib.sol\":\"RewardLib\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":13000},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address from, address to, uint256 amount) external returns (bool);\\n}\\n\",\"keccak256\":\"0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305\",\"license\":\"MIT\"},\"src/peripheral/rewarder/interfaces/IMultiRewarder.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.22;\\n\\nimport {IRewarder, IERC20} from \\\"./IRewarder.sol\\\";\\n\\n// @dev This is an internal struct, placed here as its shared between multiple libraries.\\nstruct RewardPool {\\n uint256 accRewardPerShare;\\n address rewardToken;\\n uint48 lastRewardTime;\\n uint48 allocPoints;\\n IERC20 stakingToken;\\n bool removed;\\n mapping(address => uint256) rewardDebt;\\n}\\n\\n/// @notice A rewarder that can distribute multiple reward tokens (ERC20 and native) to `StargateStaking` pools.\\n/// @dev The native token is encoded as 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE.\\ninterface IMultiRewarder is IRewarder {\\n struct RewardDetails {\\n uint256 rewardPerSec;\\n uint160 totalAllocPoints;\\n uint48 start;\\n uint48 end;\\n bool exists;\\n }\\n\\n /// @notice This token is not registered via `setReward` yet, register it first.\\n error MultiRewarderUnregisteredToken(address token);\\n /// @notice Due to various functions looping over the staking tokens connected to a reward token, a maximum number of such links is instated.\\n error MultiRewarderMaxPoolsForRewardToken();\\n /// @notice Due to various functions looping over the reward tokens connected to a staking token, a maximum number of such links is instated.\\n error MultiRewarderMaxActiveRewardTokens();\\n /// @notice The function can only be called while the pool hasn't ended yet.\\n error MultiRewarderPoolFinished(address rewardToken);\\n /// @notice The pool emission duration cannot be set to zero, as this would cause the rewards to be voided.\\n error MultiRewarderZeroDuration();\\n /// @notice The pool start time cannot be set in the past, as this would cause the rewards to be voided.\\n error MultiRewarderStartInPast(uint256 start);\\n /// @notice The recipient failed to handle the receipt of the native tokens, do they have a receipt hook? If not, use `emergencyWithdraw`.\\n error MultiRewarderNativeTransferFailed(address to, uint256 amount);\\n /// @notice A wrong `msg.value` was provided while setting a native reward, make sure it matches the function `amount`.\\n error MultiRewarderIncorrectNative(uint256 expected, uint256 actual);\\n /// @notice Due to a zero input or rounding, the reward rate while setting this pool would be zero, which is not allowed.\\n error MultiRewarderZeroRewardRate();\\n\\n /// @notice Emitted when additional rewards were added to a pool, extending the reward duration.\\n event RewardExtended(address indexed rewardToken, uint256 amountAdded, uint48 newEnd);\\n /// @notice Emitted when a reward token has been registered. Can be emitted again for the same token after it has been explicitly stopped.\\n event RewardRegistrered(address indexed rewardToken);\\n /// @notice Emitted when the reward pool has been adjusted or intialized, with the new params.\\n event RewardSet(\\n address indexed rewardToken, uint256 amountAdded, uint256 amountPeriod, uint48 start, uint48 duration\\n );\\n /// @notice Emitted whenever rewards are claimed via the staking pool.\\n event RewardsClaimed(address indexed user, address[] rewardTokens, uint256[] amounts);\\n /// @notice Emitted whenever a new staking pool combination was registered via the allocation point adjustment function.\\n event PoolRegistered(address indexed rewardToken, IERC20 indexed stakeToken);\\n /// @notice Emitted when the owner adjusts the allocation points for pools.\\n event AllocPointsSet(address indexed rewardToken, IERC20[] indexed stakeToken, uint48[] allocPoint);\\n\\n /// @notice Sets the reward for `rewards` of `rewardToken` over `duration` seconds, starting at `start`. The actual reward over this period will be increased by any rewards on the pool that haven't been distributed yet.\\n function setReward(address rewardToken, uint256 rewards, uint48 start, uint48 duration) external payable;\\n /// @notice Extends the reward duration for `rewardToken` by `amount` tokens, extending the duration by the equivalent time according to the `rewardPerSec` rate of the pool.\\n function extendReward(address rewardToken, uint256 amount) external payable;\\n /// @notice Configures allocation points for a reward token over multiple staking tokens, setting the `allocPoints` for each `stakingTokens` and updating the `totalAllocPoint` for the `rewardToken`. The allocation points of any non-provided staking tokens will be left as-is, and won't be reset to zero.\\n function setAllocPoints(address rewardToken, IERC20[] calldata stakingTokens, uint48[] calldata allocPoints)\\n external;\\n /// @notice Unregisters a reward token fully, immediately preventing users from ever harvesting their pending accumulated rewards. Optionally `pullTokens` can be set to false which causes the token balance to not be sent to the owner, this should only be set to false in case the token is bugged and reverts.\\n function stopReward(address rewardToken, address receiver, bool pullTokens) external;\\n\\n /// @notice Returns the reward pools linked to the `stakingToken` alongside the pending rewards for `user` for these pools.\\n function getRewards(IERC20 stakingToken, address user) external view returns (address[] memory, uint256[] memory);\\n\\n /// @notice Returns the allocation points for the `rewardToken` over all staking tokens linked to it.\\n function allocPointsByReward(address rewardToken)\\n external\\n view\\n returns (IERC20[] memory stakingTokens, uint48[] memory allocPoints);\\n /// @notice Returns the allocation points for the `stakingToken` over all reward tokens linked to it.\\n function allocPointsByStake(IERC20 stakingToken)\\n external\\n view\\n returns (address[] memory rewardTokens, uint48[] memory allocPoints);\\n\\n /// @notice Returns all enabled reward tokens. Stopped reward tokens are not included, while ended rewards are.\\n function rewardTokens() external view returns (address[] memory);\\n /// @notice Returns the emission details of a `rewardToken`, configured via `setReward`.\\n function rewardDetails(address rewardToken) external view returns (RewardDetails memory);\\n}\\n\",\"keccak256\":\"0x61fc9cbfe5c49b68612034ab442816df42ceb08f9d52ae35f8827ba8571c05e3\",\"license\":\"BUSL-1.1\"},\"src/peripheral/rewarder/interfaces/IRewarder.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.22;\\n\\nimport {IERC20} from \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\n\\n/// @notice A rewarder is connected to the staking contract and distributes rewards whenever the staking contract updates the rewarder.\\ninterface IRewarder {\\n /// @notice This function is only callable by the staking contract.\\n error MultiRewarderUnauthorizedCaller(address caller);\\n /// @notice The rewarder cannot be reconnected to the same staking token as it would cause wrongful reward attribution through reconfiguration.\\n error RewarderAlreadyConnected(IERC20 stakingToken);\\n\\n /// @notice Emitted when the rewarder is connected to a staking token.\\n event RewarderConnected(IERC20 indexed stakingToken);\\n\\n /// @notice Informs the rewarder of an update in the staking contract, such as a deposit, withdraw or claim.\\n /// @dev Emergency withdrawals draw the balance of a user to 0, and DO NOT call `onUpdate`. The rewarder logic must keep this in mind!\\n function onUpdate(IERC20 token, address user, uint256 oldStake, uint256 oldSupply, uint256 newStake) external;\\n\\n /// @notice Called by the staking contract whenever this rewarder is connected to a staking token in the staking contract. Should only be callable once per staking token to avoid wrongful reward attribution through reconfiguration.\\n function connect(IERC20 stakingToken) external;\\n}\\n\",\"keccak256\":\"0xd400ea1d4f4db83a11d3b7394dc5af93b42f4137613ae9f6377ec5fd740e9cbb\",\"license\":\"BUSL-1.1\"},\"src/peripheral/rewarder/lib/RewardLib.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.22;\\n\\nimport {IMultiRewarder, RewardPool} from \\\"../interfaces/IMultiRewarder.sol\\\";\\n\\n/// @dev Library which handles staking rewards.\\nlibrary RewardLib {\\n uint256 private constant PRECISION = 10 ** 24;\\n\\n function indexAndUpdate(\\n RewardPool storage pool,\\n IMultiRewarder.RewardDetails storage rewardDetails,\\n address user,\\n uint256 oldStake,\\n uint256 totalSupply\\n ) internal returns (uint256) {\\n uint256 accRewardPerShare = index(pool, rewardDetails, totalSupply);\\n return update(pool, user, oldStake, accRewardPerShare);\\n }\\n\\n function update(RewardPool storage pool, address user, uint256 oldStake, uint256 accRewardPerShare)\\n internal\\n returns (uint256)\\n {\\n uint256 rewardsForUser = (accRewardPerShare - pool.rewardDebt[user]) * oldStake / PRECISION;\\n pool.rewardDebt[user] = accRewardPerShare;\\n return rewardsForUser;\\n }\\n\\n function index(RewardPool storage pool, IMultiRewarder.RewardDetails storage rewardDetails, uint256 totalSupply)\\n internal\\n returns (uint256 accRewardPerShare)\\n {\\n accRewardPerShare = _index(pool, rewardDetails, totalSupply);\\n pool.accRewardPerShare = accRewardPerShare;\\n pool.lastRewardTime = uint32(block.timestamp);\\n }\\n\\n function _index(RewardPool storage pool, IMultiRewarder.RewardDetails storage rewardDetails, uint256 totalSupply)\\n internal\\n view\\n returns (uint256)\\n {\\n uint256 start = rewardDetails.start > pool.lastRewardTime ? rewardDetails.start : pool.lastRewardTime; // max(start, lastRewardTime)\\n uint256 end = rewardDetails.end < block.timestamp ? rewardDetails.end : block.timestamp; // min(end, now)\\n if (start >= end || totalSupply == 0 || rewardDetails.totalAllocPoints == 0) {\\n return pool.accRewardPerShare;\\n }\\n\\n return rewardDetails.rewardPerSec * (end - start) * pool.allocPoints * PRECISION\\n / rewardDetails.totalAllocPoints / totalSupply + pool.accRewardPerShare;\\n }\\n\\n function getRewards(\\n RewardPool storage pool,\\n IMultiRewarder.RewardDetails storage rewardDetails,\\n address user,\\n uint256 oldStake,\\n uint256 oldSupply\\n ) internal view returns (uint256) {\\n uint256 accRewardPerShare = _index(pool, rewardDetails, oldSupply);\\n return (accRewardPerShare - pool.rewardDebt[user]) * oldStake / PRECISION;\\n }\\n}\\n\",\"keccak256\":\"0x1858ba168784ca629a51bc7e552cbf8c5b1a011305d7ff58b3e6af97c4fdaeed\",\"license\":\"BUSL-1.1\"}},\"version\":1}",
|
|
24
24
|
"bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122061d3d4d4f15f1889aacbc6b27e5df1ee5c895dbfe953ac42945c4a2e32b766a364736f6c63430008160033",
|
|
25
25
|
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122061d3d4d4f15f1889aacbc6b27e5df1ee5c895dbfe953ac42945c4a2e32b766a364736f6c63430008160033",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"address": "0xcc783140446C68edC7B3C601E63665E17e232eE8",
|
|
3
3
|
"abi": [],
|
|
4
|
-
"transactionHash": "
|
|
4
|
+
"transactionHash": "0x3fbb6db31c684858674640615c8bcfaba26d8ade970b85d9de5652884085a43b",
|
|
5
5
|
"receipt": {
|
|
6
6
|
"to": null,
|
|
7
7
|
"from": "0x14dC79964da2C08b23698B3D3cc7Ca32193d9955",
|
|
@@ -9,17 +9,17 @@
|
|
|
9
9
|
"transactionIndex": 0,
|
|
10
10
|
"gasUsed": "404056",
|
|
11
11
|
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
|
|
12
|
-
"blockHash": "
|
|
13
|
-
"transactionHash": "
|
|
12
|
+
"blockHash": "0xe37e7296691597e434f4172a4dfaa4b1cff6e0d18ff96a9bdf4ef085de9dee86",
|
|
13
|
+
"transactionHash": "0x3fbb6db31c684858674640615c8bcfaba26d8ade970b85d9de5652884085a43b",
|
|
14
14
|
"logs": [],
|
|
15
|
-
"blockNumber":
|
|
15
|
+
"blockNumber": 281,
|
|
16
16
|
"cumulativeGasUsed": "404056",
|
|
17
17
|
"status": 1,
|
|
18
18
|
"byzantium": true
|
|
19
19
|
},
|
|
20
20
|
"args": [],
|
|
21
21
|
"numDeployments": 1,
|
|
22
|
-
"solcInputHash": "
|
|
22
|
+
"solcInputHash": "ab2f1acabd9de40c31737c205d413598",
|
|
23
23
|
"metadata": "{\"compiler\":{\"version\":\"0.8.22+commit.4fc1097e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"details\":\"Library for staking pool logic.\",\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/peripheral/rewarder/lib/RewardRegistryLib.sol\":\"RewardRegistryLib\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":13000},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address from, address to, uint256 amount) external returns (bool);\\n}\\n\",\"keccak256\":\"0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/structs/EnumerableSet.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/structs/EnumerableSet.sol)\\n// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for managing\\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\\n * types.\\n *\\n * Sets have the following properties:\\n *\\n * - Elements are added, removed, and checked for existence in constant time\\n * (O(1)).\\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\\n *\\n * ```solidity\\n * contract Example {\\n * // Add the library methods\\n * using EnumerableSet for EnumerableSet.AddressSet;\\n *\\n * // Declare a set state variable\\n * EnumerableSet.AddressSet private mySet;\\n * }\\n * ```\\n *\\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\\n * and `uint256` (`UintSet`) are supported.\\n *\\n * [WARNING]\\n * ====\\n * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure\\n * unusable.\\n * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.\\n *\\n * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an\\n * array of EnumerableSet.\\n * ====\\n */\\nlibrary EnumerableSet {\\n // To implement this library for multiple types with as little code\\n // repetition as possible, we write it in terms of a generic Set type with\\n // bytes32 values.\\n // The Set implementation uses private functions, and user-facing\\n // implementations (such as AddressSet) are just wrappers around the\\n // underlying Set.\\n // This means that we can only create new EnumerableSets for types that fit\\n // in bytes32.\\n\\n struct Set {\\n // Storage of set values\\n bytes32[] _values;\\n // Position of the value in the `values` array, plus 1 because index 0\\n // means a value is not in the set.\\n mapping(bytes32 => uint256) _indexes;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function _add(Set storage set, bytes32 value) private returns (bool) {\\n if (!_contains(set, value)) {\\n set._values.push(value);\\n // The value is stored at length-1, but we add 1 to all indexes\\n // and use 0 as a sentinel value\\n set._indexes[value] = set._values.length;\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function _remove(Set storage set, bytes32 value) private returns (bool) {\\n // We read and store the value's index to prevent multiple reads from the same storage slot\\n uint256 valueIndex = set._indexes[value];\\n\\n if (valueIndex != 0) {\\n // Equivalent to contains(set, value)\\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\\n // the array, and then remove the last element (sometimes called as 'swap and pop').\\n // This modifies the order of the array, as noted in {at}.\\n\\n uint256 toDeleteIndex = valueIndex - 1;\\n uint256 lastIndex = set._values.length - 1;\\n\\n if (lastIndex != toDeleteIndex) {\\n bytes32 lastValue = set._values[lastIndex];\\n\\n // Move the last value to the index where the value to delete is\\n set._values[toDeleteIndex] = lastValue;\\n // Update the index for the moved value\\n set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex\\n }\\n\\n // Delete the slot where the moved value was stored\\n set._values.pop();\\n\\n // Delete the index for the deleted slot\\n delete set._indexes[value];\\n\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\\n return set._indexes[value] != 0;\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function _length(Set storage set) private view returns (uint256) {\\n return set._values.length;\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\\n return set._values[index];\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function _values(Set storage set) private view returns (bytes32[] memory) {\\n return set._values;\\n }\\n\\n // Bytes32Set\\n\\n struct Bytes32Set {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _add(set._inner, value);\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _remove(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\\n return _contains(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(Bytes32Set storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\\n return _at(set._inner, index);\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n bytes32[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // AddressSet\\n\\n struct AddressSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(AddressSet storage set, address value) internal returns (bool) {\\n return _add(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(AddressSet storage set, address value) internal returns (bool) {\\n return _remove(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(AddressSet storage set, address value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(AddressSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\\n return address(uint160(uint256(_at(set._inner, index))));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(AddressSet storage set) internal view returns (address[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n address[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // UintSet\\n\\n struct UintSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(UintSet storage set, uint256 value) internal returns (bool) {\\n return _add(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\\n return _remove(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(UintSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\\n return uint256(_at(set._inner, index));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(UintSet storage set) internal view returns (uint256[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n uint256[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n}\\n\",\"keccak256\":\"0x9f4357008a8f7d8c8bf5d48902e789637538d8c016be5766610901b4bba81514\",\"license\":\"MIT\"},\"src/peripheral/rewarder/interfaces/IMultiRewarder.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.22;\\n\\nimport {IRewarder, IERC20} from \\\"./IRewarder.sol\\\";\\n\\n// @dev This is an internal struct, placed here as its shared between multiple libraries.\\nstruct RewardPool {\\n uint256 accRewardPerShare;\\n address rewardToken;\\n uint48 lastRewardTime;\\n uint48 allocPoints;\\n IERC20 stakingToken;\\n bool removed;\\n mapping(address => uint256) rewardDebt;\\n}\\n\\n/// @notice A rewarder that can distribute multiple reward tokens (ERC20 and native) to `StargateStaking` pools.\\n/// @dev The native token is encoded as 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE.\\ninterface IMultiRewarder is IRewarder {\\n struct RewardDetails {\\n uint256 rewardPerSec;\\n uint160 totalAllocPoints;\\n uint48 start;\\n uint48 end;\\n bool exists;\\n }\\n\\n /// @notice This token is not registered via `setReward` yet, register it first.\\n error MultiRewarderUnregisteredToken(address token);\\n /// @notice Due to various functions looping over the staking tokens connected to a reward token, a maximum number of such links is instated.\\n error MultiRewarderMaxPoolsForRewardToken();\\n /// @notice Due to various functions looping over the reward tokens connected to a staking token, a maximum number of such links is instated.\\n error MultiRewarderMaxActiveRewardTokens();\\n /// @notice The function can only be called while the pool hasn't ended yet.\\n error MultiRewarderPoolFinished(address rewardToken);\\n /// @notice The pool emission duration cannot be set to zero, as this would cause the rewards to be voided.\\n error MultiRewarderZeroDuration();\\n /// @notice The pool start time cannot be set in the past, as this would cause the rewards to be voided.\\n error MultiRewarderStartInPast(uint256 start);\\n /// @notice The recipient failed to handle the receipt of the native tokens, do they have a receipt hook? If not, use `emergencyWithdraw`.\\n error MultiRewarderNativeTransferFailed(address to, uint256 amount);\\n /// @notice A wrong `msg.value` was provided while setting a native reward, make sure it matches the function `amount`.\\n error MultiRewarderIncorrectNative(uint256 expected, uint256 actual);\\n /// @notice Due to a zero input or rounding, the reward rate while setting this pool would be zero, which is not allowed.\\n error MultiRewarderZeroRewardRate();\\n\\n /// @notice Emitted when additional rewards were added to a pool, extending the reward duration.\\n event RewardExtended(address indexed rewardToken, uint256 amountAdded, uint48 newEnd);\\n /// @notice Emitted when a reward token has been registered. Can be emitted again for the same token after it has been explicitly stopped.\\n event RewardRegistrered(address indexed rewardToken);\\n /// @notice Emitted when the reward pool has been adjusted or intialized, with the new params.\\n event RewardSet(\\n address indexed rewardToken, uint256 amountAdded, uint256 amountPeriod, uint48 start, uint48 duration\\n );\\n /// @notice Emitted whenever rewards are claimed via the staking pool.\\n event RewardsClaimed(address indexed user, address[] rewardTokens, uint256[] amounts);\\n /// @notice Emitted whenever a new staking pool combination was registered via the allocation point adjustment function.\\n event PoolRegistered(address indexed rewardToken, IERC20 indexed stakeToken);\\n /// @notice Emitted when the owner adjusts the allocation points for pools.\\n event AllocPointsSet(address indexed rewardToken, IERC20[] indexed stakeToken, uint48[] allocPoint);\\n\\n /// @notice Sets the reward for `rewards` of `rewardToken` over `duration` seconds, starting at `start`. The actual reward over this period will be increased by any rewards on the pool that haven't been distributed yet.\\n function setReward(address rewardToken, uint256 rewards, uint48 start, uint48 duration) external payable;\\n /// @notice Extends the reward duration for `rewardToken` by `amount` tokens, extending the duration by the equivalent time according to the `rewardPerSec` rate of the pool.\\n function extendReward(address rewardToken, uint256 amount) external payable;\\n /// @notice Configures allocation points for a reward token over multiple staking tokens, setting the `allocPoints` for each `stakingTokens` and updating the `totalAllocPoint` for the `rewardToken`. The allocation points of any non-provided staking tokens will be left as-is, and won't be reset to zero.\\n function setAllocPoints(address rewardToken, IERC20[] calldata stakingTokens, uint48[] calldata allocPoints)\\n external;\\n /// @notice Unregisters a reward token fully, immediately preventing users from ever harvesting their pending accumulated rewards. Optionally `pullTokens` can be set to false which causes the token balance to not be sent to the owner, this should only be set to false in case the token is bugged and reverts.\\n function stopReward(address rewardToken, address receiver, bool pullTokens) external;\\n\\n /// @notice Returns the reward pools linked to the `stakingToken` alongside the pending rewards for `user` for these pools.\\n function getRewards(IERC20 stakingToken, address user) external view returns (address[] memory, uint256[] memory);\\n\\n /// @notice Returns the allocation points for the `rewardToken` over all staking tokens linked to it.\\n function allocPointsByReward(address rewardToken)\\n external\\n view\\n returns (IERC20[] memory stakingTokens, uint48[] memory allocPoints);\\n /// @notice Returns the allocation points for the `stakingToken` over all reward tokens linked to it.\\n function allocPointsByStake(IERC20 stakingToken)\\n external\\n view\\n returns (address[] memory rewardTokens, uint48[] memory allocPoints);\\n\\n /// @notice Returns all enabled reward tokens. Stopped reward tokens are not included, while ended rewards are.\\n function rewardTokens() external view returns (address[] memory);\\n /// @notice Returns the emission details of a `rewardToken`, configured via `setReward`.\\n function rewardDetails(address rewardToken) external view returns (RewardDetails memory);\\n}\\n\",\"keccak256\":\"0x61fc9cbfe5c49b68612034ab442816df42ceb08f9d52ae35f8827ba8571c05e3\",\"license\":\"BUSL-1.1\"},\"src/peripheral/rewarder/interfaces/IRewarder.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.22;\\n\\nimport {IERC20} from \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\n\\n/// @notice A rewarder is connected to the staking contract and distributes rewards whenever the staking contract updates the rewarder.\\ninterface IRewarder {\\n /// @notice This function is only callable by the staking contract.\\n error MultiRewarderUnauthorizedCaller(address caller);\\n /// @notice The rewarder cannot be reconnected to the same staking token as it would cause wrongful reward attribution through reconfiguration.\\n error RewarderAlreadyConnected(IERC20 stakingToken);\\n\\n /// @notice Emitted when the rewarder is connected to a staking token.\\n event RewarderConnected(IERC20 indexed stakingToken);\\n\\n /// @notice Informs the rewarder of an update in the staking contract, such as a deposit, withdraw or claim.\\n /// @dev Emergency withdrawals draw the balance of a user to 0, and DO NOT call `onUpdate`. The rewarder logic must keep this in mind!\\n function onUpdate(IERC20 token, address user, uint256 oldStake, uint256 oldSupply, uint256 newStake) external;\\n\\n /// @notice Called by the staking contract whenever this rewarder is connected to a staking token in the staking contract. Should only be callable once per staking token to avoid wrongful reward attribution through reconfiguration.\\n function connect(IERC20 stakingToken) external;\\n}\\n\",\"keccak256\":\"0xd400ea1d4f4db83a11d3b7394dc5af93b42f4137613ae9f6377ec5fd740e9cbb\",\"license\":\"BUSL-1.1\"},\"src/peripheral/rewarder/lib/RewardRegistryLib.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.22;\\n\\nimport {EnumerableSet} from \\\"@openzeppelin/contracts/utils/structs/EnumerableSet.sol\\\";\\n\\nimport {IMultiRewarder, RewardPool, IERC20} from \\\"../interfaces/IMultiRewarder.sol\\\";\\n\\n/// @dev Internal representation for a staking pool.\\nstruct RewardRegistry {\\n uint256 rewardIdCount;\\n mapping(uint256 => RewardPool) pools;\\n mapping(address rewardToken => EnumerableSet.UintSet) byReward;\\n mapping(IERC20 stakingToken => EnumerableSet.UintSet) byStake;\\n mapping(address rewardToken => mapping(IERC20 stakingToken => uint256)) byRewardAndStake;\\n mapping(address rewardToken => IMultiRewarder.RewardDetails) rewardDetails;\\n EnumerableSet.AddressSet rewardTokens;\\n}\\n\\n/// @dev Library for staking pool logic.\\nlibrary RewardRegistryLib {\\n using EnumerableSet for EnumerableSet.UintSet;\\n using EnumerableSet for EnumerableSet.AddressSet;\\n\\n uint256 private constant MAX_ACTIVE_POOLS_PER_REWARD = 100;\\n uint256 private constant MAX_ACTIVE_REWARD_TOKENS = 100;\\n\\n //** REGISTRY ADJUSTMENTS **/\\n function getOrCreateRewardDetails(RewardRegistry storage self, address rewardToken)\\n internal\\n returns (IMultiRewarder.RewardDetails storage reward)\\n {\\n reward = self.rewardDetails[rewardToken];\\n if (!reward.exists) {\\n if (self.rewardTokens.length() >= MAX_ACTIVE_REWARD_TOKENS) {\\n revert IMultiRewarder.MultiRewarderMaxActiveRewardTokens();\\n }\\n reward.exists = true;\\n self.rewardTokens.add(rewardToken);\\n emit IMultiRewarder.RewardRegistrered(rewardToken);\\n }\\n }\\n\\n function getOrCreatePoolId(RewardRegistry storage self, address reward, IERC20 stake)\\n internal\\n returns (uint256 poolId)\\n {\\n poolId = self.byRewardAndStake[reward][stake];\\n if (poolId == 0) {\\n if (self.byReward[reward].length() >= MAX_ACTIVE_POOLS_PER_REWARD) {\\n revert IMultiRewarder.MultiRewarderMaxPoolsForRewardToken();\\n }\\n poolId = ++self.rewardIdCount; // Start at 1\\n self.byRewardAndStake[reward][stake] = poolId;\\n self.byReward[reward].add(poolId);\\n self.byStake[stake].add(poolId);\\n self.pools[poolId].rewardToken = reward;\\n self.pools[poolId].stakingToken = stake;\\n self.pools[poolId].lastRewardTime = uint48(block.timestamp);\\n\\n emit IMultiRewarder.PoolRegistered(reward, stake);\\n }\\n }\\n\\n function removeReward(RewardRegistry storage self, address rewardToken) internal {\\n if (!self.rewardDetails[rewardToken].exists) revert IMultiRewarder.MultiRewarderUnregisteredToken(rewardToken);\\n uint256[] memory ids = self.byReward[rewardToken].values();\\n for (uint256 i = 0; i < ids.length; i++) {\\n uint256 id = ids[i];\\n IERC20 stakingToken = self.pools[id].stakingToken;\\n\\n self.byStake[stakingToken].remove(id);\\n self.byReward[rewardToken].remove(id);\\n self.byRewardAndStake[rewardToken][stakingToken] = 0;\\n self.pools[id].removed = true;\\n }\\n self.rewardTokens.remove(rewardToken);\\n delete self.rewardDetails[rewardToken];\\n }\\n\\n function setAllocPoints(\\n RewardRegistry storage self,\\n address rewardToken,\\n IERC20[] calldata stakingTokens,\\n uint48[] calldata allocPoints\\n ) internal {\\n IMultiRewarder.RewardDetails storage reward = self.rewardDetails[rewardToken];\\n uint160 totalSubtract;\\n uint160 totalAdd;\\n uint256 length = stakingTokens.length;\\n for (uint256 i = 0; i < length; i++) {\\n uint256 id = getOrCreatePoolId(self, rewardToken, stakingTokens[i]);\\n totalSubtract += self.pools[id].allocPoints;\\n totalAdd += allocPoints[i];\\n self.pools[id].allocPoints = allocPoints[i];\\n }\\n\\n reward.totalAllocPoints = reward.totalAllocPoints + totalAdd - totalSubtract;\\n }\\n\\n //** VIEW FUNCTIONS **/\\n\\n function allocPointsByReward(RewardRegistry storage self, address rewardToken)\\n external\\n view\\n returns (IERC20[] memory stakingTokens, uint48[] memory allocPoints)\\n {\\n uint256[] memory ids = self.byReward[rewardToken].values();\\n stakingTokens = new IERC20[](ids.length);\\n allocPoints = new uint48[](ids.length);\\n for (uint256 i = 0; i < ids.length; i++) {\\n stakingTokens[i] = self.pools[ids[i]].stakingToken;\\n allocPoints[i] = self.pools[ids[i]].allocPoints;\\n }\\n }\\n\\n function allocPointsByStake(RewardRegistry storage self, IERC20 stakingToken)\\n external\\n view\\n returns (address[] memory rewardTokens, uint48[] memory allocPoints)\\n {\\n uint256[] memory ids = self.byStake[stakingToken].values();\\n rewardTokens = new address[](ids.length);\\n allocPoints = new uint48[](ids.length);\\n for (uint256 i = 0; i < ids.length; i++) {\\n rewardTokens[i] = self.pools[ids[i]].rewardToken;\\n allocPoints[i] = self.pools[ids[i]].allocPoints;\\n }\\n }\\n}\\n\",\"keccak256\":\"0xef7c6bad82b77a974dfab1413a1431f5954097359f80aca08e850e11d0bd61b7\",\"license\":\"BUSL-1.1\"}},\"version\":1}",
|
|
24
24
|
"bytecode": "0x61065a61003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100405760003560e01c80631ad197ea14610045578063b05548e51461006f575b600080fd5b6100586100533660046104e4565b610082565b604051610066929190610558565b60405180910390f35b61005861007d3660046104e4565b61026d565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600383016020526040812060609182916100b79061044f565b9050805167ffffffffffffffff8111156100d3576100d36105c6565b6040519080825280602002602001820160405280156100fc578160200160208202803683370190505b509250805167ffffffffffffffff811115610119576101196105c6565b604051908082528060200260200182016040528015610142578160200160208202803683370190505b50915060005b815181101561026457856001016000838381518110610169576101696105f5565b6020026020010151815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168482815181106101b5576101b56105f5565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050856001016000838381518110610207576102076105f5565b60200260200101518152602001908152602001600020600101601a9054906101000a900465ffffffffffff16838281518110610245576102456105f5565b65ffffffffffff90921660209283029190910190910152600101610148565b50509250929050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600283016020526040812060609182916102a29061044f565b9050805167ffffffffffffffff8111156102be576102be6105c6565b6040519080825280602002602001820160405280156102e7578160200160208202803683370190505b509250805167ffffffffffffffff811115610304576103046105c6565b60405190808252806020026020018201604052801561032d578160200160208202803683370190505b50915060005b815181101561026457856001016000838381518110610354576103546105f5565b6020026020010151815260200190815260200160002060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168482815181106103a0576103a06105f5565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508560010160008383815181106103f2576103f26105f5565b60200260200101518152602001908152602001600020600101601a9054906101000a900465ffffffffffff16838281518110610430576104306105f5565b65ffffffffffff90921660209283029190910190910152600101610333565b6060600061045c83610463565b9392505050565b6060816000018054806020026020016040519081016040528092919081815260200182805480156104b357602002820191906000526020600020905b81548152602001906001019080831161049f575b50505050509050919050565b73ffffffffffffffffffffffffffffffffffffffff811681146104e157600080fd5b50565b600080604083850312156104f757600080fd5b823591506020830135610509816104bf565b809150509250929050565b60008151808452602080850194506020840160005b8381101561054d57815165ffffffffffff1687529582019590820190600101610529565b509495945050505050565b604080825283519082018190526000906020906060840190828701845b828110156105a757815173ffffffffffffffffffffffffffffffffffffffff1684529284019290840190600101610575565b50505083810360208501526105bc8186610514565b9695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea26469706673582212209965f36e0fd02294ca0178be138e541039953c7884fd89392841aa69fea2a46964736f6c63430008160033",
|
|
25
25
|
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600436106100405760003560e01c80631ad197ea14610045578063b05548e51461006f575b600080fd5b6100586100533660046104e4565b610082565b604051610066929190610558565b60405180910390f35b61005861007d3660046104e4565b61026d565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600383016020526040812060609182916100b79061044f565b9050805167ffffffffffffffff8111156100d3576100d36105c6565b6040519080825280602002602001820160405280156100fc578160200160208202803683370190505b509250805167ffffffffffffffff811115610119576101196105c6565b604051908082528060200260200182016040528015610142578160200160208202803683370190505b50915060005b815181101561026457856001016000838381518110610169576101696105f5565b6020026020010151815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168482815181106101b5576101b56105f5565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050856001016000838381518110610207576102076105f5565b60200260200101518152602001908152602001600020600101601a9054906101000a900465ffffffffffff16838281518110610245576102456105f5565b65ffffffffffff90921660209283029190910190910152600101610148565b50509250929050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600283016020526040812060609182916102a29061044f565b9050805167ffffffffffffffff8111156102be576102be6105c6565b6040519080825280602002602001820160405280156102e7578160200160208202803683370190505b509250805167ffffffffffffffff811115610304576103046105c6565b60405190808252806020026020018201604052801561032d578160200160208202803683370190505b50915060005b815181101561026457856001016000838381518110610354576103546105f5565b6020026020010151815260200190815260200160002060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168482815181106103a0576103a06105f5565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508560010160008383815181106103f2576103f26105f5565b60200260200101518152602001908152602001600020600101601a9054906101000a900465ffffffffffff16838281518110610430576104306105f5565b65ffffffffffff90921660209283029190910190910152600101610333565b6060600061045c83610463565b9392505050565b6060816000018054806020026020016040519081016040528092919081815260200182805480156104b357602002820191906000526020600020905b81548152602001906001019080831161049f575b50505050509050919050565b73ffffffffffffffffffffffffffffffffffffffff811681146104e157600080fd5b50565b600080604083850312156104f757600080fd5b823591506020830135610509816104bf565b809150509250929050565b60008151808452602080850194506020840160005b8381101561054d57815165ffffffffffff1687529582019590820190600101610529565b509495945050505050565b604080825283519082018190526000906020906060840190828701845b828110156105a757815173ffffffffffffffffffffffffffffffffffffffff1684529284019290840190600101610575565b50505083810360208501526105bc8186610514565b9695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea26469706673582212209965f36e0fd02294ca0178be138e541039953c7884fd89392841aa69fea2a46964736f6c63430008160033",
|