{"file_path":"node_modules/@chainlink/contracts-ccip/contracts/pools/BurnMintTokenPool.sol","creation_status":"success","source_code":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.24;\n\nimport {ITypeAndVersion} from \"@chainlink/contracts/src/v0.8/shared/interfaces/ITypeAndVersion.sol\";\nimport {IBurnMintERC20} from \"@chainlink/contracts/src/v0.8/shared/token/ERC20/IBurnMintERC20.sol\";\n\nimport {BurnMintTokenPoolAbstract} from \"./BurnMintTokenPoolAbstract.sol\";\nimport {TokenPool} from \"./TokenPool.sol\";\n\n/// @notice This pool mints and burns a 3rd-party token.\n/// @dev Pool whitelisting mode is set in the constructor and cannot be modified later.\n/// It either accepts any address as originalSender, or only accepts whitelisted originalSender.\n/// The only way to change whitelisting mode is to deploy a new pool.\n/// If that is expected, please make sure the token's burner/minter roles are adjustable.\n/// @dev This contract is a variant of BurnMintTokenPool that uses `burn(amount)`.\ncontract BurnMintTokenPool is BurnMintTokenPoolAbstract, ITypeAndVersion {\n  string public constant override typeAndVersion = \"BurnMintTokenPool 1.5.1\";\n\n  constructor(\n    IBurnMintERC20 token,\n    uint8 localTokenDecimals,\n    address[] memory allowlist,\n    address rmnProxy,\n    address router\n  ) TokenPool(token, localTokenDecimals, allowlist, rmnProxy, router) {}\n\n  /// @inheritdoc BurnMintTokenPoolAbstract\n  function _burn(\n    uint256 amount\n  ) internal virtual override {\n    IBurnMintERC20(address(i_token)).burn(amount);\n  }\n}\n","deployed_bytecode":"0x608060405234801561000f575f80fd5b50600436106101d1575f3560e01c80639a4575b9116100fe578063c0d786551161009e578063dc0bd9711161006e578063dc0bd971146104f1578063e0351e1314610517578063e8a1da171461053d578063f2fde38b14610550575f80fd5b8063c0d78655146104a3578063c4bffe2b146104b6578063c75eea9c146104cb578063cf7401f3146104de575f80fd5b8063acfecf91116100d9578063acfecf9114610406578063af58d59f14610419578063b0f479a11461047f578063b794658014610490575f80fd5b80639a4575b9146103b1578063a42a7b8b146103d1578063a7cd63b7146103f1575f80fd5b806354c8a4f3116101745780637d54534e116101445780637d54534e146103675780638926f54f1461037a5780638da5cb5b1461038d578063962d40201461039e575f80fd5b806354c8a4f31461032657806362ddd3c41461033b5780636d3d1a581461034e57806379ba50971461035f575f80fd5b8063240028e8116101af578063240028e81461028057806324f65ee7146102c057806339077537146102f15780634c5ef0ed14610313575f80fd5b806301ffc9a7146101d5578063181f5a77146101fd57806321df0da714610246575b5f80fd5b6101e86101e3366004612883565b610563565b60405190151581526020015b60405180910390f35b6102396040518060400160405280601781526020017f4275726e4d696e74546f6b656e506f6f6c20312e352e3100000000000000000081525081565b6040516101f491906128ed565b7f0000000000000000000000008210c0634ab8f273806e4b7866e9db353773c44b5b6040516001600160a01b0390911681526020016101f4565b6101e861028e366004612913565b7f0000000000000000000000008210c0634ab8f273806e4b7866e9db353773c44b6001600160a01b0390811691161490565b60405160ff7f00000000000000000000000000000000000000000000000000000000000000121681526020016101f4565b6103046102ff36600461292e565b6105b4565b604051905181526020016101f4565b6101e8610321366004612980565b61072f565b610339610334366004612a42565b610776565b005b610339610349366004612980565b6107ef565b6009546001600160a01b0316610268565b610339610871565b610339610375366004612913565b6108f2565b6101e8610388366004612aa8565b61094e565b6001546001600160a01b0316610268565b6103396103ac366004612b01565b610963565b6103c46103bf366004612b93565b610a70565b6040516101f49190612bc9565b6103e46103df366004612aa8565b610b49565b6040516101f49190612c01565b6103f9610cab565b6040516101f49190612c63565b610339610414366004612980565b610cbc565b61042c610427366004612aa8565b610d9e565b6040516101f4919081516001600160801b03908116825260208084015163ffffffff1690830152604080840151151590830152606080840151821690830152608092830151169181019190915260a00190565b6004546001600160a01b0316610268565b61023961049e366004612aa8565b610e49565b6103396104b1366004612913565b610ef5565b6104be610f85565b6040516101f49190612caf565b61042c6104d9366004612aa8565b611038565b6103396104ec366004612dec565b6110e0565b7f000000000000000000000000c842c69d54f83170c42c4d556b4f6b2ca53dd3e8610268565b7f00000000000000000000000000000000000000000000000000000000000000006101e8565b61033961054b366004612a42565b611131565b61033961055e366004612913565b61156b565b5f6001600160e01b0319821663aff2afbf60e01b148061059357506001600160e01b03198216630e64dd2960e01b145b806105ae57506001600160e01b031982166301ffc9a760e01b145b92915050565b60408051602081019091525f81526105cb8261157f565b5f610622606084013561061d6105e460c0870187612e2e565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061171792505050565b6117a6565b90506001600160a01b037f0000000000000000000000008210c0634ab8f273806e4b7866e9db353773c44b166340c10f196106636060860160408701612913565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044015f604051808303815f87803b1580156106a8575f80fd5b505af11580156106ba573d5f803e3d5ffd5b506106cf925050506060840160408501612913565b6001600160a01b0316336001600160a01b03167f9d228d69b5fdb8d273a2336f8fb8612d039631024ea9bf09c424a9503aa078f08360405161071391815260200190565b60405180910390a3604080516020810190915290815292915050565b5f61076e8383604051610743929190612e70565b60408051918290039091206001600160401b0387165f90815260076020529190912060050190611966565b949350505050565b61077e611980565b6107e98484808060200260200160405190810160405280939291908181526020018383602002808284375f92019190915250506040805160208088028281018201909352878252909350879250869182918501908490808284375f920191909152506119ad92505050565b50505050565b6107f7611980565b6108008361094e565b61082d57604051631e670e4b60e01b81526001600160401b03841660048201526024015b60405180910390fd5b61086c8383838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250611b1192505050565b505050565b5f546001600160a01b0316331461089b5760405163015aa1e360e11b815260040160405180910390fd5b600180546001600160a01b0319808216339081179093555f805490911681556040516001600160a01b03909216929183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a350565b6108fa611980565b600980546001600160a01b0319166001600160a01b0383169081179091556040519081527f44676b5284b809a22248eba0da87391d79098be38bb03154be88a58bf4d091749060200160405180910390a150565b5f6105ae60056001600160401b038416611966565b6009546001600160a01b0316331480159061098957506001546001600160a01b03163314155b156109a95760405163472511eb60e11b8152336004820152602401610824565b84831415806109b85750848114155b156109d657604051632b477e7160e11b815260040160405180910390fd5b5f5b85811015610a6757610a5f8787838181106109f5576109f5612e7f565b9050602002016020810190610a0a9190612aa8565b868684818110610a1c57610a1c612e7f565b905060600201803603810190610a329190612e93565b858585818110610a4457610a44612e7f565b905060600201803603810190610a5a9190612e93565b611bd4565b6001016109d8565b50505050505050565b6040805180820190915260608082526020820152610a8d82611c9e565b610a9a8260600135611ddd565b6040516060830135815233907f696de425f79f4a40bc6d2122ca50507f0efbeabbff86a84871b7196ab8ea8df79060200160405180910390a26040518060400160405280610af484602001602081019061049e9190612aa8565b8152602001610b416040805160ff7f000000000000000000000000000000000000000000000000000000000000001216602082015260609101604051602081830303815290604052905090565b905292915050565b6001600160401b0381165f90815260076020526040812060609190610b7090600501611e4e565b90505f81516001600160401b03811115610b8c57610b8c612cef565b604051908082528060200260200182016040528015610bbf57816020015b6060815260200190600190039081610baa5790505b5090505f5b8251811015610ca35760085f848381518110610be257610be2612e7f565b602002602001015181526020019081526020015f208054610c0290612ead565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2e90612ead565b8015610c795780601f10610c5057610100808354040283529160200191610c79565b820191905f5260205f20905b815481529060010190602001808311610c5c57829003601f168201915b5050505050828281518110610c9057610c90612e7f565b6020908102919091010152600101610bc4565b509392505050565b6060610cb76002611e4e565b905090565b610cc4611980565b610ccd8361094e565b610cf557604051631e670e4b60e01b81526001600160401b0384166004820152602401610824565b610d338282604051610d08929190612e70565b60408051918290039091206001600160401b0386165f90815260076020529190912060050190611e5a565b610d5657828282604051631d3c8f1f60e21b815260040161082493929190612f0d565b826001600160401b03167f52d00ee4d9bd51b40168f2afc5848837288ce258784ad914278791464b3f4d768383604051610d91929190612f2f565b60405180910390a2505050565b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091526001600160401b0382165f90815260076020908152604091829020825160a08101845260028201546001600160801b038082168352600160801b80830463ffffffff1695840195909552600160a01b90910460ff1615159482019490945260039091015480841660608301529190910490911660808201526105ae90611e65565b6001600160401b0381165f908152600760205260409020600401805460609190610e7290612ead565b80601f0160208091040260200160405190810160405280929190818152602001828054610e9e90612ead565b8015610ee95780601f10610ec057610100808354040283529160200191610ee9565b820191905f5260205f20905b815481529060010190602001808311610ecc57829003601f168201915b50505050509050919050565b610efd611980565b6001600160a01b038116610f24576040516342bcdf7f60e11b815260040160405180910390fd5b600480546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f02dc5c233404867c793b749c6d644beb2277536d18a7e7974d3f238e4c6f1684910160405180910390a15050565b60605f610f926005611e4e565b90505f81516001600160401b03811115610fae57610fae612cef565b604051908082528060200260200182016040528015610fd7578160200160208202803683370190505b5090505f5b825181101561103157828181518110610ff757610ff7612e7f565b602002602001015182828151811061101157611011612e7f565b6001600160401b0390921660209283029190910190910152600101610fdc565b5092915050565b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091526001600160401b0382165f90815260076020908152604091829020825160a08101845281546001600160801b038082168352600160801b80830463ffffffff1695840195909552600160a01b90910460ff1615159482019490945260019091015480841660608301529190910490911660808201526105ae90611e65565b6009546001600160a01b0316331480159061110657506001546001600160a01b03163314155b156111265760405163472511eb60e11b8152336004820152602401610824565b61086c838383611bd4565b611139611980565b5f5b838110156112e6575f85858381811061115657611156612e7f565b905060200201602081019061116b9190612aa8565b905061118160056001600160401b038316611e5a565b6111a957604051631e670e4b60e01b81526001600160401b0382166004820152602401610824565b6001600160401b0381165f9081526007602052604081206111cc90600501611e4e565b90505f5b81518110156112335761122a8282815181106111ee576111ee612e7f565b602002602001015160075f866001600160401b03166001600160401b031681526020019081526020015f20600501611e5a90919063ffffffff16565b506001016111d0565b506001600160401b0382165f90815260076020526040812080546001600160a81b031990811682556001820183905560028201805490911690556003810182905590611282600483018261281d565b600582015f81816112938282612854565b50506040516001600160401b03871681527f5204aec90a3c794d8e90fded8b46ae9c7c552803e7e832e0c1d358396d859916945060200192506112d4915050565b60405180910390a1505060010161113b565b505f5b81811015611564575f83838381811061130457611304612e7f565b90506020028101906113169190612f42565b61131f90612fcc565b905061132f81606001515f611ef1565b61133d81608001515f611ef1565b8060400151515f03611362576040516342bcdf7f60e11b815260040160405180910390fd5b8051611379906005906001600160401b0316611fb6565b6113a4578051604051631d5ad3c560e01b81526001600160401b039091166004820152602401610824565b80516001600160401b03165f90815260076020908152604091829020825160a08082018552606080870180518601516001600160801b0390811680865263ffffffff42168689018190528351511515878b0181905284518a0151841686890181905294518b0151841660809889018190528954600160a01b92830260ff60a01b19600160801b8087026001600160a01b031994851690981788178216929092178d5592810290971760018c01558c519889018d52898e0180518d01518716808b528a8e019590955280515115158a8f018190528151909d01518716988a01899052518d0151909516979098018790526002890180549a9091029990931617179094169590951790925590920290911760038201559082015160048201906114cb908261312e565b505f5b82602001515181101561150d57611505835f0151846020015183815181106114f8576114f8612e7f565b6020026020010151611b11565b6001016114ce565b507f8d340f17e19058004c20453540862a9c62778504476f6756755cb33bcd6c38c2825f01518360400151846060015185608001516040516115529493929190613217565b60405180910390a150506001016112e9565b5050505050565b611573611980565b61157c81611fc1565b50565b61159261028e60a0830160808401612913565b6115cb576115a660a0820160808301612913565b60405163961c9a4f60e01b81526001600160a01b039091166004820152602401610824565b6001600160a01b037f000000000000000000000000c842c69d54f83170c42c4d556b4f6b2ca53dd3e816632cbc26bb61160a6040840160208501612aa8565b60405160e083901b6001600160e01b031916815260809190911b67ffffffffffffffff60801b166004820152602401602060405180830381865afa158015611654573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116789190613256565b1561169657604051630a75a23b60e31b815260040160405180910390fd5b6116ae6116a96040830160208401612aa8565b612039565b6116ce6116c16040830160208401612aa8565b61032160a0840184612e2e565b6116fa576116df60a0820182612e2e565b6040516324eb47e560e01b8152600401610824929190612f2f565b61157c61170d6040830160208401612aa8565b8260600135612103565b5f81515f0361174757507f0000000000000000000000000000000000000000000000000000000000000012919050565b815160201461176b578160405163953576f760e01b815260040161082491906128ed565b5f828060200190518101906117809190613271565b905060ff8111156105ae578260405163953576f760e01b815260040161082491906128ed565b5f7f000000000000000000000000000000000000000000000000000000000000001260ff168260ff16036117db5750816105ae565b7f000000000000000000000000000000000000000000000000000000000000001260ff168260ff1611156118ac575f6118347f00000000000000000000000000000000000000000000000000000000000000128461329c565b9050604d8160ff16111561188f5760405163a9cb113d60e01b815260ff80851660048301527f000000000000000000000000000000000000000000000000000000000000001216602482015260448101859052606401610824565b61189a81600a613395565b6118a490856133a3565b9150506105ae565b5f6118d7837f000000000000000000000000000000000000000000000000000000000000001261329c565b9050604d8160ff1611806118ff57506118f181600a613395565b6118fc905f196133a3565b84115b156119515760405163a9cb113d60e01b815260ff80851660048301527f000000000000000000000000000000000000000000000000000000000000001216602482015260448101859052606401610824565b61195c81600a613395565b61076e90856133c2565b5f81815260018301602052604081205415155b9392505050565b6001546001600160a01b031633146119ab576040516315ae3a6f60e11b815260040160405180910390fd5b565b7f00000000000000000000000000000000000000000000000000000000000000006119eb576040516335f4a7b360e01b815260040160405180910390fd5b5f5b8251811015611a72575f838281518110611a0957611a09612e7f565b60200260200101519050611a2781600261214890919063ffffffff16565b15611a69576040516001600160a01b03821681527f800671136ab6cfee9fbe5ed1fb7ca417811aca3cf864800d127b927adedf75669060200160405180910390a15b506001016119ed565b505f5b815181101561086c575f828281518110611a9157611a91612e7f565b602002602001015190505f6001600160a01b0316816001600160a01b031603611aba5750611b09565b611ac560028261215c565b15611b07576040516001600160a01b03821681527f2640d4d76caf8bf478aabfa982fa4e1c4eb71a37f93cd15e80dbc657911546d89060200160405180910390a15b505b600101611a75565b80515f03611b32576040516342bcdf7f60e11b815260040160405180910390fd5b80516020808301919091206001600160401b0384165f90815260079092526040909120611b629060050182611fb6565b611b83578282604051631c9dc56960e11b81526004016108249291906133d9565b5f818152600860205260409020611b9a838261312e565b50826001600160401b03167f7d628c9a1796743d365ab521a8b2a4686e419b3269919dc9145ea2ce853b54ea83604051610d9191906128ed565b611bdd8361094e565b611c0557604051631e670e4b60e01b81526001600160401b0384166004820152602401610824565b611c0f825f611ef1565b6001600160401b0383165f908152600760205260409020611c309083612170565b611c3a815f611ef1565b6001600160401b0383165f908152600760205260409020611c5e9060020182612170565b7f0350d63aa5f270e01729d00d627eeb8f3429772b1818c016c66a588a864f912b838383604051611c91939291906133fa565b60405180910390a1505050565b611cb161028e60a0830160808401612913565b611cc5576115a660a0820160808301612913565b6001600160a01b037f000000000000000000000000c842c69d54f83170c42c4d556b4f6b2ca53dd3e816632cbc26bb611d046040840160208501612aa8565b60405160e083901b6001600160e01b031916815260809190911b67ffffffffffffffff60801b166004820152602401602060405180830381865afa158015611d4e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d729190613256565b15611d9057604051630a75a23b60e31b815260040160405180910390fd5b611da8611da36060830160408401612913565b612286565b611dc0611dbb6040830160208401612aa8565b6122df565b61157c611dd36040830160208401612aa8565b82606001356123b7565b604051630852cd8d60e31b8152600481018290527f0000000000000000000000008210c0634ab8f273806e4b7866e9db353773c44b6001600160a01b0316906342966c68906024015f604051808303815f87803b158015611e3c575f80fd5b505af1158015611564573d5f803e3d5ffd5b60605f611979836123f9565b5f6119798383612451565b6040805160a0810182525f80825260208201819052918101829052606081018290526080810191909152611ed682606001516001600160801b0316835f01516001600160801b0316846020015163ffffffff1642611ec39190613424565b85608001516001600160801b0316612534565b6001600160801b031682525063ffffffff4216602082015290565b815115611f6f5781602001516001600160801b031682604001516001600160801b0316101580611f2c575060408201516001600160801b0316155b15611f4c5781604051632008344960e21b81526004016108249190613437565b8015611f6b5760405163433fc33d60e01b815260040160405180910390fd5b5050565b60408201516001600160801b0316151580611f96575060208201516001600160801b031615155b15611f6b57816040516335a2be7360e21b81526004016108249190613437565b5f611979838361255b565b336001600160a01b03821603611fea57604051636d6c4ee560e11b815260040160405180910390fd5b5f80546001600160a01b0319166001600160a01b03838116918217835560015460405192939116917fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae12789190a350565b6120428161094e565b61206a576040516354c8163f60e11b81526001600160401b0382166004820152602401610824565b600480546040516383826b2b60e01b81526001600160401b038416928101929092523360248301526001600160a01b0316906383826b2b90604401602060405180830381865afa1580156120c0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120e49190613256565b61157c5760405163728fe07b60e01b8152336004820152602401610824565b6001600160401b0382165f908152600760205260409020611f6b90600201827f0000000000000000000000008210c0634ab8f273806e4b7866e9db353773c44b6125a7565b5f611979836001600160a01b038416612451565b5f611979836001600160a01b03841661255b565b81545f9061218b90600160801b900463ffffffff1642613424565b905080156121e957600183015483546121bd916001600160801b03808216928116918591600160801b90910416612534565b83546001600160801b03919091166001600160a01b031990911617600160801b4263ffffffff16021783555b60208201518354612206916001600160801b0390811691166127e7565b835483511515600160a01b0274ff00000000ffffffffffffffffffffffffffffffff199091166001600160801b039283161717845560208301516040808501518316600160801b0291909216176001850155517f9ea3374b67bf275e6bb9c8ae68f9cae023e1c528b4b27e092f0bb209d3531c1990611c91908490613437565b7f00000000000000000000000000000000000000000000000000000000000000001561157c576122b76002826127fc565b61157c576040516368692cbb60e11b81526001600160a01b0382166004820152602401610824565b6122e88161094e565b612310576040516354c8163f60e11b81526001600160401b0382166004820152602401610824565b6004805460405163a8d87a3b60e01b81526001600160401b038416928101929092526001600160a01b03169063a8d87a3b90602401602060405180830381865afa158015612360573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906123849190613445565b6001600160a01b0316336001600160a01b03161461157c5760405163728fe07b60e01b8152336004820152602401610824565b6001600160401b0382165f908152600760205260409020611f6b90827f0000000000000000000000008210c0634ab8f273806e4b7866e9db353773c44b6125a7565b6060815f01805480602002602001604051908101604052809291908181526020018280548015610ee957602002820191905f5260205f20905b8154815260200190600101908083116124325750505050509050919050565b5f818152600183016020526040812054801561252b575f612473600183613424565b85549091505f9061248690600190613424565b90508082146124e5575f865f0182815481106124a4576124a4612e7f565b905f5260205f200154905080875f0184815481106124c4576124c4612e7f565b5f918252602080832090910192909255918252600188019052604090208390555b85548690806124f6576124f6613460565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f9055600193505050506105ae565b5f9150506105ae565b5f6125528561254384866133c2565b61254d9087613474565b6127e7565b95945050505050565b5f8181526001830160205260408120546125a057508154600181810184555f8481526020808220909301849055845484825282860190935260409020919091556105ae565b505f6105ae565b8254600160a01b900460ff1615806125bd575081155b156125c757505050565b825460018401546001600160801b03808316929116905f906125f690600160801b900463ffffffff1642613424565b90508015612662578183111561261f57604051634b92ca1560e11b815260040160405180910390fd5b600186015461264390839085908490600160801b90046001600160801b0316612534565b865463ffffffff60801b1916600160801b4263ffffffff160217875592505b848210156126cd576001600160a01b03841661269b5760405163f94ebcd160e01b81526004810183905260248101869052604401610824565b604051630d3b2b9560e11b815260048101839052602481018690526001600160a01b0385166044820152606401610824565b8483101561277d57600186810154600160801b90046001600160801b0316905f9082906126fa9082613424565b612704878a613424565b61270e9190613474565b61271891906133a3565b90506001600160a01b03861661274b576040516302a4f38160e31b81526004810182905260248101869052604401610824565b604051636864691d60e11b815260048101829052602481018690526001600160a01b0387166044820152606401610824565b6127878584613424565b86546fffffffffffffffffffffffffffffffff19166001600160801b0382161787556040518681529093507f1871cdf8010e63f2eb8384381a68dfa7416dc571a5517e66e88b2d2d0c0a690a9060200160405180910390a1505050505050565b5f8183106127f55781611979565b5090919050565b6001600160a01b0381165f9081526001830160205260408120541515611979565b50805461282990612ead565b5f825580601f10612838575050565b601f0160209004905f5260205f209081019061157c919061286b565b5080545f8255905f5260205f209081019061157c91905b5b8082111561287f575f815560010161286c565b5090565b5f60208284031215612893575f80fd5b81356001600160e01b031981168114611979575f80fd5b5f81518084525f5b818110156128ce576020818501810151868301820152016128b2565b505f602082860101526020601f19601f83011685010191505092915050565b602081525f61197960208301846128aa565b6001600160a01b038116811461157c575f80fd5b5f60208284031215612923575f80fd5b8135611979816128ff565b5f6020828403121561293e575f80fd5b81356001600160401b03811115612953575f80fd5b82016101008185031215611979575f80fd5b80356001600160401b038116811461297b575f80fd5b919050565b5f805f60408486031215612992575f80fd5b61299b84612965565b925060208401356001600160401b03808211156129b6575f80fd5b818601915086601f8301126129c9575f80fd5b8135818111156129d7575f80fd5b8760208285010111156129e8575f80fd5b6020830194508093505050509250925092565b5f8083601f840112612a0b575f80fd5b5081356001600160401b03811115612a21575f80fd5b6020830191508360208260051b8501011115612a3b575f80fd5b9250929050565b5f805f8060408587031215612a55575f80fd5b84356001600160401b0380821115612a6b575f80fd5b612a77888389016129fb565b90965094506020870135915080821115612a8f575f80fd5b50612a9c878288016129fb565b95989497509550505050565b5f60208284031215612ab8575f80fd5b61197982612965565b5f8083601f840112612ad1575f80fd5b5081356001600160401b03811115612ae7575f80fd5b602083019150836020606083028501011115612a3b575f80fd5b5f805f805f8060608789031215612b16575f80fd5b86356001600160401b0380821115612b2c575f80fd5b612b388a838b016129fb565b90985096506020890135915080821115612b50575f80fd5b612b5c8a838b01612ac1565b90965094506040890135915080821115612b74575f80fd5b50612b8189828a01612ac1565b979a9699509497509295939492505050565b5f60208284031215612ba3575f80fd5b81356001600160401b03811115612bb8575f80fd5b820160a08185031215611979575f80fd5b602081525f825160406020840152612be460608401826128aa565b90506020840151601f1984830301604085015261255282826128aa565b5f60208083016020845280855180835260408601915060408160051b8701019250602087015f5b82811015612c5657603f19888603018452612c448583516128aa565b94509285019290850190600101612c28565b5092979650505050505050565b602080825282518282018190525f9190848201906040850190845b81811015612ca35783516001600160a01b031683529284019291840191600101612c7e565b50909695505050505050565b602080825282518282018190525f9190848201906040850190845b81811015612ca35783516001600160401b031683529284019291840191600101612cca565b634e487b7160e01b5f52604160045260245ffd5b60405160a081016001600160401b0381118282101715612d2557612d25612cef565b60405290565b604051601f8201601f191681016001600160401b0381118282101715612d5357612d53612cef565b604052919050565b801515811461157c575f80fd5b80356001600160801b038116811461297b575f80fd5b5f60608284031215612d8e575f80fd5b604051606081018181106001600160401b0382111715612db057612db0612cef565b6040529050808235612dc181612d5b565b8152612dcf60208401612d68565b6020820152612de060408401612d68565b60408201525092915050565b5f805f60e08486031215612dfe575f80fd5b612e0784612965565b9250612e168560208601612d7e565b9150612e258560808601612d7e565b90509250925092565b5f808335601e19843603018112612e43575f80fd5b8301803591506001600160401b03821115612e5c575f80fd5b602001915036819003821315612a3b575f80fd5b818382375f9101908152919050565b634e487b7160e01b5f52603260045260245ffd5b5f60608284031215612ea3575f80fd5b6119798383612d7e565b600181811c90821680612ec157607f821691505b602082108103612edf57634e487b7160e01b5f52602260045260245ffd5b50919050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160401b0384168152604060208201525f612552604083018486612ee5565b602081525f61076e602083018486612ee5565b5f823561011e19833603018112612f57575f80fd5b9190910192915050565b5f82601f830112612f70575f80fd5b81356001600160401b03811115612f8957612f89612cef565b612f9c601f8201601f1916602001612d2b565b818152846020838601011115612fb0575f80fd5b816020850160208301375f918101602001919091529392505050565b5f6101208236031215612fdd575f80fd5b612fe5612d03565b612fee83612965565b81526020808401356001600160401b038082111561300a575f80fd5b9085019036601f83011261301c575f80fd5b81358181111561302e5761302e612cef565b8060051b61303d858201612d2b565b9182528381018501918581019036841115613056575f80fd5b86860192505b8383101561309057823585811115613072575f80fd5b6130803689838a0101612f61565b835250918601919086019061305c565b80878901525050505060408601359250808311156130ac575f80fd5b50506130ba36828601612f61565b6040830152506130cd3660608501612d7e565b60608201526130df3660c08501612d7e565b608082015292915050565b601f82111561086c57805f5260205f20601f840160051c8101602085101561310f5750805b601f840160051c820191505b81811015611564575f815560010161311b565b81516001600160401b0381111561314757613147612cef565b61315b816131558454612ead565b846130ea565b602080601f83116001811461318e575f84156131775750858301515b5f19600386901b1c1916600185901b1785556131e5565b5f85815260208120601f198616915b828110156131bc5788860151825594840194600190910190840161319d565b50858210156131d957878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b8051151582526020808201516001600160801b039081169184019190915260409182015116910152565b5f6101006001600160401b0387168352806020840152613239818401876128aa565b91505061324960408301856131ed565b61255260a08301846131ed565b5f60208284031215613266575f80fd5b815161197981612d5b565b5f60208284031215613281575f80fd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b60ff82811682821603908111156105ae576105ae613288565b600181815b808511156132ef57815f19048211156132d5576132d5613288565b808516156132e257918102915b93841c93908002906132ba565b509250929050565b5f82613305575060016105ae565b8161331157505f6105ae565b816001811461332757600281146133315761334d565b60019150506105ae565b60ff84111561334257613342613288565b50506001821b6105ae565b5060208310610133831016604e8410600b8410161715613370575081810a6105ae565b61337a83836132b5565b805f190482111561338d5761338d613288565b029392505050565b5f61197960ff8416836132f7565b5f826133bd57634e487b7160e01b5f52601260045260245ffd5b500490565b80820281158282048414176105ae576105ae613288565b6001600160401b0383168152604060208201525f61076e60408301846128aa565b6001600160401b038416815260e0810161341760208301856131ed565b61076e60808301846131ed565b818103818111156105ae576105ae613288565b606081016105ae82846131ed565b5f60208284031215613455575f80fd5b8151611979816128ff565b634e487b7160e01b5f52603160045260245ffd5b808201808211156105ae576105ae61328856fea26469706673582212202459b04cef223f9f1c71f31de6a176acdafb55e2eab96678f94547386952c2cb64736f6c63430008180033","optimization_enabled":true,"verified_twin_address_hash":null,"is_verified":true,"compiler_settings":{"evmVersion":"cancun","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":true,"runs":200},"remappings":["@chainlink/contracts-ccip/=node_modules/@chainlink/contracts-ccip/","@chainlink/contracts/=node_modules/@chainlink/contracts/","forge-std/=lib/forge-std/src/"]},"optimization_runs":200,"sourcify_repo_url":null,"decoded_constructor_args":[["0x8210c0634AB8f273806e4b7866E9Db353773c44B",{"internalType":"contract IBurnMintERC20","name":"token","type":"address"}],["18",{"internalType":"uint8","name":"localTokenDecimals","type":"uint8"}],[[],{"internalType":"address[]","name":"allowlist","type":"address[]"}],["0xC842c69d54F83170C42C4d556B4F6B2ca53Dd3E8",{"internalType":"address","name":"rmnProxy","type":"address"}],["0x881e3A65B4d4a04dD529061dd0071cf975F58bCD",{"internalType":"address","name":"router","type":"address"}]],"compiler_version":"0.8.24+commit.e11b9ed9","is_verified_via_verifier_alliance":true,"verified_at":"2025-11-29T05:34:02.680346Z","implementations":[],"proxy_type":null,"external_libraries":[],"creation_bytecode":"0x61010060405234801562000011575f80fd5b5060405162003c6738038062003c67833981016040819052620000349162000580565b8484848484335f816200005a57604051639b15e16f60e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b03848116919091179091558116156200008d576200008d81620001e8565b50506001600160a01b0385161580620000ad57506001600160a01b038116155b80620000c057506001600160a01b038216155b15620000df576040516342bcdf7f60e11b815260040160405180910390fd5b6001600160a01b03808616608081905290831660c0526040805163313ce56760e01b8152905163313ce567916004808201926020929091908290030181865afa9250505080156200014f575060408051601f3d908101601f191682019092526200014c918101906200069b565b60015b156200018f578060ff168560ff16146200018d576040516332ad3e0760e11b815260ff80871660048301528216602482015260440160405180910390fd5b505b60ff841660a052600480546001600160a01b0319166001600160a01b038316179055825115801560e052620001d857604080515f815260208101909152620001d8908462000261565b50505050505050505050620006ff565b336001600160a01b038216036200021257604051636d6c4ee560e11b815260040160405180910390fd5b5f80546001600160a01b0319166001600160a01b03838116918217835560015460405192939116917fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae12789190a350565b60e05162000282576040516335f4a7b360e01b815260040160405180910390fd5b5f5b82518110156200030b575f838281518110620002a457620002a4620006b7565b60209081029190910101519050620002be600282620003b9565b1562000301576040516001600160a01b03821681527f800671136ab6cfee9fbe5ed1fb7ca417811aca3cf864800d127b927adedf75669060200160405180910390a15b5060010162000284565b505f5b8151811015620003b4575f8282815181106200032e576200032e620006b7565b602002602001015190505f6001600160a01b0316816001600160a01b031603620003595750620003ab565b62000366600282620003d8565b15620003a9576040516001600160a01b03821681527f2640d4d76caf8bf478aabfa982fa4e1c4eb71a37f93cd15e80dbc657911546d89060200160405180910390a15b505b6001016200030e565b505050565b5f620003cf836001600160a01b038416620003ee565b90505b92915050565b5f620003cf836001600160a01b038416620004e2565b5f8181526001830160205260408120548015620004d8575f62000413600183620006cb565b85549091505f906200042890600190620006cb565b90508082146200048e575f865f0182815481106200044a576200044a620006b7565b905f5260205f200154905080875f0184815481106200046d576200046d620006b7565b5f918252602080832090910192909255918252600188019052604090208390555b8554869080620004a257620004a2620006eb565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f905560019350505050620003d2565b5f915050620003d2565b5f8181526001830160205260408120546200052957508154600181810184555f848152602080822090930184905584548482528286019093526040902091909155620003d2565b505f620003d2565b6001600160a01b038116811462000546575f80fd5b50565b805160ff811681146200055a575f80fd5b919050565b634e487b7160e01b5f52604160045260245ffd5b80516200055a8162000531565b5f805f805f60a0868803121562000595575f80fd5b8551620005a28162000531565b94506020620005b387820162000549565b60408801519095506001600160401b0380821115620005d0575f80fd5b818901915089601f830112620005e4575f80fd5b815181811115620005f957620005f96200055f565b8060051b604051601f19603f830116810181811085821117156200062157620006216200055f565b60405291825284820192508381018501918c8311156200063f575f80fd5b938501935b828510156200066857620006588562000573565b8452938501939285019262000644565b8098505050505050506200067f6060870162000573565b91506200068f6080870162000573565b90509295509295909350565b5f60208284031215620006ac575f80fd5b620003cf8262000549565b634e487b7160e01b5f52603260045260245ffd5b81810381811115620003d257634e487b7160e01b5f52601160045260245ffd5b634e487b7160e01b5f52603160045260245ffd5b60805160a05160c05160e0516134bd620007aa5f395f8181610519015281816119af015261228801525f81816104f3015281816115d50152611ccf01525f81816102c701528181610b0401528181611723015281816117a9015281816117dd0152818161180f0152818161185b015281816118b3015261191d01525f8181610248015281816102900152818161062e01528181611df30152818161212401526123d501526134bd5ff3fe608060405234801561000f575f80fd5b50600436106101d1575f3560e01c80639a4575b9116100fe578063c0d786551161009e578063dc0bd9711161006e578063dc0bd971146104f1578063e0351e1314610517578063e8a1da171461053d578063f2fde38b14610550575f80fd5b8063c0d78655146104a3578063c4bffe2b146104b6578063c75eea9c146104cb578063cf7401f3146104de575f80fd5b8063acfecf91116100d9578063acfecf9114610406578063af58d59f14610419578063b0f479a11461047f578063b794658014610490575f80fd5b80639a4575b9146103b1578063a42a7b8b146103d1578063a7cd63b7146103f1575f80fd5b806354c8a4f3116101745780637d54534e116101445780637d54534e146103675780638926f54f1461037a5780638da5cb5b1461038d578063962d40201461039e575f80fd5b806354c8a4f31461032657806362ddd3c41461033b5780636d3d1a581461034e57806379ba50971461035f575f80fd5b8063240028e8116101af578063240028e81461028057806324f65ee7146102c057806339077537146102f15780634c5ef0ed14610313575f80fd5b806301ffc9a7146101d5578063181f5a77146101fd57806321df0da714610246575b5f80fd5b6101e86101e3366004612883565b610563565b60405190151581526020015b60405180910390f35b6102396040518060400160405280601781526020017f4275726e4d696e74546f6b656e506f6f6c20312e352e3100000000000000000081525081565b6040516101f491906128ed565b7f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b0390911681526020016101f4565b6101e861028e366004612913565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0390811691161490565b60405160ff7f00000000000000000000000000000000000000000000000000000000000000001681526020016101f4565b6103046102ff36600461292e565b6105b4565b604051905181526020016101f4565b6101e8610321366004612980565b61072f565b610339610334366004612a42565b610776565b005b610339610349366004612980565b6107ef565b6009546001600160a01b0316610268565b610339610871565b610339610375366004612913565b6108f2565b6101e8610388366004612aa8565b61094e565b6001546001600160a01b0316610268565b6103396103ac366004612b01565b610963565b6103c46103bf366004612b93565b610a70565b6040516101f49190612bc9565b6103e46103df366004612aa8565b610b49565b6040516101f49190612c01565b6103f9610cab565b6040516101f49190612c63565b610339610414366004612980565b610cbc565b61042c610427366004612aa8565b610d9e565b6040516101f4919081516001600160801b03908116825260208084015163ffffffff1690830152604080840151151590830152606080840151821690830152608092830151169181019190915260a00190565b6004546001600160a01b0316610268565b61023961049e366004612aa8565b610e49565b6103396104b1366004612913565b610ef5565b6104be610f85565b6040516101f49190612caf565b61042c6104d9366004612aa8565b611038565b6103396104ec366004612dec565b6110e0565b7f0000000000000000000000000000000000000000000000000000000000000000610268565b7f00000000000000000000000000000000000000000000000000000000000000006101e8565b61033961054b366004612a42565b611131565b61033961055e366004612913565b61156b565b5f6001600160e01b0319821663aff2afbf60e01b148061059357506001600160e01b03198216630e64dd2960e01b145b806105ae57506001600160e01b031982166301ffc9a760e01b145b92915050565b60408051602081019091525f81526105cb8261157f565b5f610622606084013561061d6105e460c0870187612e2e565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061171792505050565b6117a6565b90506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166340c10f196106636060860160408701612913565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044015f604051808303815f87803b1580156106a8575f80fd5b505af11580156106ba573d5f803e3d5ffd5b506106cf925050506060840160408501612913565b6001600160a01b0316336001600160a01b03167f9d228d69b5fdb8d273a2336f8fb8612d039631024ea9bf09c424a9503aa078f08360405161071391815260200190565b60405180910390a3604080516020810190915290815292915050565b5f61076e8383604051610743929190612e70565b60408051918290039091206001600160401b0387165f90815260076020529190912060050190611966565b949350505050565b61077e611980565b6107e98484808060200260200160405190810160405280939291908181526020018383602002808284375f92019190915250506040805160208088028281018201909352878252909350879250869182918501908490808284375f920191909152506119ad92505050565b50505050565b6107f7611980565b6108008361094e565b61082d57604051631e670e4b60e01b81526001600160401b03841660048201526024015b60405180910390fd5b61086c8383838080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250611b1192505050565b505050565b5f546001600160a01b0316331461089b5760405163015aa1e360e11b815260040160405180910390fd5b600180546001600160a01b0319808216339081179093555f805490911681556040516001600160a01b03909216929183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a350565b6108fa611980565b600980546001600160a01b0319166001600160a01b0383169081179091556040519081527f44676b5284b809a22248eba0da87391d79098be38bb03154be88a58bf4d091749060200160405180910390a150565b5f6105ae60056001600160401b038416611966565b6009546001600160a01b0316331480159061098957506001546001600160a01b03163314155b156109a95760405163472511eb60e11b8152336004820152602401610824565b84831415806109b85750848114155b156109d657604051632b477e7160e11b815260040160405180910390fd5b5f5b85811015610a6757610a5f8787838181106109f5576109f5612e7f565b9050602002016020810190610a0a9190612aa8565b868684818110610a1c57610a1c612e7f565b905060600201803603810190610a329190612e93565b858585818110610a4457610a44612e7f565b905060600201803603810190610a5a9190612e93565b611bd4565b6001016109d8565b50505050505050565b6040805180820190915260608082526020820152610a8d82611c9e565b610a9a8260600135611ddd565b6040516060830135815233907f696de425f79f4a40bc6d2122ca50507f0efbeabbff86a84871b7196ab8ea8df79060200160405180910390a26040518060400160405280610af484602001602081019061049e9190612aa8565b8152602001610b416040805160ff7f000000000000000000000000000000000000000000000000000000000000000016602082015260609101604051602081830303815290604052905090565b905292915050565b6001600160401b0381165f90815260076020526040812060609190610b7090600501611e4e565b90505f81516001600160401b03811115610b8c57610b8c612cef565b604051908082528060200260200182016040528015610bbf57816020015b6060815260200190600190039081610baa5790505b5090505f5b8251811015610ca35760085f848381518110610be257610be2612e7f565b602002602001015181526020019081526020015f208054610c0290612ead565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2e90612ead565b8015610c795780601f10610c5057610100808354040283529160200191610c79565b820191905f5260205f20905b815481529060010190602001808311610c5c57829003601f168201915b5050505050828281518110610c9057610c90612e7f565b6020908102919091010152600101610bc4565b509392505050565b6060610cb76002611e4e565b905090565b610cc4611980565b610ccd8361094e565b610cf557604051631e670e4b60e01b81526001600160401b0384166004820152602401610824565b610d338282604051610d08929190612e70565b60408051918290039091206001600160401b0386165f90815260076020529190912060050190611e5a565b610d5657828282604051631d3c8f1f60e21b815260040161082493929190612f0d565b826001600160401b03167f52d00ee4d9bd51b40168f2afc5848837288ce258784ad914278791464b3f4d768383604051610d91929190612f2f565b60405180910390a2505050565b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091526001600160401b0382165f90815260076020908152604091829020825160a08101845260028201546001600160801b038082168352600160801b80830463ffffffff1695840195909552600160a01b90910460ff1615159482019490945260039091015480841660608301529190910490911660808201526105ae90611e65565b6001600160401b0381165f908152600760205260409020600401805460609190610e7290612ead565b80601f0160208091040260200160405190810160405280929190818152602001828054610e9e90612ead565b8015610ee95780601f10610ec057610100808354040283529160200191610ee9565b820191905f5260205f20905b815481529060010190602001808311610ecc57829003601f168201915b50505050509050919050565b610efd611980565b6001600160a01b038116610f24576040516342bcdf7f60e11b815260040160405180910390fd5b600480546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f02dc5c233404867c793b749c6d644beb2277536d18a7e7974d3f238e4c6f1684910160405180910390a15050565b60605f610f926005611e4e565b90505f81516001600160401b03811115610fae57610fae612cef565b604051908082528060200260200182016040528015610fd7578160200160208202803683370190505b5090505f5b825181101561103157828181518110610ff757610ff7612e7f565b602002602001015182828151811061101157611011612e7f565b6001600160401b0390921660209283029190910190910152600101610fdc565b5092915050565b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091526001600160401b0382165f90815260076020908152604091829020825160a08101845281546001600160801b038082168352600160801b80830463ffffffff1695840195909552600160a01b90910460ff1615159482019490945260019091015480841660608301529190910490911660808201526105ae90611e65565b6009546001600160a01b0316331480159061110657506001546001600160a01b03163314155b156111265760405163472511eb60e11b8152336004820152602401610824565b61086c838383611bd4565b611139611980565b5f5b838110156112e6575f85858381811061115657611156612e7f565b905060200201602081019061116b9190612aa8565b905061118160056001600160401b038316611e5a565b6111a957604051631e670e4b60e01b81526001600160401b0382166004820152602401610824565b6001600160401b0381165f9081526007602052604081206111cc90600501611e4e565b90505f5b81518110156112335761122a8282815181106111ee576111ee612e7f565b602002602001015160075f866001600160401b03166001600160401b031681526020019081526020015f20600501611e5a90919063ffffffff16565b506001016111d0565b506001600160401b0382165f90815260076020526040812080546001600160a81b031990811682556001820183905560028201805490911690556003810182905590611282600483018261281d565b600582015f81816112938282612854565b50506040516001600160401b03871681527f5204aec90a3c794d8e90fded8b46ae9c7c552803e7e832e0c1d358396d859916945060200192506112d4915050565b60405180910390a1505060010161113b565b505f5b81811015611564575f83838381811061130457611304612e7f565b90506020028101906113169190612f42565b61131f90612fcc565b905061132f81606001515f611ef1565b61133d81608001515f611ef1565b8060400151515f03611362576040516342bcdf7f60e11b815260040160405180910390fd5b8051611379906005906001600160401b0316611fb6565b6113a4578051604051631d5ad3c560e01b81526001600160401b039091166004820152602401610824565b80516001600160401b03165f90815260076020908152604091829020825160a08082018552606080870180518601516001600160801b0390811680865263ffffffff42168689018190528351511515878b0181905284518a0151841686890181905294518b0151841660809889018190528954600160a01b92830260ff60a01b19600160801b8087026001600160a01b031994851690981788178216929092178d5592810290971760018c01558c519889018d52898e0180518d01518716808b528a8e019590955280515115158a8f018190528151909d01518716988a01899052518d0151909516979098018790526002890180549a9091029990931617179094169590951790925590920290911760038201559082015160048201906114cb908261312e565b505f5b82602001515181101561150d57611505835f0151846020015183815181106114f8576114f8612e7f565b6020026020010151611b11565b6001016114ce565b507f8d340f17e19058004c20453540862a9c62778504476f6756755cb33bcd6c38c2825f01518360400151846060015185608001516040516115529493929190613217565b60405180910390a150506001016112e9565b5050505050565b611573611980565b61157c81611fc1565b50565b61159261028e60a0830160808401612913565b6115cb576115a660a0820160808301612913565b60405163961c9a4f60e01b81526001600160a01b039091166004820152602401610824565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016632cbc26bb61160a6040840160208501612aa8565b60405160e083901b6001600160e01b031916815260809190911b67ffffffffffffffff60801b166004820152602401602060405180830381865afa158015611654573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906116789190613256565b1561169657604051630a75a23b60e31b815260040160405180910390fd5b6116ae6116a96040830160208401612aa8565b612039565b6116ce6116c16040830160208401612aa8565b61032160a0840184612e2e565b6116fa576116df60a0820182612e2e565b6040516324eb47e560e01b8152600401610824929190612f2f565b61157c61170d6040830160208401612aa8565b8260600135612103565b5f81515f0361174757507f0000000000000000000000000000000000000000000000000000000000000000919050565b815160201461176b578160405163953576f760e01b815260040161082491906128ed565b5f828060200190518101906117809190613271565b905060ff8111156105ae578260405163953576f760e01b815260040161082491906128ed565b5f7f000000000000000000000000000000000000000000000000000000000000000060ff168260ff16036117db5750816105ae565b7f000000000000000000000000000000000000000000000000000000000000000060ff168260ff1611156118ac575f6118347f00000000000000000000000000000000000000000000000000000000000000008461329c565b9050604d8160ff16111561188f5760405163a9cb113d60e01b815260ff80851660048301527f000000000000000000000000000000000000000000000000000000000000000016602482015260448101859052606401610824565b61189a81600a613395565b6118a490856133a3565b9150506105ae565b5f6118d7837f000000000000000000000000000000000000000000000000000000000000000061329c565b9050604d8160ff1611806118ff57506118f181600a613395565b6118fc905f196133a3565b84115b156119515760405163a9cb113d60e01b815260ff80851660048301527f000000000000000000000000000000000000000000000000000000000000000016602482015260448101859052606401610824565b61195c81600a613395565b61076e90856133c2565b5f81815260018301602052604081205415155b9392505050565b6001546001600160a01b031633146119ab576040516315ae3a6f60e11b815260040160405180910390fd5b565b7f00000000000000000000000000000000000000000000000000000000000000006119eb576040516335f4a7b360e01b815260040160405180910390fd5b5f5b8251811015611a72575f838281518110611a0957611a09612e7f565b60200260200101519050611a2781600261214890919063ffffffff16565b15611a69576040516001600160a01b03821681527f800671136ab6cfee9fbe5ed1fb7ca417811aca3cf864800d127b927adedf75669060200160405180910390a15b506001016119ed565b505f5b815181101561086c575f828281518110611a9157611a91612e7f565b602002602001015190505f6001600160a01b0316816001600160a01b031603611aba5750611b09565b611ac560028261215c565b15611b07576040516001600160a01b03821681527f2640d4d76caf8bf478aabfa982fa4e1c4eb71a37f93cd15e80dbc657911546d89060200160405180910390a15b505b600101611a75565b80515f03611b32576040516342bcdf7f60e11b815260040160405180910390fd5b80516020808301919091206001600160401b0384165f90815260079092526040909120611b629060050182611fb6565b611b83578282604051631c9dc56960e11b81526004016108249291906133d9565b5f818152600860205260409020611b9a838261312e565b50826001600160401b03167f7d628c9a1796743d365ab521a8b2a4686e419b3269919dc9145ea2ce853b54ea83604051610d9191906128ed565b611bdd8361094e565b611c0557604051631e670e4b60e01b81526001600160401b0384166004820152602401610824565b611c0f825f611ef1565b6001600160401b0383165f908152600760205260409020611c309083612170565b611c3a815f611ef1565b6001600160401b0383165f908152600760205260409020611c5e9060020182612170565b7f0350d63aa5f270e01729d00d627eeb8f3429772b1818c016c66a588a864f912b838383604051611c91939291906133fa565b60405180910390a1505050565b611cb161028e60a0830160808401612913565b611cc5576115a660a0820160808301612913565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016632cbc26bb611d046040840160208501612aa8565b60405160e083901b6001600160e01b031916815260809190911b67ffffffffffffffff60801b166004820152602401602060405180830381865afa158015611d4e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d729190613256565b15611d9057604051630a75a23b60e31b815260040160405180910390fd5b611da8611da36060830160408401612913565b612286565b611dc0611dbb6040830160208401612aa8565b6122df565b61157c611dd36040830160208401612aa8565b82606001356123b7565b604051630852cd8d60e31b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906342966c68906024015f604051808303815f87803b158015611e3c575f80fd5b505af1158015611564573d5f803e3d5ffd5b60605f611979836123f9565b5f6119798383612451565b6040805160a0810182525f80825260208201819052918101829052606081018290526080810191909152611ed682606001516001600160801b0316835f01516001600160801b0316846020015163ffffffff1642611ec39190613424565b85608001516001600160801b0316612534565b6001600160801b031682525063ffffffff4216602082015290565b815115611f6f5781602001516001600160801b031682604001516001600160801b0316101580611f2c575060408201516001600160801b0316155b15611f4c5781604051632008344960e21b81526004016108249190613437565b8015611f6b5760405163433fc33d60e01b815260040160405180910390fd5b5050565b60408201516001600160801b0316151580611f96575060208201516001600160801b031615155b15611f6b57816040516335a2be7360e21b81526004016108249190613437565b5f611979838361255b565b336001600160a01b03821603611fea57604051636d6c4ee560e11b815260040160405180910390fd5b5f80546001600160a01b0319166001600160a01b03838116918217835560015460405192939116917fed8889f560326eb138920d842192f0eb3dd22b4f139c87a2c57538e05bae12789190a350565b6120428161094e565b61206a576040516354c8163f60e11b81526001600160401b0382166004820152602401610824565b600480546040516383826b2b60e01b81526001600160401b038416928101929092523360248301526001600160a01b0316906383826b2b90604401602060405180830381865afa1580156120c0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120e49190613256565b61157c5760405163728fe07b60e01b8152336004820152602401610824565b6001600160401b0382165f908152600760205260409020611f6b90600201827f00000000000000000000000000000000000000000000000000000000000000006125a7565b5f611979836001600160a01b038416612451565b5f611979836001600160a01b03841661255b565b81545f9061218b90600160801b900463ffffffff1642613424565b905080156121e957600183015483546121bd916001600160801b03808216928116918591600160801b90910416612534565b83546001600160801b03919091166001600160a01b031990911617600160801b4263ffffffff16021783555b60208201518354612206916001600160801b0390811691166127e7565b835483511515600160a01b0274ff00000000ffffffffffffffffffffffffffffffff199091166001600160801b039283161717845560208301516040808501518316600160801b0291909216176001850155517f9ea3374b67bf275e6bb9c8ae68f9cae023e1c528b4b27e092f0bb209d3531c1990611c91908490613437565b7f00000000000000000000000000000000000000000000000000000000000000001561157c576122b76002826127fc565b61157c576040516368692cbb60e11b81526001600160a01b0382166004820152602401610824565b6122e88161094e565b612310576040516354c8163f60e11b81526001600160401b0382166004820152602401610824565b6004805460405163a8d87a3b60e01b81526001600160401b038416928101929092526001600160a01b03169063a8d87a3b90602401602060405180830381865afa158015612360573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906123849190613445565b6001600160a01b0316336001600160a01b03161461157c5760405163728fe07b60e01b8152336004820152602401610824565b6001600160401b0382165f908152600760205260409020611f6b90827f00000000000000000000000000000000000000000000000000000000000000006125a7565b6060815f01805480602002602001604051908101604052809291908181526020018280548015610ee957602002820191905f5260205f20905b8154815260200190600101908083116124325750505050509050919050565b5f818152600183016020526040812054801561252b575f612473600183613424565b85549091505f9061248690600190613424565b90508082146124e5575f865f0182815481106124a4576124a4612e7f565b905f5260205f200154905080875f0184815481106124c4576124c4612e7f565b5f918252602080832090910192909255918252600188019052604090208390555b85548690806124f6576124f6613460565b600190038181905f5260205f20015f90559055856001015f8681526020019081526020015f205f9055600193505050506105ae565b5f9150506105ae565b5f6125528561254384866133c2565b61254d9087613474565b6127e7565b95945050505050565b5f8181526001830160205260408120546125a057508154600181810184555f8481526020808220909301849055845484825282860190935260409020919091556105ae565b505f6105ae565b8254600160a01b900460ff1615806125bd575081155b156125c757505050565b825460018401546001600160801b03808316929116905f906125f690600160801b900463ffffffff1642613424565b90508015612662578183111561261f57604051634b92ca1560e11b815260040160405180910390fd5b600186015461264390839085908490600160801b90046001600160801b0316612534565b865463ffffffff60801b1916600160801b4263ffffffff160217875592505b848210156126cd576001600160a01b03841661269b5760405163f94ebcd160e01b81526004810183905260248101869052604401610824565b604051630d3b2b9560e11b815260048101839052602481018690526001600160a01b0385166044820152606401610824565b8483101561277d57600186810154600160801b90046001600160801b0316905f9082906126fa9082613424565b612704878a613424565b61270e9190613474565b61271891906133a3565b90506001600160a01b03861661274b576040516302a4f38160e31b81526004810182905260248101869052604401610824565b604051636864691d60e11b815260048101829052602481018690526001600160a01b0387166044820152606401610824565b6127878584613424565b86546fffffffffffffffffffffffffffffffff19166001600160801b0382161787556040518681529093507f1871cdf8010e63f2eb8384381a68dfa7416dc571a5517e66e88b2d2d0c0a690a9060200160405180910390a1505050505050565b5f8183106127f55781611979565b5090919050565b6001600160a01b0381165f9081526001830160205260408120541515611979565b50805461282990612ead565b5f825580601f10612838575050565b601f0160209004905f5260205f209081019061157c919061286b565b5080545f8255905f5260205f209081019061157c91905b5b8082111561287f575f815560010161286c565b5090565b5f60208284031215612893575f80fd5b81356001600160e01b031981168114611979575f80fd5b5f81518084525f5b818110156128ce576020818501810151868301820152016128b2565b505f602082860101526020601f19601f83011685010191505092915050565b602081525f61197960208301846128aa565b6001600160a01b038116811461157c575f80fd5b5f60208284031215612923575f80fd5b8135611979816128ff565b5f6020828403121561293e575f80fd5b81356001600160401b03811115612953575f80fd5b82016101008185031215611979575f80fd5b80356001600160401b038116811461297b575f80fd5b919050565b5f805f60408486031215612992575f80fd5b61299b84612965565b925060208401356001600160401b03808211156129b6575f80fd5b818601915086601f8301126129c9575f80fd5b8135818111156129d7575f80fd5b8760208285010111156129e8575f80fd5b6020830194508093505050509250925092565b5f8083601f840112612a0b575f80fd5b5081356001600160401b03811115612a21575f80fd5b6020830191508360208260051b8501011115612a3b575f80fd5b9250929050565b5f805f8060408587031215612a55575f80fd5b84356001600160401b0380821115612a6b575f80fd5b612a77888389016129fb565b90965094506020870135915080821115612a8f575f80fd5b50612a9c878288016129fb565b95989497509550505050565b5f60208284031215612ab8575f80fd5b61197982612965565b5f8083601f840112612ad1575f80fd5b5081356001600160401b03811115612ae7575f80fd5b602083019150836020606083028501011115612a3b575f80fd5b5f805f805f8060608789031215612b16575f80fd5b86356001600160401b0380821115612b2c575f80fd5b612b388a838b016129fb565b90985096506020890135915080821115612b50575f80fd5b612b5c8a838b01612ac1565b90965094506040890135915080821115612b74575f80fd5b50612b8189828a01612ac1565b979a9699509497509295939492505050565b5f60208284031215612ba3575f80fd5b81356001600160401b03811115612bb8575f80fd5b820160a08185031215611979575f80fd5b602081525f825160406020840152612be460608401826128aa565b90506020840151601f1984830301604085015261255282826128aa565b5f60208083016020845280855180835260408601915060408160051b8701019250602087015f5b82811015612c5657603f19888603018452612c448583516128aa565b94509285019290850190600101612c28565b5092979650505050505050565b602080825282518282018190525f9190848201906040850190845b81811015612ca35783516001600160a01b031683529284019291840191600101612c7e565b50909695505050505050565b602080825282518282018190525f9190848201906040850190845b81811015612ca35783516001600160401b031683529284019291840191600101612cca565b634e487b7160e01b5f52604160045260245ffd5b60405160a081016001600160401b0381118282101715612d2557612d25612cef565b60405290565b604051601f8201601f191681016001600160401b0381118282101715612d5357612d53612cef565b604052919050565b801515811461157c575f80fd5b80356001600160801b038116811461297b575f80fd5b5f60608284031215612d8e575f80fd5b604051606081018181106001600160401b0382111715612db057612db0612cef565b6040529050808235612dc181612d5b565b8152612dcf60208401612d68565b6020820152612de060408401612d68565b60408201525092915050565b5f805f60e08486031215612dfe575f80fd5b612e0784612965565b9250612e168560208601612d7e565b9150612e258560808601612d7e565b90509250925092565b5f808335601e19843603018112612e43575f80fd5b8301803591506001600160401b03821115612e5c575f80fd5b602001915036819003821315612a3b575f80fd5b818382375f9101908152919050565b634e487b7160e01b5f52603260045260245ffd5b5f60608284031215612ea3575f80fd5b6119798383612d7e565b600181811c90821680612ec157607f821691505b602082108103612edf57634e487b7160e01b5f52602260045260245ffd5b50919050565b81835281816020850137505f828201602090810191909152601f909101601f19169091010190565b6001600160401b0384168152604060208201525f612552604083018486612ee5565b602081525f61076e602083018486612ee5565b5f823561011e19833603018112612f57575f80fd5b9190910192915050565b5f82601f830112612f70575f80fd5b81356001600160401b03811115612f8957612f89612cef565b612f9c601f8201601f1916602001612d2b565b818152846020838601011115612fb0575f80fd5b816020850160208301375f918101602001919091529392505050565b5f6101208236031215612fdd575f80fd5b612fe5612d03565b612fee83612965565b81526020808401356001600160401b038082111561300a575f80fd5b9085019036601f83011261301c575f80fd5b81358181111561302e5761302e612cef565b8060051b61303d858201612d2b565b9182528381018501918581019036841115613056575f80fd5b86860192505b8383101561309057823585811115613072575f80fd5b6130803689838a0101612f61565b835250918601919086019061305c565b80878901525050505060408601359250808311156130ac575f80fd5b50506130ba36828601612f61565b6040830152506130cd3660608501612d7e565b60608201526130df3660c08501612d7e565b608082015292915050565b601f82111561086c57805f5260205f20601f840160051c8101602085101561310f5750805b601f840160051c820191505b81811015611564575f815560010161311b565b81516001600160401b0381111561314757613147612cef565b61315b816131558454612ead565b846130ea565b602080601f83116001811461318e575f84156131775750858301515b5f19600386901b1c1916600185901b1785556131e5565b5f85815260208120601f198616915b828110156131bc5788860151825594840194600190910190840161319d565b50858210156131d957878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b8051151582526020808201516001600160801b039081169184019190915260409182015116910152565b5f6101006001600160401b0387168352806020840152613239818401876128aa565b91505061324960408301856131ed565b61255260a08301846131ed565b5f60208284031215613266575f80fd5b815161197981612d5b565b5f60208284031215613281575f80fd5b5051919050565b634e487b7160e01b5f52601160045260245ffd5b60ff82811682821603908111156105ae576105ae613288565b600181815b808511156132ef57815f19048211156132d5576132d5613288565b808516156132e257918102915b93841c93908002906132ba565b509250929050565b5f82613305575060016105ae565b8161331157505f6105ae565b816001811461332757600281146133315761334d565b60019150506105ae565b60ff84111561334257613342613288565b50506001821b6105ae565b5060208310610133831016604e8410600b8410161715613370575081810a6105ae565b61337a83836132b5565b805f190482111561338d5761338d613288565b029392505050565b5f61197960ff8416836132f7565b5f826133bd57634e487b7160e01b5f52601260045260245ffd5b500490565b80820281158282048414176105ae576105ae613288565b6001600160401b0383168152604060208201525f61076e60408301846128aa565b6001600160401b038416815260e0810161341760208301856131ed565b61076e60808301846131ed565b818103818111156105ae576105ae613288565b606081016105ae82846131ed565b5f60208284031215613455575f80fd5b8151611979816128ff565b634e487b7160e01b5f52603160045260245ffd5b808201808211156105ae576105ae61328856fea26469706673582212202459b04cef223f9f1c71f31de6a176acdafb55e2eab96678f94547386952c2cb64736f6c634300081800330000000000000000000000008210c0634ab8f273806e4b7866e9db353773c44b000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000c842c69d54f83170c42c4d556b4f6b2ca53dd3e8000000000000000000000000881e3a65b4d4a04dd529061dd0071cf975f58bcd0000000000000000000000000000000000000000000000000000000000000000","name":"BurnMintTokenPool","is_blueprint":false,"license_type":"none","is_fully_verified":true,"is_verified_via_eth_bytecode_db":true,"language":"solidity","evm_version":"cancun","can_be_visualized_via_sol2uml":true,"is_verified_via_sourcify":false,"additional_sources":[{"file_path":"node_modules/@chainlink/contracts/src/v0.8/shared/interfaces/IOwnable.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\ninterface IOwnable {\n  function owner() external returns (address);\n\n  function transferOwnership(address recipient) external;\n\n  function acceptOwnership() external;\n}\n"},{"file_path":"node_modules/@chainlink/contracts/src/v0.8/shared/interfaces/ITypeAndVersion.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\ninterface ITypeAndVersion {\n  function typeAndVersion() external pure returns (string memory);\n}\n"},{"file_path":"node_modules/@chainlink/contracts-ccip/contracts/interfaces/IPool.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {Pool} from \"../libraries/Pool.sol\";\n\nimport {IERC165} from\n  \"@chainlink/contracts/src/v0.8/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/introspection/IERC165.sol\";\n\n/// @notice Shared public interface for multiple V1 pool types.\n/// Each pool type handles a different child token model e.g. lock/unlock, mint/burn.\ninterface IPoolV1 is IERC165 {\n  /// @notice Lock tokens into the pool or burn the tokens.\n  /// @param lockOrBurnIn Encoded data fields for the processing of tokens on the source chain.\n  /// @return lockOrBurnOut Encoded data fields for the processing of tokens on the destination chain.\n  function lockOrBurn(\n    Pool.LockOrBurnInV1 calldata lockOrBurnIn\n  ) external returns (Pool.LockOrBurnOutV1 memory lockOrBurnOut);\n\n  /// @notice Releases or mints tokens to the receiver address.\n  /// @param releaseOrMintIn All data required to release or mint tokens.\n  /// @return releaseOrMintOut The amount of tokens released or minted on the local chain, denominated\n  /// in the local token's decimals.\n  /// @dev The offramp asserts that the balanceOf of the receiver has been incremented by exactly the number\n  /// of tokens that is returned in ReleaseOrMintOutV1.destinationAmount. If the amounts do not match, the tx reverts.\n  function releaseOrMint(\n    Pool.ReleaseOrMintInV1 calldata releaseOrMintIn\n  ) external returns (Pool.ReleaseOrMintOutV1 memory);\n\n  /// @notice Checks whether a remote chain is supported in the token pool.\n  /// @param remoteChainSelector The selector of the remote chain.\n  /// @return true if the given chain is a permissioned remote chain.\n  function isSupportedChain(\n    uint64 remoteChainSelector\n  ) external view returns (bool);\n\n  /// @notice Returns if the token pool supports the given token.\n  /// @param token The address of the token.\n  /// @return true if the token is supported by the pool.\n  function isSupportedToken(\n    address token\n  ) external view returns (bool);\n}\n"},{"file_path":"node_modules/@chainlink/contracts-ccip/contracts/interfaces/IRMN.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice This interface contains the only RMN-related functions that might be used on-chain by other CCIP contracts.\ninterface IRMN {\n  /// @notice A Merkle root tagged with the address of the commit store contract it is destined for.\n  struct TaggedRoot {\n    address commitStore;\n    bytes32 root;\n  }\n\n  /// @notice Callers MUST NOT cache the return value as a blessed tagged root could become unblessed.\n  function isBlessed(\n    TaggedRoot calldata taggedRoot\n  ) external view returns (bool);\n\n  /// @notice Iff there is an active global or legacy curse, this function returns true.\n  function isCursed() external view returns (bool);\n\n  /// @notice Iff there is an active global curse, or an active curse for `subject`, this function returns true.\n  /// @param subject To check whether a particular chain is cursed, set to bytes16(uint128(chainSelector)).\n  function isCursed(\n    bytes16 subject\n  ) external view returns (bool);\n}\n"},{"file_path":"node_modules/@chainlink/contracts-ccip/contracts/interfaces/IRouter.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {Client} from \"../libraries/Client.sol\";\n\ninterface IRouter {\n  error OnlyOffRamp();\n\n  /// @notice Route the message to its intended receiver contract.\n  /// @param message Client.Any2EVMMessage struct.\n  /// @param gasForCallExactCheck of params for exec.\n  /// @param gasLimit set of params for exec.\n  /// @param receiver set of params for exec.\n  /// @dev if the receiver is a contracts that signals support for CCIP execution through EIP-165.\n  /// the contract is called. If not, only tokens are transferred.\n  /// @return success A boolean value indicating whether the ccip message was received without errors.\n  /// @return retBytes A bytes array containing return data form CCIP receiver.\n  /// @return gasUsed the gas used by the external customer call. Does not include any overhead.\n  function routeMessage(\n    Client.Any2EVMMessage calldata message,\n    uint16 gasForCallExactCheck,\n    uint256 gasLimit,\n    address receiver\n  ) external returns (bool success, bytes memory retBytes, uint256 gasUsed);\n\n  /// @notice Returns the configured onramp for a specific destination chain.\n  /// @param destChainSelector The destination chain Id to get the onRamp for.\n  /// @return onRampAddress The address of the onRamp.\n  function getOnRamp(\n    uint64 destChainSelector\n  ) external view returns (address onRampAddress);\n\n  /// @notice Return true if the given offRamp is a configured offRamp for the given source chain.\n  /// @param sourceChainSelector The source chain selector to check.\n  /// @param offRamp The address of the offRamp to check.\n  function isOffRamp(uint64 sourceChainSelector, address offRamp) external view returns (bool isOffRamp);\n}\n"},{"file_path":"node_modules/@chainlink/contracts-ccip/contracts/libraries/Client.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n// End consumer library.\nlibrary Client {\n  /// @dev RMN depends on this struct, if changing, please notify the RMN maintainers.\n  struct EVMTokenAmount {\n    address token; // token address on the local chain.\n    uint256 amount; // Amount of tokens.\n  }\n\n  struct Any2EVMMessage {\n    bytes32 messageId; // MessageId corresponding to ccipSend on source.\n    uint64 sourceChainSelector; // Source chain selector.\n    bytes sender; // abi.decode(sender) if coming from an EVM chain.\n    bytes data; // payload sent in original message.\n    EVMTokenAmount[] destTokenAmounts; // Tokens and their amounts in their destination chain representation.\n  }\n\n  // If extraArgs is empty bytes, the default is 200k gas limit.\n  struct EVM2AnyMessage {\n    bytes receiver; // abi.encode(receiver address) for dest EVM chains.\n    bytes data; // Data payload.\n    EVMTokenAmount[] tokenAmounts; // Token transfers.\n    address feeToken; // Address of feeToken. address(0) means you will send msg.value.\n    bytes extraArgs; // Populate this with _argsToBytes(EVMExtraArgsV2).\n  }\n\n  // Tag to indicate only a gas limit. Only usable for EVM as destination chain.\n  bytes4 public constant EVM_EXTRA_ARGS_V1_TAG = 0x97a657c9;\n\n  struct EVMExtraArgsV1 {\n    uint256 gasLimit;\n  }\n\n  function _argsToBytes(\n    EVMExtraArgsV1 memory extraArgs\n  ) internal pure returns (bytes memory bts) {\n    return abi.encodeWithSelector(EVM_EXTRA_ARGS_V1_TAG, extraArgs);\n  }\n\n  // Tag to indicate a gas limit (or dest chain equivalent processing units) and Out Of Order Execution. This tag is\n  // available for multiple chain families. If there is no chain family specific tag, this is the default available\n  // for a chain.\n  // Note: not available for Solana VM based chains.\n  bytes4 public constant GENERIC_EXTRA_ARGS_V2_TAG = 0x181dcf10;\n\n  /// @param gasLimit: gas limit for the callback on the destination chain.\n  /// @param allowOutOfOrderExecution: if true, it indicates that the message can be executed in any order relative to\n  /// other messages from the same sender. This value's default varies by chain. On some chains, a particular value is\n  /// enforced, meaning if the expected value is not set, the message request will revert.\n  /// @dev Fully compatible with the previously existing EVMExtraArgsV2.\n  struct GenericExtraArgsV2 {\n    uint256 gasLimit;\n    bool allowOutOfOrderExecution;\n  }\n\n  // Extra args tag for chains that use the Solana VM.\n  bytes4 public constant SVM_EXTRA_ARGS_V1_TAG = 0x1f3b3aba;\n\n  struct SVMExtraArgsV1 {\n    uint32 computeUnits;\n    uint64 accountIsWritableBitmap;\n    bool allowOutOfOrderExecution;\n    bytes32 tokenReceiver;\n    // Additional accounts needed for execution of CCIP receiver. Must be empty if message.receiver is zero.\n    // Token transfer related accounts are specified in the token pool lookup table on SVM.\n    bytes32[] accounts;\n  }\n\n  /// @dev The maximum number of accounts that can be passed in SVMExtraArgs.\n  uint256 public constant SVM_EXTRA_ARGS_MAX_ACCOUNTS = 64;\n\n  /// @dev The expected static payload size of a token transfer when Borsh encoded and submitted to SVM.\n  /// TokenPool extra data and offchain data sizes are dynamic, and should be accounted for separately.\n  uint256 public constant SVM_TOKEN_TRANSFER_DATA_OVERHEAD = (4 + 32) // source_pool\n    + 32 // token_address\n    + 4 // gas_amount\n    + 4 // extra_data overhead\n    + 32 // amount\n    + 32 // size of the token lookup table account\n    + 32 // token-related accounts in the lookup table, over-estimated to 32, typically between 11 - 13\n    + 32 // token account belonging to the token receiver, e.g ATA, not included in the token lookup table\n    + 32 // per-chain token pool config, not included in the token lookup table\n    + 32 // per-chain token billing config, not always included in the token lookup table\n    + 32; // OffRamp pool signer PDA, not included in the token lookup table\n\n  /// @dev Number of overhead accounts needed for message execution on SVM.\n  /// @dev These are message.receiver, and the OffRamp Signer PDA specific to the receiver.\n  uint256 public constant SVM_MESSAGING_ACCOUNTS_OVERHEAD = 2;\n\n  /// @dev The size of each SVM account address in bytes.\n  uint256 public constant SVM_ACCOUNT_BYTE_SIZE = 32;\n\n  function _argsToBytes(\n    GenericExtraArgsV2 memory extraArgs\n  ) internal pure returns (bytes memory bts) {\n    return abi.encodeWithSelector(GENERIC_EXTRA_ARGS_V2_TAG, extraArgs);\n  }\n\n  function _svmArgsToBytes(\n    SVMExtraArgsV1 memory extraArgs\n  ) internal pure returns (bytes memory bts) {\n    return abi.encodeWithSelector(SVM_EXTRA_ARGS_V1_TAG, extraArgs);\n  }\n}\n"},{"file_path":"node_modules/@chainlink/contracts-ccip/contracts/libraries/Pool.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n/// @notice This library contains various token pool functions to aid constructing the return data.\nlibrary Pool {\n  // The tag used to signal support for the pool v1 standard.\n  // bytes4(keccak256(\"CCIP_POOL_V1\"))\n  bytes4 public constant CCIP_POOL_V1 = 0xaff2afbf;\n\n  // The number of bytes in the return data for a pool v1 releaseOrMint call.\n  // This should match the size of the ReleaseOrMintOutV1 struct.\n  uint16 public constant CCIP_POOL_V1_RET_BYTES = 32;\n\n  // The default max number of bytes in the return data for a pool v1 lockOrBurn call.\n  // This data can be used to send information to the destination chain token pool. Can be overwritten\n  // in the TokenTransferFeeConfig.destBytesOverhead if more data is required.\n  uint32 public constant CCIP_LOCK_OR_BURN_V1_RET_BYTES = 32;\n\n  struct LockOrBurnInV1 {\n    bytes receiver; //  The recipient of the tokens on the destination chain, abi encoded.\n    uint64 remoteChainSelector; // ─╮ The chain ID of the destination chain.\n    address originalSender; // ─────╯ The original sender of the tx on the source chain.\n    uint256 amount; //  The amount of tokens to lock or burn, denominated in the source token's decimals.\n    address localToken; //  The address on this chain of the token to lock or burn.\n  }\n\n  struct LockOrBurnOutV1 {\n    // The address of the destination token, abi encoded in the case of EVM chains.\n    // This value is UNTRUSTED as any pool owner can return whatever value they want.\n    bytes destTokenAddress;\n    // Optional pool data to be transferred to the destination chain. Be default this is capped at\n    // CCIP_LOCK_OR_BURN_V1_RET_BYTES bytes. If more data is required, the TokenTransferFeeConfig.destBytesOverhead\n    // has to be set for the specific token.\n    bytes destPoolData;\n  }\n\n  struct ReleaseOrMintInV1 {\n    bytes originalSender; //          The original sender of the tx on the source chain.\n    uint64 remoteChainSelector; // ─╮ The chain ID of the source chain.\n    address receiver; // ───────────╯ The recipient of the tokens on the destination chain.\n    uint256 amount; //                The amount of tokens to release or mint, denominated in the source token's decimals.\n    address localToken; //            The address on this chain of the token to release or mint.\n    /// @dev WARNING: sourcePoolAddress should be checked prior to any processing of funds. Make sure it matches the\n    /// expected pool address for the given remoteChainSelector.\n    bytes sourcePoolAddress; //       The address of the source pool, abi encoded in the case of EVM chains.\n    bytes sourcePoolData; //          The data received from the source pool to process the release or mint.\n    /// @dev WARNING: offchainTokenData is untrusted data.\n    bytes offchainTokenData; //       The offchain data to process the release or mint.\n  }\n\n  struct ReleaseOrMintOutV1 {\n    // The number of tokens released or minted on the destination chain, denominated in the local token's decimals.\n    // This value is expected to be equal to the ReleaseOrMintInV1.amount in the case where the source and destination\n    // chain have the same number of decimals.\n    uint256 destinationAmount;\n  }\n}\n"},{"file_path":"node_modules/@chainlink/contracts-ccip/contracts/libraries/RateLimiter.sol","source_code":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.4;\n\n/// @notice Implements Token Bucket rate limiting.\n/// @dev uint128 is safe for rate limiter state.\n/// - For USD value rate limiting, it can adequately store USD value in 18 decimals.\n/// - For ERC20 token amount rate limiting, all tokens that will be listed will have at most a supply of uint128.max\n/// tokens, and it will therefore not overflow the bucket. In exceptional scenarios where tokens consumed may be larger\n/// than uint128, e.g. compromised issuer, an enabled RateLimiter will check and revert.\nlibrary RateLimiter {\n  error BucketOverfilled();\n  error OnlyCallableByAdminOrOwner();\n  error TokenMaxCapacityExceeded(uint256 capacity, uint256 requested, address tokenAddress);\n  error TokenRateLimitReached(uint256 minWaitInSeconds, uint256 available, address tokenAddress);\n  error AggregateValueMaxCapacityExceeded(uint256 capacity, uint256 requested);\n  error AggregateValueRateLimitReached(uint256 minWaitInSeconds, uint256 available);\n  error InvalidRateLimitRate(Config rateLimiterConfig);\n  error DisabledNonZeroRateLimit(Config config);\n  error RateLimitMustBeDisabled();\n\n  event TokensConsumed(uint256 tokens);\n  event ConfigChanged(Config config);\n\n  struct TokenBucket {\n    uint128 tokens; // ──────╮ Current number of tokens that are in the bucket.\n    uint32 lastUpdated; //   │ Timestamp in seconds of the last token refill, good for 100+ years.\n    bool isEnabled; // ──────╯ Indication whether the rate limiting is enabled or not.\n    uint128 capacity; // ────╮ Maximum number of tokens that can be in the bucket.\n    uint128 rate; // ────────╯ Number of tokens per second that the bucket is refilled.\n  }\n\n  struct Config {\n    bool isEnabled; // Indication whether the rate limiting should be enabled.\n    uint128 capacity; // ────╮ Specifies the capacity of the rate limiter.\n    uint128 rate; //  ───────╯ Specifies the rate of the rate limiter.\n  }\n\n  /// @notice _consume removes the given tokens from the pool, lowering the rate tokens allowed to be\n  /// consumed for subsequent calls.\n  /// @param requestTokens The total tokens to be consumed from the bucket.\n  /// @param tokenAddress The token to consume capacity for, use 0x0 to indicate aggregate value capacity.\n  /// @dev Reverts when requestTokens exceeds bucket capacity or available tokens in the bucket.\n  /// @dev emits removal of requestTokens if requestTokens is > 0.\n  function _consume(TokenBucket storage s_bucket, uint256 requestTokens, address tokenAddress) internal {\n    // If there is no value to remove or rate limiting is turned off, skip this step to reduce gas usage.\n    if (!s_bucket.isEnabled || requestTokens == 0) {\n      return;\n    }\n\n    uint256 tokens = s_bucket.tokens;\n    uint256 capacity = s_bucket.capacity;\n    uint256 timeDiff = block.timestamp - s_bucket.lastUpdated;\n\n    if (timeDiff != 0) {\n      if (tokens > capacity) revert BucketOverfilled();\n\n      // Refill tokens when arriving at a new block time.\n      tokens = _calculateRefill(capacity, tokens, timeDiff, s_bucket.rate);\n\n      s_bucket.lastUpdated = uint32(block.timestamp);\n    }\n\n    if (capacity < requestTokens) {\n      // Token address 0 indicates consuming aggregate value rate limit capacity.\n      if (tokenAddress == address(0)) revert AggregateValueMaxCapacityExceeded(capacity, requestTokens);\n      revert TokenMaxCapacityExceeded(capacity, requestTokens, tokenAddress);\n    }\n    if (tokens < requestTokens) {\n      uint256 rate = s_bucket.rate;\n      // Wait required until the bucket is refilled enough to accept this value, round up to next higher second.\n      // Consume is not guaranteed to succeed after wait time passes if there is competing traffic.\n      // This acts as a lower bound of wait time.\n      uint256 minWaitInSeconds = ((requestTokens - tokens) + (rate - 1)) / rate;\n\n      if (tokenAddress == address(0)) revert AggregateValueRateLimitReached(minWaitInSeconds, tokens);\n      revert TokenRateLimitReached(minWaitInSeconds, tokens, tokenAddress);\n    }\n    tokens -= requestTokens;\n\n    // Downcast is safe here, as tokens is not larger than capacity.\n    s_bucket.tokens = uint128(tokens);\n    emit TokensConsumed(requestTokens);\n  }\n\n  /// @notice Gets the token bucket with its values for the block it was requested at.\n  /// @return The token bucket.\n  function _currentTokenBucketState(\n    TokenBucket memory bucket\n  ) internal view returns (TokenBucket memory) {\n    // We update the bucket to reflect the status at the exact time of the call. This means we might need to refill a\n    // part of the bucket based on the time that has passed since the last update.\n    bucket.tokens =\n      uint128(_calculateRefill(bucket.capacity, bucket.tokens, block.timestamp - bucket.lastUpdated, bucket.rate));\n    bucket.lastUpdated = uint32(block.timestamp);\n    return bucket;\n  }\n\n  /// @notice Sets the rate limited config.\n  /// @param s_bucket The token bucket.\n  /// @param config The new config.\n  function _setTokenBucketConfig(TokenBucket storage s_bucket, Config memory config) internal {\n    // First update the bucket to make sure the proper rate is used for all the time up until the config change.\n    uint256 timeDiff = block.timestamp - s_bucket.lastUpdated;\n    if (timeDiff != 0) {\n      s_bucket.tokens = uint128(_calculateRefill(s_bucket.capacity, s_bucket.tokens, timeDiff, s_bucket.rate));\n\n      s_bucket.lastUpdated = uint32(block.timestamp);\n    }\n\n    s_bucket.tokens = uint128(_min(config.capacity, s_bucket.tokens));\n    s_bucket.isEnabled = config.isEnabled;\n    s_bucket.capacity = config.capacity;\n    s_bucket.rate = config.rate;\n\n    emit ConfigChanged(config);\n  }\n\n  /// @notice Validates the token bucket config.\n  function _validateTokenBucketConfig(Config memory config, bool mustBeDisabled) internal pure {\n    if (config.isEnabled) {\n      if (config.rate >= config.capacity || config.rate == 0) {\n        revert InvalidRateLimitRate(config);\n      }\n      if (mustBeDisabled) {\n        revert RateLimitMustBeDisabled();\n      }\n    } else {\n      if (config.rate != 0 || config.capacity != 0) {\n        revert DisabledNonZeroRateLimit(config);\n      }\n    }\n  }\n\n  /// @notice Calculate refilled tokens.\n  /// @param capacity bucket capacity.\n  /// @param tokens current bucket tokens.\n  /// @param timeDiff block time difference since last refill.\n  /// @param rate bucket refill rate.\n  /// @return the value of tokens after refill.\n  function _calculateRefill(\n    uint256 capacity,\n    uint256 tokens,\n    uint256 timeDiff,\n    uint256 rate\n  ) private pure returns (uint256) {\n    return _min(capacity, tokens + timeDiff * rate);\n  }\n\n  /// @notice Return the smallest of two integers.\n  /// @param a first int.\n  /// @param b second int.\n  /// @return smallest.\n  function _min(uint256 a, uint256 b) internal pure returns (uint256) {\n    return a < b ? a : b;\n  }\n}\n"},{"file_path":"node_modules/@chainlink/contracts-ccip/contracts/pools/BurnMintTokenPoolAbstract.sol","source_code":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.24;\n\nimport {IBurnMintERC20} from \"@chainlink/contracts/src/v0.8/shared/token/ERC20/IBurnMintERC20.sol\";\n\nimport {Pool} from \"../libraries/Pool.sol\";\nimport {TokenPool} from \"./TokenPool.sol\";\n\nabstract contract BurnMintTokenPoolAbstract is TokenPool {\n  /// @notice Contains the specific burn call for a pool.\n  /// @dev overriding this method allows us to create pools with different burn signatures\n  /// without duplicating the underlying logic.\n  function _burn(\n    uint256 amount\n  ) internal virtual;\n\n  /// @notice Burn the token in the pool\n  /// @dev The _validateLockOrBurn check is an essential security check\n  function lockOrBurn(\n    Pool.LockOrBurnInV1 calldata lockOrBurnIn\n  ) external virtual override returns (Pool.LockOrBurnOutV1 memory) {\n    _validateLockOrBurn(lockOrBurnIn);\n\n    _burn(lockOrBurnIn.amount);\n\n    emit Burned(msg.sender, lockOrBurnIn.amount);\n\n    return Pool.LockOrBurnOutV1({\n      destTokenAddress: getRemoteToken(lockOrBurnIn.remoteChainSelector),\n      destPoolData: _encodeLocalDecimals()\n    });\n  }\n\n  /// @notice Mint tokens from the pool to the recipient\n  /// @dev The _validateReleaseOrMint check is an essential security check\n  function releaseOrMint(\n    Pool.ReleaseOrMintInV1 calldata releaseOrMintIn\n  ) public virtual override returns (Pool.ReleaseOrMintOutV1 memory) {\n    _validateReleaseOrMint(releaseOrMintIn);\n\n    // Calculate the local amount\n    uint256 localAmount =\n      _calculateLocalAmount(releaseOrMintIn.amount, _parseRemoteDecimals(releaseOrMintIn.sourcePoolData));\n\n    // Mint to the receiver\n    IBurnMintERC20(address(i_token)).mint(releaseOrMintIn.receiver, localAmount);\n\n    emit Minted(msg.sender, releaseOrMintIn.receiver, localAmount);\n\n    return Pool.ReleaseOrMintOutV1({destinationAmount: localAmount});\n  }\n}\n"},{"file_path":"node_modules/@chainlink/contracts-ccip/contracts/pools/TokenPool.sol","source_code":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity ^0.8.24;\n\nimport {IPoolV1} from \"../interfaces/IPool.sol\";\nimport {IRMN} from \"../interfaces/IRMN.sol\";\nimport {IRouter} from \"../interfaces/IRouter.sol\";\n\nimport {Pool} from \"../libraries/Pool.sol\";\nimport {RateLimiter} from \"../libraries/RateLimiter.sol\";\nimport {Ownable2StepMsgSender} from \"@chainlink/contracts/src/v0.8/shared/access/Ownable2StepMsgSender.sol\";\n\nimport {IERC20} from\n  \"@chainlink/contracts/src/v0.8/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol\";\nimport {IERC20Metadata} from\n  \"@chainlink/contracts/src/v0.8/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/extensions/IERC20Metadata.sol\";\nimport {IERC165} from\n  \"@chainlink/contracts/src/v0.8/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/introspection/IERC165.sol\";\nimport {EnumerableSet} from\n  \"@chainlink/contracts/src/v0.8/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/structs/EnumerableSet.sol\";\n\n/// @notice Base abstract class with common functions for all token pools.\n/// A token pool serves as isolated place for holding tokens and token specific logic\n/// that may execute as tokens move across the bridge.\n/// @dev This pool supports different decimals on different chains but using this feature could impact the total number\n/// of tokens in circulation. Since all of the tokens are locked/burned on the source, and a rounded amount is\n/// minted/released on the destination, the number of tokens minted/released could be less than the number of tokens\n/// burned/locked. This is because the source chain does not know about the destination token decimals. This is not a\n/// problem if the decimals are the same on both chains.\n///\n/// Example:\n/// Assume there is a token with 6 decimals on chain A and 3 decimals on chain B.\n/// - 1.234567 tokens are burned on chain A.\n/// - 1.234    tokens are minted on chain B.\n/// When sending the 1.234 tokens back to chain A, you will receive 1.234000 tokens on chain A, effectively losing\n/// 0.000567 tokens.\n/// In the case of a burnMint pool on chain A, these funds are burned in the pool on chain A.\n/// In the case of a lockRelease pool on chain A, these funds accumulate in the pool on chain A.\nabstract contract TokenPool is IPoolV1, Ownable2StepMsgSender {\n  using EnumerableSet for EnumerableSet.Bytes32Set;\n  using EnumerableSet for EnumerableSet.AddressSet;\n  using EnumerableSet for EnumerableSet.UintSet;\n  using RateLimiter for RateLimiter.TokenBucket;\n\n  error CallerIsNotARampOnRouter(address caller);\n  error ZeroAddressNotAllowed();\n  error SenderNotAllowed(address sender);\n  error AllowListNotEnabled();\n  error NonExistentChain(uint64 remoteChainSelector);\n  error ChainNotAllowed(uint64 remoteChainSelector);\n  error CursedByRMN();\n  error ChainAlreadyExists(uint64 chainSelector);\n  error InvalidSourcePoolAddress(bytes sourcePoolAddress);\n  error InvalidToken(address token);\n  error Unauthorized(address caller);\n  error PoolAlreadyAdded(uint64 remoteChainSelector, bytes remotePoolAddress);\n  error InvalidRemotePoolForChain(uint64 remoteChainSelector, bytes remotePoolAddress);\n  error InvalidRemoteChainDecimals(bytes sourcePoolData);\n  error MismatchedArrayLengths();\n  error OverflowDetected(uint8 remoteDecimals, uint8 localDecimals, uint256 remoteAmount);\n  error InvalidDecimalArgs(uint8 expected, uint8 actual);\n\n  event Locked(address indexed sender, uint256 amount);\n  event Burned(address indexed sender, uint256 amount);\n  event Released(address indexed sender, address indexed recipient, uint256 amount);\n  event Minted(address indexed sender, address indexed recipient, uint256 amount);\n  event ChainAdded(\n    uint64 remoteChainSelector,\n    bytes remoteToken,\n    RateLimiter.Config outboundRateLimiterConfig,\n    RateLimiter.Config inboundRateLimiterConfig\n  );\n  event ChainConfigured(\n    uint64 remoteChainSelector,\n    RateLimiter.Config outboundRateLimiterConfig,\n    RateLimiter.Config inboundRateLimiterConfig\n  );\n  event ChainRemoved(uint64 remoteChainSelector);\n  event RemotePoolAdded(uint64 indexed remoteChainSelector, bytes remotePoolAddress);\n  event RemotePoolRemoved(uint64 indexed remoteChainSelector, bytes remotePoolAddress);\n  event AllowListAdd(address sender);\n  event AllowListRemove(address sender);\n  event RouterUpdated(address oldRouter, address newRouter);\n  event RateLimitAdminSet(address rateLimitAdmin);\n\n  struct ChainUpdate {\n    uint64 remoteChainSelector; // Remote chain selector\n    bytes[] remotePoolAddresses; // Address of the remote pool, ABI encoded in the case of a remote EVM chain.\n    bytes remoteTokenAddress; // Address of the remote token, ABI encoded in the case of a remote EVM chain.\n    RateLimiter.Config outboundRateLimiterConfig; // Outbound rate limited config, meaning the rate limits for all of the onRamps for the given chain\n    RateLimiter.Config inboundRateLimiterConfig; // Inbound rate limited config, meaning the rate limits for all of the offRamps for the given chain\n  }\n\n  struct RemoteChainConfig {\n    RateLimiter.TokenBucket outboundRateLimiterConfig; // Outbound rate limited config, meaning the rate limits for all of the onRamps for the given chain\n    RateLimiter.TokenBucket inboundRateLimiterConfig; // Inbound rate limited config, meaning the rate limits for all of the offRamps for the given chain\n    bytes remoteTokenAddress; // Address of the remote token, ABI encoded in the case of a remote EVM chain.\n    EnumerableSet.Bytes32Set remotePools; // Set of remote pool hashes, ABI encoded in the case of a remote EVM chain.\n  }\n\n  /// @dev The bridgeable token that is managed by this pool. Pools could support multiple tokens at the same time if\n  /// required, but this implementation only supports one token.\n  IERC20 internal immutable i_token;\n  /// @dev The number of decimals of the token managed by this pool.\n  uint8 internal immutable i_tokenDecimals;\n  /// @dev The address of the RMN proxy\n  address internal immutable i_rmnProxy;\n  /// @dev The immutable flag that indicates if the pool is access-controlled.\n  bool internal immutable i_allowlistEnabled;\n  /// @dev A set of addresses allowed to trigger lockOrBurn as original senders.\n  /// Only takes effect if i_allowlistEnabled is true.\n  /// This can be used to ensure only token-issuer specified addresses can move tokens.\n  EnumerableSet.AddressSet internal s_allowlist;\n  /// @dev The address of the router\n  IRouter internal s_router;\n  /// @dev A set of allowed chain selectors. We want the allowlist to be enumerable to\n  /// be able to quickly determine (without parsing logs) who can access the pool.\n  /// @dev The chain selectors are in uint256 format because of the EnumerableSet implementation.\n  EnumerableSet.UintSet internal s_remoteChainSelectors;\n  mapping(uint64 remoteChainSelector => RemoteChainConfig) internal s_remoteChainConfigs;\n  /// @notice A mapping of hashed pool addresses to their unhashed form. This is used to be able to find the actually\n  /// configured pools and not just their hashed versions.\n  mapping(bytes32 poolAddressHash => bytes poolAddress) internal s_remotePoolAddresses;\n  /// @notice The address of the rate limiter admin.\n  /// @dev Can be address(0) if none is configured.\n  address internal s_rateLimitAdmin;\n\n  constructor(IERC20 token, uint8 localTokenDecimals, address[] memory allowlist, address rmnProxy, address router) {\n    if (address(token) == address(0) || router == address(0) || rmnProxy == address(0)) revert ZeroAddressNotAllowed();\n    i_token = token;\n    i_rmnProxy = rmnProxy;\n\n    try IERC20Metadata(address(token)).decimals() returns (uint8 actualTokenDecimals) {\n      if (localTokenDecimals != actualTokenDecimals) {\n        revert InvalidDecimalArgs(localTokenDecimals, actualTokenDecimals);\n      }\n    } catch {\n      // The decimals function doesn't exist, which is possible since it's optional in the ERC20 spec. We skip the check and\n      // assume the supplied token decimals are correct.\n    }\n    i_tokenDecimals = localTokenDecimals;\n\n    s_router = IRouter(router);\n\n    // Pool can be set as permissioned or permissionless at deployment time only to save hot-path gas.\n    i_allowlistEnabled = allowlist.length > 0;\n    if (i_allowlistEnabled) {\n      _applyAllowListUpdates(new address[](0), allowlist);\n    }\n  }\n\n  /// @inheritdoc IPoolV1\n  function isSupportedToken(\n    address token\n  ) public view virtual returns (bool) {\n    return token == address(i_token);\n  }\n\n  /// @notice Gets the IERC20 token that this pool can lock or burn.\n  /// @return token The IERC20 token representation.\n  function getToken() public view returns (IERC20 token) {\n    return i_token;\n  }\n\n  /// @notice Get RMN proxy address\n  /// @return rmnProxy Address of RMN proxy\n  function getRmnProxy() public view returns (address rmnProxy) {\n    return i_rmnProxy;\n  }\n\n  /// @notice Gets the pool's Router\n  /// @return router The pool's Router\n  function getRouter() public view returns (address router) {\n    return address(s_router);\n  }\n\n  /// @notice Sets the pool's Router\n  /// @param newRouter The new Router\n  function setRouter(\n    address newRouter\n  ) public onlyOwner {\n    if (newRouter == address(0)) revert ZeroAddressNotAllowed();\n    address oldRouter = address(s_router);\n    s_router = IRouter(newRouter);\n\n    emit RouterUpdated(oldRouter, newRouter);\n  }\n\n  /// @notice Signals which version of the pool interface is supported\n  function supportsInterface(\n    bytes4 interfaceId\n  ) public pure virtual override returns (bool) {\n    return interfaceId == Pool.CCIP_POOL_V1 || interfaceId == type(IPoolV1).interfaceId\n      || interfaceId == type(IERC165).interfaceId;\n  }\n\n  // ================================================================\n  // │                         Validation                           │\n  // ================================================================\n\n  /// @notice Validates the lock or burn input for correctness on\n  /// - token to be locked or burned\n  /// - RMN curse status\n  /// - allowlist status\n  /// - if the sender is a valid onRamp\n  /// - rate limit status\n  /// @param lockOrBurnIn The input to validate.\n  /// @dev This function should always be called before executing a lock or burn. Not doing so would allow\n  /// for various exploits.\n  function _validateLockOrBurn(\n    Pool.LockOrBurnInV1 calldata lockOrBurnIn\n  ) internal {\n    if (!isSupportedToken(lockOrBurnIn.localToken)) revert InvalidToken(lockOrBurnIn.localToken);\n    if (IRMN(i_rmnProxy).isCursed(bytes16(uint128(lockOrBurnIn.remoteChainSelector)))) revert CursedByRMN();\n    _checkAllowList(lockOrBurnIn.originalSender);\n\n    _onlyOnRamp(lockOrBurnIn.remoteChainSelector);\n    _consumeOutboundRateLimit(lockOrBurnIn.remoteChainSelector, lockOrBurnIn.amount);\n  }\n\n  /// @notice Validates the release or mint input for correctness on\n  /// - token to be released or minted\n  /// - RMN curse status\n  /// - if the sender is a valid offRamp\n  /// - if the source pool is valid\n  /// - rate limit status\n  /// @param releaseOrMintIn The input to validate.\n  /// @dev This function should always be called before executing a release or mint. Not doing so would allow\n  /// for various exploits.\n  function _validateReleaseOrMint(\n    Pool.ReleaseOrMintInV1 calldata releaseOrMintIn\n  ) internal {\n    if (!isSupportedToken(releaseOrMintIn.localToken)) revert InvalidToken(releaseOrMintIn.localToken);\n    if (IRMN(i_rmnProxy).isCursed(bytes16(uint128(releaseOrMintIn.remoteChainSelector)))) revert CursedByRMN();\n    _onlyOffRamp(releaseOrMintIn.remoteChainSelector);\n\n    // Validates that the source pool address is configured on this pool.\n    if (!isRemotePool(releaseOrMintIn.remoteChainSelector, releaseOrMintIn.sourcePoolAddress)) {\n      revert InvalidSourcePoolAddress(releaseOrMintIn.sourcePoolAddress);\n    }\n\n    _consumeInboundRateLimit(releaseOrMintIn.remoteChainSelector, releaseOrMintIn.amount);\n  }\n\n  // ================================================================\n  // │                      Token decimals                          │\n  // ================================================================\n\n  /// @notice Gets the IERC20 token decimals on the local chain.\n  function getTokenDecimals() public view virtual returns (uint8 decimals) {\n    return i_tokenDecimals;\n  }\n\n  function _encodeLocalDecimals() internal view virtual returns (bytes memory) {\n    return abi.encode(i_tokenDecimals);\n  }\n\n  function _parseRemoteDecimals(\n    bytes memory sourcePoolData\n  ) internal view virtual returns (uint8) {\n    // Fallback to the local token decimals if the source pool data is empty. This allows for backwards compatibility.\n    if (sourcePoolData.length == 0) {\n      return i_tokenDecimals;\n    }\n    if (sourcePoolData.length != 32) {\n      revert InvalidRemoteChainDecimals(sourcePoolData);\n    }\n    uint256 remoteDecimals = abi.decode(sourcePoolData, (uint256));\n    if (remoteDecimals > type(uint8).max) {\n      revert InvalidRemoteChainDecimals(sourcePoolData);\n    }\n    return uint8(remoteDecimals);\n  }\n\n  /// @notice Calculates the local amount based on the remote amount and decimals.\n  /// @param remoteAmount The amount on the remote chain.\n  /// @param remoteDecimals The decimals of the token on the remote chain.\n  /// @return The local amount.\n  /// @dev This function protects against overflows. If there is a transaction that hits the overflow check, it is\n  /// probably incorrect as that means the amount cannot be represented on this chain. If the local decimals have been\n  /// wrongly configured, the token issuer could redeploy the pool with the correct decimals and manually re-execute the\n  /// CCIP tx to fix the issue.\n  function _calculateLocalAmount(uint256 remoteAmount, uint8 remoteDecimals) internal view virtual returns (uint256) {\n    if (remoteDecimals == i_tokenDecimals) {\n      return remoteAmount;\n    }\n    if (remoteDecimals > i_tokenDecimals) {\n      uint8 decimalsDiff = remoteDecimals - i_tokenDecimals;\n      if (decimalsDiff > 77) {\n        // This is a safety check to prevent overflow in the next calculation.\n        revert OverflowDetected(remoteDecimals, i_tokenDecimals, remoteAmount);\n      }\n      // Solidity rounds down so there is no risk of minting more tokens than the remote chain sent.\n      return remoteAmount / (10 ** decimalsDiff);\n    }\n\n    // This is a safety check to prevent overflow in the next calculation.\n    // More than 77 would never fit in a uint256 and would cause an overflow. We also check if the resulting amount\n    // would overflow.\n    uint8 diffDecimals = i_tokenDecimals - remoteDecimals;\n    if (diffDecimals > 77 || remoteAmount > type(uint256).max / (10 ** diffDecimals)) {\n      revert OverflowDetected(remoteDecimals, i_tokenDecimals, remoteAmount);\n    }\n\n    return remoteAmount * (10 ** diffDecimals);\n  }\n\n  // ================================================================\n  // │                     Chain permissions                        │\n  // ================================================================\n\n  /// @notice Gets the pool address on the remote chain.\n  /// @param remoteChainSelector Remote chain selector.\n  /// @dev To support non-evm chains, this value is encoded into bytes\n  function getRemotePools(\n    uint64 remoteChainSelector\n  ) public view returns (bytes[] memory) {\n    bytes32[] memory remotePoolHashes = s_remoteChainConfigs[remoteChainSelector].remotePools.values();\n\n    bytes[] memory remotePools = new bytes[](remotePoolHashes.length);\n    for (uint256 i = 0; i < remotePoolHashes.length; ++i) {\n      remotePools[i] = s_remotePoolAddresses[remotePoolHashes[i]];\n    }\n\n    return remotePools;\n  }\n\n  /// @notice Checks if the pool address is configured on the remote chain.\n  /// @param remoteChainSelector Remote chain selector.\n  /// @param remotePoolAddress The address of the remote pool.\n  function isRemotePool(uint64 remoteChainSelector, bytes calldata remotePoolAddress) public view returns (bool) {\n    return s_remoteChainConfigs[remoteChainSelector].remotePools.contains(keccak256(remotePoolAddress));\n  }\n\n  /// @notice Gets the token address on the remote chain.\n  /// @param remoteChainSelector Remote chain selector.\n  /// @dev To support non-evm chains, this value is encoded into bytes\n  function getRemoteToken(\n    uint64 remoteChainSelector\n  ) public view returns (bytes memory) {\n    return s_remoteChainConfigs[remoteChainSelector].remoteTokenAddress;\n  }\n\n  /// @notice Adds a remote pool for a given chain selector. This could be due to a pool being upgraded on the remote\n  /// chain. We don't simply want to replace the old pool as there could still be valid inflight messages from the old\n  /// pool. This function allows for multiple pools to be added for a single chain selector.\n  /// @param remoteChainSelector The remote chain selector for which the remote pool address is being added.\n  /// @param remotePoolAddress The address of the new remote pool.\n  function addRemotePool(uint64 remoteChainSelector, bytes calldata remotePoolAddress) external onlyOwner {\n    if (!isSupportedChain(remoteChainSelector)) revert NonExistentChain(remoteChainSelector);\n\n    _setRemotePool(remoteChainSelector, remotePoolAddress);\n  }\n\n  /// @notice Removes the remote pool address for a given chain selector.\n  /// @dev All inflight txs from the remote pool will be rejected after it is removed. To ensure no loss of funds, there\n  /// should be no inflight txs from the given pool.\n  function removeRemotePool(uint64 remoteChainSelector, bytes calldata remotePoolAddress) external onlyOwner {\n    if (!isSupportedChain(remoteChainSelector)) revert NonExistentChain(remoteChainSelector);\n\n    if (!s_remoteChainConfigs[remoteChainSelector].remotePools.remove(keccak256(remotePoolAddress))) {\n      revert InvalidRemotePoolForChain(remoteChainSelector, remotePoolAddress);\n    }\n\n    emit RemotePoolRemoved(remoteChainSelector, remotePoolAddress);\n  }\n\n  /// @inheritdoc IPoolV1\n  function isSupportedChain(\n    uint64 remoteChainSelector\n  ) public view returns (bool) {\n    return s_remoteChainSelectors.contains(remoteChainSelector);\n  }\n\n  /// @notice Get list of allowed chains\n  /// @return list of chains.\n  function getSupportedChains() public view returns (uint64[] memory) {\n    uint256[] memory uint256ChainSelectors = s_remoteChainSelectors.values();\n    uint64[] memory chainSelectors = new uint64[](uint256ChainSelectors.length);\n    for (uint256 i = 0; i < uint256ChainSelectors.length; ++i) {\n      chainSelectors[i] = uint64(uint256ChainSelectors[i]);\n    }\n\n    return chainSelectors;\n  }\n\n  /// @notice Sets the permissions for a list of chains selectors. Actual senders for these chains\n  /// need to be allowed on the Router to interact with this pool.\n  /// @param remoteChainSelectorsToRemove A list of chain selectors to remove.\n  /// @param chainsToAdd A list of chains and their new permission status & rate limits. Rate limits\n  /// are only used when the chain is being added through `allowed` being true.\n  /// @dev Only callable by the owner\n  function applyChainUpdates(\n    uint64[] calldata remoteChainSelectorsToRemove,\n    ChainUpdate[] calldata chainsToAdd\n  ) external virtual onlyOwner {\n    for (uint256 i = 0; i < remoteChainSelectorsToRemove.length; ++i) {\n      uint64 remoteChainSelectorToRemove = remoteChainSelectorsToRemove[i];\n      // If the chain doesn't exist, revert\n      if (!s_remoteChainSelectors.remove(remoteChainSelectorToRemove)) {\n        revert NonExistentChain(remoteChainSelectorToRemove);\n      }\n\n      // Remove all remote pool hashes for the chain\n      bytes32[] memory remotePools = s_remoteChainConfigs[remoteChainSelectorToRemove].remotePools.values();\n      for (uint256 j = 0; j < remotePools.length; ++j) {\n        s_remoteChainConfigs[remoteChainSelectorToRemove].remotePools.remove(remotePools[j]);\n      }\n\n      delete s_remoteChainConfigs[remoteChainSelectorToRemove];\n\n      emit ChainRemoved(remoteChainSelectorToRemove);\n    }\n\n    for (uint256 i = 0; i < chainsToAdd.length; ++i) {\n      ChainUpdate memory newChain = chainsToAdd[i];\n      RateLimiter._validateTokenBucketConfig(newChain.outboundRateLimiterConfig, false);\n      RateLimiter._validateTokenBucketConfig(newChain.inboundRateLimiterConfig, false);\n\n      if (newChain.remoteTokenAddress.length == 0) {\n        revert ZeroAddressNotAllowed();\n      }\n\n      // If the chain already exists, revert\n      if (!s_remoteChainSelectors.add(newChain.remoteChainSelector)) {\n        revert ChainAlreadyExists(newChain.remoteChainSelector);\n      }\n\n      RemoteChainConfig storage remoteChainConfig = s_remoteChainConfigs[newChain.remoteChainSelector];\n\n      remoteChainConfig.outboundRateLimiterConfig = RateLimiter.TokenBucket({\n        rate: newChain.outboundRateLimiterConfig.rate,\n        capacity: newChain.outboundRateLimiterConfig.capacity,\n        tokens: newChain.outboundRateLimiterConfig.capacity,\n        lastUpdated: uint32(block.timestamp),\n        isEnabled: newChain.outboundRateLimiterConfig.isEnabled\n      });\n      remoteChainConfig.inboundRateLimiterConfig = RateLimiter.TokenBucket({\n        rate: newChain.inboundRateLimiterConfig.rate,\n        capacity: newChain.inboundRateLimiterConfig.capacity,\n        tokens: newChain.inboundRateLimiterConfig.capacity,\n        lastUpdated: uint32(block.timestamp),\n        isEnabled: newChain.inboundRateLimiterConfig.isEnabled\n      });\n      remoteChainConfig.remoteTokenAddress = newChain.remoteTokenAddress;\n\n      for (uint256 j = 0; j < newChain.remotePoolAddresses.length; ++j) {\n        _setRemotePool(newChain.remoteChainSelector, newChain.remotePoolAddresses[j]);\n      }\n\n      emit ChainAdded(\n        newChain.remoteChainSelector,\n        newChain.remoteTokenAddress,\n        newChain.outboundRateLimiterConfig,\n        newChain.inboundRateLimiterConfig\n      );\n    }\n  }\n\n  /// @notice Adds a pool address to the allowed remote token pools for a particular chain.\n  /// @param remoteChainSelector The remote chain selector for which the remote pool address is being added.\n  /// @param remotePoolAddress The address of the new remote pool.\n  function _setRemotePool(uint64 remoteChainSelector, bytes memory remotePoolAddress) internal {\n    if (remotePoolAddress.length == 0) {\n      revert ZeroAddressNotAllowed();\n    }\n\n    bytes32 poolHash = keccak256(remotePoolAddress);\n\n    // Check if the pool already exists.\n    if (!s_remoteChainConfigs[remoteChainSelector].remotePools.add(poolHash)) {\n      revert PoolAlreadyAdded(remoteChainSelector, remotePoolAddress);\n    }\n\n    // Add the pool to the mapping to be able to un-hash it later.\n    s_remotePoolAddresses[poolHash] = remotePoolAddress;\n\n    emit RemotePoolAdded(remoteChainSelector, remotePoolAddress);\n  }\n\n  // ================================================================\n  // │                        Rate limiting                         │\n  // ================================================================\n\n  /// @dev The inbound rate limits should be slightly higher than the outbound rate limits. This is because many chains\n  /// finalize blocks in batches. CCIP also commits messages in batches: the commit plugin bundles multiple messages in\n  /// a single merkle root.\n  /// Imagine the following scenario.\n  /// - Chain A has an inbound and outbound rate limit of 100 tokens capacity and 1 token per second refill rate.\n  /// - Chain B has an inbound and outbound rate limit of 100 tokens capacity and 1 token per second refill rate.\n  ///\n  /// At time 0:\n  /// - Chain A sends 100 tokens to Chain B.\n  /// At time 5:\n  /// - Chain A sends 5 tokens to Chain B.\n  /// At time 6:\n  /// The epoch that contains blocks [0-5] is finalized.\n  /// Both transactions will be included in the same merkle root and become executable at the same time. This means\n  /// the token pool on chain B requires a capacity of 105 to successfully execute both messages at the same time.\n  /// The exact additional capacity required depends on the refill rate and the size of the source chain epochs and the\n  /// CCIP round time. For simplicity, a 5-10% buffer should be sufficient in most cases.\n\n  /// @notice Sets the rate limiter admin address.\n  /// @dev Only callable by the owner.\n  /// @param rateLimitAdmin The new rate limiter admin address.\n  function setRateLimitAdmin(\n    address rateLimitAdmin\n  ) external onlyOwner {\n    s_rateLimitAdmin = rateLimitAdmin;\n    emit RateLimitAdminSet(rateLimitAdmin);\n  }\n\n  /// @notice Gets the rate limiter admin address.\n  function getRateLimitAdmin() external view returns (address) {\n    return s_rateLimitAdmin;\n  }\n\n  /// @notice Consumes outbound rate limiting capacity in this pool\n  function _consumeOutboundRateLimit(uint64 remoteChainSelector, uint256 amount) internal {\n    s_remoteChainConfigs[remoteChainSelector].outboundRateLimiterConfig._consume(amount, address(i_token));\n  }\n\n  /// @notice Consumes inbound rate limiting capacity in this pool\n  function _consumeInboundRateLimit(uint64 remoteChainSelector, uint256 amount) internal {\n    s_remoteChainConfigs[remoteChainSelector].inboundRateLimiterConfig._consume(amount, address(i_token));\n  }\n\n  /// @notice Gets the token bucket with its values for the block it was requested at.\n  /// @return The token bucket.\n  function getCurrentOutboundRateLimiterState(\n    uint64 remoteChainSelector\n  ) external view returns (RateLimiter.TokenBucket memory) {\n    return s_remoteChainConfigs[remoteChainSelector].outboundRateLimiterConfig._currentTokenBucketState();\n  }\n\n  /// @notice Gets the token bucket with its values for the block it was requested at.\n  /// @return The token bucket.\n  function getCurrentInboundRateLimiterState(\n    uint64 remoteChainSelector\n  ) external view returns (RateLimiter.TokenBucket memory) {\n    return s_remoteChainConfigs[remoteChainSelector].inboundRateLimiterConfig._currentTokenBucketState();\n  }\n\n  /// @notice Sets multiple chain rate limiter configs.\n  /// @param remoteChainSelectors The remote chain selector for which the rate limits apply.\n  /// @param outboundConfigs The new outbound rate limiter config, meaning the onRamp rate limits for the given chain.\n  /// @param inboundConfigs The new inbound rate limiter config, meaning the offRamp rate limits for the given chain.\n  function setChainRateLimiterConfigs(\n    uint64[] calldata remoteChainSelectors,\n    RateLimiter.Config[] calldata outboundConfigs,\n    RateLimiter.Config[] calldata inboundConfigs\n  ) external {\n    if (msg.sender != s_rateLimitAdmin && msg.sender != owner()) revert Unauthorized(msg.sender);\n    if (remoteChainSelectors.length != outboundConfigs.length || remoteChainSelectors.length != inboundConfigs.length) {\n      revert MismatchedArrayLengths();\n    }\n\n    for (uint256 i = 0; i < remoteChainSelectors.length; ++i) {\n      _setRateLimitConfig(remoteChainSelectors[i], outboundConfigs[i], inboundConfigs[i]);\n    }\n  }\n\n  /// @notice Sets the chain rate limiter config.\n  /// @param remoteChainSelector The remote chain selector for which the rate limits apply.\n  /// @param outboundConfig The new outbound rate limiter config, meaning the onRamp rate limits for the given chain.\n  /// @param inboundConfig The new inbound rate limiter config, meaning the offRamp rate limits for the given chain.\n  function setChainRateLimiterConfig(\n    uint64 remoteChainSelector,\n    RateLimiter.Config memory outboundConfig,\n    RateLimiter.Config memory inboundConfig\n  ) external {\n    if (msg.sender != s_rateLimitAdmin && msg.sender != owner()) revert Unauthorized(msg.sender);\n\n    _setRateLimitConfig(remoteChainSelector, outboundConfig, inboundConfig);\n  }\n\n  function _setRateLimitConfig(\n    uint64 remoteChainSelector,\n    RateLimiter.Config memory outboundConfig,\n    RateLimiter.Config memory inboundConfig\n  ) internal {\n    if (!isSupportedChain(remoteChainSelector)) revert NonExistentChain(remoteChainSelector);\n    RateLimiter._validateTokenBucketConfig(outboundConfig, false);\n    s_remoteChainConfigs[remoteChainSelector].outboundRateLimiterConfig._setTokenBucketConfig(outboundConfig);\n    RateLimiter._validateTokenBucketConfig(inboundConfig, false);\n    s_remoteChainConfigs[remoteChainSelector].inboundRateLimiterConfig._setTokenBucketConfig(inboundConfig);\n    emit ChainConfigured(remoteChainSelector, outboundConfig, inboundConfig);\n  }\n\n  // ================================================================\n  // │                           Access                             │\n  // ================================================================\n\n  /// @notice Checks whether remote chain selector is configured on this contract, and if the msg.sender\n  /// is a permissioned onRamp for the given chain on the Router.\n  function _onlyOnRamp(\n    uint64 remoteChainSelector\n  ) internal view {\n    if (!isSupportedChain(remoteChainSelector)) revert ChainNotAllowed(remoteChainSelector);\n    if (!(msg.sender == s_router.getOnRamp(remoteChainSelector))) revert CallerIsNotARampOnRouter(msg.sender);\n  }\n\n  /// @notice Checks whether remote chain selector is configured on this contract, and if the msg.sender\n  /// is a permissioned offRamp for the given chain on the Router.\n  function _onlyOffRamp(\n    uint64 remoteChainSelector\n  ) internal view {\n    if (!isSupportedChain(remoteChainSelector)) revert ChainNotAllowed(remoteChainSelector);\n    if (!s_router.isOffRamp(remoteChainSelector, msg.sender)) revert CallerIsNotARampOnRouter(msg.sender);\n  }\n\n  // ================================================================\n  // │                          Allowlist                           │\n  // ================================================================\n\n  function _checkAllowList(\n    address sender\n  ) internal view {\n    if (i_allowlistEnabled) {\n      if (!s_allowlist.contains(sender)) {\n        revert SenderNotAllowed(sender);\n      }\n    }\n  }\n\n  /// @notice Gets whether the allowlist functionality is enabled.\n  /// @return true is enabled, false if not.\n  function getAllowListEnabled() external view returns (bool) {\n    return i_allowlistEnabled;\n  }\n\n  /// @notice Gets the allowed addresses.\n  /// @return The allowed addresses.\n  function getAllowList() external view returns (address[] memory) {\n    return s_allowlist.values();\n  }\n\n  /// @notice Apply updates to the allow list.\n  /// @param removes The addresses to be removed.\n  /// @param adds The addresses to be added.\n  function applyAllowListUpdates(address[] calldata removes, address[] calldata adds) external onlyOwner {\n    _applyAllowListUpdates(removes, adds);\n  }\n\n  /// @notice Internal version of applyAllowListUpdates to allow for reuse in the constructor.\n  function _applyAllowListUpdates(address[] memory removes, address[] memory adds) internal {\n    if (!i_allowlistEnabled) revert AllowListNotEnabled();\n\n    for (uint256 i = 0; i < removes.length; ++i) {\n      address toRemove = removes[i];\n      if (s_allowlist.remove(toRemove)) {\n        emit AllowListRemove(toRemove);\n      }\n    }\n    for (uint256 i = 0; i < adds.length; ++i) {\n      address toAdd = adds[i];\n      if (toAdd == address(0)) {\n        continue;\n      }\n      if (s_allowlist.add(toAdd)) {\n        emit AllowListAdd(toAdd);\n      }\n    }\n  }\n}\n"},{"file_path":"node_modules/@chainlink/contracts/src/v0.8/shared/access/Ownable2Step.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\nimport {IOwnable} from \"../interfaces/IOwnable.sol\";\n\n/// @notice A minimal contract that implements 2-step ownership transfer and nothing more. It's made to be minimal\n/// to reduce the impact of the bytecode size on any contract that inherits from it.\ncontract Ownable2Step is IOwnable {\n  /// @notice The pending owner is the address to which ownership may be transferred.\n  address private s_pendingOwner;\n  /// @notice The owner is the current owner of the contract.\n  /// @dev The owner is the second storage variable so any implementing contract could pack other state with it\n  /// instead of the much less used s_pendingOwner.\n  address private s_owner;\n\n  error OwnerCannotBeZero();\n  error MustBeProposedOwner();\n  error CannotTransferToSelf();\n  error OnlyCallableByOwner();\n\n  event OwnershipTransferRequested(address indexed from, address indexed to);\n  event OwnershipTransferred(address indexed from, address indexed to);\n\n  constructor(address newOwner, address pendingOwner) {\n    if (newOwner == address(0)) {\n      revert OwnerCannotBeZero();\n    }\n\n    s_owner = newOwner;\n    if (pendingOwner != address(0)) {\n      _transferOwnership(pendingOwner);\n    }\n  }\n\n  /// @notice Get the current owner\n  function owner() public view override returns (address) {\n    return s_owner;\n  }\n\n  /// @notice Allows an owner to begin transferring ownership to a new address. The new owner needs to call\n  /// `acceptOwnership` to accept the transfer before any permissions are changed.\n  /// @param to The address to which ownership will be transferred.\n  function transferOwnership(address to) public override onlyOwner {\n    _transferOwnership(to);\n  }\n\n  /// @notice validate, transfer ownership, and emit relevant events\n  /// @param to The address to which ownership will be transferred.\n  function _transferOwnership(address to) private {\n    if (to == msg.sender) {\n      revert CannotTransferToSelf();\n    }\n\n    s_pendingOwner = to;\n\n    emit OwnershipTransferRequested(s_owner, to);\n  }\n\n  /// @notice Allows an ownership transfer to be completed by the recipient.\n  function acceptOwnership() external override {\n    if (msg.sender != s_pendingOwner) {\n      revert MustBeProposedOwner();\n    }\n\n    address oldOwner = s_owner;\n    s_owner = msg.sender;\n    s_pendingOwner = address(0);\n\n    emit OwnershipTransferred(oldOwner, msg.sender);\n  }\n\n  /// @notice validate access\n  function _validateOwnership() internal view {\n    if (msg.sender != s_owner) {\n      revert OnlyCallableByOwner();\n    }\n  }\n\n  /// @notice Reverts if called by anyone other than the contract owner.\n  modifier onlyOwner() {\n    _validateOwnership();\n    _;\n  }\n}\n"},{"file_path":"node_modules/@chainlink/contracts/src/v0.8/shared/access/Ownable2StepMsgSender.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.4;\n\nimport {Ownable2Step} from \"./Ownable2Step.sol\";\n\n/// @notice Sets the msg.sender to be the owner of the contract and does not set a pending owner.\ncontract Ownable2StepMsgSender is Ownable2Step {\n  constructor() Ownable2Step(msg.sender, address(0)) {}\n}\n"},{"file_path":"node_modules/@chainlink/contracts/src/v0.8/shared/token/ERC20/IBurnMintERC20.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\nimport {IERC20} from \"../../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol\";\n\ninterface IBurnMintERC20 is IERC20 {\n  /// @notice Mints new tokens for a given address.\n  /// @param account The address to mint the new tokens to.\n  /// @param amount The number of tokens to be minted.\n  /// @dev this function increases the total supply.\n  function mint(address account, uint256 amount) external;\n\n  /// @notice Burns tokens from the sender.\n  /// @param amount The number of tokens to be burned.\n  /// @dev this function decreases the total supply.\n  function burn(uint256 amount) external;\n\n  /// @notice Burns tokens from a given address..\n  /// @param account The address to burn tokens from.\n  /// @param amount The number of tokens to be burned.\n  /// @dev this function decreases the total supply.\n  function burn(address account, uint256 amount) external;\n\n  /// @notice Burns tokens from a given address..\n  /// @param account The address to burn tokens from.\n  /// @param amount The number of tokens to be burned.\n  /// @dev this function decreases the total supply.\n  function burnFrom(address account, uint256 amount) external;\n}\n"},{"file_path":"node_modules/@chainlink/contracts/src/v0.8/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.6.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"},{"file_path":"node_modules/@chainlink/contracts/src/v0.8/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/extensions/IERC20Metadata.sol","source_code":"// 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"},{"file_path":"node_modules/@chainlink/contracts/src/v0.8/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/introspection/IERC165.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Interface of the ERC165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"},{"file_path":"node_modules/@chainlink/contracts/src/v0.8/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/structs/EnumerableSet.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol)\n// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.\n\npragma solidity ^0.8.20;\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 is the index of the value in the `values` array plus 1.\n        // Position 0 is used to mean a value is not in the set.\n        mapping(bytes32 value => uint256) _positions;\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._positions[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 cache the value's position to prevent multiple reads from the same storage slot\n        uint256 position = set._positions[value];\n\n        if (position != 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 valueIndex = position - 1;\n            uint256 lastIndex = set._values.length - 1;\n\n            if (valueIndex != lastIndex) {\n                bytes32 lastValue = set._values[lastIndex];\n\n                // Move the lastValue to the index where the value to delete is\n                set._values[valueIndex] = lastValue;\n                // Update the tracked position of the lastValue (that was just moved)\n                set._positions[lastValue] = position;\n            }\n\n            // Delete the slot where the moved value was stored\n            set._values.pop();\n\n            // Delete the tracked position for the deleted slot\n            delete set._positions[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._positions[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"}],"certified":false,"conflicting_implementations":null,"abi":[{"inputs":[{"internalType":"contract IBurnMintERC20","name":"token","type":"address"},{"internalType":"uint8","name":"localTokenDecimals","type":"uint8"},{"internalType":"address[]","name":"allowlist","type":"address[]"},{"internalType":"address","name":"rmnProxy","type":"address"},{"internalType":"address","name":"router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"uint256","name":"capacity","type":"uint256"},{"internalType":"uint256","name":"requested","type":"uint256"}],"name":"AggregateValueMaxCapacityExceeded","type":"error"},{"inputs":[{"internalType":"uint256","name":"minWaitInSeconds","type":"uint256"},{"internalType":"uint256","name":"available","type":"uint256"}],"name":"AggregateValueRateLimitReached","type":"error"},{"inputs":[],"name":"AllowListNotEnabled","type":"error"},{"inputs":[],"name":"BucketOverfilled","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"CallerIsNotARampOnRouter","type":"error"},{"inputs":[],"name":"CannotTransferToSelf","type":"error"},{"inputs":[{"internalType":"uint64","name":"chainSelector","type":"uint64"}],"name":"ChainAlreadyExists","type":"error"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"}],"name":"ChainNotAllowed","type":"error"},{"inputs":[],"name":"CursedByRMN","type":"error"},{"inputs":[{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"internalType":"struct RateLimiter.Config","name":"config","type":"tuple"}],"name":"DisabledNonZeroRateLimit","type":"error"},{"inputs":[{"internalType":"uint8","name":"expected","type":"uint8"},{"internalType":"uint8","name":"actual","type":"uint8"}],"name":"InvalidDecimalArgs","type":"error"},{"inputs":[{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"internalType":"struct RateLimiter.Config","name":"rateLimiterConfig","type":"tuple"}],"name":"InvalidRateLimitRate","type":"error"},{"inputs":[{"internalType":"bytes","name":"sourcePoolData","type":"bytes"}],"name":"InvalidRemoteChainDecimals","type":"error"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"internalType":"bytes","name":"remotePoolAddress","type":"bytes"}],"name":"InvalidRemotePoolForChain","type":"error"},{"inputs":[{"internalType":"bytes","name":"sourcePoolAddress","type":"bytes"}],"name":"InvalidSourcePoolAddress","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"InvalidToken","type":"error"},{"inputs":[],"name":"MismatchedArrayLengths","type":"error"},{"inputs":[],"name":"MustBeProposedOwner","type":"error"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"}],"name":"NonExistentChain","type":"error"},{"inputs":[],"name":"OnlyCallableByOwner","type":"error"},{"inputs":[{"internalType":"uint8","name":"remoteDecimals","type":"uint8"},{"internalType":"uint8","name":"localDecimals","type":"uint8"},{"internalType":"uint256","name":"remoteAmount","type":"uint256"}],"name":"OverflowDetected","type":"error"},{"inputs":[],"name":"OwnerCannotBeZero","type":"error"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"internalType":"bytes","name":"remotePoolAddress","type":"bytes"}],"name":"PoolAlreadyAdded","type":"error"},{"inputs":[],"name":"RateLimitMustBeDisabled","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"SenderNotAllowed","type":"error"},{"inputs":[{"internalType":"uint256","name":"capacity","type":"uint256"},{"internalType":"uint256","name":"requested","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"TokenMaxCapacityExceeded","type":"error"},{"inputs":[{"internalType":"uint256","name":"minWaitInSeconds","type":"uint256"},{"internalType":"uint256","name":"available","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"TokenRateLimitReached","type":"error"},{"inputs":[{"internalType":"address","name":"caller","type":"address"}],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"ZeroAddressNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"AllowListAdd","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"AllowListRemove","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"indexed":false,"internalType":"bytes","name":"remoteToken","type":"bytes"},{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"indexed":false,"internalType":"struct RateLimiter.Config","name":"outboundRateLimiterConfig","type":"tuple"},{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"indexed":false,"internalType":"struct RateLimiter.Config","name":"inboundRateLimiterConfig","type":"tuple"}],"name":"ChainAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"indexed":false,"internalType":"struct RateLimiter.Config","name":"outboundRateLimiterConfig","type":"tuple"},{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"indexed":false,"internalType":"struct RateLimiter.Config","name":"inboundRateLimiterConfig","type":"tuple"}],"name":"ChainConfigured","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"remoteChainSelector","type":"uint64"}],"name":"ChainRemoved","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"indexed":false,"internalType":"struct RateLimiter.Config","name":"config","type":"tuple"}],"name":"ConfigChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Locked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"OwnershipTransferRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"rateLimitAdmin","type":"address"}],"name":"RateLimitAdminSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Released","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"indexed":false,"internalType":"bytes","name":"remotePoolAddress","type":"bytes"}],"name":"RemotePoolAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"indexed":false,"internalType":"bytes","name":"remotePoolAddress","type":"bytes"}],"name":"RemotePoolRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldRouter","type":"address"},{"indexed":false,"internalType":"address","name":"newRouter","type":"address"}],"name":"RouterUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"TokensConsumed","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"internalType":"bytes","name":"remotePoolAddress","type":"bytes"}],"name":"addRemotePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"removes","type":"address[]"},{"internalType":"address[]","name":"adds","type":"address[]"}],"name":"applyAllowListUpdates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64[]","name":"remoteChainSelectorsToRemove","type":"uint64[]"},{"components":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"internalType":"bytes[]","name":"remotePoolAddresses","type":"bytes[]"},{"internalType":"bytes","name":"remoteTokenAddress","type":"bytes"},{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"internalType":"struct RateLimiter.Config","name":"outboundRateLimiterConfig","type":"tuple"},{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"internalType":"struct RateLimiter.Config","name":"inboundRateLimiterConfig","type":"tuple"}],"internalType":"struct TokenPool.ChainUpdate[]","name":"chainsToAdd","type":"tuple[]"}],"name":"applyChainUpdates","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllowList","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllowListEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"}],"name":"getCurrentInboundRateLimiterState","outputs":[{"components":[{"internalType":"uint128","name":"tokens","type":"uint128"},{"internalType":"uint32","name":"lastUpdated","type":"uint32"},{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"internalType":"struct RateLimiter.TokenBucket","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"}],"name":"getCurrentOutboundRateLimiterState","outputs":[{"components":[{"internalType":"uint128","name":"tokens","type":"uint128"},{"internalType":"uint32","name":"lastUpdated","type":"uint32"},{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"internalType":"struct RateLimiter.TokenBucket","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRateLimitAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"}],"name":"getRemotePools","outputs":[{"internalType":"bytes[]","name":"","type":"bytes[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"}],"name":"getRemoteToken","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRmnProxy","outputs":[{"internalType":"address","name":"rmnProxy","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRouter","outputs":[{"internalType":"address","name":"router","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSupportedChains","outputs":[{"internalType":"uint64[]","name":"","type":"uint64[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getToken","outputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenDecimals","outputs":[{"internalType":"uint8","name":"decimals","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"internalType":"bytes","name":"remotePoolAddress","type":"bytes"}],"name":"isRemotePool","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"}],"name":"isSupportedChain","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"isSupportedToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"receiver","type":"bytes"},{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"internalType":"address","name":"originalSender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"localToken","type":"address"}],"internalType":"struct Pool.LockOrBurnInV1","name":"lockOrBurnIn","type":"tuple"}],"name":"lockOrBurn","outputs":[{"components":[{"internalType":"bytes","name":"destTokenAddress","type":"bytes"},{"internalType":"bytes","name":"destPoolData","type":"bytes"}],"internalType":"struct Pool.LockOrBurnOutV1","name":"","type":"tuple"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"originalSender","type":"bytes"},{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"localToken","type":"address"},{"internalType":"bytes","name":"sourcePoolAddress","type":"bytes"},{"internalType":"bytes","name":"sourcePoolData","type":"bytes"},{"internalType":"bytes","name":"offchainTokenData","type":"bytes"}],"internalType":"struct Pool.ReleaseOrMintInV1","name":"releaseOrMintIn","type":"tuple"}],"name":"releaseOrMint","outputs":[{"components":[{"internalType":"uint256","name":"destinationAmount","type":"uint256"}],"internalType":"struct Pool.ReleaseOrMintOutV1","name":"","type":"tuple"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"internalType":"bytes","name":"remotePoolAddress","type":"bytes"}],"name":"removeRemotePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"remoteChainSelector","type":"uint64"},{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"internalType":"struct RateLimiter.Config","name":"outboundConfig","type":"tuple"},{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"internalType":"struct RateLimiter.Config","name":"inboundConfig","type":"tuple"}],"name":"setChainRateLimiterConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64[]","name":"remoteChainSelectors","type":"uint64[]"},{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"internalType":"struct RateLimiter.Config[]","name":"outboundConfigs","type":"tuple[]"},{"components":[{"internalType":"bool","name":"isEnabled","type":"bool"},{"internalType":"uint128","name":"capacity","type":"uint128"},{"internalType":"uint128","name":"rate","type":"uint128"}],"internalType":"struct RateLimiter.Config[]","name":"inboundConfigs","type":"tuple[]"}],"name":"setChainRateLimiterConfigs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"rateLimitAdmin","type":"address"}],"name":"setRateLimitAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRouter","type":"address"}],"name":"setRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"typeAndVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}],"is_changed_bytecode":false,"is_partially_verified":false,"constructor_args":"0x0000000000000000000000008210c0634ab8f273806e4b7866e9db353773c44b000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000c842c69d54f83170c42c4d556b4f6b2ca53dd3e8000000000000000000000000881e3a65b4d4a04dd529061dd0071cf975f58bcd0000000000000000000000000000000000000000000000000000000000000000"}