diff --git a/broadcast/20241105_UpgradRNSCommissionMainnet.sol/2020/run-1730866136.json b/broadcast/20241105_UpgradRNSCommissionMainnet.sol/2020/run-1730866136.json new file mode 100644 index 0000000..eed049f --- /dev/null +++ b/broadcast/20241105_UpgradRNSCommissionMainnet.sol/2020/run-1730866136.json @@ -0,0 +1,60 @@ +{ + "transactions": [ + { + "hash": "0x0b6223f4072c1d6788afbf72905edd47e052113fb0b5492be769233aba223032", + "transactionType": "CREATE", + "contractName": "RNSCommission", + "contractAddress": "0x6132f68e5084258ceb12e4d5ede772f544b81f92", + "function": null, + "arguments": null, + "transaction": { + "from": "0x08295771719b138a241f45023b13cc868d72827d", + "gas": "0x31f87e", + "value": "0x0", + "input": "0x608060405234801561001057600080fd5b5061001961001e565b6100dd565b600054610100900460ff161561008a5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff908116146100db576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b611c30806100ec6000396000f3fe6080604052600436106100ec5760003560e01c806391cbc73f1161008a578063c42ef38c11610059578063c42ef38c14610297578063ca15c873146102cb578063d547741f146102eb578063e92108b51461030b57600080fd5b806391cbc73f1461022257806391d14854146102425780639fd50e5814610262578063a217fddf1461028257600080fd5b806336568abe116100c657806336568abe146101945780634c255c97146101b45780635dc30fe5146101ca5780639010d07c146101ea57600080fd5b806301ffc9a714610100578063248a9ca3146101355780632f2ff15d1461017457600080fd5b366100fb576100f961032d565b005b600080fd5b34801561010c57600080fd5b5061012061011b36600461130e565b610367565b60405190151581526020015b60405180910390f35b34801561014157600080fd5b50610166610150366004611338565b6000908152600160208190526040909120015490565b60405190815260200161012c565b34801561018057600080fd5b506100f961018f366004611366565b610392565b3480156101a057600080fd5b506100f96101af366004611366565b6103bd565b3480156101c057600080fd5b5061016661271081565b3480156101d657600080fd5b506100f96101e53660046113e2565b610440565b3480156101f657600080fd5b5061020a610205366004611424565b610455565b6040516001600160a01b03909116815260200161012c565b34801561022e57600080fd5b506100f961023d366004611446565b610474565b34801561024e57600080fd5b5061012061025d366004611366565b610605565b34801561026e57600080fd5b506100f961027d3660046114c9565b610630565b34801561028e57600080fd5b50610166600081565b3480156102a357600080fd5b506101667f76d12de99ad2ca162840505be9b657c2e7a650cc3ee0284048f3f9def3c1adf281565b3480156102d757600080fd5b506101666102e6366004611338565b61074e565b3480156102f757600080fd5b506100f9610306366004611366565b610765565b34801561031757600080fd5b5061032061078b565b60405161012c91906115a2565b6103577f76d12de99ad2ca162840505be9b657c2e7a650cc3ee0284048f3f9def3c1adf233610605565b15610365576103653461089c565b565b60006001600160e01b03198216635a05180f60e01b148061038c575061038c82610a87565b92915050565b600082815260016020819052604090912001546103ae81610abc565b6103b88383610ac9565b505050565b6001600160a01b03811633146104325760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61043c8282610aeb565b5050565b600061044b81610abc565b6103b88383610b0d565b600082815260026020526040812061046d9083610c90565b9392505050565b600054610100900460ff16158080156104945750600054600160ff909116105b806104ae5750303b1580156104ae575060005460ff166001145b6105115760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610429565b6000805460ff191660011790558015610534576000805461ff0019166101001790555b61053f600087610c9c565b8160005b818110156105ab5761059b7f76d12de99ad2ca162840505be9b657c2e7a650cc3ee0284048f3f9def3c1adf28686848181106105815761058161162a565b90506020020160208101906105969190611640565b610c9c565b6105a481611673565b9050610543565b506105b68686610b0d565b5080156105fd576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600061063b81610abc565b603554851061065d57604051634ec4810560e11b815260040160405180910390fd5b6001600160a01b0384166106845760405163e99d5ac560e01b815260040160405180910390fd5b83603586815481106106985761069861162a565b906000526020600020906003020160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508282603587815481106106e2576106e261162a565b90600052602060002090600302016002019182610700929190611722565b5084336001600160a01b03167faa3076bb2e00a425a96ce6aa8762a984fe8ed14922e3fba98cfa90683cb05ff886868660405161073f9392919061180c565b60405180910390a35050505050565b600081815260026020526040812061038c90610ca6565b6000828152600160208190526040909120015461078181610abc565b6103b88383610aeb565b60606035805480602002602001604051908101604052809291908181526020016000905b82821015610893576000848152602090819020604080516060810182526003860290920180546001600160a01b0316835260018101549383019390935260028301805492939291840191610802906116a2565b80601f016020809104026020016040519081016040528092919081815260200182805461082e906116a2565b801561087b5780601f106108505761010080835404028352916020019161087b565b820191906000526020600020905b81548152906001019060200180831161085e57829003601f168201915b505050505081525050815260200190600101906107af565b50505050905090565b806000036108a75750565b60355460008190036108cc57604051634ec4810560e11b815260040160405180910390fd5b60006108d960018361183a565b90506000805b828110156109ce57600061091786603584815481106109005761090061162a565b906000526020600020906003020160010154610cb0565b9050610923818461184d565b925061095b6035838154811061093b5761093b61162a565b60009182526020909120600390910201546001600160a01b031682610cc9565b6035828154811061096e5761096e61162a565b6000918252602091829020600390910201546040518381526001600160a01b03909116917fb649c98f58055c520df0dcb5709eff2e931217ff2fb1e21376130d31bbb1c0af910160405180910390a2506109c781611673565b90506108df565b5083811015610a8157610a16603583815481106109ed576109ed61162a565b60009182526020909120600390910201546001600160a01b0316610a11838761183a565b610cc9565b60358281548110610a2957610a2961162a565b60009182526020909120600390910201546001600160a01b03167fb649c98f58055c520df0dcb5709eff2e931217ff2fb1e21376130d31bbb1c0af610a6e838761183a565b6040519081526020015b60405180910390a25b50505050565b60006001600160e01b03198216637965db0b60e01b148061038c57506301ffc9a760e01b6001600160e01b031983161461038c565b610ac68133610d2e565b50565b610ad38282610d61565b60008281526002602052604090206103b89082610dcc565b610af58282610de1565b60008281526002602052604090206103b89082610e48565b806000819003610b3057604051634ec4810560e11b815260040160405180910390fd5b610b3c6035600061126e565b6000805b82811015610c32576000858583818110610b5c57610b5c61162a565b9050602002810190610b6e9190611860565b610b7c906020810190611640565b6001600160a01b031603610ba35760405163e99d5ac560e01b815260040160405180910390fd5b848482818110610bb557610bb561162a565b9050602002810190610bc79190611860565b610bd590602001358361184d565b91506035858583818110610beb57610beb61162a565b9050602002810190610bfd9190611860565b815460018101835560009283526020909220909160030201610c1f8282611880565b505080610c2b90611673565b9050610b40565b506127108114610c555760405163648564d360e01b815260040160405180910390fd5b336001600160a01b03167f28d7f0d68cf2a192abb8ce94479d236f99759d18e31ee7cbfb0a473764374c008585604051610a789291906119aa565b600061046d8383610e5d565b61043c8282610ac9565b600061038c825490565b6000612710610cbf8385611a7c565b61046d9190611a93565b6000610cd58383610e87565b9050806103b857610cee836001600160a01b0316610efd565b610cf783610f13565b604051602001610d08929190611ab5565b60408051601f198184030181529082905262461bcd60e51b825261042991600401611b33565b610d388282610605565b61043c57610d4581610efd565b610d50836020610f26565b604051602001610d08929190611b46565b610d6b8282610605565b61043c5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b600061046d836001600160a01b0384166110c2565b610deb8282610605565b1561043c5760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600061046d836001600160a01b038416611111565b6000826000018281548110610e7457610e7461162a565b9060005260206000200154905092915050565b604080516000808252602082019092526001600160a01b038416908390604051610eb19190611bbb565b60006040518083038185875af1925050503d8060008114610eee576040519150601f19603f3d011682016040523d82523d6000602084013e610ef3565b606091505b5090949350505050565b606061038c6001600160a01b0383166014610f26565b606061038c82610f2284611204565b6001015b60606000610f35836002611a7c565b610f4090600261184d565b67ffffffffffffffff811115610f5857610f5861168c565b6040519080825280601f01601f191660200182016040528015610f82576020820181803683370190505b509050600360fc1b81600081518110610f9d57610f9d61162a565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610fcc57610fcc61162a565b60200101906001600160f81b031916908160001a9053506000610ff0846002611a7c565b610ffb90600161184d565b90505b6001811115611073576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061102f5761102f61162a565b1a60f81b8282815181106110455761104561162a565b60200101906001600160f81b031916908160001a90535060049490941c9361106c81611bcd565b9050610ffe565b50831561046d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610429565b60008181526001830160205260408120546111095750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561038c565b50600061038c565b600081815260018301602052604081205480156111fa57600061113560018361183a565b85549091506000906111499060019061183a565b90508181146111ae5760008660000182815481106111695761116961162a565b906000526020600020015490508087600001848154811061118c5761118c61162a565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806111bf576111bf611be4565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061038c565b600091505061038c565b600080608083901c1561121c5760809290921c916010015b604083901c156112315760409290921c916008015b602083901c156112465760209290921c916004015b601083901c1561125b5760109290921c916002015b600883901c1561038c5760010192915050565b5080546000825560030290600052602060002090810190610ac691905b808211156112c05780546001600160a01b03191681556000600182018190556112b760028301826112c4565b5060030161128b565b5090565b5080546112d0906116a2565b6000825580601f106112e0575050565b601f016020900490600052602060002090810190610ac691905b808211156112c057600081556001016112fa565b60006020828403121561132057600080fd5b81356001600160e01b03198116811461046d57600080fd5b60006020828403121561134a57600080fd5b5035919050565b6001600160a01b0381168114610ac657600080fd5b6000806040838503121561137957600080fd5b82359150602083013561138b81611351565b809150509250929050565b60008083601f8401126113a857600080fd5b50813567ffffffffffffffff8111156113c057600080fd5b6020830191508360208260051b85010111156113db57600080fd5b9250929050565b600080602083850312156113f557600080fd5b823567ffffffffffffffff81111561140c57600080fd5b61141885828601611396565b90969095509350505050565b6000806040838503121561143757600080fd5b50508035926020909101359150565b60008060008060006060868803121561145e57600080fd5b853561146981611351565b9450602086013567ffffffffffffffff8082111561148657600080fd5b61149289838a01611396565b909650945060408801359150808211156114ab57600080fd5b506114b888828901611396565b969995985093965092949392505050565b600080600080606085870312156114df57600080fd5b8435935060208501356114f181611351565b9250604085013567ffffffffffffffff8082111561150e57600080fd5b818701915087601f83011261152257600080fd5b81358181111561153157600080fd5b88602082850101111561154357600080fd5b95989497505060200194505050565b60005b8381101561156d578181015183820152602001611555565b50506000910152565b6000815180845261158e816020860160208601611552565b601f01601f19169290920160200192915050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561161c57888303603f19018552815180516001600160a01b031684528781015188850152860151606087850181905261160881860183611576565b9689019694505050908601906001016115c9565b509098975050505050505050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561165257600080fd5b813561046d81611351565b634e487b7160e01b600052601160045260246000fd5b6000600182016116855761168561165d565b5060010190565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806116b657607f821691505b6020821081036116d657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156103b857600081815260208120601f850160051c810160208610156117035750805b601f850160051c820191505b818110156105fd5782815560010161170f565b67ffffffffffffffff83111561173a5761173a61168c565b61174e8361174883546116a2565b836116dc565b6000601f841160018114611782576000851561176a5750838201355b600019600387901b1c1916600186901b1783556117dc565b600083815260209020601f19861690835b828110156117b35786850135825560209485019460019092019101611793565b50868210156117d05760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038416815260406020820181905260009061183190830184866117e3565b95945050505050565b8181038181111561038c5761038c61165d565b8082018082111561038c5761038c61165d565b60008235605e1983360301811261187657600080fd5b9190910192915050565b813561188b81611351565b81546001600160a01b0319166001600160a01b03919091161781556020828101356001838101919091559060028301604085013536869003601e190181126118d257600080fd5b8501803567ffffffffffffffff8111156118eb57600080fd5b80360384830113156118fc57600080fd5b6119108161190a85546116a2565b856116dc565b6000601f821160018114611946576000831561192e57508382018601355b600019600385901b1c1916600184901b17855561199f565b600085815260209020601f19841690835b8281101561197657868501890135825593880193908901908801611957565b50848210156119955760001960f88660031b161c198885880101351681555b50508683881b0185555b505050505050505050565b60208082528181018390526000906040808401600586901b8501820187855b8881101561161c57878303603f190184528135368b9003605e190181126119ef57600080fd5b8a01606081356119fe81611351565b6001600160a01b0316855281880135888601528682013536839003601e19018112611a2857600080fd5b90910187810191903567ffffffffffffffff811115611a4657600080fd5b803603831315611a5557600080fd5b8188870152611a6782870182856117e3565b968901969550505091860191506001016119c9565b808202811582820484141761038c5761038c61165d565b600082611ab057634e487b7160e01b600052601260045260246000fd5b500490565b7f5472616e7366657248656c7065723a20636f756c64206e6f74207472616e7366815269032b9102927a7103a37960b51b602082015260008351611b0081602a850160208801611552565b660103b30b63ab2960cd1b602a918401918201528351611b27816031840160208801611552565b01603101949350505050565b60208152600061046d6020830184611576565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611b7e816017850160208801611552565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611baf816028840160208801611552565b01602801949350505050565b60008251611876818460208701611552565b600081611bdc57611bdc61165d565b506000190190565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220e5a364b75fc6893bc3ff77c8c2c91c3d45566661b28843887c78f343594f602664736f6c63430008150033", + "nonce": "0x3e", + "chainId": "0x7e4" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x3b9a39", + "logs": [ + { + "address": "0x6132f68e5084258ceb12e4d5ede772f544b81f92", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0x337dde8d17ff1633983d01fba6a16e57ebc88ac39df7a1cfb039e21c2587e52b", + "blockNumber": "0x25d64e9", + "transactionHash": "0x0b6223f4072c1d6788afbf72905edd47e052113fb0b5492be769233aba223032", + "transactionIndex": "0x15", + "logIndex": "0x37", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000008400000000000000000080000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x0", + "transactionHash": "0x0b6223f4072c1d6788afbf72905edd47e052113fb0b5492be769233aba223032", + "transactionIndex": "0x15", + "blockHash": "0x337dde8d17ff1633983d01fba6a16e57ebc88ac39df7a1cfb039e21c2587e52b", + "blockNumber": "0x25d64e9", + "gasUsed": "0x18fc3f", + "effectiveGasPrice": "0x4a817c800", + "from": "0x08295771719b138a241f45023b13cc868d72827d", + "to": null, + "contractAddress": "0x6132f68e5084258ceb12e4d5ede772f544b81f92" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1730866136, + "chain": 2020, + "commit": "5dbcc0b" +} \ No newline at end of file diff --git a/broadcast/20241105_UpgradRNSCommissionMainnet.sol/2020/run-latest.json b/broadcast/20241105_UpgradRNSCommissionMainnet.sol/2020/run-latest.json new file mode 100644 index 0000000..eed049f --- /dev/null +++ b/broadcast/20241105_UpgradRNSCommissionMainnet.sol/2020/run-latest.json @@ -0,0 +1,60 @@ +{ + "transactions": [ + { + "hash": "0x0b6223f4072c1d6788afbf72905edd47e052113fb0b5492be769233aba223032", + "transactionType": "CREATE", + "contractName": "RNSCommission", + "contractAddress": "0x6132f68e5084258ceb12e4d5ede772f544b81f92", + "function": null, + "arguments": null, + "transaction": { + "from": "0x08295771719b138a241f45023b13cc868d72827d", + "gas": "0x31f87e", + "value": "0x0", + "input": "0x608060405234801561001057600080fd5b5061001961001e565b6100dd565b600054610100900460ff161561008a5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff908116146100db576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b611c30806100ec6000396000f3fe6080604052600436106100ec5760003560e01c806391cbc73f1161008a578063c42ef38c11610059578063c42ef38c14610297578063ca15c873146102cb578063d547741f146102eb578063e92108b51461030b57600080fd5b806391cbc73f1461022257806391d14854146102425780639fd50e5814610262578063a217fddf1461028257600080fd5b806336568abe116100c657806336568abe146101945780634c255c97146101b45780635dc30fe5146101ca5780639010d07c146101ea57600080fd5b806301ffc9a714610100578063248a9ca3146101355780632f2ff15d1461017457600080fd5b366100fb576100f961032d565b005b600080fd5b34801561010c57600080fd5b5061012061011b36600461130e565b610367565b60405190151581526020015b60405180910390f35b34801561014157600080fd5b50610166610150366004611338565b6000908152600160208190526040909120015490565b60405190815260200161012c565b34801561018057600080fd5b506100f961018f366004611366565b610392565b3480156101a057600080fd5b506100f96101af366004611366565b6103bd565b3480156101c057600080fd5b5061016661271081565b3480156101d657600080fd5b506100f96101e53660046113e2565b610440565b3480156101f657600080fd5b5061020a610205366004611424565b610455565b6040516001600160a01b03909116815260200161012c565b34801561022e57600080fd5b506100f961023d366004611446565b610474565b34801561024e57600080fd5b5061012061025d366004611366565b610605565b34801561026e57600080fd5b506100f961027d3660046114c9565b610630565b34801561028e57600080fd5b50610166600081565b3480156102a357600080fd5b506101667f76d12de99ad2ca162840505be9b657c2e7a650cc3ee0284048f3f9def3c1adf281565b3480156102d757600080fd5b506101666102e6366004611338565b61074e565b3480156102f757600080fd5b506100f9610306366004611366565b610765565b34801561031757600080fd5b5061032061078b565b60405161012c91906115a2565b6103577f76d12de99ad2ca162840505be9b657c2e7a650cc3ee0284048f3f9def3c1adf233610605565b15610365576103653461089c565b565b60006001600160e01b03198216635a05180f60e01b148061038c575061038c82610a87565b92915050565b600082815260016020819052604090912001546103ae81610abc565b6103b88383610ac9565b505050565b6001600160a01b03811633146104325760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61043c8282610aeb565b5050565b600061044b81610abc565b6103b88383610b0d565b600082815260026020526040812061046d9083610c90565b9392505050565b600054610100900460ff16158080156104945750600054600160ff909116105b806104ae5750303b1580156104ae575060005460ff166001145b6105115760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610429565b6000805460ff191660011790558015610534576000805461ff0019166101001790555b61053f600087610c9c565b8160005b818110156105ab5761059b7f76d12de99ad2ca162840505be9b657c2e7a650cc3ee0284048f3f9def3c1adf28686848181106105815761058161162a565b90506020020160208101906105969190611640565b610c9c565b6105a481611673565b9050610543565b506105b68686610b0d565b5080156105fd576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600061063b81610abc565b603554851061065d57604051634ec4810560e11b815260040160405180910390fd5b6001600160a01b0384166106845760405163e99d5ac560e01b815260040160405180910390fd5b83603586815481106106985761069861162a565b906000526020600020906003020160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508282603587815481106106e2576106e261162a565b90600052602060002090600302016002019182610700929190611722565b5084336001600160a01b03167faa3076bb2e00a425a96ce6aa8762a984fe8ed14922e3fba98cfa90683cb05ff886868660405161073f9392919061180c565b60405180910390a35050505050565b600081815260026020526040812061038c90610ca6565b6000828152600160208190526040909120015461078181610abc565b6103b88383610aeb565b60606035805480602002602001604051908101604052809291908181526020016000905b82821015610893576000848152602090819020604080516060810182526003860290920180546001600160a01b0316835260018101549383019390935260028301805492939291840191610802906116a2565b80601f016020809104026020016040519081016040528092919081815260200182805461082e906116a2565b801561087b5780601f106108505761010080835404028352916020019161087b565b820191906000526020600020905b81548152906001019060200180831161085e57829003601f168201915b505050505081525050815260200190600101906107af565b50505050905090565b806000036108a75750565b60355460008190036108cc57604051634ec4810560e11b815260040160405180910390fd5b60006108d960018361183a565b90506000805b828110156109ce57600061091786603584815481106109005761090061162a565b906000526020600020906003020160010154610cb0565b9050610923818461184d565b925061095b6035838154811061093b5761093b61162a565b60009182526020909120600390910201546001600160a01b031682610cc9565b6035828154811061096e5761096e61162a565b6000918252602091829020600390910201546040518381526001600160a01b03909116917fb649c98f58055c520df0dcb5709eff2e931217ff2fb1e21376130d31bbb1c0af910160405180910390a2506109c781611673565b90506108df565b5083811015610a8157610a16603583815481106109ed576109ed61162a565b60009182526020909120600390910201546001600160a01b0316610a11838761183a565b610cc9565b60358281548110610a2957610a2961162a565b60009182526020909120600390910201546001600160a01b03167fb649c98f58055c520df0dcb5709eff2e931217ff2fb1e21376130d31bbb1c0af610a6e838761183a565b6040519081526020015b60405180910390a25b50505050565b60006001600160e01b03198216637965db0b60e01b148061038c57506301ffc9a760e01b6001600160e01b031983161461038c565b610ac68133610d2e565b50565b610ad38282610d61565b60008281526002602052604090206103b89082610dcc565b610af58282610de1565b60008281526002602052604090206103b89082610e48565b806000819003610b3057604051634ec4810560e11b815260040160405180910390fd5b610b3c6035600061126e565b6000805b82811015610c32576000858583818110610b5c57610b5c61162a565b9050602002810190610b6e9190611860565b610b7c906020810190611640565b6001600160a01b031603610ba35760405163e99d5ac560e01b815260040160405180910390fd5b848482818110610bb557610bb561162a565b9050602002810190610bc79190611860565b610bd590602001358361184d565b91506035858583818110610beb57610beb61162a565b9050602002810190610bfd9190611860565b815460018101835560009283526020909220909160030201610c1f8282611880565b505080610c2b90611673565b9050610b40565b506127108114610c555760405163648564d360e01b815260040160405180910390fd5b336001600160a01b03167f28d7f0d68cf2a192abb8ce94479d236f99759d18e31ee7cbfb0a473764374c008585604051610a789291906119aa565b600061046d8383610e5d565b61043c8282610ac9565b600061038c825490565b6000612710610cbf8385611a7c565b61046d9190611a93565b6000610cd58383610e87565b9050806103b857610cee836001600160a01b0316610efd565b610cf783610f13565b604051602001610d08929190611ab5565b60408051601f198184030181529082905262461bcd60e51b825261042991600401611b33565b610d388282610605565b61043c57610d4581610efd565b610d50836020610f26565b604051602001610d08929190611b46565b610d6b8282610605565b61043c5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b600061046d836001600160a01b0384166110c2565b610deb8282610605565b1561043c5760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600061046d836001600160a01b038416611111565b6000826000018281548110610e7457610e7461162a565b9060005260206000200154905092915050565b604080516000808252602082019092526001600160a01b038416908390604051610eb19190611bbb565b60006040518083038185875af1925050503d8060008114610eee576040519150601f19603f3d011682016040523d82523d6000602084013e610ef3565b606091505b5090949350505050565b606061038c6001600160a01b0383166014610f26565b606061038c82610f2284611204565b6001015b60606000610f35836002611a7c565b610f4090600261184d565b67ffffffffffffffff811115610f5857610f5861168c565b6040519080825280601f01601f191660200182016040528015610f82576020820181803683370190505b509050600360fc1b81600081518110610f9d57610f9d61162a565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610fcc57610fcc61162a565b60200101906001600160f81b031916908160001a9053506000610ff0846002611a7c565b610ffb90600161184d565b90505b6001811115611073576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061102f5761102f61162a565b1a60f81b8282815181106110455761104561162a565b60200101906001600160f81b031916908160001a90535060049490941c9361106c81611bcd565b9050610ffe565b50831561046d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610429565b60008181526001830160205260408120546111095750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561038c565b50600061038c565b600081815260018301602052604081205480156111fa57600061113560018361183a565b85549091506000906111499060019061183a565b90508181146111ae5760008660000182815481106111695761116961162a565b906000526020600020015490508087600001848154811061118c5761118c61162a565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806111bf576111bf611be4565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061038c565b600091505061038c565b600080608083901c1561121c5760809290921c916010015b604083901c156112315760409290921c916008015b602083901c156112465760209290921c916004015b601083901c1561125b5760109290921c916002015b600883901c1561038c5760010192915050565b5080546000825560030290600052602060002090810190610ac691905b808211156112c05780546001600160a01b03191681556000600182018190556112b760028301826112c4565b5060030161128b565b5090565b5080546112d0906116a2565b6000825580601f106112e0575050565b601f016020900490600052602060002090810190610ac691905b808211156112c057600081556001016112fa565b60006020828403121561132057600080fd5b81356001600160e01b03198116811461046d57600080fd5b60006020828403121561134a57600080fd5b5035919050565b6001600160a01b0381168114610ac657600080fd5b6000806040838503121561137957600080fd5b82359150602083013561138b81611351565b809150509250929050565b60008083601f8401126113a857600080fd5b50813567ffffffffffffffff8111156113c057600080fd5b6020830191508360208260051b85010111156113db57600080fd5b9250929050565b600080602083850312156113f557600080fd5b823567ffffffffffffffff81111561140c57600080fd5b61141885828601611396565b90969095509350505050565b6000806040838503121561143757600080fd5b50508035926020909101359150565b60008060008060006060868803121561145e57600080fd5b853561146981611351565b9450602086013567ffffffffffffffff8082111561148657600080fd5b61149289838a01611396565b909650945060408801359150808211156114ab57600080fd5b506114b888828901611396565b969995985093965092949392505050565b600080600080606085870312156114df57600080fd5b8435935060208501356114f181611351565b9250604085013567ffffffffffffffff8082111561150e57600080fd5b818701915087601f83011261152257600080fd5b81358181111561153157600080fd5b88602082850101111561154357600080fd5b95989497505060200194505050565b60005b8381101561156d578181015183820152602001611555565b50506000910152565b6000815180845261158e816020860160208601611552565b601f01601f19169290920160200192915050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561161c57888303603f19018552815180516001600160a01b031684528781015188850152860151606087850181905261160881860183611576565b9689019694505050908601906001016115c9565b509098975050505050505050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561165257600080fd5b813561046d81611351565b634e487b7160e01b600052601160045260246000fd5b6000600182016116855761168561165d565b5060010190565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806116b657607f821691505b6020821081036116d657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156103b857600081815260208120601f850160051c810160208610156117035750805b601f850160051c820191505b818110156105fd5782815560010161170f565b67ffffffffffffffff83111561173a5761173a61168c565b61174e8361174883546116a2565b836116dc565b6000601f841160018114611782576000851561176a5750838201355b600019600387901b1c1916600186901b1783556117dc565b600083815260209020601f19861690835b828110156117b35786850135825560209485019460019092019101611793565b50868210156117d05760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038416815260406020820181905260009061183190830184866117e3565b95945050505050565b8181038181111561038c5761038c61165d565b8082018082111561038c5761038c61165d565b60008235605e1983360301811261187657600080fd5b9190910192915050565b813561188b81611351565b81546001600160a01b0319166001600160a01b03919091161781556020828101356001838101919091559060028301604085013536869003601e190181126118d257600080fd5b8501803567ffffffffffffffff8111156118eb57600080fd5b80360384830113156118fc57600080fd5b6119108161190a85546116a2565b856116dc565b6000601f821160018114611946576000831561192e57508382018601355b600019600385901b1c1916600184901b17855561199f565b600085815260209020601f19841690835b8281101561197657868501890135825593880193908901908801611957565b50848210156119955760001960f88660031b161c198885880101351681555b50508683881b0185555b505050505050505050565b60208082528181018390526000906040808401600586901b8501820187855b8881101561161c57878303603f190184528135368b9003605e190181126119ef57600080fd5b8a01606081356119fe81611351565b6001600160a01b0316855281880135888601528682013536839003601e19018112611a2857600080fd5b90910187810191903567ffffffffffffffff811115611a4657600080fd5b803603831315611a5557600080fd5b8188870152611a6782870182856117e3565b968901969550505091860191506001016119c9565b808202811582820484141761038c5761038c61165d565b600082611ab057634e487b7160e01b600052601260045260246000fd5b500490565b7f5472616e7366657248656c7065723a20636f756c64206e6f74207472616e7366815269032b9102927a7103a37960b51b602082015260008351611b0081602a850160208801611552565b660103b30b63ab2960cd1b602a918401918201528351611b27816031840160208801611552565b01603101949350505050565b60208152600061046d6020830184611576565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611b7e816017850160208801611552565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611baf816028840160208801611552565b01602801949350505050565b60008251611876818460208701611552565b600081611bdc57611bdc61165d565b506000190190565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220e5a364b75fc6893bc3ff77c8c2c91c3d45566661b28843887c78f343594f602664736f6c63430008150033", + "nonce": "0x3e", + "chainId": "0x7e4" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x3b9a39", + "logs": [ + { + "address": "0x6132f68e5084258ceb12e4d5ede772f544b81f92", + "topics": [ + "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000ff", + "blockHash": "0x337dde8d17ff1633983d01fba6a16e57ebc88ac39df7a1cfb039e21c2587e52b", + "blockNumber": "0x25d64e9", + "transactionHash": "0x0b6223f4072c1d6788afbf72905edd47e052113fb0b5492be769233aba223032", + "transactionIndex": "0x15", + "logIndex": "0x37", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000008400000000000000000080000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x0", + "transactionHash": "0x0b6223f4072c1d6788afbf72905edd47e052113fb0b5492be769233aba223032", + "transactionIndex": "0x15", + "blockHash": "0x337dde8d17ff1633983d01fba6a16e57ebc88ac39df7a1cfb039e21c2587e52b", + "blockNumber": "0x25d64e9", + "gasUsed": "0x18fc3f", + "effectiveGasPrice": "0x4a817c800", + "from": "0x08295771719b138a241f45023b13cc868d72827d", + "to": null, + "contractAddress": "0x6132f68e5084258ceb12e4d5ede772f544b81f92" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1730866136, + "chain": 2020, + "commit": "5dbcc0b" +} \ No newline at end of file diff --git a/deployments/ronin-mainnet/RNSCommissionLogic.json b/deployments/ronin-mainnet/RNSCommissionLogic.json index e943fc0..fc399df 100644 --- a/deployments/ronin-mainnet/RNSCommissionLogic.json +++ b/deployments/ronin-mainnet/RNSCommissionLogic.json @@ -1,541 +1,16 @@ { - "abi": [ - { - "type": "constructor", - "inputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "receive", - "stateMutability": "payable" - }, - { - "type": "function", - "name": "DEFAULT_ADMIN_ROLE", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "MAX_PERCENTAGE", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "SENDER_ROLE", - "inputs": [], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "getCommissions", - "inputs": [], - "outputs": [ - { - "name": "commissionInfos", - "type": "tuple[]", - "internalType": "struct INSCommission.Commission[]", - "components": [ - { - "name": "recipient", - "type": "address", - "internalType": "address payable" - }, - { - "name": "ratio", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "name", - "type": "string", - "internalType": "string" - } - ] - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "getRoleAdmin", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "getRoleMember", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "index", - "type": "uint256", - "internalType": "uint256" - } - ], - "outputs": [ - { - "name": "", - "type": "address", - "internalType": "address" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "getRoleMemberCount", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - } - ], - "outputs": [ - { - "name": "", - "type": "uint256", - "internalType": "uint256" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "grantRole", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "account", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "hasRole", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "account", - "type": "address", - "internalType": "address" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "function", - "name": "initialize", - "inputs": [ - { - "name": "admin", - "type": "address", - "internalType": "address" - }, - { - "name": "commissionInfos", - "type": "tuple[]", - "internalType": "struct INSCommission.Commission[]", - "components": [ - { - "name": "recipient", - "type": "address", - "internalType": "address payable" - }, - { - "name": "ratio", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "name", - "type": "string", - "internalType": "string" - } - ] - }, - { - "name": "allowedSenders", - "type": "address[]", - "internalType": "address[]" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "renounceRole", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "account", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "revokeRole", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "internalType": "bytes32" - }, - { - "name": "account", - "type": "address", - "internalType": "address" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setCommissionInfo", - "inputs": [ - { - "name": "commissionIdx", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "newRecipient", - "type": "address", - "internalType": "address payable" - }, - { - "name": "newName", - "type": "string", - "internalType": "string" - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "setCommissions", - "inputs": [ - { - "name": "commissionInfos", - "type": "tuple[]", - "internalType": "struct INSCommission.Commission[]", - "components": [ - { - "name": "recipient", - "type": "address", - "internalType": "address payable" - }, - { - "name": "ratio", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "name", - "type": "string", - "internalType": "string" - } - ] - } - ], - "outputs": [], - "stateMutability": "nonpayable" - }, - { - "type": "function", - "name": "supportsInterface", - "inputs": [ - { - "name": "interfaceId", - "type": "bytes4", - "internalType": "bytes4" - } - ], - "outputs": [ - { - "name": "", - "type": "bool", - "internalType": "bool" - } - ], - "stateMutability": "view" - }, - { - "type": "event", - "name": "CommissionInfoUpdated", - "inputs": [ - { - "name": "updatedBy", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "commissionIdx", - "type": "uint256", - "indexed": true, - "internalType": "uint256" - }, - { - "name": "newRecipient", - "type": "address", - "indexed": false, - "internalType": "address payable" - }, - { - "name": "newName", - "type": "string", - "indexed": false, - "internalType": "string" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "CommissionsUpdated", - "inputs": [ - { - "name": "updatedBy", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "commissionInfos", - "type": "tuple[]", - "indexed": false, - "internalType": "struct INSCommission.Commission[]", - "components": [ - { - "name": "recipient", - "type": "address", - "internalType": "address payable" - }, - { - "name": "ratio", - "type": "uint256", - "internalType": "uint256" - }, - { - "name": "name", - "type": "string", - "internalType": "string" - } - ] - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Distributed", - "inputs": [ - { - "name": "recipient", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "commissionAmount", - "type": "uint256", - "indexed": false, - "internalType": "uint256" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "Initialized", - "inputs": [ - { - "name": "version", - "type": "uint8", - "indexed": false, - "internalType": "uint8" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RoleAdminChanged", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "previousAdminRole", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "newAdminRole", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RoleGranted", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "account", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "sender", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "event", - "name": "RoleRevoked", - "inputs": [ - { - "name": "role", - "type": "bytes32", - "indexed": true, - "internalType": "bytes32" - }, - { - "name": "account", - "type": "address", - "indexed": true, - "internalType": "address" - }, - { - "name": "sender", - "type": "address", - "indexed": true, - "internalType": "address" - } - ], - "anonymous": false - }, - { - "type": "error", - "name": "InvalidAmountOfRON", - "inputs": [] - }, - { - "type": "error", - "name": "InvalidArrayLength", - "inputs": [] - }, - { - "type": "error", - "name": "InvalidRatio", - "inputs": [] - }, - { - "type": "error", - "name": "NullAddress", - "inputs": [] - } - ], + "abi": "[{\"type\":\"constructor\",\"inputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"receive\",\"stateMutability\":\"payable\"},{\"type\":\"function\",\"name\":\"DEFAULT_ADMIN_ROLE\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"MAX_PERCENTAGE\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"SENDER_ROLE\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getCommissions\",\"inputs\":[],\"outputs\":[{\"name\":\"commissionInfos\",\"type\":\"tuple[]\",\"internalType\":\"struct INSCommission.Commission[]\",\"components\":[{\"name\":\"recipient\",\"type\":\"address\",\"internalType\":\"address payable\"},{\"name\":\"ratio\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"name\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getRoleAdmin\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getRoleMember\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"index\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getRoleMemberCount\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"grantRole\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"hasRole\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"initialize\",\"inputs\":[{\"name\":\"admin\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"commissionInfos\",\"type\":\"tuple[]\",\"internalType\":\"struct INSCommission.Commission[]\",\"components\":[{\"name\":\"recipient\",\"type\":\"address\",\"internalType\":\"address payable\"},{\"name\":\"ratio\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"name\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"name\":\"allowedSenders\",\"type\":\"address[]\",\"internalType\":\"address[]\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"renounceRole\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"revokeRole\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setCommissionInfo\",\"inputs\":[{\"name\":\"commissionIdx\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"newRecipient\",\"type\":\"address\",\"internalType\":\"address payable\"},{\"name\":\"newName\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setCommissions\",\"inputs\":[{\"name\":\"commissionInfos\",\"type\":\"tuple[]\",\"internalType\":\"struct INSCommission.Commission[]\",\"components\":[{\"name\":\"recipient\",\"type\":\"address\",\"internalType\":\"address payable\"},{\"name\":\"ratio\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"name\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"supportsInterface\",\"inputs\":[{\"name\":\"interfaceId\",\"type\":\"bytes4\",\"internalType\":\"bytes4\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"event\",\"name\":\"CommissionInfoUpdated\",\"inputs\":[{\"name\":\"updatedBy\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"commissionIdx\",\"type\":\"uint256\",\"indexed\":true,\"internalType\":\"uint256\"},{\"name\":\"newRecipient\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address payable\"},{\"name\":\"newName\",\"type\":\"string\",\"indexed\":false,\"internalType\":\"string\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"CommissionsUpdated\",\"inputs\":[{\"name\":\"updatedBy\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"commissionInfos\",\"type\":\"tuple[]\",\"indexed\":false,\"internalType\":\"struct INSCommission.Commission[]\",\"components\":[{\"name\":\"recipient\",\"type\":\"address\",\"internalType\":\"address payable\"},{\"name\":\"ratio\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"name\",\"type\":\"string\",\"internalType\":\"string\"}]}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Distributed\",\"inputs\":[{\"name\":\"recipient\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"commissionAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Initialized\",\"inputs\":[{\"name\":\"version\",\"type\":\"uint8\",\"indexed\":false,\"internalType\":\"uint8\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RoleAdminChanged\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"previousAdminRole\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"newAdminRole\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RoleGranted\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"sender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RoleRevoked\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"sender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"InvalidAmountOfRON\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidArrayLength\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"InvalidRatio\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"NullAddress\",\"inputs\":[]}]", "absolutePath": "RNSCommission.sol", - "address": "0x70D1A6f75161e8D5De10E4AAa82AA1B423B4362a", + "address": "0x6132f68E5084258CEb12e4D5EDE772f544b81F92", "ast": "", - "blockNumber": 36083767, - "bytecode": "0x608060405234801561001057600080fd5b5061001961001e565b6100dd565b600054610100900460ff161561008a5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff908116146100db576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b611c46806100ec6000396000f3fe6080604052600436106100ec5760003560e01c806391cbc73f1161008a578063c42ef38c11610059578063c42ef38c14610297578063ca15c873146102cb578063d547741f146102eb578063e92108b51461030b57600080fd5b806391cbc73f1461022257806391d14854146102425780639fd50e5814610262578063a217fddf1461028257600080fd5b806336568abe116100c657806336568abe146101945780634c255c97146101b45780635dc30fe5146101ca5780639010d07c146101ea57600080fd5b806301ffc9a714610100578063248a9ca3146101355780632f2ff15d1461017457600080fd5b366100fb576100f961032d565b005b600080fd5b34801561010c57600080fd5b5061012061011b366004611324565b610367565b60405190151581526020015b60405180910390f35b34801561014157600080fd5b5061016661015036600461134e565b6000908152600160208190526040909120015490565b60405190815260200161012c565b34801561018057600080fd5b506100f961018f36600461137c565b610392565b3480156101a057600080fd5b506100f96101af36600461137c565b6103bd565b3480156101c057600080fd5b5061016661271081565b3480156101d657600080fd5b506100f96101e53660046113f8565b610440565b3480156101f657600080fd5b5061020a61020536600461143a565b610455565b6040516001600160a01b03909116815260200161012c565b34801561022e57600080fd5b506100f961023d36600461145c565b610474565b34801561024e57600080fd5b5061012061025d36600461137c565b610605565b34801561026e57600080fd5b506100f961027d3660046114df565b610630565b34801561028e57600080fd5b50610166600081565b3480156102a357600080fd5b506101667f76d12de99ad2ca162840505be9b657c2e7a650cc3ee0284048f3f9def3c1adf281565b3480156102d757600080fd5b506101666102e636600461134e565b61074e565b3480156102f757600080fd5b506100f961030636600461137c565b610765565b34801561031757600080fd5b5061032061078b565b60405161012c91906115b8565b6103577f76d12de99ad2ca162840505be9b657c2e7a650cc3ee0284048f3f9def3c1adf233610605565b15610365576103653461089c565b565b60006001600160e01b03198216635a05180f60e01b148061038c575061038c82610a9d565b92915050565b600082815260016020819052604090912001546103ae81610ad2565b6103b88383610adf565b505050565b6001600160a01b03811633146104325760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61043c8282610b01565b5050565b600061044b81610ad2565b6103b88383610b23565b600082815260026020526040812061046d9083610ca6565b9392505050565b600054610100900460ff16158080156104945750600054600160ff909116105b806104ae5750303b1580156104ae575060005460ff166001145b6105115760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610429565b6000805460ff191660011790558015610534576000805461ff0019166101001790555b61053f600087610cb2565b8160005b818110156105ab5761059b7f76d12de99ad2ca162840505be9b657c2e7a650cc3ee0284048f3f9def3c1adf286868481811061058157610581611640565b90506020020160208101906105969190611656565b610cb2565b6105a481611689565b9050610543565b506105b68686610b23565b5080156105fd576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600061063b81610ad2565b603554851061065d57604051634ec4810560e11b815260040160405180910390fd5b6001600160a01b0384166106845760405163e99d5ac560e01b815260040160405180910390fd5b836035868154811061069857610698611640565b906000526020600020906003020160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508282603587815481106106e2576106e2611640565b90600052602060002090600302016002019182610700929190611738565b5084336001600160a01b03167faa3076bb2e00a425a96ce6aa8762a984fe8ed14922e3fba98cfa90683cb05ff886868660405161073f93929190611822565b60405180910390a35050505050565b600081815260026020526040812061038c90610cbc565b6000828152600160208190526040909120015461078181610ad2565b6103b88383610b01565b60606035805480602002602001604051908101604052809291908181526020016000905b82821015610893576000848152602090819020604080516060810182526003860290920180546001600160a01b0316835260018101549383019390935260028301805492939291840191610802906116b8565b80601f016020809104026020016040519081016040528092919081815260200182805461082e906116b8565b801561087b5780601f106108505761010080835404028352916020019161087b565b820191906000526020600020905b81548152906001019060200180831161085e57829003601f168201915b505050505081525050815260200190600101906107af565b50505050905090565b806000036108bd576040516370bf851360e11b815260040160405180910390fd5b60355460008190036108e257604051634ec4810560e11b815260040160405180910390fd5b60006108ef600183611850565b90506000805b828110156109e457600061092d866035848154811061091657610916611640565b906000526020600020906003020160010154610cc6565b90506109398184611863565b92506109716035838154811061095157610951611640565b60009182526020909120600390910201546001600160a01b031682610cdf565b6035828154811061098457610984611640565b6000918252602091829020600390910201546040518381526001600160a01b03909116917fb649c98f58055c520df0dcb5709eff2e931217ff2fb1e21376130d31bbb1c0af910160405180910390a2506109dd81611689565b90506108f5565b5083811015610a9757610a2c60358381548110610a0357610a03611640565b60009182526020909120600390910201546001600160a01b0316610a278387611850565b610cdf565b60358281548110610a3f57610a3f611640565b60009182526020909120600390910201546001600160a01b03167fb649c98f58055c520df0dcb5709eff2e931217ff2fb1e21376130d31bbb1c0af610a848387611850565b6040519081526020015b60405180910390a25b50505050565b60006001600160e01b03198216637965db0b60e01b148061038c57506301ffc9a760e01b6001600160e01b031983161461038c565b610adc8133610d44565b50565b610ae98282610d77565b60008281526002602052604090206103b89082610de2565b610b0b8282610df7565b60008281526002602052604090206103b89082610e5e565b806000819003610b4657604051634ec4810560e11b815260040160405180910390fd5b610b5260356000611284565b6000805b82811015610c48576000858583818110610b7257610b72611640565b9050602002810190610b849190611876565b610b92906020810190611656565b6001600160a01b031603610bb95760405163e99d5ac560e01b815260040160405180910390fd5b848482818110610bcb57610bcb611640565b9050602002810190610bdd9190611876565b610beb906020013583611863565b91506035858583818110610c0157610c01611640565b9050602002810190610c139190611876565b815460018101835560009283526020909220909160030201610c358282611896565b505080610c4190611689565b9050610b56565b506127108114610c6b5760405163648564d360e01b815260040160405180910390fd5b336001600160a01b03167f28d7f0d68cf2a192abb8ce94479d236f99759d18e31ee7cbfb0a473764374c008585604051610a8e9291906119c0565b600061046d8383610e73565b61043c8282610adf565b600061038c825490565b6000612710610cd58385611a92565b61046d9190611aa9565b6000610ceb8383610e9d565b9050806103b857610d04836001600160a01b0316610f13565b610d0d83610f29565b604051602001610d1e929190611acb565b60408051601f198184030181529082905262461bcd60e51b825261042991600401611b49565b610d4e8282610605565b61043c57610d5b81610f13565b610d66836020610f3c565b604051602001610d1e929190611b5c565b610d818282610605565b61043c5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b600061046d836001600160a01b0384166110d8565b610e018282610605565b1561043c5760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600061046d836001600160a01b038416611127565b6000826000018281548110610e8a57610e8a611640565b9060005260206000200154905092915050565b604080516000808252602082019092526001600160a01b038416908390604051610ec79190611bd1565b60006040518083038185875af1925050503d8060008114610f04576040519150601f19603f3d011682016040523d82523d6000602084013e610f09565b606091505b5090949350505050565b606061038c6001600160a01b0383166014610f3c565b606061038c82610f388461121a565b6001015b60606000610f4b836002611a92565b610f56906002611863565b67ffffffffffffffff811115610f6e57610f6e6116a2565b6040519080825280601f01601f191660200182016040528015610f98576020820181803683370190505b509050600360fc1b81600081518110610fb357610fb3611640565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610fe257610fe2611640565b60200101906001600160f81b031916908160001a9053506000611006846002611a92565b611011906001611863565b90505b6001811115611089576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061104557611045611640565b1a60f81b82828151811061105b5761105b611640565b60200101906001600160f81b031916908160001a90535060049490941c9361108281611be3565b9050611014565b50831561046d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610429565b600081815260018301602052604081205461111f5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561038c565b50600061038c565b6000818152600183016020526040812054801561121057600061114b600183611850565b855490915060009061115f90600190611850565b90508181146111c457600086600001828154811061117f5761117f611640565b90600052602060002001549050808760000184815481106111a2576111a2611640565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806111d5576111d5611bfa565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061038c565b600091505061038c565b600080608083901c156112325760809290921c916010015b604083901c156112475760409290921c916008015b602083901c1561125c5760209290921c916004015b601083901c156112715760109290921c916002015b600883901c1561038c5760010192915050565b5080546000825560030290600052602060002090810190610adc91905b808211156112d65780546001600160a01b03191681556000600182018190556112cd60028301826112da565b506003016112a1565b5090565b5080546112e6906116b8565b6000825580601f106112f6575050565b601f016020900490600052602060002090810190610adc91905b808211156112d65760008155600101611310565b60006020828403121561133657600080fd5b81356001600160e01b03198116811461046d57600080fd5b60006020828403121561136057600080fd5b5035919050565b6001600160a01b0381168114610adc57600080fd5b6000806040838503121561138f57600080fd5b8235915060208301356113a181611367565b809150509250929050565b60008083601f8401126113be57600080fd5b50813567ffffffffffffffff8111156113d657600080fd5b6020830191508360208260051b85010111156113f157600080fd5b9250929050565b6000806020838503121561140b57600080fd5b823567ffffffffffffffff81111561142257600080fd5b61142e858286016113ac565b90969095509350505050565b6000806040838503121561144d57600080fd5b50508035926020909101359150565b60008060008060006060868803121561147457600080fd5b853561147f81611367565b9450602086013567ffffffffffffffff8082111561149c57600080fd5b6114a889838a016113ac565b909650945060408801359150808211156114c157600080fd5b506114ce888289016113ac565b969995985093965092949392505050565b600080600080606085870312156114f557600080fd5b84359350602085013561150781611367565b9250604085013567ffffffffffffffff8082111561152457600080fd5b818701915087601f83011261153857600080fd5b81358181111561154757600080fd5b88602082850101111561155957600080fd5b95989497505060200194505050565b60005b8381101561158357818101518382015260200161156b565b50506000910152565b600081518084526115a4816020860160208601611568565b601f01601f19169290920160200192915050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561163257888303603f19018552815180516001600160a01b031684528781015188850152860151606087850181905261161e8186018361158c565b9689019694505050908601906001016115df565b509098975050505050505050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561166857600080fd5b813561046d81611367565b634e487b7160e01b600052601160045260246000fd5b60006001820161169b5761169b611673565b5060010190565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806116cc57607f821691505b6020821081036116ec57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156103b857600081815260208120601f850160051c810160208610156117195750805b601f850160051c820191505b818110156105fd57828155600101611725565b67ffffffffffffffff831115611750576117506116a2565b6117648361175e83546116b8565b836116f2565b6000601f84116001811461179857600085156117805750838201355b600019600387901b1c1916600186901b1783556117f2565b600083815260209020601f19861690835b828110156117c957868501358255602094850194600190920191016117a9565b50868210156117e65760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038416815260406020820181905260009061184790830184866117f9565b95945050505050565b8181038181111561038c5761038c611673565b8082018082111561038c5761038c611673565b60008235605e1983360301811261188c57600080fd5b9190910192915050565b81356118a181611367565b81546001600160a01b0319166001600160a01b03919091161781556020828101356001838101919091559060028301604085013536869003601e190181126118e857600080fd5b8501803567ffffffffffffffff81111561190157600080fd5b803603848301131561191257600080fd5b6119268161192085546116b8565b856116f2565b6000601f82116001811461195c576000831561194457508382018601355b600019600385901b1c1916600184901b1785556119b5565b600085815260209020601f19841690835b8281101561198c5786850189013582559388019390890190880161196d565b50848210156119ab5760001960f88660031b161c198885880101351681555b50508683881b0185555b505050505050505050565b60208082528181018390526000906040808401600586901b8501820187855b8881101561163257878303603f190184528135368b9003605e19018112611a0557600080fd5b8a0160608135611a1481611367565b6001600160a01b0316855281880135888601528682013536839003601e19018112611a3e57600080fd5b90910187810191903567ffffffffffffffff811115611a5c57600080fd5b803603831315611a6b57600080fd5b8188870152611a7d82870182856117f9565b968901969550505091860191506001016119df565b808202811582820484141761038c5761038c611673565b600082611ac657634e487b7160e01b600052601260045260246000fd5b500490565b7f5472616e7366657248656c7065723a20636f756c64206e6f74207472616e7366815269032b9102927a7103a37960b51b602082015260008351611b1681602a850160208801611568565b660103b30b63ab2960cd1b602a918401918201528351611b3d816031840160208801611568565b01603101949350505050565b60208152600061046d602083018461158c565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611b94816017850160208801611568565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611bc5816028840160208801611568565b01602801949350505050565b6000825161188c818460208701611568565b600081611bf257611bf2611673565b506000190190565b634e487b7160e01b600052603160045260246000fdfea26469706673582212208d51978c729b6a9c0e0ecd5b61562f366dfd09974e656890ad9d58de84f6745264736f6c63430008150033", + "blockNumber": 39675102, + "bytecode": "\"0x608060405234801561001057600080fd5b5061001961001e565b6100dd565b600054610100900460ff161561008a5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff908116146100db576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b611c30806100ec6000396000f3fe6080604052600436106100ec5760003560e01c806391cbc73f1161008a578063c42ef38c11610059578063c42ef38c14610297578063ca15c873146102cb578063d547741f146102eb578063e92108b51461030b57600080fd5b806391cbc73f1461022257806391d14854146102425780639fd50e5814610262578063a217fddf1461028257600080fd5b806336568abe116100c657806336568abe146101945780634c255c97146101b45780635dc30fe5146101ca5780639010d07c146101ea57600080fd5b806301ffc9a714610100578063248a9ca3146101355780632f2ff15d1461017457600080fd5b366100fb576100f961032d565b005b600080fd5b34801561010c57600080fd5b5061012061011b36600461130e565b610367565b60405190151581526020015b60405180910390f35b34801561014157600080fd5b50610166610150366004611338565b6000908152600160208190526040909120015490565b60405190815260200161012c565b34801561018057600080fd5b506100f961018f366004611366565b610392565b3480156101a057600080fd5b506100f96101af366004611366565b6103bd565b3480156101c057600080fd5b5061016661271081565b3480156101d657600080fd5b506100f96101e53660046113e2565b610440565b3480156101f657600080fd5b5061020a610205366004611424565b610455565b6040516001600160a01b03909116815260200161012c565b34801561022e57600080fd5b506100f961023d366004611446565b610474565b34801561024e57600080fd5b5061012061025d366004611366565b610605565b34801561026e57600080fd5b506100f961027d3660046114c9565b610630565b34801561028e57600080fd5b50610166600081565b3480156102a357600080fd5b506101667f76d12de99ad2ca162840505be9b657c2e7a650cc3ee0284048f3f9def3c1adf281565b3480156102d757600080fd5b506101666102e6366004611338565b61074e565b3480156102f757600080fd5b506100f9610306366004611366565b610765565b34801561031757600080fd5b5061032061078b565b60405161012c91906115a2565b6103577f76d12de99ad2ca162840505be9b657c2e7a650cc3ee0284048f3f9def3c1adf233610605565b15610365576103653461089c565b565b60006001600160e01b03198216635a05180f60e01b148061038c575061038c82610a87565b92915050565b600082815260016020819052604090912001546103ae81610abc565b6103b88383610ac9565b505050565b6001600160a01b03811633146104325760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61043c8282610aeb565b5050565b600061044b81610abc565b6103b88383610b0d565b600082815260026020526040812061046d9083610c90565b9392505050565b600054610100900460ff16158080156104945750600054600160ff909116105b806104ae5750303b1580156104ae575060005460ff166001145b6105115760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610429565b6000805460ff191660011790558015610534576000805461ff0019166101001790555b61053f600087610c9c565b8160005b818110156105ab5761059b7f76d12de99ad2ca162840505be9b657c2e7a650cc3ee0284048f3f9def3c1adf28686848181106105815761058161162a565b90506020020160208101906105969190611640565b610c9c565b6105a481611673565b9050610543565b506105b68686610b0d565b5080156105fd576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600061063b81610abc565b603554851061065d57604051634ec4810560e11b815260040160405180910390fd5b6001600160a01b0384166106845760405163e99d5ac560e01b815260040160405180910390fd5b83603586815481106106985761069861162a565b906000526020600020906003020160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508282603587815481106106e2576106e261162a565b90600052602060002090600302016002019182610700929190611722565b5084336001600160a01b03167faa3076bb2e00a425a96ce6aa8762a984fe8ed14922e3fba98cfa90683cb05ff886868660405161073f9392919061180c565b60405180910390a35050505050565b600081815260026020526040812061038c90610ca6565b6000828152600160208190526040909120015461078181610abc565b6103b88383610aeb565b60606035805480602002602001604051908101604052809291908181526020016000905b82821015610893576000848152602090819020604080516060810182526003860290920180546001600160a01b0316835260018101549383019390935260028301805492939291840191610802906116a2565b80601f016020809104026020016040519081016040528092919081815260200182805461082e906116a2565b801561087b5780601f106108505761010080835404028352916020019161087b565b820191906000526020600020905b81548152906001019060200180831161085e57829003601f168201915b505050505081525050815260200190600101906107af565b50505050905090565b806000036108a75750565b60355460008190036108cc57604051634ec4810560e11b815260040160405180910390fd5b60006108d960018361183a565b90506000805b828110156109ce57600061091786603584815481106109005761090061162a565b906000526020600020906003020160010154610cb0565b9050610923818461184d565b925061095b6035838154811061093b5761093b61162a565b60009182526020909120600390910201546001600160a01b031682610cc9565b6035828154811061096e5761096e61162a565b6000918252602091829020600390910201546040518381526001600160a01b03909116917fb649c98f58055c520df0dcb5709eff2e931217ff2fb1e21376130d31bbb1c0af910160405180910390a2506109c781611673565b90506108df565b5083811015610a8157610a16603583815481106109ed576109ed61162a565b60009182526020909120600390910201546001600160a01b0316610a11838761183a565b610cc9565b60358281548110610a2957610a2961162a565b60009182526020909120600390910201546001600160a01b03167fb649c98f58055c520df0dcb5709eff2e931217ff2fb1e21376130d31bbb1c0af610a6e838761183a565b6040519081526020015b60405180910390a25b50505050565b60006001600160e01b03198216637965db0b60e01b148061038c57506301ffc9a760e01b6001600160e01b031983161461038c565b610ac68133610d2e565b50565b610ad38282610d61565b60008281526002602052604090206103b89082610dcc565b610af58282610de1565b60008281526002602052604090206103b89082610e48565b806000819003610b3057604051634ec4810560e11b815260040160405180910390fd5b610b3c6035600061126e565b6000805b82811015610c32576000858583818110610b5c57610b5c61162a565b9050602002810190610b6e9190611860565b610b7c906020810190611640565b6001600160a01b031603610ba35760405163e99d5ac560e01b815260040160405180910390fd5b848482818110610bb557610bb561162a565b9050602002810190610bc79190611860565b610bd590602001358361184d565b91506035858583818110610beb57610beb61162a565b9050602002810190610bfd9190611860565b815460018101835560009283526020909220909160030201610c1f8282611880565b505080610c2b90611673565b9050610b40565b506127108114610c555760405163648564d360e01b815260040160405180910390fd5b336001600160a01b03167f28d7f0d68cf2a192abb8ce94479d236f99759d18e31ee7cbfb0a473764374c008585604051610a789291906119aa565b600061046d8383610e5d565b61043c8282610ac9565b600061038c825490565b6000612710610cbf8385611a7c565b61046d9190611a93565b6000610cd58383610e87565b9050806103b857610cee836001600160a01b0316610efd565b610cf783610f13565b604051602001610d08929190611ab5565b60408051601f198184030181529082905262461bcd60e51b825261042991600401611b33565b610d388282610605565b61043c57610d4581610efd565b610d50836020610f26565b604051602001610d08929190611b46565b610d6b8282610605565b61043c5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b600061046d836001600160a01b0384166110c2565b610deb8282610605565b1561043c5760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600061046d836001600160a01b038416611111565b6000826000018281548110610e7457610e7461162a565b9060005260206000200154905092915050565b604080516000808252602082019092526001600160a01b038416908390604051610eb19190611bbb565b60006040518083038185875af1925050503d8060008114610eee576040519150601f19603f3d011682016040523d82523d6000602084013e610ef3565b606091505b5090949350505050565b606061038c6001600160a01b0383166014610f26565b606061038c82610f2284611204565b6001015b60606000610f35836002611a7c565b610f4090600261184d565b67ffffffffffffffff811115610f5857610f5861168c565b6040519080825280601f01601f191660200182016040528015610f82576020820181803683370190505b509050600360fc1b81600081518110610f9d57610f9d61162a565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610fcc57610fcc61162a565b60200101906001600160f81b031916908160001a9053506000610ff0846002611a7c565b610ffb90600161184d565b90505b6001811115611073576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061102f5761102f61162a565b1a60f81b8282815181106110455761104561162a565b60200101906001600160f81b031916908160001a90535060049490941c9361106c81611bcd565b9050610ffe565b50831561046d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610429565b60008181526001830160205260408120546111095750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561038c565b50600061038c565b600081815260018301602052604081205480156111fa57600061113560018361183a565b85549091506000906111499060019061183a565b90508181146111ae5760008660000182815481106111695761116961162a565b906000526020600020015490508087600001848154811061118c5761118c61162a565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806111bf576111bf611be4565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061038c565b600091505061038c565b600080608083901c1561121c5760809290921c916010015b604083901c156112315760409290921c916008015b602083901c156112465760209290921c916004015b601083901c1561125b5760109290921c916002015b600883901c1561038c5760010192915050565b5080546000825560030290600052602060002090810190610ac691905b808211156112c05780546001600160a01b03191681556000600182018190556112b760028301826112c4565b5060030161128b565b5090565b5080546112d0906116a2565b6000825580601f106112e0575050565b601f016020900490600052602060002090810190610ac691905b808211156112c057600081556001016112fa565b60006020828403121561132057600080fd5b81356001600160e01b03198116811461046d57600080fd5b60006020828403121561134a57600080fd5b5035919050565b6001600160a01b0381168114610ac657600080fd5b6000806040838503121561137957600080fd5b82359150602083013561138b81611351565b809150509250929050565b60008083601f8401126113a857600080fd5b50813567ffffffffffffffff8111156113c057600080fd5b6020830191508360208260051b85010111156113db57600080fd5b9250929050565b600080602083850312156113f557600080fd5b823567ffffffffffffffff81111561140c57600080fd5b61141885828601611396565b90969095509350505050565b6000806040838503121561143757600080fd5b50508035926020909101359150565b60008060008060006060868803121561145e57600080fd5b853561146981611351565b9450602086013567ffffffffffffffff8082111561148657600080fd5b61149289838a01611396565b909650945060408801359150808211156114ab57600080fd5b506114b888828901611396565b969995985093965092949392505050565b600080600080606085870312156114df57600080fd5b8435935060208501356114f181611351565b9250604085013567ffffffffffffffff8082111561150e57600080fd5b818701915087601f83011261152257600080fd5b81358181111561153157600080fd5b88602082850101111561154357600080fd5b95989497505060200194505050565b60005b8381101561156d578181015183820152602001611555565b50506000910152565b6000815180845261158e816020860160208601611552565b601f01601f19169290920160200192915050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561161c57888303603f19018552815180516001600160a01b031684528781015188850152860151606087850181905261160881860183611576565b9689019694505050908601906001016115c9565b509098975050505050505050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561165257600080fd5b813561046d81611351565b634e487b7160e01b600052601160045260246000fd5b6000600182016116855761168561165d565b5060010190565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806116b657607f821691505b6020821081036116d657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156103b857600081815260208120601f850160051c810160208610156117035750805b601f850160051c820191505b818110156105fd5782815560010161170f565b67ffffffffffffffff83111561173a5761173a61168c565b61174e8361174883546116a2565b836116dc565b6000601f841160018114611782576000851561176a5750838201355b600019600387901b1c1916600186901b1783556117dc565b600083815260209020601f19861690835b828110156117b35786850135825560209485019460019092019101611793565b50868210156117d05760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038416815260406020820181905260009061183190830184866117e3565b95945050505050565b8181038181111561038c5761038c61165d565b8082018082111561038c5761038c61165d565b60008235605e1983360301811261187657600080fd5b9190910192915050565b813561188b81611351565b81546001600160a01b0319166001600160a01b03919091161781556020828101356001838101919091559060028301604085013536869003601e190181126118d257600080fd5b8501803567ffffffffffffffff8111156118eb57600080fd5b80360384830113156118fc57600080fd5b6119108161190a85546116a2565b856116dc565b6000601f821160018114611946576000831561192e57508382018601355b600019600385901b1c1916600184901b17855561199f565b600085815260209020601f19841690835b8281101561197657868501890135825593880193908901908801611957565b50848210156119955760001960f88660031b161c198885880101351681555b50508683881b0185555b505050505050505050565b60208082528181018390526000906040808401600586901b8501820187855b8881101561161c57878303603f190184528135368b9003605e190181126119ef57600080fd5b8a01606081356119fe81611351565b6001600160a01b0316855281880135888601528682013536839003601e19018112611a2857600080fd5b90910187810191903567ffffffffffffffff811115611a4657600080fd5b803603831315611a5557600080fd5b8188870152611a6782870182856117e3565b968901969550505091860191506001016119c9565b808202811582820484141761038c5761038c61165d565b600082611ab057634e487b7160e01b600052601260045260246000fd5b500490565b7f5472616e7366657248656c7065723a20636f756c64206e6f74207472616e7366815269032b9102927a7103a37960b51b602082015260008351611b0081602a850160208801611552565b660103b30b63ab2960cd1b602a918401918201528351611b27816031840160208801611552565b01603101949350505050565b60208152600061046d6020830184611576565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611b7e816017850160208801611552565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611baf816028840160208801611552565b01602801949350505050565b60008251611876818460208701611552565b600081611bdc57611bdc61165d565b506000190190565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220e5a364b75fc6893bc3ff77c8c2c91c3d45566661b28843887c78f343594f602664736f6c63430008150033\"", "callValue": 0, "chainId": 2020, "constructorArgs": "0x", "contractName": "RNSCommission", - "deployedBytecode": "0x6080604052600436106100ec5760003560e01c806391cbc73f1161008a578063c42ef38c11610059578063c42ef38c14610297578063ca15c873146102cb578063d547741f146102eb578063e92108b51461030b57600080fd5b806391cbc73f1461022257806391d14854146102425780639fd50e5814610262578063a217fddf1461028257600080fd5b806336568abe116100c657806336568abe146101945780634c255c97146101b45780635dc30fe5146101ca5780639010d07c146101ea57600080fd5b806301ffc9a714610100578063248a9ca3146101355780632f2ff15d1461017457600080fd5b366100fb576100f961032d565b005b600080fd5b34801561010c57600080fd5b5061012061011b366004611324565b610367565b60405190151581526020015b60405180910390f35b34801561014157600080fd5b5061016661015036600461134e565b6000908152600160208190526040909120015490565b60405190815260200161012c565b34801561018057600080fd5b506100f961018f36600461137c565b610392565b3480156101a057600080fd5b506100f96101af36600461137c565b6103bd565b3480156101c057600080fd5b5061016661271081565b3480156101d657600080fd5b506100f96101e53660046113f8565b610440565b3480156101f657600080fd5b5061020a61020536600461143a565b610455565b6040516001600160a01b03909116815260200161012c565b34801561022e57600080fd5b506100f961023d36600461145c565b610474565b34801561024e57600080fd5b5061012061025d36600461137c565b610605565b34801561026e57600080fd5b506100f961027d3660046114df565b610630565b34801561028e57600080fd5b50610166600081565b3480156102a357600080fd5b506101667f76d12de99ad2ca162840505be9b657c2e7a650cc3ee0284048f3f9def3c1adf281565b3480156102d757600080fd5b506101666102e636600461134e565b61074e565b3480156102f757600080fd5b506100f961030636600461137c565b610765565b34801561031757600080fd5b5061032061078b565b60405161012c91906115b8565b6103577f76d12de99ad2ca162840505be9b657c2e7a650cc3ee0284048f3f9def3c1adf233610605565b15610365576103653461089c565b565b60006001600160e01b03198216635a05180f60e01b148061038c575061038c82610a9d565b92915050565b600082815260016020819052604090912001546103ae81610ad2565b6103b88383610adf565b505050565b6001600160a01b03811633146104325760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61043c8282610b01565b5050565b600061044b81610ad2565b6103b88383610b23565b600082815260026020526040812061046d9083610ca6565b9392505050565b600054610100900460ff16158080156104945750600054600160ff909116105b806104ae5750303b1580156104ae575060005460ff166001145b6105115760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610429565b6000805460ff191660011790558015610534576000805461ff0019166101001790555b61053f600087610cb2565b8160005b818110156105ab5761059b7f76d12de99ad2ca162840505be9b657c2e7a650cc3ee0284048f3f9def3c1adf286868481811061058157610581611640565b90506020020160208101906105969190611656565b610cb2565b6105a481611689565b9050610543565b506105b68686610b23565b5080156105fd576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600061063b81610ad2565b603554851061065d57604051634ec4810560e11b815260040160405180910390fd5b6001600160a01b0384166106845760405163e99d5ac560e01b815260040160405180910390fd5b836035868154811061069857610698611640565b906000526020600020906003020160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508282603587815481106106e2576106e2611640565b90600052602060002090600302016002019182610700929190611738565b5084336001600160a01b03167faa3076bb2e00a425a96ce6aa8762a984fe8ed14922e3fba98cfa90683cb05ff886868660405161073f93929190611822565b60405180910390a35050505050565b600081815260026020526040812061038c90610cbc565b6000828152600160208190526040909120015461078181610ad2565b6103b88383610b01565b60606035805480602002602001604051908101604052809291908181526020016000905b82821015610893576000848152602090819020604080516060810182526003860290920180546001600160a01b0316835260018101549383019390935260028301805492939291840191610802906116b8565b80601f016020809104026020016040519081016040528092919081815260200182805461082e906116b8565b801561087b5780601f106108505761010080835404028352916020019161087b565b820191906000526020600020905b81548152906001019060200180831161085e57829003601f168201915b505050505081525050815260200190600101906107af565b50505050905090565b806000036108bd576040516370bf851360e11b815260040160405180910390fd5b60355460008190036108e257604051634ec4810560e11b815260040160405180910390fd5b60006108ef600183611850565b90506000805b828110156109e457600061092d866035848154811061091657610916611640565b906000526020600020906003020160010154610cc6565b90506109398184611863565b92506109716035838154811061095157610951611640565b60009182526020909120600390910201546001600160a01b031682610cdf565b6035828154811061098457610984611640565b6000918252602091829020600390910201546040518381526001600160a01b03909116917fb649c98f58055c520df0dcb5709eff2e931217ff2fb1e21376130d31bbb1c0af910160405180910390a2506109dd81611689565b90506108f5565b5083811015610a9757610a2c60358381548110610a0357610a03611640565b60009182526020909120600390910201546001600160a01b0316610a278387611850565b610cdf565b60358281548110610a3f57610a3f611640565b60009182526020909120600390910201546001600160a01b03167fb649c98f58055c520df0dcb5709eff2e931217ff2fb1e21376130d31bbb1c0af610a848387611850565b6040519081526020015b60405180910390a25b50505050565b60006001600160e01b03198216637965db0b60e01b148061038c57506301ffc9a760e01b6001600160e01b031983161461038c565b610adc8133610d44565b50565b610ae98282610d77565b60008281526002602052604090206103b89082610de2565b610b0b8282610df7565b60008281526002602052604090206103b89082610e5e565b806000819003610b4657604051634ec4810560e11b815260040160405180910390fd5b610b5260356000611284565b6000805b82811015610c48576000858583818110610b7257610b72611640565b9050602002810190610b849190611876565b610b92906020810190611656565b6001600160a01b031603610bb95760405163e99d5ac560e01b815260040160405180910390fd5b848482818110610bcb57610bcb611640565b9050602002810190610bdd9190611876565b610beb906020013583611863565b91506035858583818110610c0157610c01611640565b9050602002810190610c139190611876565b815460018101835560009283526020909220909160030201610c358282611896565b505080610c4190611689565b9050610b56565b506127108114610c6b5760405163648564d360e01b815260040160405180910390fd5b336001600160a01b03167f28d7f0d68cf2a192abb8ce94479d236f99759d18e31ee7cbfb0a473764374c008585604051610a8e9291906119c0565b600061046d8383610e73565b61043c8282610adf565b600061038c825490565b6000612710610cd58385611a92565b61046d9190611aa9565b6000610ceb8383610e9d565b9050806103b857610d04836001600160a01b0316610f13565b610d0d83610f29565b604051602001610d1e929190611acb565b60408051601f198184030181529082905262461bcd60e51b825261042991600401611b49565b610d4e8282610605565b61043c57610d5b81610f13565b610d66836020610f3c565b604051602001610d1e929190611b5c565b610d818282610605565b61043c5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b600061046d836001600160a01b0384166110d8565b610e018282610605565b1561043c5760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600061046d836001600160a01b038416611127565b6000826000018281548110610e8a57610e8a611640565b9060005260206000200154905092915050565b604080516000808252602082019092526001600160a01b038416908390604051610ec79190611bd1565b60006040518083038185875af1925050503d8060008114610f04576040519150601f19603f3d011682016040523d82523d6000602084013e610f09565b606091505b5090949350505050565b606061038c6001600160a01b0383166014610f3c565b606061038c82610f388461121a565b6001015b60606000610f4b836002611a92565b610f56906002611863565b67ffffffffffffffff811115610f6e57610f6e6116a2565b6040519080825280601f01601f191660200182016040528015610f98576020820181803683370190505b509050600360fc1b81600081518110610fb357610fb3611640565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610fe257610fe2611640565b60200101906001600160f81b031916908160001a9053506000611006846002611a92565b611011906001611863565b90505b6001811115611089576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061104557611045611640565b1a60f81b82828151811061105b5761105b611640565b60200101906001600160f81b031916908160001a90535060049490941c9361108281611be3565b9050611014565b50831561046d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610429565b600081815260018301602052604081205461111f5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561038c565b50600061038c565b6000818152600183016020526040812054801561121057600061114b600183611850565b855490915060009061115f90600190611850565b90508181146111c457600086600001828154811061117f5761117f611640565b90600052602060002001549050808760000184815481106111a2576111a2611640565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806111d5576111d5611bfa565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061038c565b600091505061038c565b600080608083901c156112325760809290921c916010015b604083901c156112475760409290921c916008015b602083901c1561125c5760209290921c916004015b601083901c156112715760109290921c916002015b600883901c1561038c5760010192915050565b5080546000825560030290600052602060002090810190610adc91905b808211156112d65780546001600160a01b03191681556000600182018190556112cd60028301826112da565b506003016112a1565b5090565b5080546112e6906116b8565b6000825580601f106112f6575050565b601f016020900490600052602060002090810190610adc91905b808211156112d65760008155600101611310565b60006020828403121561133657600080fd5b81356001600160e01b03198116811461046d57600080fd5b60006020828403121561136057600080fd5b5035919050565b6001600160a01b0381168114610adc57600080fd5b6000806040838503121561138f57600080fd5b8235915060208301356113a181611367565b809150509250929050565b60008083601f8401126113be57600080fd5b50813567ffffffffffffffff8111156113d657600080fd5b6020830191508360208260051b85010111156113f157600080fd5b9250929050565b6000806020838503121561140b57600080fd5b823567ffffffffffffffff81111561142257600080fd5b61142e858286016113ac565b90969095509350505050565b6000806040838503121561144d57600080fd5b50508035926020909101359150565b60008060008060006060868803121561147457600080fd5b853561147f81611367565b9450602086013567ffffffffffffffff8082111561149c57600080fd5b6114a889838a016113ac565b909650945060408801359150808211156114c157600080fd5b506114ce888289016113ac565b969995985093965092949392505050565b600080600080606085870312156114f557600080fd5b84359350602085013561150781611367565b9250604085013567ffffffffffffffff8082111561152457600080fd5b818701915087601f83011261153857600080fd5b81358181111561154757600080fd5b88602082850101111561155957600080fd5b95989497505060200194505050565b60005b8381101561158357818101518382015260200161156b565b50506000910152565b600081518084526115a4816020860160208601611568565b601f01601f19169290920160200192915050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561163257888303603f19018552815180516001600160a01b031684528781015188850152860151606087850181905261161e8186018361158c565b9689019694505050908601906001016115df565b509098975050505050505050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561166857600080fd5b813561046d81611367565b634e487b7160e01b600052601160045260246000fd5b60006001820161169b5761169b611673565b5060010190565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806116cc57607f821691505b6020821081036116ec57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156103b857600081815260208120601f850160051c810160208610156117195750805b601f850160051c820191505b818110156105fd57828155600101611725565b67ffffffffffffffff831115611750576117506116a2565b6117648361175e83546116b8565b836116f2565b6000601f84116001811461179857600085156117805750838201355b600019600387901b1c1916600186901b1783556117f2565b600083815260209020601f19861690835b828110156117c957868501358255602094850194600190920191016117a9565b50868210156117e65760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038416815260406020820181905260009061184790830184866117f9565b95945050505050565b8181038181111561038c5761038c611673565b8082018082111561038c5761038c611673565b60008235605e1983360301811261188c57600080fd5b9190910192915050565b81356118a181611367565b81546001600160a01b0319166001600160a01b03919091161781556020828101356001838101919091559060028301604085013536869003601e190181126118e857600080fd5b8501803567ffffffffffffffff81111561190157600080fd5b803603848301131561191257600080fd5b6119268161192085546116b8565b856116f2565b6000601f82116001811461195c576000831561194457508382018601355b600019600385901b1c1916600184901b1785556119b5565b600085815260209020601f19841690835b8281101561198c5786850189013582559388019390890190880161196d565b50848210156119ab5760001960f88660031b161c198885880101351681555b50508683881b0185555b505050505050505050565b60208082528181018390526000906040808401600586901b8501820187855b8881101561163257878303603f190184528135368b9003605e19018112611a0557600080fd5b8a0160608135611a1481611367565b6001600160a01b0316855281880135888601528682013536839003601e19018112611a3e57600080fd5b90910187810191903567ffffffffffffffff811115611a5c57600080fd5b803603831315611a6b57600080fd5b8188870152611a7d82870182856117f9565b968901969550505091860191506001016119df565b808202811582820484141761038c5761038c611673565b600082611ac657634e487b7160e01b600052601260045260246000fd5b500490565b7f5472616e7366657248656c7065723a20636f756c64206e6f74207472616e7366815269032b9102927a7103a37960b51b602082015260008351611b1681602a850160208801611568565b660103b30b63ab2960cd1b602a918401918201528351611b3d816031840160208801611568565b01603101949350505050565b60208152600061046d602083018461158c565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611b94816017850160208801611568565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611bc5816028840160208801611568565b01602801949350505050565b6000825161188c818460208701611568565b600081611bf257611bf2611673565b506000190190565b634e487b7160e01b600052603160045260246000fdfea26469706673582212208d51978c729b6a9c0e0ecd5b61562f366dfd09974e656890ad9d58de84f6745264736f6c63430008150033", - "deployer": "0x4d58Ea7231c394d5804e8B06B1365915f906E27F", + "deployedBytecode": "\"0x6080604052600436106100ec5760003560e01c806391cbc73f1161008a578063c42ef38c11610059578063c42ef38c14610297578063ca15c873146102cb578063d547741f146102eb578063e92108b51461030b57600080fd5b806391cbc73f1461022257806391d14854146102425780639fd50e5814610262578063a217fddf1461028257600080fd5b806336568abe116100c657806336568abe146101945780634c255c97146101b45780635dc30fe5146101ca5780639010d07c146101ea57600080fd5b806301ffc9a714610100578063248a9ca3146101355780632f2ff15d1461017457600080fd5b366100fb576100f961032d565b005b600080fd5b34801561010c57600080fd5b5061012061011b36600461130e565b610367565b60405190151581526020015b60405180910390f35b34801561014157600080fd5b50610166610150366004611338565b6000908152600160208190526040909120015490565b60405190815260200161012c565b34801561018057600080fd5b506100f961018f366004611366565b610392565b3480156101a057600080fd5b506100f96101af366004611366565b6103bd565b3480156101c057600080fd5b5061016661271081565b3480156101d657600080fd5b506100f96101e53660046113e2565b610440565b3480156101f657600080fd5b5061020a610205366004611424565b610455565b6040516001600160a01b03909116815260200161012c565b34801561022e57600080fd5b506100f961023d366004611446565b610474565b34801561024e57600080fd5b5061012061025d366004611366565b610605565b34801561026e57600080fd5b506100f961027d3660046114c9565b610630565b34801561028e57600080fd5b50610166600081565b3480156102a357600080fd5b506101667f76d12de99ad2ca162840505be9b657c2e7a650cc3ee0284048f3f9def3c1adf281565b3480156102d757600080fd5b506101666102e6366004611338565b61074e565b3480156102f757600080fd5b506100f9610306366004611366565b610765565b34801561031757600080fd5b5061032061078b565b60405161012c91906115a2565b6103577f76d12de99ad2ca162840505be9b657c2e7a650cc3ee0284048f3f9def3c1adf233610605565b15610365576103653461089c565b565b60006001600160e01b03198216635a05180f60e01b148061038c575061038c82610a87565b92915050565b600082815260016020819052604090912001546103ae81610abc565b6103b88383610ac9565b505050565b6001600160a01b03811633146104325760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61043c8282610aeb565b5050565b600061044b81610abc565b6103b88383610b0d565b600082815260026020526040812061046d9083610c90565b9392505050565b600054610100900460ff16158080156104945750600054600160ff909116105b806104ae5750303b1580156104ae575060005460ff166001145b6105115760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610429565b6000805460ff191660011790558015610534576000805461ff0019166101001790555b61053f600087610c9c565b8160005b818110156105ab5761059b7f76d12de99ad2ca162840505be9b657c2e7a650cc3ee0284048f3f9def3c1adf28686848181106105815761058161162a565b90506020020160208101906105969190611640565b610c9c565b6105a481611673565b9050610543565b506105b68686610b0d565b5080156105fd576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600061063b81610abc565b603554851061065d57604051634ec4810560e11b815260040160405180910390fd5b6001600160a01b0384166106845760405163e99d5ac560e01b815260040160405180910390fd5b83603586815481106106985761069861162a565b906000526020600020906003020160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508282603587815481106106e2576106e261162a565b90600052602060002090600302016002019182610700929190611722565b5084336001600160a01b03167faa3076bb2e00a425a96ce6aa8762a984fe8ed14922e3fba98cfa90683cb05ff886868660405161073f9392919061180c565b60405180910390a35050505050565b600081815260026020526040812061038c90610ca6565b6000828152600160208190526040909120015461078181610abc565b6103b88383610aeb565b60606035805480602002602001604051908101604052809291908181526020016000905b82821015610893576000848152602090819020604080516060810182526003860290920180546001600160a01b0316835260018101549383019390935260028301805492939291840191610802906116a2565b80601f016020809104026020016040519081016040528092919081815260200182805461082e906116a2565b801561087b5780601f106108505761010080835404028352916020019161087b565b820191906000526020600020905b81548152906001019060200180831161085e57829003601f168201915b505050505081525050815260200190600101906107af565b50505050905090565b806000036108a75750565b60355460008190036108cc57604051634ec4810560e11b815260040160405180910390fd5b60006108d960018361183a565b90506000805b828110156109ce57600061091786603584815481106109005761090061162a565b906000526020600020906003020160010154610cb0565b9050610923818461184d565b925061095b6035838154811061093b5761093b61162a565b60009182526020909120600390910201546001600160a01b031682610cc9565b6035828154811061096e5761096e61162a565b6000918252602091829020600390910201546040518381526001600160a01b03909116917fb649c98f58055c520df0dcb5709eff2e931217ff2fb1e21376130d31bbb1c0af910160405180910390a2506109c781611673565b90506108df565b5083811015610a8157610a16603583815481106109ed576109ed61162a565b60009182526020909120600390910201546001600160a01b0316610a11838761183a565b610cc9565b60358281548110610a2957610a2961162a565b60009182526020909120600390910201546001600160a01b03167fb649c98f58055c520df0dcb5709eff2e931217ff2fb1e21376130d31bbb1c0af610a6e838761183a565b6040519081526020015b60405180910390a25b50505050565b60006001600160e01b03198216637965db0b60e01b148061038c57506301ffc9a760e01b6001600160e01b031983161461038c565b610ac68133610d2e565b50565b610ad38282610d61565b60008281526002602052604090206103b89082610dcc565b610af58282610de1565b60008281526002602052604090206103b89082610e48565b806000819003610b3057604051634ec4810560e11b815260040160405180910390fd5b610b3c6035600061126e565b6000805b82811015610c32576000858583818110610b5c57610b5c61162a565b9050602002810190610b6e9190611860565b610b7c906020810190611640565b6001600160a01b031603610ba35760405163e99d5ac560e01b815260040160405180910390fd5b848482818110610bb557610bb561162a565b9050602002810190610bc79190611860565b610bd590602001358361184d565b91506035858583818110610beb57610beb61162a565b9050602002810190610bfd9190611860565b815460018101835560009283526020909220909160030201610c1f8282611880565b505080610c2b90611673565b9050610b40565b506127108114610c555760405163648564d360e01b815260040160405180910390fd5b336001600160a01b03167f28d7f0d68cf2a192abb8ce94479d236f99759d18e31ee7cbfb0a473764374c008585604051610a789291906119aa565b600061046d8383610e5d565b61043c8282610ac9565b600061038c825490565b6000612710610cbf8385611a7c565b61046d9190611a93565b6000610cd58383610e87565b9050806103b857610cee836001600160a01b0316610efd565b610cf783610f13565b604051602001610d08929190611ab5565b60408051601f198184030181529082905262461bcd60e51b825261042991600401611b33565b610d388282610605565b61043c57610d4581610efd565b610d50836020610f26565b604051602001610d08929190611b46565b610d6b8282610605565b61043c5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b600061046d836001600160a01b0384166110c2565b610deb8282610605565b1561043c5760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600061046d836001600160a01b038416611111565b6000826000018281548110610e7457610e7461162a565b9060005260206000200154905092915050565b604080516000808252602082019092526001600160a01b038416908390604051610eb19190611bbb565b60006040518083038185875af1925050503d8060008114610eee576040519150601f19603f3d011682016040523d82523d6000602084013e610ef3565b606091505b5090949350505050565b606061038c6001600160a01b0383166014610f26565b606061038c82610f2284611204565b6001015b60606000610f35836002611a7c565b610f4090600261184d565b67ffffffffffffffff811115610f5857610f5861168c565b6040519080825280601f01601f191660200182016040528015610f82576020820181803683370190505b509050600360fc1b81600081518110610f9d57610f9d61162a565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110610fcc57610fcc61162a565b60200101906001600160f81b031916908160001a9053506000610ff0846002611a7c565b610ffb90600161184d565b90505b6001811115611073576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061102f5761102f61162a565b1a60f81b8282815181106110455761104561162a565b60200101906001600160f81b031916908160001a90535060049490941c9361106c81611bcd565b9050610ffe565b50831561046d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610429565b60008181526001830160205260408120546111095750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561038c565b50600061038c565b600081815260018301602052604081205480156111fa57600061113560018361183a565b85549091506000906111499060019061183a565b90508181146111ae5760008660000182815481106111695761116961162a565b906000526020600020015490508087600001848154811061118c5761118c61162a565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806111bf576111bf611be4565b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061038c565b600091505061038c565b600080608083901c1561121c5760809290921c916010015b604083901c156112315760409290921c916008015b602083901c156112465760209290921c916004015b601083901c1561125b5760109290921c916002015b600883901c1561038c5760010192915050565b5080546000825560030290600052602060002090810190610ac691905b808211156112c05780546001600160a01b03191681556000600182018190556112b760028301826112c4565b5060030161128b565b5090565b5080546112d0906116a2565b6000825580601f106112e0575050565b601f016020900490600052602060002090810190610ac691905b808211156112c057600081556001016112fa565b60006020828403121561132057600080fd5b81356001600160e01b03198116811461046d57600080fd5b60006020828403121561134a57600080fd5b5035919050565b6001600160a01b0381168114610ac657600080fd5b6000806040838503121561137957600080fd5b82359150602083013561138b81611351565b809150509250929050565b60008083601f8401126113a857600080fd5b50813567ffffffffffffffff8111156113c057600080fd5b6020830191508360208260051b85010111156113db57600080fd5b9250929050565b600080602083850312156113f557600080fd5b823567ffffffffffffffff81111561140c57600080fd5b61141885828601611396565b90969095509350505050565b6000806040838503121561143757600080fd5b50508035926020909101359150565b60008060008060006060868803121561145e57600080fd5b853561146981611351565b9450602086013567ffffffffffffffff8082111561148657600080fd5b61149289838a01611396565b909650945060408801359150808211156114ab57600080fd5b506114b888828901611396565b969995985093965092949392505050565b600080600080606085870312156114df57600080fd5b8435935060208501356114f181611351565b9250604085013567ffffffffffffffff8082111561150e57600080fd5b818701915087601f83011261152257600080fd5b81358181111561153157600080fd5b88602082850101111561154357600080fd5b95989497505060200194505050565b60005b8381101561156d578181015183820152602001611555565b50506000910152565b6000815180845261158e816020860160208601611552565b601f01601f19169290920160200192915050565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561161c57888303603f19018552815180516001600160a01b031684528781015188850152860151606087850181905261160881860183611576565b9689019694505050908601906001016115c9565b509098975050505050505050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561165257600080fd5b813561046d81611351565b634e487b7160e01b600052601160045260246000fd5b6000600182016116855761168561165d565b5060010190565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806116b657607f821691505b6020821081036116d657634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156103b857600081815260208120601f850160051c810160208610156117035750805b601f850160051c820191505b818110156105fd5782815560010161170f565b67ffffffffffffffff83111561173a5761173a61168c565b61174e8361174883546116a2565b836116dc565b6000601f841160018114611782576000851561176a5750838201355b600019600387901b1c1916600186901b1783556117dc565b600083815260209020601f19861690835b828110156117b35786850135825560209485019460019092019101611793565b50868210156117d05760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b038416815260406020820181905260009061183190830184866117e3565b95945050505050565b8181038181111561038c5761038c61165d565b8082018082111561038c5761038c61165d565b60008235605e1983360301811261187657600080fd5b9190910192915050565b813561188b81611351565b81546001600160a01b0319166001600160a01b03919091161781556020828101356001838101919091559060028301604085013536869003601e190181126118d257600080fd5b8501803567ffffffffffffffff8111156118eb57600080fd5b80360384830113156118fc57600080fd5b6119108161190a85546116a2565b856116dc565b6000601f821160018114611946576000831561192e57508382018601355b600019600385901b1c1916600184901b17855561199f565b600085815260209020601f19841690835b8281101561197657868501890135825593880193908901908801611957565b50848210156119955760001960f88660031b161c198885880101351681555b50508683881b0185555b505050505050505050565b60208082528181018390526000906040808401600586901b8501820187855b8881101561161c57878303603f190184528135368b9003605e190181126119ef57600080fd5b8a01606081356119fe81611351565b6001600160a01b0316855281880135888601528682013536839003601e19018112611a2857600080fd5b90910187810191903567ffffffffffffffff811115611a4657600080fd5b803603831315611a5557600080fd5b8188870152611a6782870182856117e3565b968901969550505091860191506001016119c9565b808202811582820484141761038c5761038c61165d565b600082611ab057634e487b7160e01b600052601260045260246000fd5b500490565b7f5472616e7366657248656c7065723a20636f756c64206e6f74207472616e7366815269032b9102927a7103a37960b51b602082015260008351611b0081602a850160208801611552565b660103b30b63ab2960cd1b602a918401918201528351611b27816031840160208801611552565b01603101949350505050565b60208152600061046d6020830184611576565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611b7e816017850160208801611552565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611baf816028840160208801611552565b01602801949350505050565b60008251611876818460208701611552565b600081611bdc57611bdc61165d565b506000190190565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220e5a364b75fc6893bc3ff77c8c2c91c3d45566661b28843887c78f343594f602664736f6c63430008150033\"", + "deployer": "0x08295771719b138a241F45023B13CC868D72827D", "devdoc": { "version": 1, "kind": "dev", @@ -621,12 +96,12 @@ } }, "isFoundry": true, - "metadata": "{\"compiler\":{\"version\":\"0.8.21+commit.d9974bed\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"InvalidAmountOfRON\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidArrayLength\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidRatio\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NullAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"updatedBy\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"commissionIdx\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address payable\",\"name\":\"newRecipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"newName\",\"type\":\"string\"}],\"name\":\"CommissionInfoUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"updatedBy\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address payable\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"ratio\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"indexed\":false,\"internalType\":\"struct INSCommission.Commission[]\",\"name\":\"commissionInfos\",\"type\":\"tuple[]\"}],\"name\":\"CommissionsUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"commissionAmount\",\"type\":\"uint256\"}],\"name\":\"Distributed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_PERCENTAGE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SENDER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCommissions\",\"outputs\":[{\"components\":[{\"internalType\":\"address payable\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"ratio\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"internalType\":\"struct INSCommission.Commission[]\",\"name\":\"commissionInfos\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getRoleMember\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleMemberCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"address payable\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"ratio\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"internalType\":\"struct INSCommission.Commission[]\",\"name\":\"commissionInfos\",\"type\":\"tuple[]\"},{\"internalType\":\"address[]\",\"name\":\"allowedSenders\",\"type\":\"address[]\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"commissionIdx\",\"type\":\"uint256\"},{\"internalType\":\"address payable\",\"name\":\"newRecipient\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"newName\",\"type\":\"string\"}],\"name\":\"setCommissionInfo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address payable\",\"name\":\"recipient\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"ratio\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"internalType\":\"struct INSCommission.Commission[]\",\"name\":\"commissionInfos\",\"type\":\"tuple[]\"}],\"name\":\"setCommissions\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"errors\":{\"InvalidAmountOfRON()\":[{\"details\":\"Revert when amount of RON is invalid\"}],\"InvalidArrayLength()\":[{\"details\":\"Revert when index is out of range\"}],\"InvalidRatio()\":[{\"details\":\"Revert when ratio is invalid\"}],\"NullAddress()\":[{\"details\":\"Revert when recipient address is null\"}]},\"events\":{\"CommissionInfoUpdated(address,uint256,address,string)\":{\"details\":\"Emitted when specific commission info is updated.\"},\"CommissionsUpdated(address,(address,uint256,string)[])\":{\"details\":\"Emitted when all the commission info is updated.\"},\"Distributed(address,uint256)\":{\"details\":\"Emitted when transfer RON to commission's recipient.\"},\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"RoleAdminChanged(bytes32,bytes32,bytes32)\":{\"details\":\"Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite {RoleAdminChanged} not being emitted signaling this. _Available since v3.1._\"},\"RoleGranted(bytes32,address,address)\":{\"details\":\"Emitted when `account` is granted `role`. `sender` is the account that originated the contract call, an admin role bearer except when using {AccessControl-_setupRole}.\"},\"RoleRevoked(bytes32,address,address)\":{\"details\":\"Emitted when `account` is revoked `role`. `sender` is the account that originated the contract call: - if using `revokeRole`, it is the admin role bearer - if using `renounceRole`, it is the role bearer (i.e. `account`)\"}},\"kind\":\"dev\",\"methods\":{\"getCommissions()\":{\"details\":\"Returns commissions information.\"},\"getRoleAdmin(bytes32)\":{\"details\":\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.\"},\"getRoleMember(bytes32,uint256)\":{\"details\":\"Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information.\"},\"getRoleMemberCount(bytes32)\":{\"details\":\"Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role.\"},\"grantRole(bytes32,address)\":{\"details\":\"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event.\"},\"hasRole(bytes32,address)\":{\"details\":\"Returns `true` if `account` has been granted `role`.\"},\"renounceRole(bytes32,address)\":{\"details\":\"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. May emit a {RoleRevoked} event.\"},\"revokeRole(bytes32,address)\":{\"details\":\"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event.\"},\"setCommissionInfo(uint256,address,string)\":{\"details\":\"Sets for specific commission information based on the `commissionIdx`. Requirements: - The method caller is setter role. Emits the event `CommissionInfoUpdated`.\"},\"setCommissions((address,uint256,string)[])\":{\"details\":\"Sets all commission information Requirements: - The method caller is setter role. - The total ratio must be equal to 100%. Emits the event `CommissionsUpdated`.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"}},\"stateVariables\":{\"MAX_PERCENTAGE\":{\"details\":\"Constant representing the maximum percentage value (100%).\"},\"SENDER_ROLE\":{\"details\":\"Role for accounts that can send RON for this contract.\"},\"____gap\":{\"details\":\"Gap for upgradeability.\"},\"_commissionInfos\":{\"details\":\"Array of `Commission` structs that store commissions information.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/RNSCommission.sol\":\"RNSCommission\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@ensdomains/buffer/=lib/buffer/\",\":@ensdomains/ens-contracts/=lib/ens-contracts/contracts/\",\":@fdk-0.3.0-beta/=dependencies/@fdk-0.3.0-beta/\",\":@fdk/=dependencies/@fdk-0.3.0-beta/script/\",\":@openzeppelin-contracts-4.9.3/=dependencies/@openzeppelin-contracts-4.9.3/\",\":@openzeppelin/contracts/=dependencies/@openzeppelin-contracts-4.9.3/\",\":@pythnetwork-pyth-sdk-solidity-2.2.0/=dependencies/@pythnetwork-pyth-sdk-solidity-2.2.0/\",\":@pythnetwork/=dependencies/@pythnetwork-pyth-sdk-solidity-2.2.0/\",\":@rns-contracts/=src/\",\":@solady/=dependencies/@fdk-0.3.0-beta/dependencies/solady-0.0.206/src/\",\":buffer/=lib/buffer/contracts/\",\":contract-libs/=lib/contract-libs/src/\",\":contract-template/=lib/contract-template/src/\",\":ds-test/=lib/forge-std/lib/ds-test/src/\",\":ens-contracts/=lib/ens-contracts/contracts/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=dependencies/@fdk-0.3.0-beta/dependencies/forge-std-1.8.2/src/\",\":foundry-deployment-kit/=lib/foundry-deployment-kit/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\",\":openzeppelin/=lib/openzeppelin-contracts/contracts/\",\":pyth-sdk-solidity/=lib/pyth-sdk-solidity/\",\":solady/=lib/solady/\"]},\"sources\":{\"dependencies/@openzeppelin-contracts-4.9.3/access/AccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControl.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\nimport \\\"../utils/Strings.sol\\\";\\nimport \\\"../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev Contract module that allows children to implement role-based access\\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\\n * members except through off-chain means by accessing the contract event logs. Some\\n * applications may benefit from on-chain enumerability, for those cases see\\n * {AccessControlEnumerable}.\\n *\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\n * in the external API and be unique. The best way to achieve this is by\\n * using `public constant` hash digests:\\n *\\n * ```solidity\\n * bytes32 public constant MY_ROLE = keccak256(\\\"MY_ROLE\\\");\\n * ```\\n *\\n * Roles can be used to represent a set of permissions. To restrict access to a\\n * function call, use {hasRole}:\\n *\\n * ```solidity\\n * function foo() public {\\n * require(hasRole(MY_ROLE, msg.sender));\\n * ...\\n * }\\n * ```\\n *\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\n * {revokeRole} functions. Each role has an associated admin role, and only\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\n *\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\n * that only accounts with this role will be able to grant or revoke other\\n * roles. More complex role relationships can be created by using\\n * {_setRoleAdmin}.\\n *\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\n * grant and revoke this role. Extra precautions should be taken to secure\\n * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}\\n * to enforce additional security measures for this role.\\n */\\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\\n struct RoleData {\\n mapping(address => bool) members;\\n bytes32 adminRole;\\n }\\n\\n mapping(bytes32 => RoleData) private _roles;\\n\\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\n\\n /**\\n * @dev Modifier that checks that an account has a specific role. Reverts\\n * with a standardized message including the required role.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n *\\n * _Available since v4.1._\\n */\\n modifier onlyRole(bytes32 role) {\\n _checkRole(role);\\n _;\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\\n return _roles[role].members[account];\\n }\\n\\n /**\\n * @dev Revert with a standard message if `_msgSender()` is missing `role`.\\n * Overriding this function changes the behavior of the {onlyRole} modifier.\\n *\\n * Format of the revert message is described in {_checkRole}.\\n *\\n * _Available since v4.6._\\n */\\n function _checkRole(bytes32 role) internal view virtual {\\n _checkRole(role, _msgSender());\\n }\\n\\n /**\\n * @dev Revert with a standard message if `account` is missing `role`.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n */\\n function _checkRole(bytes32 role, address account) internal view virtual {\\n if (!hasRole(role, account)) {\\n revert(\\n string(\\n abi.encodePacked(\\n \\\"AccessControl: account \\\",\\n Strings.toHexString(account),\\n \\\" is missing role \\\",\\n Strings.toHexString(uint256(role), 32)\\n )\\n )\\n );\\n }\\n }\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\\n return _roles[role].adminRole;\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been revoked `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function renounceRole(bytes32 role, address account) public virtual override {\\n require(account == _msgSender(), \\\"AccessControl: can only renounce roles for self\\\");\\n\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event. Note that unlike {grantRole}, this function doesn't perform any\\n * checks on the calling account.\\n *\\n * May emit a {RoleGranted} event.\\n *\\n * [WARNING]\\n * ====\\n * This function should only be called from the constructor when setting\\n * up the initial roles for the system.\\n *\\n * Using this function in any other way is effectively circumventing the admin\\n * system imposed by {AccessControl}.\\n * ====\\n *\\n * NOTE: This function is deprecated in favor of {_grantRole}.\\n */\\n function _setupRole(bytes32 role, address account) internal virtual {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Sets `adminRole` as ``role``'s admin role.\\n *\\n * Emits a {RoleAdminChanged} event.\\n */\\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\n bytes32 previousAdminRole = getRoleAdmin(role);\\n _roles[role].adminRole = adminRole;\\n emit RoleAdminChanged(role, previousAdminRole, adminRole);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function _grantRole(bytes32 role, address account) internal virtual {\\n if (!hasRole(role, account)) {\\n _roles[role].members[account] = true;\\n emit RoleGranted(role, account, _msgSender());\\n }\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function _revokeRole(bytes32 role, address account) internal virtual {\\n if (hasRole(role, account)) {\\n _roles[role].members[account] = false;\\n emit RoleRevoked(role, account, _msgSender());\\n }\\n }\\n}\\n\",\"keccak256\":\"0x0dd6e52cb394d7f5abe5dca2d4908a6be40417914720932de757de34a99ab87f\",\"license\":\"MIT\"},\"dependencies/@openzeppelin-contracts-4.9.3/access/AccessControlEnumerable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlEnumerable.sol\\\";\\nimport \\\"./AccessControl.sol\\\";\\nimport \\\"../utils/structs/EnumerableSet.sol\\\";\\n\\n/**\\n * @dev Extension of {AccessControl} that allows enumerating the members of each role.\\n */\\nabstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {\\n using EnumerableSet for EnumerableSet.AddressSet;\\n\\n mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns one of the accounts that have `role`. `index` must be a\\n * value between 0 and {getRoleMemberCount}, non-inclusive.\\n *\\n * Role bearers are not sorted in any particular way, and their ordering may\\n * change at any point.\\n *\\n * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\\n * you perform all queries on the same block. See the following\\n * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\\n * for more information.\\n */\\n function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {\\n return _roleMembers[role].at(index);\\n }\\n\\n /**\\n * @dev Returns the number of accounts that have `role`. Can be used\\n * together with {getRoleMember} to enumerate all bearers of a role.\\n */\\n function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {\\n return _roleMembers[role].length();\\n }\\n\\n /**\\n * @dev Overload {_grantRole} to track enumerable memberships\\n */\\n function _grantRole(bytes32 role, address account) internal virtual override {\\n super._grantRole(role, account);\\n _roleMembers[role].add(account);\\n }\\n\\n /**\\n * @dev Overload {_revokeRole} to track enumerable memberships\\n */\\n function _revokeRole(bytes32 role, address account) internal virtual override {\\n super._revokeRole(role, account);\\n _roleMembers[role].remove(account);\\n }\\n}\\n\",\"keccak256\":\"0x13f5e15f2a0650c0b6aaee2ef19e89eaf4870d6e79662d572a393334c1397247\",\"license\":\"MIT\"},\"dependencies/@openzeppelin-contracts-4.9.3/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"dependencies/@openzeppelin-contracts-4.9.3/access/IAccessControlEnumerable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControl.sol\\\";\\n\\n/**\\n * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.\\n */\\ninterface IAccessControlEnumerable is IAccessControl {\\n /**\\n * @dev Returns one of the accounts that have `role`. `index` must be a\\n * value between 0 and {getRoleMemberCount}, non-inclusive.\\n *\\n * Role bearers are not sorted in any particular way, and their ordering may\\n * change at any point.\\n *\\n * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\\n * you perform all queries on the same block. See the following\\n * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\\n * for more information.\\n */\\n function getRoleMember(bytes32 role, uint256 index) external view returns (address);\\n\\n /**\\n * @dev Returns the number of accounts that have `role`. Can be used\\n * together with {getRoleMember} to enumerate all bearers of a role.\\n */\\n function getRoleMemberCount(bytes32 role) external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xba4459ab871dfa300f5212c6c30178b63898c03533a1ede28436f11546626676\",\"license\":\"MIT\"},\"dependencies/@openzeppelin-contracts-4.9.3/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/Address.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n * @custom:oz-retyped-from bool\\n */\\n uint8 private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint8 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n * constructor.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!Address.isContract(address(this)) && _initialized == 1),\\n \\\"Initializable: contract is already initialized\\\"\\n );\\n _initialized = 1;\\n if (isTopLevelCall) {\\n _initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n _initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: setting the version to 255 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint8 version) {\\n require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n _initialized = version;\\n _initializing = true;\\n _;\\n _initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n if (_initialized != type(uint8).max) {\\n _initialized = type(uint8).max;\\n emit Initialized(type(uint8).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint8) {\\n return _initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _initializing;\\n }\\n}\\n\",\"keccak256\":\"0x3d6069be9b4c01fb81840fb9c2c4dc58dd6a6a4aafaa2c6837de8699574d84c6\",\"license\":\"MIT\"},\"dependencies/@openzeppelin-contracts-4.9.3/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n *\\n * Furthermore, `isContract` will also return true if the target contract within\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n * which only has an effect at the end of a transaction.\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x006dd67219697fe68d7fbfdea512e7c4cb64a43565ed86171d67e844982da6fa\",\"license\":\"MIT\"},\"dependencies/@openzeppelin-contracts-4.9.3/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"dependencies/@openzeppelin-contracts-4.9.3/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\nimport \\\"./math/SignedMath.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\\n */\\n function toString(int256 value) internal pure returns (string memory) {\\n return string(abi.encodePacked(value < 0 ? \\\"-\\\" : \\\"\\\", toString(SignedMath.abs(value))));\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n return toHexString(value, Math.log256(value) + 1);\\n }\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n\\n /**\\n * @dev Returns true if the two strings are equal.\\n */\\n function equal(string memory a, string memory b) internal pure returns (bool) {\\n return keccak256(bytes(a)) == keccak256(bytes(b));\\n }\\n}\\n\",\"keccak256\":\"0x3088eb2868e8d13d89d16670b5f8612c4ab9ff8956272837d8e90106c59c14a0\",\"license\":\"MIT\"},\"dependencies/@openzeppelin-contracts-4.9.3/utils/introspection/ERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC165} interface.\\n *\\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\\n * for the additional interface id that will be supported. For example:\\n *\\n * ```solidity\\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\\n * }\\n * ```\\n *\\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\\n */\\nabstract contract ERC165 is IERC165 {\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IERC165).interfaceId;\\n }\\n}\\n\",\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\"},\"dependencies/@openzeppelin-contracts-4.9.3/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\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\",\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\"},\"dependencies/@openzeppelin-contracts-4.9.3/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\\n // The surrounding unchecked block does not change this fact.\\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1, \\\"Math: mulDiv overflow\\\");\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10 ** 64) {\\n value /= 10 ** 64;\\n result += 64;\\n }\\n if (value >= 10 ** 32) {\\n value /= 10 ** 32;\\n result += 32;\\n }\\n if (value >= 10 ** 16) {\\n value /= 10 ** 16;\\n result += 16;\\n }\\n if (value >= 10 ** 8) {\\n value /= 10 ** 8;\\n result += 8;\\n }\\n if (value >= 10 ** 4) {\\n value /= 10 ** 4;\\n result += 4;\\n }\\n if (value >= 10 ** 2) {\\n value /= 10 ** 2;\\n result += 2;\\n }\\n if (value >= 10 ** 1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xe4455ac1eb7fc497bb7402579e7b4d64d928b846fce7d2b6fde06d366f21c2b3\",\"license\":\"MIT\"},\"dependencies/@openzeppelin-contracts-4.9.3/utils/math/SignedMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard signed math utilities missing in the Solidity language.\\n */\\nlibrary SignedMath {\\n /**\\n * @dev Returns the largest of two signed numbers.\\n */\\n function max(int256 a, int256 b) internal pure returns (int256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two signed numbers.\\n */\\n function min(int256 a, int256 b) internal pure returns (int256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two signed numbers without overflow.\\n * The result is rounded towards zero.\\n */\\n function average(int256 a, int256 b) internal pure returns (int256) {\\n // Formula from the book \\\"Hacker's Delight\\\"\\n int256 x = (a & b) + ((a ^ b) >> 1);\\n return x + (int256(uint256(x) >> 255) & (a ^ b));\\n }\\n\\n /**\\n * @dev Returns the absolute unsigned value of a signed value.\\n */\\n function abs(int256 n) internal pure returns (uint256) {\\n unchecked {\\n // must be unchecked in order to support `n = type(int256).min`\\n return uint256(n >= 0 ? n : -n);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf92515413956f529d95977adc9b0567d583c6203fc31ab1c23824c35187e3ddc\",\"license\":\"MIT\"},\"dependencies/@openzeppelin-contracts-4.9.3/utils/structs/EnumerableSet.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/structs/EnumerableSet.sol)\\n// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for managing\\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\\n * types.\\n *\\n * Sets have the following properties:\\n *\\n * - Elements are added, removed, and checked for existence in constant time\\n * (O(1)).\\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\\n *\\n * ```solidity\\n * contract Example {\\n * // Add the library methods\\n * using EnumerableSet for EnumerableSet.AddressSet;\\n *\\n * // Declare a set state variable\\n * EnumerableSet.AddressSet private mySet;\\n * }\\n * ```\\n *\\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\\n * and `uint256` (`UintSet`) are supported.\\n *\\n * [WARNING]\\n * ====\\n * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure\\n * unusable.\\n * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.\\n *\\n * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an\\n * array of EnumerableSet.\\n * ====\\n */\\nlibrary EnumerableSet {\\n // To implement this library for multiple types with as little code\\n // repetition as possible, we write it in terms of a generic Set type with\\n // bytes32 values.\\n // The Set implementation uses private functions, and user-facing\\n // implementations (such as AddressSet) are just wrappers around the\\n // underlying Set.\\n // This means that we can only create new EnumerableSets for types that fit\\n // in bytes32.\\n\\n struct Set {\\n // Storage of set values\\n bytes32[] _values;\\n // Position of the value in the `values` array, plus 1 because index 0\\n // means a value is not in the set.\\n mapping(bytes32 => uint256) _indexes;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function _add(Set storage set, bytes32 value) private returns (bool) {\\n if (!_contains(set, value)) {\\n set._values.push(value);\\n // The value is stored at length-1, but we add 1 to all indexes\\n // and use 0 as a sentinel value\\n set._indexes[value] = set._values.length;\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function _remove(Set storage set, bytes32 value) private returns (bool) {\\n // We read and store the value's index to prevent multiple reads from the same storage slot\\n uint256 valueIndex = set._indexes[value];\\n\\n if (valueIndex != 0) {\\n // Equivalent to contains(set, value)\\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\\n // the array, and then remove the last element (sometimes called as 'swap and pop').\\n // This modifies the order of the array, as noted in {at}.\\n\\n uint256 toDeleteIndex = valueIndex - 1;\\n uint256 lastIndex = set._values.length - 1;\\n\\n if (lastIndex != toDeleteIndex) {\\n bytes32 lastValue = set._values[lastIndex];\\n\\n // Move the last value to the index where the value to delete is\\n set._values[toDeleteIndex] = lastValue;\\n // Update the index for the moved value\\n set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex\\n }\\n\\n // Delete the slot where the moved value was stored\\n set._values.pop();\\n\\n // Delete the index for the deleted slot\\n delete set._indexes[value];\\n\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\\n return set._indexes[value] != 0;\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function _length(Set storage set) private view returns (uint256) {\\n return set._values.length;\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\\n return set._values[index];\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function _values(Set storage set) private view returns (bytes32[] memory) {\\n return set._values;\\n }\\n\\n // Bytes32Set\\n\\n struct Bytes32Set {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _add(set._inner, value);\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _remove(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\\n return _contains(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(Bytes32Set storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\\n return _at(set._inner, index);\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n bytes32[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // AddressSet\\n\\n struct AddressSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(AddressSet storage set, address value) internal returns (bool) {\\n return _add(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(AddressSet storage set, address value) internal returns (bool) {\\n return _remove(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(AddressSet storage set, address value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(AddressSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\\n return address(uint160(uint256(_at(set._inner, index))));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(AddressSet storage set) internal view returns (address[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n address[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // UintSet\\n\\n struct UintSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(UintSet storage set, uint256 value) internal returns (bool) {\\n return _add(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\\n return _remove(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(UintSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\\n return uint256(_at(set._inner, index));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(UintSet storage set) internal view returns (uint256[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n uint256[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n}\\n\",\"keccak256\":\"0x9f4357008a8f7d8c8bf5d48902e789637538d8c016be5766610901b4bba81514\",\"license\":\"MIT\"},\"src/RNSCommission.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.19;\\n\\nimport { Initializable } from \\\"@openzeppelin/contracts/proxy/utils/Initializable.sol\\\";\\nimport { AccessControlEnumerable } from \\\"@openzeppelin/contracts/access/AccessControlEnumerable.sol\\\";\\nimport { INSCommission } from \\\"./interfaces/INSCommission.sol\\\";\\nimport { RONTransferHelper } from \\\"./libraries/transfers/RONTransferHelper.sol\\\";\\n\\ncontract RNSCommission is Initializable, AccessControlEnumerable, INSCommission {\\n /// @dev Constant representing the maximum percentage value (100%).\\n uint256 public constant MAX_PERCENTAGE = 100_00;\\n /// @dev Role for accounts that can send RON for this contract.\\n bytes32 public constant SENDER_ROLE = keccak256(\\\"SENDER_ROLE\\\");\\n\\n /// @dev Gap for upgradeability.\\n uint256[50] private ____gap;\\n /// @dev Array of `Commission` structs that store commissions information.\\n Commission[] internal _commissionInfos;\\n\\n constructor() {\\n _disableInitializers();\\n }\\n\\n receive() external payable {\\n _fallback();\\n }\\n\\n function initialize(address admin, Commission[] calldata commissionInfos, address[] calldata allowedSenders)\\n external\\n initializer\\n {\\n _setupRole(DEFAULT_ADMIN_ROLE, admin);\\n\\n uint256 length = allowedSenders.length;\\n for (uint256 i; i < length; ++i) {\\n _setupRole(SENDER_ROLE, allowedSenders[i]);\\n }\\n\\n _setCommissions(commissionInfos);\\n }\\n\\n /// @inheritdoc INSCommission\\n function getCommissions() external view returns (Commission[] memory commissionInfos) {\\n return _commissionInfos;\\n }\\n\\n /// @inheritdoc INSCommission\\n function setCommissions(Commission[] calldata commissionInfos) external onlyRole(DEFAULT_ADMIN_ROLE) {\\n _setCommissions(commissionInfos);\\n }\\n\\n /// @inheritdoc INSCommission\\n function setCommissionInfo(uint256 commissionIdx, address payable newRecipient, string calldata newName)\\n external\\n onlyRole(DEFAULT_ADMIN_ROLE)\\n {\\n if (commissionIdx >= _commissionInfos.length) revert InvalidArrayLength();\\n // TODO: should fix to not duplicate logic in set commision info\\n if (newRecipient == address(0)) revert NullAddress();\\n\\n _commissionInfos[commissionIdx].recipient = newRecipient;\\n _commissionInfos[commissionIdx].name = newName;\\n emit CommissionInfoUpdated(msg.sender, commissionIdx, newRecipient, newName);\\n }\\n\\n /**\\n * @dev Helper method to allocate commission and take fee into recipient address.\\n */\\n function _allocateCommissionAndTransferToRecipient(uint256 ronAmount) internal {\\n if (ronAmount == 0) revert InvalidAmountOfRON();\\n\\n uint256 length = _commissionInfos.length;\\n if (length == 0) revert InvalidArrayLength();\\n\\n uint256 lastIdx = length - 1;\\n uint256 sumValue;\\n\\n for (uint256 i; i < lastIdx; ++i) {\\n uint256 commissionAmount = _computePercentage(ronAmount, _commissionInfos[i].ratio);\\n sumValue += commissionAmount;\\n\\n RONTransferHelper.safeTransfer(_commissionInfos[i].recipient, commissionAmount);\\n emit Distributed(_commissionInfos[i].recipient, commissionAmount);\\n }\\n\\n // This code send the remaining RON to the last recipient.\\n if (sumValue < ronAmount) {\\n RONTransferHelper.safeTransfer(_commissionInfos[lastIdx].recipient, ronAmount - sumValue);\\n emit Distributed(_commissionInfos[lastIdx].recipient, ronAmount - sumValue);\\n }\\n }\\n\\n function _setCommissions(Commission[] calldata commissionInfos) internal {\\n uint256 length = commissionInfos.length;\\n // commissionInfos[] can not be empty\\n if (length == 0) revert InvalidArrayLength();\\n\\n delete _commissionInfos;\\n\\n uint256 sum;\\n\\n for (uint256 i; i < length; ++i) {\\n if (commissionInfos[i].recipient == address(0)) revert NullAddress();\\n\\n sum += commissionInfos[i].ratio;\\n _commissionInfos.push(commissionInfos[i]);\\n }\\n\\n if (sum != MAX_PERCENTAGE) revert InvalidRatio();\\n\\n emit CommissionsUpdated(msg.sender, commissionInfos);\\n }\\n\\n // Calculate amount of money based on commission's ratio\\n function _computePercentage(uint256 value, uint256 percentage) internal pure virtual returns (uint256) {\\n return (value * percentage) / MAX_PERCENTAGE;\\n }\\n\\n function _fallback() internal {\\n if (hasRole(SENDER_ROLE, msg.sender)) {\\n _allocateCommissionAndTransferToRecipient(msg.value);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xef2dc31d9a58007dc0a12cb027d4981bf57b5d0a0c465fbb511afe64cb64640c\",\"license\":\"MIT\"},\"src/interfaces/INSCommission.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.19;\\n\\ninterface INSCommission {\\n struct Commission {\\n address payable recipient;\\n uint256 ratio; // Values [0; 100_00] reflexes [0; 100%]\\n string name; // Commission's name\\n }\\n\\n /// @dev Emitted when all the commission info is updated.\\n event CommissionsUpdated(address indexed updatedBy, Commission[] commissionInfos);\\n /// @dev Emitted when specific commission info is updated.\\n event CommissionInfoUpdated(\\n address indexed updatedBy, uint256 indexed commissionIdx, address payable newRecipient, string newName\\n );\\n /// @dev Emitted when transfer RON to commission's recipient.\\n event Distributed(address indexed recipient, uint256 commissionAmount);\\n\\n /// @dev Revert when index is out of range\\n error InvalidArrayLength();\\n /// @dev Revert when ratio is invalid\\n error InvalidRatio();\\n /// @dev Revert when amount of RON is invalid\\n error InvalidAmountOfRON();\\n /// @dev Revert when recipient address is null\\n error NullAddress();\\n\\n /**\\n * @dev Maximum commission percentage.\\n */\\n function MAX_PERCENTAGE() external pure returns (uint256);\\n\\n /**\\n * @dev Returns the sender role.\\n */\\n function SENDER_ROLE() external pure returns (bytes32);\\n\\n /**\\n * @dev Returns commissions information.\\n */\\n function getCommissions() external view returns (Commission[] memory commissionInfos);\\n\\n /**\\n * @dev Sets all commission information\\n *\\n * Requirements:\\n * - The method caller is setter role.\\n * - The total ratio must be equal to 100%.\\n * Emits the event `CommissionsUpdated`.\\n */\\n function setCommissions(Commission[] calldata commissionInfos) external;\\n\\n /**\\n * @dev Sets for specific commission information based on the `commissionIdx`.\\n *\\n * Requirements:\\n * - The method caller is setter role.\\n * Emits the event `CommissionInfoUpdated`.\\n */\\n function setCommissionInfo(uint256 commissionIdx, address payable newAddr, string calldata name) external;\\n}\\n\",\"keccak256\":\"0xb2c57076aabd1b2a189be0f936d9945fdce20e86f9698688af07e0abafd712f2\",\"license\":\"MIT\"},\"src/libraries/transfers/RONTransferHelper.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport { Strings } from \\\"@openzeppelin/contracts/utils/Strings.sol\\\";\\n\\n/**\\n * @title RONTransferHelper\\n */\\nlibrary RONTransferHelper {\\n using Strings for *;\\n\\n /**\\n * @dev Transfers RON and wraps result for the method caller to a recipient.\\n */\\n function safeTransfer(address payable _to, uint256 _value) internal {\\n bool _success = send(_to, _value);\\n if (!_success) {\\n revert(\\n string.concat(\\\"TransferHelper: could not transfer RON to \\\", _to.toHexString(), \\\" value \\\", _value.toHexString())\\n );\\n }\\n }\\n\\n /**\\n * @dev Returns whether the call was success.\\n * Note: this function should use with the `ReentrancyGuard`.\\n */\\n function send(address payable _to, uint256 _value) internal returns (bool _success) {\\n (_success,) = _to.call{ value: _value }(new bytes(0));\\n }\\n}\\n\",\"keccak256\":\"0x733e60374ee0a33d0da2ee24976b893ca6b6d9764243b175e1ac8025240394da\",\"license\":\"MIT\"}},\"version\":1}", - "nonce": 196, + "metadata": "\"{\\\"compiler\\\":{\\\"version\\\":\\\"0.8.21+commit.d9974bed\\\"},\\\"language\\\":\\\"Solidity\\\",\\\"output\\\":{\\\"abi\\\":[{\\\"inputs\\\":[],\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"constructor\\\"},{\\\"inputs\\\":[],\\\"name\\\":\\\"InvalidAmountOfRON\\\",\\\"type\\\":\\\"error\\\"},{\\\"inputs\\\":[],\\\"name\\\":\\\"InvalidArrayLength\\\",\\\"type\\\":\\\"error\\\"},{\\\"inputs\\\":[],\\\"name\\\":\\\"InvalidRatio\\\",\\\"type\\\":\\\"error\\\"},{\\\"inputs\\\":[],\\\"name\\\":\\\"NullAddress\\\",\\\"type\\\":\\\"error\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":true,\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"updatedBy\\\",\\\"type\\\":\\\"address\\\"},{\\\"indexed\\\":true,\\\"internalType\\\":\\\"uint256\\\",\\\"name\\\":\\\"commissionIdx\\\",\\\"type\\\":\\\"uint256\\\"},{\\\"indexed\\\":false,\\\"internalType\\\":\\\"address payable\\\",\\\"name\\\":\\\"newRecipient\\\",\\\"type\\\":\\\"address\\\"},{\\\"indexed\\\":false,\\\"internalType\\\":\\\"string\\\",\\\"name\\\":\\\"newName\\\",\\\"type\\\":\\\"string\\\"}],\\\"name\\\":\\\"CommissionInfoUpdated\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":true,\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"updatedBy\\\",\\\"type\\\":\\\"address\\\"},{\\\"components\\\":[{\\\"internalType\\\":\\\"address payable\\\",\\\"name\\\":\\\"recipient\\\",\\\"type\\\":\\\"address\\\"},{\\\"internalType\\\":\\\"uint256\\\",\\\"name\\\":\\\"ratio\\\",\\\"type\\\":\\\"uint256\\\"},{\\\"internalType\\\":\\\"string\\\",\\\"name\\\":\\\"name\\\",\\\"type\\\":\\\"string\\\"}],\\\"indexed\\\":false,\\\"internalType\\\":\\\"struct INSCommission.Commission[]\\\",\\\"name\\\":\\\"commissionInfos\\\",\\\"type\\\":\\\"tuple[]\\\"}],\\\"name\\\":\\\"CommissionsUpdated\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":true,\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"recipient\\\",\\\"type\\\":\\\"address\\\"},{\\\"indexed\\\":false,\\\"internalType\\\":\\\"uint256\\\",\\\"name\\\":\\\"commissionAmount\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"name\\\":\\\"Distributed\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":false,\\\"internalType\\\":\\\"uint8\\\",\\\"name\\\":\\\"version\\\",\\\"type\\\":\\\"uint8\\\"}],\\\"name\\\":\\\"Initialized\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":true,\\\"internalType\\\":\\\"bytes32\\\",\\\"name\\\":\\\"role\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"indexed\\\":true,\\\"internalType\\\":\\\"bytes32\\\",\\\"name\\\":\\\"previousAdminRole\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"indexed\\\":true,\\\"internalType\\\":\\\"bytes32\\\",\\\"name\\\":\\\"newAdminRole\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"RoleAdminChanged\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":true,\\\"internalType\\\":\\\"bytes32\\\",\\\"name\\\":\\\"role\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"indexed\\\":true,\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"account\\\",\\\"type\\\":\\\"address\\\"},{\\\"indexed\\\":true,\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"sender\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"RoleGranted\\\",\\\"type\\\":\\\"event\\\"},{\\\"anonymous\\\":false,\\\"inputs\\\":[{\\\"indexed\\\":true,\\\"internalType\\\":\\\"bytes32\\\",\\\"name\\\":\\\"role\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"indexed\\\":true,\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"account\\\",\\\"type\\\":\\\"address\\\"},{\\\"indexed\\\":true,\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"sender\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"RoleRevoked\\\",\\\"type\\\":\\\"event\\\"},{\\\"inputs\\\":[],\\\"name\\\":\\\"DEFAULT_ADMIN_ROLE\\\",\\\"outputs\\\":[{\\\"internalType\\\":\\\"bytes32\\\",\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[],\\\"name\\\":\\\"MAX_PERCENTAGE\\\",\\\"outputs\\\":[{\\\"internalType\\\":\\\"uint256\\\",\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[],\\\"name\\\":\\\"SENDER_ROLE\\\",\\\"outputs\\\":[{\\\"internalType\\\":\\\"bytes32\\\",\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[],\\\"name\\\":\\\"getCommissions\\\",\\\"outputs\\\":[{\\\"components\\\":[{\\\"internalType\\\":\\\"address payable\\\",\\\"name\\\":\\\"recipient\\\",\\\"type\\\":\\\"address\\\"},{\\\"internalType\\\":\\\"uint256\\\",\\\"name\\\":\\\"ratio\\\",\\\"type\\\":\\\"uint256\\\"},{\\\"internalType\\\":\\\"string\\\",\\\"name\\\":\\\"name\\\",\\\"type\\\":\\\"string\\\"}],\\\"internalType\\\":\\\"struct INSCommission.Commission[]\\\",\\\"name\\\":\\\"commissionInfos\\\",\\\"type\\\":\\\"tuple[]\\\"}],\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[{\\\"internalType\\\":\\\"bytes32\\\",\\\"name\\\":\\\"role\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"getRoleAdmin\\\",\\\"outputs\\\":[{\\\"internalType\\\":\\\"bytes32\\\",\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[{\\\"internalType\\\":\\\"bytes32\\\",\\\"name\\\":\\\"role\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"internalType\\\":\\\"uint256\\\",\\\"name\\\":\\\"index\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"name\\\":\\\"getRoleMember\\\",\\\"outputs\\\":[{\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"address\\\"}],\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[{\\\"internalType\\\":\\\"bytes32\\\",\\\"name\\\":\\\"role\\\",\\\"type\\\":\\\"bytes32\\\"}],\\\"name\\\":\\\"getRoleMemberCount\\\",\\\"outputs\\\":[{\\\"internalType\\\":\\\"uint256\\\",\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"uint256\\\"}],\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[{\\\"internalType\\\":\\\"bytes32\\\",\\\"name\\\":\\\"role\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"account\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"grantRole\\\",\\\"outputs\\\":[],\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[{\\\"internalType\\\":\\\"bytes32\\\",\\\"name\\\":\\\"role\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"account\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"hasRole\\\",\\\"outputs\\\":[{\\\"internalType\\\":\\\"bool\\\",\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[{\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"admin\\\",\\\"type\\\":\\\"address\\\"},{\\\"components\\\":[{\\\"internalType\\\":\\\"address payable\\\",\\\"name\\\":\\\"recipient\\\",\\\"type\\\":\\\"address\\\"},{\\\"internalType\\\":\\\"uint256\\\",\\\"name\\\":\\\"ratio\\\",\\\"type\\\":\\\"uint256\\\"},{\\\"internalType\\\":\\\"string\\\",\\\"name\\\":\\\"name\\\",\\\"type\\\":\\\"string\\\"}],\\\"internalType\\\":\\\"struct INSCommission.Commission[]\\\",\\\"name\\\":\\\"commissionInfos\\\",\\\"type\\\":\\\"tuple[]\\\"},{\\\"internalType\\\":\\\"address[]\\\",\\\"name\\\":\\\"allowedSenders\\\",\\\"type\\\":\\\"address[]\\\"}],\\\"name\\\":\\\"initialize\\\",\\\"outputs\\\":[],\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[{\\\"internalType\\\":\\\"bytes32\\\",\\\"name\\\":\\\"role\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"account\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"renounceRole\\\",\\\"outputs\\\":[],\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[{\\\"internalType\\\":\\\"bytes32\\\",\\\"name\\\":\\\"role\\\",\\\"type\\\":\\\"bytes32\\\"},{\\\"internalType\\\":\\\"address\\\",\\\"name\\\":\\\"account\\\",\\\"type\\\":\\\"address\\\"}],\\\"name\\\":\\\"revokeRole\\\",\\\"outputs\\\":[],\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[{\\\"internalType\\\":\\\"uint256\\\",\\\"name\\\":\\\"commissionIdx\\\",\\\"type\\\":\\\"uint256\\\"},{\\\"internalType\\\":\\\"address payable\\\",\\\"name\\\":\\\"newRecipient\\\",\\\"type\\\":\\\"address\\\"},{\\\"internalType\\\":\\\"string\\\",\\\"name\\\":\\\"newName\\\",\\\"type\\\":\\\"string\\\"}],\\\"name\\\":\\\"setCommissionInfo\\\",\\\"outputs\\\":[],\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[{\\\"components\\\":[{\\\"internalType\\\":\\\"address payable\\\",\\\"name\\\":\\\"recipient\\\",\\\"type\\\":\\\"address\\\"},{\\\"internalType\\\":\\\"uint256\\\",\\\"name\\\":\\\"ratio\\\",\\\"type\\\":\\\"uint256\\\"},{\\\"internalType\\\":\\\"string\\\",\\\"name\\\":\\\"name\\\",\\\"type\\\":\\\"string\\\"}],\\\"internalType\\\":\\\"struct INSCommission.Commission[]\\\",\\\"name\\\":\\\"commissionInfos\\\",\\\"type\\\":\\\"tuple[]\\\"}],\\\"name\\\":\\\"setCommissions\\\",\\\"outputs\\\":[],\\\"stateMutability\\\":\\\"nonpayable\\\",\\\"type\\\":\\\"function\\\"},{\\\"inputs\\\":[{\\\"internalType\\\":\\\"bytes4\\\",\\\"name\\\":\\\"interfaceId\\\",\\\"type\\\":\\\"bytes4\\\"}],\\\"name\\\":\\\"supportsInterface\\\",\\\"outputs\\\":[{\\\"internalType\\\":\\\"bool\\\",\\\"name\\\":\\\"\\\",\\\"type\\\":\\\"bool\\\"}],\\\"stateMutability\\\":\\\"view\\\",\\\"type\\\":\\\"function\\\"},{\\\"stateMutability\\\":\\\"payable\\\",\\\"type\\\":\\\"receive\\\"}],\\\"devdoc\\\":{\\\"errors\\\":{\\\"InvalidAmountOfRON()\\\":[{\\\"details\\\":\\\"Revert when amount of RON is invalid\\\"}],\\\"InvalidArrayLength()\\\":[{\\\"details\\\":\\\"Revert when index is out of range\\\"}],\\\"InvalidRatio()\\\":[{\\\"details\\\":\\\"Revert when ratio is invalid\\\"}],\\\"NullAddress()\\\":[{\\\"details\\\":\\\"Revert when recipient address is null\\\"}]},\\\"events\\\":{\\\"CommissionInfoUpdated(address,uint256,address,string)\\\":{\\\"details\\\":\\\"Emitted when specific commission info is updated.\\\"},\\\"CommissionsUpdated(address,(address,uint256,string)[])\\\":{\\\"details\\\":\\\"Emitted when all the commission info is updated.\\\"},\\\"Distributed(address,uint256)\\\":{\\\"details\\\":\\\"Emitted when transfer RON to commission's recipient.\\\"},\\\"Initialized(uint8)\\\":{\\\"details\\\":\\\"Triggered when the contract has been initialized or reinitialized.\\\"},\\\"RoleAdminChanged(bytes32,bytes32,bytes32)\\\":{\\\"details\\\":\\\"Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite {RoleAdminChanged} not being emitted signaling this. _Available since v3.1._\\\"},\\\"RoleGranted(bytes32,address,address)\\\":{\\\"details\\\":\\\"Emitted when `account` is granted `role`. `sender` is the account that originated the contract call, an admin role bearer except when using {AccessControl-_setupRole}.\\\"},\\\"RoleRevoked(bytes32,address,address)\\\":{\\\"details\\\":\\\"Emitted when `account` is revoked `role`. `sender` is the account that originated the contract call: - if using `revokeRole`, it is the admin role bearer - if using `renounceRole`, it is the role bearer (i.e. `account`)\\\"}},\\\"kind\\\":\\\"dev\\\",\\\"methods\\\":{\\\"getCommissions()\\\":{\\\"details\\\":\\\"Returns commissions information.\\\"},\\\"getRoleAdmin(bytes32)\\\":{\\\"details\\\":\\\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.\\\"},\\\"getRoleMember(bytes32,uint256)\\\":{\\\"details\\\":\\\"Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information.\\\"},\\\"getRoleMemberCount(bytes32)\\\":{\\\"details\\\":\\\"Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role.\\\"},\\\"grantRole(bytes32,address)\\\":{\\\"details\\\":\\\"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event.\\\"},\\\"hasRole(bytes32,address)\\\":{\\\"details\\\":\\\"Returns `true` if `account` has been granted `role`.\\\"},\\\"renounceRole(bytes32,address)\\\":{\\\"details\\\":\\\"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. May emit a {RoleRevoked} event.\\\"},\\\"revokeRole(bytes32,address)\\\":{\\\"details\\\":\\\"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event.\\\"},\\\"setCommissionInfo(uint256,address,string)\\\":{\\\"details\\\":\\\"Sets for specific commission information based on the `commissionIdx`. Requirements: - The method caller is setter role. Emits the event `CommissionInfoUpdated`.\\\"},\\\"setCommissions((address,uint256,string)[])\\\":{\\\"details\\\":\\\"Sets all commission information Requirements: - The method caller is setter role. - The total ratio must be equal to 100%. Emits the event `CommissionsUpdated`.\\\"},\\\"supportsInterface(bytes4)\\\":{\\\"details\\\":\\\"See {IERC165-supportsInterface}.\\\"}},\\\"stateVariables\\\":{\\\"MAX_PERCENTAGE\\\":{\\\"details\\\":\\\"Constant representing the maximum percentage value (100%).\\\"},\\\"SENDER_ROLE\\\":{\\\"details\\\":\\\"Role for accounts that can send RON for this contract.\\\"},\\\"____gap\\\":{\\\"details\\\":\\\"Gap for upgradeability.\\\"},\\\"_commissionInfos\\\":{\\\"details\\\":\\\"Array of `Commission` structs that store commissions information.\\\"}},\\\"version\\\":1},\\\"userdoc\\\":{\\\"kind\\\":\\\"user\\\",\\\"methods\\\":{},\\\"version\\\":1}},\\\"settings\\\":{\\\"compilationTarget\\\":{\\\"src/RNSCommission.sol\\\":\\\"RNSCommission\\\"},\\\"evmVersion\\\":\\\"london\\\",\\\"libraries\\\":{},\\\"metadata\\\":{\\\"bytecodeHash\\\":\\\"ipfs\\\",\\\"useLiteralContent\\\":true},\\\"optimizer\\\":{\\\"enabled\\\":true,\\\"runs\\\":200},\\\"remappings\\\":[\\\":@ensdomains/buffer/=lib/buffer/\\\",\\\":@ensdomains/ens-contracts/=lib/ens-contracts/contracts/\\\",\\\":@fdk/=dependencies/@fdk-0.3.0-beta/script/\\\",\\\":@openzeppelin/contracts/=dependencies/openzeppelin-4.9.3/contracts/\\\",\\\":@pythnetwork/=dependencies/@pythnetwork-pyth-sdk-solidity-2.2.0/\\\",\\\":@rns-contracts/=src/\\\",\\\":@solady/=dependencies/@fdk-0.3.0-beta/dependencies/solady-0.0.206/src/\\\",\\\":buffer/=lib/buffer/contracts/\\\",\\\":contract-template/=lib/contract-template/src/\\\",\\\":ds-test/=lib/forge-std/lib/ds-test/src/\\\",\\\":ens-contracts/=lib/ens-contracts/contracts/\\\",\\\":forge-std/=dependencies/@fdk-0.3.0-beta/dependencies/forge-std-1.8.2/src/\\\",\\\":openzeppelin-contracts/=lib/contract-template/lib/openzeppelin-contracts/\\\"]},\\\"sources\\\":{\\\"dependencies/openzeppelin-4.9.3/contracts/access/AccessControl.sol\\\":{\\\"content\\\":\\\"// SPDX-License-Identifier: MIT\\\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol)\\\\n\\\\npragma solidity ^0.8.0;\\\\n\\\\nimport \\\\\\\"./IAccessControl.sol\\\\\\\";\\\\nimport \\\\\\\"../utils/Context.sol\\\\\\\";\\\\nimport \\\\\\\"../utils/Strings.sol\\\\\\\";\\\\nimport \\\\\\\"../utils/introspection/ERC165.sol\\\\\\\";\\\\n\\\\n/**\\\\n * @dev Contract module that allows children to implement role-based access\\\\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\\\\n * members except through off-chain means by accessing the contract event logs. Some\\\\n * applications may benefit from on-chain enumerability, for those cases see\\\\n * {AccessControlEnumerable}.\\\\n *\\\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\\\n * in the external API and be unique. The best way to achieve this is by\\\\n * using `public constant` hash digests:\\\\n *\\\\n * ```solidity\\\\n * bytes32 public constant MY_ROLE = keccak256(\\\\\\\"MY_ROLE\\\\\\\");\\\\n * ```\\\\n *\\\\n * Roles can be used to represent a set of permissions. To restrict access to a\\\\n * function call, use {hasRole}:\\\\n *\\\\n * ```solidity\\\\n * function foo() public {\\\\n * require(hasRole(MY_ROLE, msg.sender));\\\\n * ...\\\\n * }\\\\n * ```\\\\n *\\\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\\\n * {revokeRole} functions. Each role has an associated admin role, and only\\\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\\\n *\\\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\\\n * that only accounts with this role will be able to grant or revoke other\\\\n * roles. More complex role relationships can be created by using\\\\n * {_setRoleAdmin}.\\\\n *\\\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\\\n * grant and revoke this role. Extra precautions should be taken to secure\\\\n * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}\\\\n * to enforce additional security measures for this role.\\\\n */\\\\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\\\\n struct RoleData {\\\\n mapping(address => bool) members;\\\\n bytes32 adminRole;\\\\n }\\\\n\\\\n mapping(bytes32 => RoleData) private _roles;\\\\n\\\\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\\\n\\\\n /**\\\\n * @dev Modifier that checks that an account has a specific role. Reverts\\\\n * with a standardized message including the required role.\\\\n *\\\\n * The format of the revert reason is given by the following regular expression:\\\\n *\\\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\\\n *\\\\n * _Available since v4.1._\\\\n */\\\\n modifier onlyRole(bytes32 role) {\\\\n _checkRole(role);\\\\n _;\\\\n }\\\\n\\\\n /**\\\\n * @dev See {IERC165-supportsInterface}.\\\\n */\\\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\\\n return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns `true` if `account` has been granted `role`.\\\\n */\\\\n function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\\\\n return _roles[role].members[account];\\\\n }\\\\n\\\\n /**\\\\n * @dev Revert with a standard message if `_msgSender()` is missing `role`.\\\\n * Overriding this function changes the behavior of the {onlyRole} modifier.\\\\n *\\\\n * Format of the revert message is described in {_checkRole}.\\\\n *\\\\n * _Available since v4.6._\\\\n */\\\\n function _checkRole(bytes32 role) internal view virtual {\\\\n _checkRole(role, _msgSender());\\\\n }\\\\n\\\\n /**\\\\n * @dev Revert with a standard message if `account` is missing `role`.\\\\n *\\\\n * The format of the revert reason is given by the following regular expression:\\\\n *\\\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\\\n */\\\\n function _checkRole(bytes32 role, address account) internal view virtual {\\\\n if (!hasRole(role, account)) {\\\\n revert(\\\\n string(\\\\n abi.encodePacked(\\\\n \\\\\\\"AccessControl: account \\\\\\\",\\\\n Strings.toHexString(account),\\\\n \\\\\\\" is missing role \\\\\\\",\\\\n Strings.toHexString(uint256(role), 32)\\\\n )\\\\n )\\\\n );\\\\n }\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\\\n * {revokeRole}.\\\\n *\\\\n * To change a role's admin, use {_setRoleAdmin}.\\\\n */\\\\n function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\\\\n return _roles[role].adminRole;\\\\n }\\\\n\\\\n /**\\\\n * @dev Grants `role` to `account`.\\\\n *\\\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\\\n * event.\\\\n *\\\\n * Requirements:\\\\n *\\\\n * - the caller must have ``role``'s admin role.\\\\n *\\\\n * May emit a {RoleGranted} event.\\\\n */\\\\n function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\\\n _grantRole(role, account);\\\\n }\\\\n\\\\n /**\\\\n * @dev Revokes `role` from `account`.\\\\n *\\\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\\\n *\\\\n * Requirements:\\\\n *\\\\n * - the caller must have ``role``'s admin role.\\\\n *\\\\n * May emit a {RoleRevoked} event.\\\\n */\\\\n function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\\\n _revokeRole(role, account);\\\\n }\\\\n\\\\n /**\\\\n * @dev Revokes `role` from the calling account.\\\\n *\\\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\\\n * purpose is to provide a mechanism for accounts to lose their privileges\\\\n * if they are compromised (such as when a trusted device is misplaced).\\\\n *\\\\n * If the calling account had been revoked `role`, emits a {RoleRevoked}\\\\n * event.\\\\n *\\\\n * Requirements:\\\\n *\\\\n * - the caller must be `account`.\\\\n *\\\\n * May emit a {RoleRevoked} event.\\\\n */\\\\n function renounceRole(bytes32 role, address account) public virtual override {\\\\n require(account == _msgSender(), \\\\\\\"AccessControl: can only renounce roles for self\\\\\\\");\\\\n\\\\n _revokeRole(role, account);\\\\n }\\\\n\\\\n /**\\\\n * @dev Grants `role` to `account`.\\\\n *\\\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\\\n * event. Note that unlike {grantRole}, this function doesn't perform any\\\\n * checks on the calling account.\\\\n *\\\\n * May emit a {RoleGranted} event.\\\\n *\\\\n * [WARNING]\\\\n * ====\\\\n * This function should only be called from the constructor when setting\\\\n * up the initial roles for the system.\\\\n *\\\\n * Using this function in any other way is effectively circumventing the admin\\\\n * system imposed by {AccessControl}.\\\\n * ====\\\\n *\\\\n * NOTE: This function is deprecated in favor of {_grantRole}.\\\\n */\\\\n function _setupRole(bytes32 role, address account) internal virtual {\\\\n _grantRole(role, account);\\\\n }\\\\n\\\\n /**\\\\n * @dev Sets `adminRole` as ``role``'s admin role.\\\\n *\\\\n * Emits a {RoleAdminChanged} event.\\\\n */\\\\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\\\n bytes32 previousAdminRole = getRoleAdmin(role);\\\\n _roles[role].adminRole = adminRole;\\\\n emit RoleAdminChanged(role, previousAdminRole, adminRole);\\\\n }\\\\n\\\\n /**\\\\n * @dev Grants `role` to `account`.\\\\n *\\\\n * Internal function without access restriction.\\\\n *\\\\n * May emit a {RoleGranted} event.\\\\n */\\\\n function _grantRole(bytes32 role, address account) internal virtual {\\\\n if (!hasRole(role, account)) {\\\\n _roles[role].members[account] = true;\\\\n emit RoleGranted(role, account, _msgSender());\\\\n }\\\\n }\\\\n\\\\n /**\\\\n * @dev Revokes `role` from `account`.\\\\n *\\\\n * Internal function without access restriction.\\\\n *\\\\n * May emit a {RoleRevoked} event.\\\\n */\\\\n function _revokeRole(bytes32 role, address account) internal virtual {\\\\n if (hasRole(role, account)) {\\\\n _roles[role].members[account] = false;\\\\n emit RoleRevoked(role, account, _msgSender());\\\\n }\\\\n }\\\\n}\\\\n\\\",\\\"keccak256\\\":\\\"0x0dd6e52cb394d7f5abe5dca2d4908a6be40417914720932de757de34a99ab87f\\\",\\\"license\\\":\\\"MIT\\\"},\\\"dependencies/openzeppelin-4.9.3/contracts/access/AccessControlEnumerable.sol\\\":{\\\"content\\\":\\\"// SPDX-License-Identifier: MIT\\\\n// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)\\\\n\\\\npragma solidity ^0.8.0;\\\\n\\\\nimport \\\\\\\"./IAccessControlEnumerable.sol\\\\\\\";\\\\nimport \\\\\\\"./AccessControl.sol\\\\\\\";\\\\nimport \\\\\\\"../utils/structs/EnumerableSet.sol\\\\\\\";\\\\n\\\\n/**\\\\n * @dev Extension of {AccessControl} that allows enumerating the members of each role.\\\\n */\\\\nabstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {\\\\n using EnumerableSet for EnumerableSet.AddressSet;\\\\n\\\\n mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;\\\\n\\\\n /**\\\\n * @dev See {IERC165-supportsInterface}.\\\\n */\\\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\\\n return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId);\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns one of the accounts that have `role`. `index` must be a\\\\n * value between 0 and {getRoleMemberCount}, non-inclusive.\\\\n *\\\\n * Role bearers are not sorted in any particular way, and their ordering may\\\\n * change at any point.\\\\n *\\\\n * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\\\\n * you perform all queries on the same block. See the following\\\\n * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\\\\n * for more information.\\\\n */\\\\n function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {\\\\n return _roleMembers[role].at(index);\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns the number of accounts that have `role`. Can be used\\\\n * together with {getRoleMember} to enumerate all bearers of a role.\\\\n */\\\\n function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {\\\\n return _roleMembers[role].length();\\\\n }\\\\n\\\\n /**\\\\n * @dev Overload {_grantRole} to track enumerable memberships\\\\n */\\\\n function _grantRole(bytes32 role, address account) internal virtual override {\\\\n super._grantRole(role, account);\\\\n _roleMembers[role].add(account);\\\\n }\\\\n\\\\n /**\\\\n * @dev Overload {_revokeRole} to track enumerable memberships\\\\n */\\\\n function _revokeRole(bytes32 role, address account) internal virtual override {\\\\n super._revokeRole(role, account);\\\\n _roleMembers[role].remove(account);\\\\n }\\\\n}\\\\n\\\",\\\"keccak256\\\":\\\"0x13f5e15f2a0650c0b6aaee2ef19e89eaf4870d6e79662d572a393334c1397247\\\",\\\"license\\\":\\\"MIT\\\"},\\\"dependencies/openzeppelin-4.9.3/contracts/access/IAccessControl.sol\\\":{\\\"content\\\":\\\"// SPDX-License-Identifier: MIT\\\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\\\n\\\\npragma solidity ^0.8.0;\\\\n\\\\n/**\\\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\\\n */\\\\ninterface IAccessControl {\\\\n /**\\\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\\\n *\\\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\\\n * {RoleAdminChanged} not being emitted signaling this.\\\\n *\\\\n * _Available since v3.1._\\\\n */\\\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\\\n\\\\n /**\\\\n * @dev Emitted when `account` is granted `role`.\\\\n *\\\\n * `sender` is the account that originated the contract call, an admin role\\\\n * bearer except when using {AccessControl-_setupRole}.\\\\n */\\\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\\\n\\\\n /**\\\\n * @dev Emitted when `account` is revoked `role`.\\\\n *\\\\n * `sender` is the account that originated the contract call:\\\\n * - if using `revokeRole`, it is the admin role bearer\\\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\\\n */\\\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\\\n\\\\n /**\\\\n * @dev Returns `true` if `account` has been granted `role`.\\\\n */\\\\n function hasRole(bytes32 role, address account) external view returns (bool);\\\\n\\\\n /**\\\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\\\n * {revokeRole}.\\\\n *\\\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\\\n */\\\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\\\n\\\\n /**\\\\n * @dev Grants `role` to `account`.\\\\n *\\\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\\\n * event.\\\\n *\\\\n * Requirements:\\\\n *\\\\n * - the caller must have ``role``'s admin role.\\\\n */\\\\n function grantRole(bytes32 role, address account) external;\\\\n\\\\n /**\\\\n * @dev Revokes `role` from `account`.\\\\n *\\\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\\\n *\\\\n * Requirements:\\\\n *\\\\n * - the caller must have ``role``'s admin role.\\\\n */\\\\n function revokeRole(bytes32 role, address account) external;\\\\n\\\\n /**\\\\n * @dev Revokes `role` from the calling account.\\\\n *\\\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\\\n * purpose is to provide a mechanism for accounts to lose their privileges\\\\n * if they are compromised (such as when a trusted device is misplaced).\\\\n *\\\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\\\n * event.\\\\n *\\\\n * Requirements:\\\\n *\\\\n * - the caller must be `account`.\\\\n */\\\\n function renounceRole(bytes32 role, address account) external;\\\\n}\\\\n\\\",\\\"keccak256\\\":\\\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\\\",\\\"license\\\":\\\"MIT\\\"},\\\"dependencies/openzeppelin-4.9.3/contracts/access/IAccessControlEnumerable.sol\\\":{\\\"content\\\":\\\"// SPDX-License-Identifier: MIT\\\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)\\\\n\\\\npragma solidity ^0.8.0;\\\\n\\\\nimport \\\\\\\"./IAccessControl.sol\\\\\\\";\\\\n\\\\n/**\\\\n * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.\\\\n */\\\\ninterface IAccessControlEnumerable is IAccessControl {\\\\n /**\\\\n * @dev Returns one of the accounts that have `role`. `index` must be a\\\\n * value between 0 and {getRoleMemberCount}, non-inclusive.\\\\n *\\\\n * Role bearers are not sorted in any particular way, and their ordering may\\\\n * change at any point.\\\\n *\\\\n * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\\\\n * you perform all queries on the same block. See the following\\\\n * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\\\\n * for more information.\\\\n */\\\\n function getRoleMember(bytes32 role, uint256 index) external view returns (address);\\\\n\\\\n /**\\\\n * @dev Returns the number of accounts that have `role`. Can be used\\\\n * together with {getRoleMember} to enumerate all bearers of a role.\\\\n */\\\\n function getRoleMemberCount(bytes32 role) external view returns (uint256);\\\\n}\\\\n\\\",\\\"keccak256\\\":\\\"0xba4459ab871dfa300f5212c6c30178b63898c03533a1ede28436f11546626676\\\",\\\"license\\\":\\\"MIT\\\"},\\\"dependencies/openzeppelin-4.9.3/contracts/proxy/utils/Initializable.sol\\\":{\\\"content\\\":\\\"// SPDX-License-Identifier: MIT\\\\n// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)\\\\n\\\\npragma solidity ^0.8.2;\\\\n\\\\nimport \\\\\\\"../../utils/Address.sol\\\\\\\";\\\\n\\\\n/**\\\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\\\n *\\\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\\\n * reused. This mechanism prevents re-execution of each \\\\\\\"step\\\\\\\" but allows the creation of new initialization steps in\\\\n * case an upgrade adds a module that needs to be initialized.\\\\n *\\\\n * For example:\\\\n *\\\\n * [.hljs-theme-light.nopadding]\\\\n * ```solidity\\\\n * contract MyToken is ERC20Upgradeable {\\\\n * function initialize() initializer public {\\\\n * __ERC20_init(\\\\\\\"MyToken\\\\\\\", \\\\\\\"MTK\\\\\\\");\\\\n * }\\\\n * }\\\\n *\\\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\\\n * function initializeV2() reinitializer(2) public {\\\\n * __ERC20Permit_init(\\\\\\\"MyToken\\\\\\\");\\\\n * }\\\\n * }\\\\n * ```\\\\n *\\\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\\\n *\\\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\\\n *\\\\n * [CAUTION]\\\\n * ====\\\\n * Avoid leaving a contract uninitialized.\\\\n *\\\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\\\n *\\\\n * [.hljs-theme-light.nopadding]\\\\n * ```\\\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\\\n * constructor() {\\\\n * _disableInitializers();\\\\n * }\\\\n * ```\\\\n * ====\\\\n */\\\\nabstract contract Initializable {\\\\n /**\\\\n * @dev Indicates that the contract has been initialized.\\\\n * @custom:oz-retyped-from bool\\\\n */\\\\n uint8 private _initialized;\\\\n\\\\n /**\\\\n * @dev Indicates that the contract is in the process of being initialized.\\\\n */\\\\n bool private _initializing;\\\\n\\\\n /**\\\\n * @dev Triggered when the contract has been initialized or reinitialized.\\\\n */\\\\n event Initialized(uint8 version);\\\\n\\\\n /**\\\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\\\n *\\\\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\\\n * constructor.\\\\n *\\\\n * Emits an {Initialized} event.\\\\n */\\\\n modifier initializer() {\\\\n bool isTopLevelCall = !_initializing;\\\\n require(\\\\n (isTopLevelCall && _initialized < 1) || (!Address.isContract(address(this)) && _initialized == 1),\\\\n \\\\\\\"Initializable: contract is already initialized\\\\\\\"\\\\n );\\\\n _initialized = 1;\\\\n if (isTopLevelCall) {\\\\n _initializing = true;\\\\n }\\\\n _;\\\\n if (isTopLevelCall) {\\\\n _initializing = false;\\\\n emit Initialized(1);\\\\n }\\\\n }\\\\n\\\\n /**\\\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\\\n * used to initialize parent contracts.\\\\n *\\\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\\\n * are added through upgrades and that require initialization.\\\\n *\\\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\\\n *\\\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\\\n * a contract, executing them in the right order is up to the developer or operator.\\\\n *\\\\n * WARNING: setting the version to 255 will prevent any future reinitialization.\\\\n *\\\\n * Emits an {Initialized} event.\\\\n */\\\\n modifier reinitializer(uint8 version) {\\\\n require(!_initializing && _initialized < version, \\\\\\\"Initializable: contract is already initialized\\\\\\\");\\\\n _initialized = version;\\\\n _initializing = true;\\\\n _;\\\\n _initializing = false;\\\\n emit Initialized(version);\\\\n }\\\\n\\\\n /**\\\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\\\n */\\\\n modifier onlyInitializing() {\\\\n require(_initializing, \\\\\\\"Initializable: contract is not initializing\\\\\\\");\\\\n _;\\\\n }\\\\n\\\\n /**\\\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\\\n * through proxies.\\\\n *\\\\n * Emits an {Initialized} event the first time it is successfully executed.\\\\n */\\\\n function _disableInitializers() internal virtual {\\\\n require(!_initializing, \\\\\\\"Initializable: contract is initializing\\\\\\\");\\\\n if (_initialized != type(uint8).max) {\\\\n _initialized = type(uint8).max;\\\\n emit Initialized(type(uint8).max);\\\\n }\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\\\n */\\\\n function _getInitializedVersion() internal view returns (uint8) {\\\\n return _initialized;\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\\\n */\\\\n function _isInitializing() internal view returns (bool) {\\\\n return _initializing;\\\\n }\\\\n}\\\\n\\\",\\\"keccak256\\\":\\\"0x3d6069be9b4c01fb81840fb9c2c4dc58dd6a6a4aafaa2c6837de8699574d84c6\\\",\\\"license\\\":\\\"MIT\\\"},\\\"dependencies/openzeppelin-4.9.3/contracts/utils/Address.sol\\\":{\\\"content\\\":\\\"// SPDX-License-Identifier: MIT\\\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\\\n\\\\npragma solidity ^0.8.1;\\\\n\\\\n/**\\\\n * @dev Collection of functions related to the address type\\\\n */\\\\nlibrary Address {\\\\n /**\\\\n * @dev Returns true if `account` is a contract.\\\\n *\\\\n * [IMPORTANT]\\\\n * ====\\\\n * It is unsafe to assume that an address for which this function returns\\\\n * false is an externally-owned account (EOA) and not a contract.\\\\n *\\\\n * Among others, `isContract` will return false for the following\\\\n * types of addresses:\\\\n *\\\\n * - an externally-owned account\\\\n * - a contract in construction\\\\n * - an address where a contract will be created\\\\n * - an address where a contract lived, but was destroyed\\\\n *\\\\n * Furthermore, `isContract` will also return true if the target contract within\\\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\\\n * which only has an effect at the end of a transaction.\\\\n * ====\\\\n *\\\\n * [IMPORTANT]\\\\n * ====\\\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\\\n *\\\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\\\n * constructor.\\\\n * ====\\\\n */\\\\n function isContract(address account) internal view returns (bool) {\\\\n // This method relies on extcodesize/address.code.length, which returns 0\\\\n // for contracts in construction, since the code is only stored at the end\\\\n // of the constructor execution.\\\\n\\\\n return account.code.length > 0;\\\\n }\\\\n\\\\n /**\\\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\\\n * `recipient`, forwarding all available gas and reverting on errors.\\\\n *\\\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\\\n * imposed by `transfer`, making them unable to receive funds via\\\\n * `transfer`. {sendValue} removes this limitation.\\\\n *\\\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\\\n *\\\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\\\n * taken to not create reentrancy vulnerabilities. Consider using\\\\n * {ReentrancyGuard} or the\\\\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\\\n */\\\\n function sendValue(address payable recipient, uint256 amount) internal {\\\\n require(address(this).balance >= amount, \\\\\\\"Address: insufficient balance\\\\\\\");\\\\n\\\\n (bool success, ) = recipient.call{value: amount}(\\\\\\\"\\\\\\\");\\\\n require(success, \\\\\\\"Address: unable to send value, recipient may have reverted\\\\\\\");\\\\n }\\\\n\\\\n /**\\\\n * @dev Performs a Solidity function call using a low level `call`. A\\\\n * plain `call` is an unsafe replacement for a function call: use this\\\\n * function instead.\\\\n *\\\\n * If `target` reverts with a revert reason, it is bubbled up by this\\\\n * function (like regular Solidity function calls).\\\\n *\\\\n * Returns the raw returned data. To convert to the expected return value,\\\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\\\n *\\\\n * Requirements:\\\\n *\\\\n * - `target` must be a contract.\\\\n * - calling `target` with `data` must not revert.\\\\n *\\\\n * _Available since v3.1._\\\\n */\\\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\\\n return functionCallWithValue(target, data, 0, \\\\\\\"Address: low-level call failed\\\\\\\");\\\\n }\\\\n\\\\n /**\\\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\\\n *\\\\n * _Available since v3.1._\\\\n */\\\\n function functionCall(\\\\n address target,\\\\n bytes memory data,\\\\n string memory errorMessage\\\\n ) internal returns (bytes memory) {\\\\n return functionCallWithValue(target, data, 0, errorMessage);\\\\n }\\\\n\\\\n /**\\\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\\\n * but also transferring `value` wei to `target`.\\\\n *\\\\n * Requirements:\\\\n *\\\\n * - the calling contract must have an ETH balance of at least `value`.\\\\n * - the called Solidity function must be `payable`.\\\\n *\\\\n * _Available since v3.1._\\\\n */\\\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\\\n return functionCallWithValue(target, data, value, \\\\\\\"Address: low-level call with value failed\\\\\\\");\\\\n }\\\\n\\\\n /**\\\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\\\n *\\\\n * _Available since v3.1._\\\\n */\\\\n function functionCallWithValue(\\\\n address target,\\\\n bytes memory data,\\\\n uint256 value,\\\\n string memory errorMessage\\\\n ) internal returns (bytes memory) {\\\\n require(address(this).balance >= value, \\\\\\\"Address: insufficient balance for call\\\\\\\");\\\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\\\n }\\\\n\\\\n /**\\\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\\\n * but performing a static call.\\\\n *\\\\n * _Available since v3.3._\\\\n */\\\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\\\n return functionStaticCall(target, data, \\\\\\\"Address: low-level static call failed\\\\\\\");\\\\n }\\\\n\\\\n /**\\\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\\\n * but performing a static call.\\\\n *\\\\n * _Available since v3.3._\\\\n */\\\\n function functionStaticCall(\\\\n address target,\\\\n bytes memory data,\\\\n string memory errorMessage\\\\n ) internal view returns (bytes memory) {\\\\n (bool success, bytes memory returndata) = target.staticcall(data);\\\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\\\n }\\\\n\\\\n /**\\\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\\\n * but performing a delegate call.\\\\n *\\\\n * _Available since v3.4._\\\\n */\\\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\\\n return functionDelegateCall(target, data, \\\\\\\"Address: low-level delegate call failed\\\\\\\");\\\\n }\\\\n\\\\n /**\\\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\\\n * but performing a delegate call.\\\\n *\\\\n * _Available since v3.4._\\\\n */\\\\n function functionDelegateCall(\\\\n address target,\\\\n bytes memory data,\\\\n string memory errorMessage\\\\n ) internal returns (bytes memory) {\\\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\\\n }\\\\n\\\\n /**\\\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\\\n *\\\\n * _Available since v4.8._\\\\n */\\\\n function verifyCallResultFromTarget(\\\\n address target,\\\\n bool success,\\\\n bytes memory returndata,\\\\n string memory errorMessage\\\\n ) internal view returns (bytes memory) {\\\\n if (success) {\\\\n if (returndata.length == 0) {\\\\n // only check isContract if the call was successful and the return data is empty\\\\n // otherwise we already know that it was a contract\\\\n require(isContract(target), \\\\\\\"Address: call to non-contract\\\\\\\");\\\\n }\\\\n return returndata;\\\\n } else {\\\\n _revert(returndata, errorMessage);\\\\n }\\\\n }\\\\n\\\\n /**\\\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\\\n * revert reason or using the provided one.\\\\n *\\\\n * _Available since v4.3._\\\\n */\\\\n function verifyCallResult(\\\\n bool success,\\\\n bytes memory returndata,\\\\n string memory errorMessage\\\\n ) internal pure returns (bytes memory) {\\\\n if (success) {\\\\n return returndata;\\\\n } else {\\\\n _revert(returndata, errorMessage);\\\\n }\\\\n }\\\\n\\\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\\\n // Look for revert reason and bubble it up if present\\\\n if (returndata.length > 0) {\\\\n // The easiest way to bubble the revert reason is using memory via assembly\\\\n /// @solidity memory-safe-assembly\\\\n assembly {\\\\n let returndata_size := mload(returndata)\\\\n revert(add(32, returndata), returndata_size)\\\\n }\\\\n } else {\\\\n revert(errorMessage);\\\\n }\\\\n }\\\\n}\\\\n\\\",\\\"keccak256\\\":\\\"0x006dd67219697fe68d7fbfdea512e7c4cb64a43565ed86171d67e844982da6fa\\\",\\\"license\\\":\\\"MIT\\\"},\\\"dependencies/openzeppelin-4.9.3/contracts/utils/Context.sol\\\":{\\\"content\\\":\\\"// SPDX-License-Identifier: MIT\\\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\\\n\\\\npragma solidity ^0.8.0;\\\\n\\\\n/**\\\\n * @dev Provides information about the current execution context, including the\\\\n * sender of the transaction and its data. While these are generally available\\\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\\\n * manner, since when dealing with meta-transactions the account sending and\\\\n * paying for execution may not be the actual sender (as far as an application\\\\n * is concerned).\\\\n *\\\\n * This contract is only required for intermediate, library-like contracts.\\\\n */\\\\nabstract contract Context {\\\\n function _msgSender() internal view virtual returns (address) {\\\\n return msg.sender;\\\\n }\\\\n\\\\n function _msgData() internal view virtual returns (bytes calldata) {\\\\n return msg.data;\\\\n }\\\\n}\\\\n\\\",\\\"keccak256\\\":\\\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\\\",\\\"license\\\":\\\"MIT\\\"},\\\"dependencies/openzeppelin-4.9.3/contracts/utils/Strings.sol\\\":{\\\"content\\\":\\\"// SPDX-License-Identifier: MIT\\\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)\\\\n\\\\npragma solidity ^0.8.0;\\\\n\\\\nimport \\\\\\\"./math/Math.sol\\\\\\\";\\\\nimport \\\\\\\"./math/SignedMath.sol\\\\\\\";\\\\n\\\\n/**\\\\n * @dev String operations.\\\\n */\\\\nlibrary Strings {\\\\n bytes16 private constant _SYMBOLS = \\\\\\\"0123456789abcdef\\\\\\\";\\\\n uint8 private constant _ADDRESS_LENGTH = 20;\\\\n\\\\n /**\\\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\\\n */\\\\n function toString(uint256 value) internal pure returns (string memory) {\\\\n unchecked {\\\\n uint256 length = Math.log10(value) + 1;\\\\n string memory buffer = new string(length);\\\\n uint256 ptr;\\\\n /// @solidity memory-safe-assembly\\\\n assembly {\\\\n ptr := add(buffer, add(32, length))\\\\n }\\\\n while (true) {\\\\n ptr--;\\\\n /// @solidity memory-safe-assembly\\\\n assembly {\\\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\\\n }\\\\n value /= 10;\\\\n if (value == 0) break;\\\\n }\\\\n return buffer;\\\\n }\\\\n }\\\\n\\\\n /**\\\\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\\\\n */\\\\n function toString(int256 value) internal pure returns (string memory) {\\\\n return string(abi.encodePacked(value < 0 ? \\\\\\\"-\\\\\\\" : \\\\\\\"\\\\\\\", toString(SignedMath.abs(value))));\\\\n }\\\\n\\\\n /**\\\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\\\n */\\\\n function toHexString(uint256 value) internal pure returns (string memory) {\\\\n unchecked {\\\\n return toHexString(value, Math.log256(value) + 1);\\\\n }\\\\n }\\\\n\\\\n /**\\\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\\\n */\\\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\\\n bytes memory buffer = new bytes(2 * length + 2);\\\\n buffer[0] = \\\\\\\"0\\\\\\\";\\\\n buffer[1] = \\\\\\\"x\\\\\\\";\\\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\\\n buffer[i] = _SYMBOLS[value & 0xf];\\\\n value >>= 4;\\\\n }\\\\n require(value == 0, \\\\\\\"Strings: hex length insufficient\\\\\\\");\\\\n return string(buffer);\\\\n }\\\\n\\\\n /**\\\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\\\n */\\\\n function toHexString(address addr) internal pure returns (string memory) {\\\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns true if the two strings are equal.\\\\n */\\\\n function equal(string memory a, string memory b) internal pure returns (bool) {\\\\n return keccak256(bytes(a)) == keccak256(bytes(b));\\\\n }\\\\n}\\\\n\\\",\\\"keccak256\\\":\\\"0x3088eb2868e8d13d89d16670b5f8612c4ab9ff8956272837d8e90106c59c14a0\\\",\\\"license\\\":\\\"MIT\\\"},\\\"dependencies/openzeppelin-4.9.3/contracts/utils/introspection/ERC165.sol\\\":{\\\"content\\\":\\\"// SPDX-License-Identifier: MIT\\\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\\\\n\\\\npragma solidity ^0.8.0;\\\\n\\\\nimport \\\\\\\"./IERC165.sol\\\\\\\";\\\\n\\\\n/**\\\\n * @dev Implementation of the {IERC165} interface.\\\\n *\\\\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\\\\n * for the additional interface id that will be supported. For example:\\\\n *\\\\n * ```solidity\\\\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\\\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\\\\n * }\\\\n * ```\\\\n *\\\\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\\\\n */\\\\nabstract contract ERC165 is IERC165 {\\\\n /**\\\\n * @dev See {IERC165-supportsInterface}.\\\\n */\\\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\\\n return interfaceId == type(IERC165).interfaceId;\\\\n }\\\\n}\\\\n\\\",\\\"keccak256\\\":\\\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\\\",\\\"license\\\":\\\"MIT\\\"},\\\"dependencies/openzeppelin-4.9.3/contracts/utils/introspection/IERC165.sol\\\":{\\\"content\\\":\\\"// SPDX-License-Identifier: MIT\\\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\\\n\\\\npragma solidity ^0.8.0;\\\\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\\\",\\\"keccak256\\\":\\\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\\\",\\\"license\\\":\\\"MIT\\\"},\\\"dependencies/openzeppelin-4.9.3/contracts/utils/math/Math.sol\\\":{\\\"content\\\":\\\"// SPDX-License-Identifier: MIT\\\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)\\\\n\\\\npragma solidity ^0.8.0;\\\\n\\\\n/**\\\\n * @dev Standard math utilities missing in the Solidity language.\\\\n */\\\\nlibrary Math {\\\\n enum Rounding {\\\\n Down, // Toward negative infinity\\\\n Up, // Toward infinity\\\\n Zero // Toward zero\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns the largest of two numbers.\\\\n */\\\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\\\n return a > b ? a : b;\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns the smallest of two numbers.\\\\n */\\\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\\\n return a < b ? a : b;\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns the average of two numbers. The result is rounded towards\\\\n * zero.\\\\n */\\\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\\\n // (a + b) / 2 can overflow.\\\\n return (a & b) + (a ^ b) / 2;\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns the ceiling of the division of two numbers.\\\\n *\\\\n * This differs from standard division with `/` in that it rounds up instead\\\\n * of rounding down.\\\\n */\\\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\\\n return a == 0 ? 0 : (a - 1) / b + 1;\\\\n }\\\\n\\\\n /**\\\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\\\n * with further edits by Uniswap Labs also under MIT license.\\\\n */\\\\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\\\\n unchecked {\\\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\\\n // variables such that product = prod1 * 2^256 + prod0.\\\\n uint256 prod0; // Least significant 256 bits of the product\\\\n uint256 prod1; // Most significant 256 bits of the product\\\\n assembly {\\\\n let mm := mulmod(x, y, not(0))\\\\n prod0 := mul(x, y)\\\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\\\n }\\\\n\\\\n // Handle non-overflow cases, 256 by 256 division.\\\\n if (prod1 == 0) {\\\\n // Solidity will revert if denominator == 0, unlike the div opcode on its own.\\\\n // The surrounding unchecked block does not change this fact.\\\\n // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\\\\n return prod0 / denominator;\\\\n }\\\\n\\\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\\\n require(denominator > prod1, \\\\\\\"Math: mulDiv overflow\\\\\\\");\\\\n\\\\n ///////////////////////////////////////////////\\\\n // 512 by 256 division.\\\\n ///////////////////////////////////////////////\\\\n\\\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\\\n uint256 remainder;\\\\n assembly {\\\\n // Compute remainder using mulmod.\\\\n remainder := mulmod(x, y, denominator)\\\\n\\\\n // Subtract 256 bit number from 512 bit number.\\\\n prod1 := sub(prod1, gt(remainder, prod0))\\\\n prod0 := sub(prod0, remainder)\\\\n }\\\\n\\\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\\\n // See https://cs.stackexchange.com/q/138556/92363.\\\\n\\\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\\\n uint256 twos = denominator & (~denominator + 1);\\\\n assembly {\\\\n // Divide denominator by twos.\\\\n denominator := div(denominator, twos)\\\\n\\\\n // Divide [prod1 prod0] by twos.\\\\n prod0 := div(prod0, twos)\\\\n\\\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\\\n twos := add(div(sub(0, twos), twos), 1)\\\\n }\\\\n\\\\n // Shift in bits from prod1 into prod0.\\\\n prod0 |= prod1 * twos;\\\\n\\\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\\\n uint256 inverse = (3 * denominator) ^ 2;\\\\n\\\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\\\n // in modular arithmetic, doubling the correct bits in each step.\\\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\\\n\\\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\\\n // is no longer required.\\\\n result = prod0 * inverse;\\\\n return result;\\\\n }\\\\n }\\\\n\\\\n /**\\\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\\\n */\\\\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\\\\n uint256 result = mulDiv(x, y, denominator);\\\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\\\n result += 1;\\\\n }\\\\n return result;\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\\\n *\\\\n * Inspired by Henry S. Warren, Jr.'s \\\\\\\"Hacker's Delight\\\\\\\" (Chapter 11).\\\\n */\\\\n function sqrt(uint256 a) internal pure returns (uint256) {\\\\n if (a == 0) {\\\\n return 0;\\\\n }\\\\n\\\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\\\n //\\\\n // We know that the \\\\\\\"msb\\\\\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\\\n //\\\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\\\n // \\\\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\\\n // \\\\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\\\n //\\\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\\\n uint256 result = 1 << (log2(a) >> 1);\\\\n\\\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\\\n // into the expected uint128 result.\\\\n unchecked {\\\\n result = (result + a / result) >> 1;\\\\n result = (result + a / result) >> 1;\\\\n result = (result + a / result) >> 1;\\\\n result = (result + a / result) >> 1;\\\\n result = (result + a / result) >> 1;\\\\n result = (result + a / result) >> 1;\\\\n result = (result + a / result) >> 1;\\\\n return min(result, a / result);\\\\n }\\\\n }\\\\n\\\\n /**\\\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\\\n */\\\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\\\n unchecked {\\\\n uint256 result = sqrt(a);\\\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\\\n }\\\\n }\\\\n\\\\n /**\\\\n * @dev Return the log in base 2, rounded down, of a positive value.\\\\n * Returns 0 if given 0.\\\\n */\\\\n function log2(uint256 value) internal pure returns (uint256) {\\\\n uint256 result = 0;\\\\n unchecked {\\\\n if (value >> 128 > 0) {\\\\n value >>= 128;\\\\n result += 128;\\\\n }\\\\n if (value >> 64 > 0) {\\\\n value >>= 64;\\\\n result += 64;\\\\n }\\\\n if (value >> 32 > 0) {\\\\n value >>= 32;\\\\n result += 32;\\\\n }\\\\n if (value >> 16 > 0) {\\\\n value >>= 16;\\\\n result += 16;\\\\n }\\\\n if (value >> 8 > 0) {\\\\n value >>= 8;\\\\n result += 8;\\\\n }\\\\n if (value >> 4 > 0) {\\\\n value >>= 4;\\\\n result += 4;\\\\n }\\\\n if (value >> 2 > 0) {\\\\n value >>= 2;\\\\n result += 2;\\\\n }\\\\n if (value >> 1 > 0) {\\\\n result += 1;\\\\n }\\\\n }\\\\n return result;\\\\n }\\\\n\\\\n /**\\\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\\\n * Returns 0 if given 0.\\\\n */\\\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\\\n unchecked {\\\\n uint256 result = log2(value);\\\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\\\n }\\\\n }\\\\n\\\\n /**\\\\n * @dev Return the log in base 10, rounded down, of a positive value.\\\\n * Returns 0 if given 0.\\\\n */\\\\n function log10(uint256 value) internal pure returns (uint256) {\\\\n uint256 result = 0;\\\\n unchecked {\\\\n if (value >= 10 ** 64) {\\\\n value /= 10 ** 64;\\\\n result += 64;\\\\n }\\\\n if (value >= 10 ** 32) {\\\\n value /= 10 ** 32;\\\\n result += 32;\\\\n }\\\\n if (value >= 10 ** 16) {\\\\n value /= 10 ** 16;\\\\n result += 16;\\\\n }\\\\n if (value >= 10 ** 8) {\\\\n value /= 10 ** 8;\\\\n result += 8;\\\\n }\\\\n if (value >= 10 ** 4) {\\\\n value /= 10 ** 4;\\\\n result += 4;\\\\n }\\\\n if (value >= 10 ** 2) {\\\\n value /= 10 ** 2;\\\\n result += 2;\\\\n }\\\\n if (value >= 10 ** 1) {\\\\n result += 1;\\\\n }\\\\n }\\\\n return result;\\\\n }\\\\n\\\\n /**\\\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\\\n * Returns 0 if given 0.\\\\n */\\\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\\\n unchecked {\\\\n uint256 result = log10(value);\\\\n return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);\\\\n }\\\\n }\\\\n\\\\n /**\\\\n * @dev Return the log in base 256, rounded down, of a positive value.\\\\n * Returns 0 if given 0.\\\\n *\\\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\\\n */\\\\n function log256(uint256 value) internal pure returns (uint256) {\\\\n uint256 result = 0;\\\\n unchecked {\\\\n if (value >> 128 > 0) {\\\\n value >>= 128;\\\\n result += 16;\\\\n }\\\\n if (value >> 64 > 0) {\\\\n value >>= 64;\\\\n result += 8;\\\\n }\\\\n if (value >> 32 > 0) {\\\\n value >>= 32;\\\\n result += 4;\\\\n }\\\\n if (value >> 16 > 0) {\\\\n value >>= 16;\\\\n result += 2;\\\\n }\\\\n if (value >> 8 > 0) {\\\\n result += 1;\\\\n }\\\\n }\\\\n return result;\\\\n }\\\\n\\\\n /**\\\\n * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\\\\n * Returns 0 if given 0.\\\\n */\\\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\\\n unchecked {\\\\n uint256 result = log256(value);\\\\n return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);\\\\n }\\\\n }\\\\n}\\\\n\\\",\\\"keccak256\\\":\\\"0xe4455ac1eb7fc497bb7402579e7b4d64d928b846fce7d2b6fde06d366f21c2b3\\\",\\\"license\\\":\\\"MIT\\\"},\\\"dependencies/openzeppelin-4.9.3/contracts/utils/math/SignedMath.sol\\\":{\\\"content\\\":\\\"// SPDX-License-Identifier: MIT\\\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)\\\\n\\\\npragma solidity ^0.8.0;\\\\n\\\\n/**\\\\n * @dev Standard signed math utilities missing in the Solidity language.\\\\n */\\\\nlibrary SignedMath {\\\\n /**\\\\n * @dev Returns the largest of two signed numbers.\\\\n */\\\\n function max(int256 a, int256 b) internal pure returns (int256) {\\\\n return a > b ? a : b;\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns the smallest of two signed numbers.\\\\n */\\\\n function min(int256 a, int256 b) internal pure returns (int256) {\\\\n return a < b ? a : b;\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns the average of two signed numbers without overflow.\\\\n * The result is rounded towards zero.\\\\n */\\\\n function average(int256 a, int256 b) internal pure returns (int256) {\\\\n // Formula from the book \\\\\\\"Hacker's Delight\\\\\\\"\\\\n int256 x = (a & b) + ((a ^ b) >> 1);\\\\n return x + (int256(uint256(x) >> 255) & (a ^ b));\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns the absolute unsigned value of a signed value.\\\\n */\\\\n function abs(int256 n) internal pure returns (uint256) {\\\\n unchecked {\\\\n // must be unchecked in order to support `n = type(int256).min`\\\\n return uint256(n >= 0 ? n : -n);\\\\n }\\\\n }\\\\n}\\\\n\\\",\\\"keccak256\\\":\\\"0xf92515413956f529d95977adc9b0567d583c6203fc31ab1c23824c35187e3ddc\\\",\\\"license\\\":\\\"MIT\\\"},\\\"dependencies/openzeppelin-4.9.3/contracts/utils/structs/EnumerableSet.sol\\\":{\\\"content\\\":\\\"// SPDX-License-Identifier: MIT\\\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/structs/EnumerableSet.sol)\\\\n// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.\\\\n\\\\npragma solidity ^0.8.0;\\\\n\\\\n/**\\\\n * @dev Library for managing\\\\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\\\\n * types.\\\\n *\\\\n * Sets have the following properties:\\\\n *\\\\n * - Elements are added, removed, and checked for existence in constant time\\\\n * (O(1)).\\\\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\\\\n *\\\\n * ```solidity\\\\n * contract Example {\\\\n * // Add the library methods\\\\n * using EnumerableSet for EnumerableSet.AddressSet;\\\\n *\\\\n * // Declare a set state variable\\\\n * EnumerableSet.AddressSet private mySet;\\\\n * }\\\\n * ```\\\\n *\\\\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\\\\n * and `uint256` (`UintSet`) are supported.\\\\n *\\\\n * [WARNING]\\\\n * ====\\\\n * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure\\\\n * unusable.\\\\n * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.\\\\n *\\\\n * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an\\\\n * array of EnumerableSet.\\\\n * ====\\\\n */\\\\nlibrary EnumerableSet {\\\\n // To implement this library for multiple types with as little code\\\\n // repetition as possible, we write it in terms of a generic Set type with\\\\n // bytes32 values.\\\\n // The Set implementation uses private functions, and user-facing\\\\n // implementations (such as AddressSet) are just wrappers around the\\\\n // underlying Set.\\\\n // This means that we can only create new EnumerableSets for types that fit\\\\n // in bytes32.\\\\n\\\\n struct Set {\\\\n // Storage of set values\\\\n bytes32[] _values;\\\\n // Position of the value in the `values` array, plus 1 because index 0\\\\n // means a value is not in the set.\\\\n mapping(bytes32 => uint256) _indexes;\\\\n }\\\\n\\\\n /**\\\\n * @dev Add a value to a set. O(1).\\\\n *\\\\n * Returns true if the value was added to the set, that is if it was not\\\\n * already present.\\\\n */\\\\n function _add(Set storage set, bytes32 value) private returns (bool) {\\\\n if (!_contains(set, value)) {\\\\n set._values.push(value);\\\\n // The value is stored at length-1, but we add 1 to all indexes\\\\n // and use 0 as a sentinel value\\\\n set._indexes[value] = set._values.length;\\\\n return true;\\\\n } else {\\\\n return false;\\\\n }\\\\n }\\\\n\\\\n /**\\\\n * @dev Removes a value from a set. O(1).\\\\n *\\\\n * Returns true if the value was removed from the set, that is if it was\\\\n * present.\\\\n */\\\\n function _remove(Set storage set, bytes32 value) private returns (bool) {\\\\n // We read and store the value's index to prevent multiple reads from the same storage slot\\\\n uint256 valueIndex = set._indexes[value];\\\\n\\\\n if (valueIndex != 0) {\\\\n // Equivalent to contains(set, value)\\\\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\\\\n // the array, and then remove the last element (sometimes called as 'swap and pop').\\\\n // This modifies the order of the array, as noted in {at}.\\\\n\\\\n uint256 toDeleteIndex = valueIndex - 1;\\\\n uint256 lastIndex = set._values.length - 1;\\\\n\\\\n if (lastIndex != toDeleteIndex) {\\\\n bytes32 lastValue = set._values[lastIndex];\\\\n\\\\n // Move the last value to the index where the value to delete is\\\\n set._values[toDeleteIndex] = lastValue;\\\\n // Update the index for the moved value\\\\n set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex\\\\n }\\\\n\\\\n // Delete the slot where the moved value was stored\\\\n set._values.pop();\\\\n\\\\n // Delete the index for the deleted slot\\\\n delete set._indexes[value];\\\\n\\\\n return true;\\\\n } else {\\\\n return false;\\\\n }\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns true if the value is in the set. O(1).\\\\n */\\\\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\\\\n return set._indexes[value] != 0;\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns the number of values on the set. O(1).\\\\n */\\\\n function _length(Set storage set) private view returns (uint256) {\\\\n return set._values.length;\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns the value stored at position `index` in the set. O(1).\\\\n *\\\\n * Note that there are no guarantees on the ordering of values inside the\\\\n * array, and it may change when more values are added or removed.\\\\n *\\\\n * Requirements:\\\\n *\\\\n * - `index` must be strictly less than {length}.\\\\n */\\\\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\\\\n return set._values[index];\\\\n }\\\\n\\\\n /**\\\\n * @dev Return the entire set in an array\\\\n *\\\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\\\n */\\\\n function _values(Set storage set) private view returns (bytes32[] memory) {\\\\n return set._values;\\\\n }\\\\n\\\\n // Bytes32Set\\\\n\\\\n struct Bytes32Set {\\\\n Set _inner;\\\\n }\\\\n\\\\n /**\\\\n * @dev Add a value to a set. O(1).\\\\n *\\\\n * Returns true if the value was added to the set, that is if it was not\\\\n * already present.\\\\n */\\\\n function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\\\n return _add(set._inner, value);\\\\n }\\\\n\\\\n /**\\\\n * @dev Removes a value from a set. O(1).\\\\n *\\\\n * Returns true if the value was removed from the set, that is if it was\\\\n * present.\\\\n */\\\\n function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\\\n return _remove(set._inner, value);\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns true if the value is in the set. O(1).\\\\n */\\\\n function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\\\\n return _contains(set._inner, value);\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns the number of values in the set. O(1).\\\\n */\\\\n function length(Bytes32Set storage set) internal view returns (uint256) {\\\\n return _length(set._inner);\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns the value stored at position `index` in the set. O(1).\\\\n *\\\\n * Note that there are no guarantees on the ordering of values inside the\\\\n * array, and it may change when more values are added or removed.\\\\n *\\\\n * Requirements:\\\\n *\\\\n * - `index` must be strictly less than {length}.\\\\n */\\\\n function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\\\\n return _at(set._inner, index);\\\\n }\\\\n\\\\n /**\\\\n * @dev Return the entire set in an array\\\\n *\\\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\\\n */\\\\n function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\\\\n bytes32[] memory store = _values(set._inner);\\\\n bytes32[] memory result;\\\\n\\\\n /// @solidity memory-safe-assembly\\\\n assembly {\\\\n result := store\\\\n }\\\\n\\\\n return result;\\\\n }\\\\n\\\\n // AddressSet\\\\n\\\\n struct AddressSet {\\\\n Set _inner;\\\\n }\\\\n\\\\n /**\\\\n * @dev Add a value to a set. O(1).\\\\n *\\\\n * Returns true if the value was added to the set, that is if it was not\\\\n * already present.\\\\n */\\\\n function add(AddressSet storage set, address value) internal returns (bool) {\\\\n return _add(set._inner, bytes32(uint256(uint160(value))));\\\\n }\\\\n\\\\n /**\\\\n * @dev Removes a value from a set. O(1).\\\\n *\\\\n * Returns true if the value was removed from the set, that is if it was\\\\n * present.\\\\n */\\\\n function remove(AddressSet storage set, address value) internal returns (bool) {\\\\n return _remove(set._inner, bytes32(uint256(uint160(value))));\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns true if the value is in the set. O(1).\\\\n */\\\\n function contains(AddressSet storage set, address value) internal view returns (bool) {\\\\n return _contains(set._inner, bytes32(uint256(uint160(value))));\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns the number of values in the set. O(1).\\\\n */\\\\n function length(AddressSet storage set) internal view returns (uint256) {\\\\n return _length(set._inner);\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns the value stored at position `index` in the set. O(1).\\\\n *\\\\n * Note that there are no guarantees on the ordering of values inside the\\\\n * array, and it may change when more values are added or removed.\\\\n *\\\\n * Requirements:\\\\n *\\\\n * - `index` must be strictly less than {length}.\\\\n */\\\\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\\\\n return address(uint160(uint256(_at(set._inner, index))));\\\\n }\\\\n\\\\n /**\\\\n * @dev Return the entire set in an array\\\\n *\\\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\\\n */\\\\n function values(AddressSet storage set) internal view returns (address[] memory) {\\\\n bytes32[] memory store = _values(set._inner);\\\\n address[] memory result;\\\\n\\\\n /// @solidity memory-safe-assembly\\\\n assembly {\\\\n result := store\\\\n }\\\\n\\\\n return result;\\\\n }\\\\n\\\\n // UintSet\\\\n\\\\n struct UintSet {\\\\n Set _inner;\\\\n }\\\\n\\\\n /**\\\\n * @dev Add a value to a set. O(1).\\\\n *\\\\n * Returns true if the value was added to the set, that is if it was not\\\\n * already present.\\\\n */\\\\n function add(UintSet storage set, uint256 value) internal returns (bool) {\\\\n return _add(set._inner, bytes32(value));\\\\n }\\\\n\\\\n /**\\\\n * @dev Removes a value from a set. O(1).\\\\n *\\\\n * Returns true if the value was removed from the set, that is if it was\\\\n * present.\\\\n */\\\\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\\\\n return _remove(set._inner, bytes32(value));\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns true if the value is in the set. O(1).\\\\n */\\\\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\\\\n return _contains(set._inner, bytes32(value));\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns the number of values in the set. O(1).\\\\n */\\\\n function length(UintSet storage set) internal view returns (uint256) {\\\\n return _length(set._inner);\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns the value stored at position `index` in the set. O(1).\\\\n *\\\\n * Note that there are no guarantees on the ordering of values inside the\\\\n * array, and it may change when more values are added or removed.\\\\n *\\\\n * Requirements:\\\\n *\\\\n * - `index` must be strictly less than {length}.\\\\n */\\\\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\\\\n return uint256(_at(set._inner, index));\\\\n }\\\\n\\\\n /**\\\\n * @dev Return the entire set in an array\\\\n *\\\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\\\n */\\\\n function values(UintSet storage set) internal view returns (uint256[] memory) {\\\\n bytes32[] memory store = _values(set._inner);\\\\n uint256[] memory result;\\\\n\\\\n /// @solidity memory-safe-assembly\\\\n assembly {\\\\n result := store\\\\n }\\\\n\\\\n return result;\\\\n }\\\\n}\\\\n\\\",\\\"keccak256\\\":\\\"0x9f4357008a8f7d8c8bf5d48902e789637538d8c016be5766610901b4bba81514\\\",\\\"license\\\":\\\"MIT\\\"},\\\"src/RNSCommission.sol\\\":{\\\"content\\\":\\\"// SPDX-License-Identifier: MIT\\\\npragma solidity ^0.8.19;\\\\n\\\\nimport { Initializable } from \\\\\\\"@openzeppelin/contracts/proxy/utils/Initializable.sol\\\\\\\";\\\\nimport { AccessControlEnumerable } from \\\\\\\"@openzeppelin/contracts/access/AccessControlEnumerable.sol\\\\\\\";\\\\nimport { INSCommission } from \\\\\\\"./interfaces/INSCommission.sol\\\\\\\";\\\\nimport { RONTransferHelper } from \\\\\\\"./libraries/transfers/RONTransferHelper.sol\\\\\\\";\\\\n\\\\ncontract RNSCommission is Initializable, AccessControlEnumerable, INSCommission {\\\\n /// @dev Constant representing the maximum percentage value (100%).\\\\n uint256 public constant MAX_PERCENTAGE = 100_00;\\\\n /// @dev Role for accounts that can send RON for this contract.\\\\n bytes32 public constant SENDER_ROLE = keccak256(\\\\\\\"SENDER_ROLE\\\\\\\");\\\\n\\\\n /// @dev Gap for upgradeability.\\\\n uint256[50] private ____gap;\\\\n /// @dev Array of `Commission` structs that store commissions information.\\\\n Commission[] internal _commissionInfos;\\\\n\\\\n constructor() {\\\\n _disableInitializers();\\\\n }\\\\n\\\\n receive() external payable {\\\\n _fallback();\\\\n }\\\\n\\\\n function initialize(address admin, Commission[] calldata commissionInfos, address[] calldata allowedSenders)\\\\n external\\\\n initializer\\\\n {\\\\n _setupRole(DEFAULT_ADMIN_ROLE, admin);\\\\n\\\\n uint256 length = allowedSenders.length;\\\\n for (uint256 i; i < length; ++i) {\\\\n _setupRole(SENDER_ROLE, allowedSenders[i]);\\\\n }\\\\n\\\\n _setCommissions(commissionInfos);\\\\n }\\\\n\\\\n /// @inheritdoc INSCommission\\\\n function getCommissions() external view returns (Commission[] memory commissionInfos) {\\\\n return _commissionInfos;\\\\n }\\\\n\\\\n /// @inheritdoc INSCommission\\\\n function setCommissions(Commission[] calldata commissionInfos) external onlyRole(DEFAULT_ADMIN_ROLE) {\\\\n _setCommissions(commissionInfos);\\\\n }\\\\n\\\\n /// @inheritdoc INSCommission\\\\n function setCommissionInfo(uint256 commissionIdx, address payable newRecipient, string calldata newName)\\\\n external\\\\n onlyRole(DEFAULT_ADMIN_ROLE)\\\\n {\\\\n if (commissionIdx >= _commissionInfos.length) revert InvalidArrayLength();\\\\n // TODO: should fix to not duplicate logic in set commision info\\\\n if (newRecipient == address(0)) revert NullAddress();\\\\n\\\\n _commissionInfos[commissionIdx].recipient = newRecipient;\\\\n _commissionInfos[commissionIdx].name = newName;\\\\n emit CommissionInfoUpdated(msg.sender, commissionIdx, newRecipient, newName);\\\\n }\\\\n\\\\n /**\\\\n * @dev Helper method to allocate commission and take fee into recipient address.\\\\n */\\\\n function _allocateCommissionAndTransferToRecipient(uint256 ronAmount) internal {\\\\n if (ronAmount == 0) return;\\\\n\\\\n uint256 length = _commissionInfos.length;\\\\n if (length == 0) revert InvalidArrayLength();\\\\n\\\\n uint256 lastIdx = length - 1;\\\\n uint256 sumValue;\\\\n\\\\n for (uint256 i; i < lastIdx; ++i) {\\\\n uint256 commissionAmount = _computePercentage(ronAmount, _commissionInfos[i].ratio);\\\\n sumValue += commissionAmount;\\\\n\\\\n RONTransferHelper.safeTransfer(_commissionInfos[i].recipient, commissionAmount);\\\\n emit Distributed(_commissionInfos[i].recipient, commissionAmount);\\\\n }\\\\n\\\\n // This code send the remaining RON to the last recipient.\\\\n if (sumValue < ronAmount) {\\\\n RONTransferHelper.safeTransfer(_commissionInfos[lastIdx].recipient, ronAmount - sumValue);\\\\n emit Distributed(_commissionInfos[lastIdx].recipient, ronAmount - sumValue);\\\\n }\\\\n }\\\\n\\\\n function _setCommissions(Commission[] calldata commissionInfos) internal {\\\\n uint256 length = commissionInfos.length;\\\\n // commissionInfos[] can not be empty\\\\n if (length == 0) revert InvalidArrayLength();\\\\n\\\\n delete _commissionInfos;\\\\n\\\\n uint256 sum;\\\\n\\\\n for (uint256 i; i < length; ++i) {\\\\n if (commissionInfos[i].recipient == address(0)) revert NullAddress();\\\\n\\\\n sum += commissionInfos[i].ratio;\\\\n _commissionInfos.push(commissionInfos[i]);\\\\n }\\\\n\\\\n if (sum != MAX_PERCENTAGE) revert InvalidRatio();\\\\n\\\\n emit CommissionsUpdated(msg.sender, commissionInfos);\\\\n }\\\\n\\\\n // Calculate amount of money based on commission's ratio\\\\n function _computePercentage(uint256 value, uint256 percentage) internal pure virtual returns (uint256) {\\\\n return (value * percentage) / MAX_PERCENTAGE;\\\\n }\\\\n\\\\n function _fallback() internal {\\\\n if (hasRole(SENDER_ROLE, msg.sender)) {\\\\n _allocateCommissionAndTransferToRecipient(msg.value);\\\\n }\\\\n }\\\\n}\\\\n\\\",\\\"keccak256\\\":\\\"0xaee00b613300836ef4b4d371d71f2a90ddbf1b4a2a09dd4150770316399d5a87\\\",\\\"license\\\":\\\"MIT\\\"},\\\"src/interfaces/INSCommission.sol\\\":{\\\"content\\\":\\\"// SPDX-License-Identifier: MIT\\\\npragma solidity ^0.8.19;\\\\n\\\\ninterface INSCommission {\\\\n struct Commission {\\\\n address payable recipient;\\\\n uint256 ratio; // Values [0; 100_00] reflexes [0; 100%]\\\\n string name; // Commission's name\\\\n }\\\\n\\\\n /// @dev Emitted when all the commission info is updated.\\\\n event CommissionsUpdated(address indexed updatedBy, Commission[] commissionInfos);\\\\n /// @dev Emitted when specific commission info is updated.\\\\n event CommissionInfoUpdated(\\\\n address indexed updatedBy, uint256 indexed commissionIdx, address payable newRecipient, string newName\\\\n );\\\\n /// @dev Emitted when transfer RON to commission's recipient.\\\\n event Distributed(address indexed recipient, uint256 commissionAmount);\\\\n\\\\n /// @dev Revert when index is out of range\\\\n error InvalidArrayLength();\\\\n /// @dev Revert when ratio is invalid\\\\n error InvalidRatio();\\\\n /// @dev Revert when amount of RON is invalid\\\\n error InvalidAmountOfRON();\\\\n /// @dev Revert when recipient address is null\\\\n error NullAddress();\\\\n\\\\n /**\\\\n * @dev Maximum commission percentage.\\\\n */\\\\n function MAX_PERCENTAGE() external pure returns (uint256);\\\\n\\\\n /**\\\\n * @dev Returns the sender role.\\\\n */\\\\n function SENDER_ROLE() external pure returns (bytes32);\\\\n\\\\n /**\\\\n * @dev Returns commissions information.\\\\n */\\\\n function getCommissions() external view returns (Commission[] memory commissionInfos);\\\\n\\\\n /**\\\\n * @dev Sets all commission information\\\\n *\\\\n * Requirements:\\\\n * - The method caller is setter role.\\\\n * - The total ratio must be equal to 100%.\\\\n * Emits the event `CommissionsUpdated`.\\\\n */\\\\n function setCommissions(Commission[] calldata commissionInfos) external;\\\\n\\\\n /**\\\\n * @dev Sets for specific commission information based on the `commissionIdx`.\\\\n *\\\\n * Requirements:\\\\n * - The method caller is setter role.\\\\n * Emits the event `CommissionInfoUpdated`.\\\\n */\\\\n function setCommissionInfo(uint256 commissionIdx, address payable newAddr, string calldata name) external;\\\\n}\\\\n\\\",\\\"keccak256\\\":\\\"0xb2c57076aabd1b2a189be0f936d9945fdce20e86f9698688af07e0abafd712f2\\\",\\\"license\\\":\\\"MIT\\\"},\\\"src/libraries/transfers/RONTransferHelper.sol\\\":{\\\"content\\\":\\\"// SPDX-License-Identifier: MIT\\\\npragma solidity ^0.8.0;\\\\n\\\\nimport { Strings } from \\\\\\\"@openzeppelin/contracts/utils/Strings.sol\\\\\\\";\\\\n\\\\n/**\\\\n * @title RONTransferHelper\\\\n */\\\\nlibrary RONTransferHelper {\\\\n using Strings for *;\\\\n\\\\n /**\\\\n * @dev Transfers RON and wraps result for the method caller to a recipient.\\\\n */\\\\n function safeTransfer(address payable _to, uint256 _value) internal {\\\\n bool _success = send(_to, _value);\\\\n if (!_success) {\\\\n revert(\\\\n string.concat(\\\\\\\"TransferHelper: could not transfer RON to \\\\\\\", _to.toHexString(), \\\\\\\" value \\\\\\\", _value.toHexString())\\\\n );\\\\n }\\\\n }\\\\n\\\\n /**\\\\n * @dev Returns whether the call was success.\\\\n * Note: this function should use with the `ReentrancyGuard`.\\\\n */\\\\n function send(address payable _to, uint256 _value) internal returns (bool _success) {\\\\n (_success,) = _to.call{ value: _value }(new bytes(0));\\\\n }\\\\n}\\\\n\\\",\\\"keccak256\\\":\\\"0x733e60374ee0a33d0da2ee24976b893ca6b6d9764243b175e1ac8025240394da\\\",\\\"license\\\":\\\"MIT\\\"}},\\\"version\\\":1}\"", + "nonce": 62, "storageLayout": { "storage": [ { - "astId": 60342, + "astId": 60504, "contract": "src/RNSCommission.sol:RNSCommission", "label": "_initialized", "offset": 0, @@ -634,7 +109,7 @@ "type": "t_uint8" }, { - "astId": 60345, + "astId": 60507, "contract": "src/RNSCommission.sol:RNSCommission", "label": "_initializing", "offset": 1, @@ -642,23 +117,23 @@ "type": "t_bool" }, { - "astId": 58815, + "astId": 58977, "contract": "src/RNSCommission.sol:RNSCommission", "label": "_roles", "offset": 0, "slot": "1", - "type": "t_mapping(t_bytes32,t_struct(RoleData)58810_storage)" + "type": "t_mapping(t_bytes32,t_struct(RoleData)58972_storage)" }, { - "astId": 59125, + "astId": 59287, "contract": "src/RNSCommission.sol:RNSCommission", "label": "_roleMembers", "offset": 0, "slot": "2", - "type": "t_mapping(t_bytes32,t_struct(AddressSet)64694_storage)" + "type": "t_mapping(t_bytes32,t_struct(AddressSet)64897_storage)" }, { - "astId": 79107, + "astId": 79533, "contract": "src/RNSCommission.sol:RNSCommission", "label": "____gap", "offset": 0, @@ -666,12 +141,12 @@ "type": "t_array(t_uint256)50_storage" }, { - "astId": 79112, + "astId": 79538, "contract": "src/RNSCommission.sol:RNSCommission", "label": "_commissionInfos", "offset": 0, "slot": "53", - "type": "t_array(t_struct(Commission)84580_storage)dyn_storage" + "type": "t_array(t_struct(Commission)85131_storage)dyn_storage" } ], "types": { @@ -691,11 +166,11 @@ "numberOfBytes": "32", "base": "t_bytes32" }, - "t_array(t_struct(Commission)84580_storage)dyn_storage": { + "t_array(t_struct(Commission)85131_storage)dyn_storage": { "encoding": "dynamic_array", "label": "struct INSCommission.Commission[]", "numberOfBytes": "32", - "base": "t_struct(Commission)84580_storage" + "base": "t_struct(Commission)85131_storage" }, "t_array(t_uint256)50_storage": { "encoding": "inplace", @@ -720,19 +195,19 @@ "numberOfBytes": "32", "value": "t_bool" }, - "t_mapping(t_bytes32,t_struct(AddressSet)64694_storage)": { + "t_mapping(t_bytes32,t_struct(AddressSet)64897_storage)": { "encoding": "mapping", "key": "t_bytes32", "label": "mapping(bytes32 => struct EnumerableSet.AddressSet)", "numberOfBytes": "32", - "value": "t_struct(AddressSet)64694_storage" + "value": "t_struct(AddressSet)64897_storage" }, - "t_mapping(t_bytes32,t_struct(RoleData)58810_storage)": { + "t_mapping(t_bytes32,t_struct(RoleData)58972_storage)": { "encoding": "mapping", "key": "t_bytes32", "label": "mapping(bytes32 => struct AccessControl.RoleData)", "numberOfBytes": "32", - "value": "t_struct(RoleData)58810_storage" + "value": "t_struct(RoleData)58972_storage" }, "t_mapping(t_bytes32,t_uint256)": { "encoding": "mapping", @@ -746,28 +221,28 @@ "label": "string", "numberOfBytes": "32" }, - "t_struct(AddressSet)64694_storage": { + "t_struct(AddressSet)64897_storage": { "encoding": "inplace", "label": "struct EnumerableSet.AddressSet", "numberOfBytes": "64", "members": [ { - "astId": 64693, + "astId": 64896, "contract": "src/RNSCommission.sol:RNSCommission", "label": "_inner", "offset": 0, "slot": "0", - "type": "t_struct(Set)64379_storage" + "type": "t_struct(Set)64582_storage" } ] }, - "t_struct(Commission)84580_storage": { + "t_struct(Commission)85131_storage": { "encoding": "inplace", "label": "struct INSCommission.Commission", "numberOfBytes": "96", "members": [ { - "astId": 84575, + "astId": 85126, "contract": "src/RNSCommission.sol:RNSCommission", "label": "recipient", "offset": 0, @@ -775,7 +250,7 @@ "type": "t_address_payable" }, { - "astId": 84577, + "astId": 85128, "contract": "src/RNSCommission.sol:RNSCommission", "label": "ratio", "offset": 0, @@ -783,7 +258,7 @@ "type": "t_uint256" }, { - "astId": 84579, + "astId": 85130, "contract": "src/RNSCommission.sol:RNSCommission", "label": "name", "offset": 0, @@ -792,13 +267,13 @@ } ] }, - "t_struct(RoleData)58810_storage": { + "t_struct(RoleData)58972_storage": { "encoding": "inplace", "label": "struct AccessControl.RoleData", "numberOfBytes": "64", "members": [ { - "astId": 58807, + "astId": 58969, "contract": "src/RNSCommission.sol:RNSCommission", "label": "members", "offset": 0, @@ -806,7 +281,7 @@ "type": "t_mapping(t_address,t_bool)" }, { - "astId": 58809, + "astId": 58971, "contract": "src/RNSCommission.sol:RNSCommission", "label": "adminRole", "offset": 0, @@ -815,13 +290,13 @@ } ] }, - "t_struct(Set)64379_storage": { + "t_struct(Set)64582_storage": { "encoding": "inplace", "label": "struct EnumerableSet.Set", "numberOfBytes": "64", "members": [ { - "astId": 64374, + "astId": 64577, "contract": "src/RNSCommission.sol:RNSCommission", "label": "_values", "offset": 0, @@ -829,7 +304,7 @@ "type": "t_array(t_bytes32)dyn_storage" }, { - "astId": 64378, + "astId": 64581, "contract": "src/RNSCommission.sol:RNSCommission", "label": "_indexes", "offset": 0, @@ -850,7 +325,7 @@ } } }, - "timestamp": 1720084974, + "timestamp": 1730866099, "userdoc": { "version": 1, "kind": "user" diff --git a/script/20241105-upgrade-rnscommission-mainnet /20241105_UpgradRNSCommissionMainnet.sol b/script/20241105-upgrade-rnscommission-mainnet /20241105_UpgradRNSCommissionMainnet.sol new file mode 100644 index 0000000..3f8a420 --- /dev/null +++ b/script/20241105-upgrade-rnscommission-mainnet /20241105_UpgradRNSCommissionMainnet.sol @@ -0,0 +1,90 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.19; + +import { RNSAuction, RNSAuctionDeploy } from "script/contracts/RNSAuctionDeploy.s.sol"; +import { + RONRegistrarController, RONRegistrarControllerDeploy +} from "script/contracts/RONRegistrarControllerDeploy.s.sol"; +import { Contract } from "script/utils/Contract.sol"; +import { RNSCommission, RNSCommissionDeploy } from "script/contracts/RNSCommissionDeploy.s.sol"; +import { Migration } from "script/Migration.s.sol"; + +contract Migration__20241105_UpgradeRNSCommissionMainnet is Migration { + RONRegistrarController private _controller; + RNSCommission private _rnsCommission; + RNSAuction _auction; + + function run() public { + _auction = RNSAuction(loadContract(Contract.RNSAuction.key())); + _controller = RONRegistrarController(loadContract(Contract.RONRegistrarController.key())); + _rnsCommission = RNSCommission(_upgradeProxy(Contract.RNSCommission.key())); + } + + function _postCheck() internal override { + _validateCommissionInfo(); + _validateSendersAddress(); + _validateSendMoneyFromSenders_NonZeroRonAmount(); + _validateSendMoneyFromSenders_ZeroRonAmount(); + } + + function _validateCommissionInfo() internal logFn("_validateSetCommissionInfo") { + assertEq(_rnsCommission.getCommissions().length, 2); + + assertEq(_rnsCommission.getCommissions()[0].recipient, payable(0xFf43f5Ef28EcB7c1f219751fc793deB40ef07A53)); + assertEq(_rnsCommission.getCommissions()[1].recipient, payable(0x22cEfc91E9b7c0f3890eBf9527EA89053490694e)); + + assertEq(_rnsCommission.getCommissions()[0].ratio, 70_00); + assertEq(_rnsCommission.getCommissions()[1].ratio, 30_00); + + assertEq(_rnsCommission.getCommissions()[0].name, "Sky Mavis"); + assertEq(_rnsCommission.getCommissions()[1].name, "Ronin"); + } + + function _validateSendMoneyFromSenders_NonZeroRonAmount() + internal + logFn("_validateSendMoneyFromSenders_NonZeroRonAmount") + { + bool sent; + vm.deal(address(_auction), 100 ether); + vm.prank(address(_auction)); + (sent,) = address(_rnsCommission).call{ value: 100 ether }(""); + assertTrue(sent); + + vm.deal(address(_controller), 100 ether); + vm.prank(address(_controller)); + (sent,) = address(_rnsCommission).call{ value: 100 ether }(""); + assertTrue(sent); + + assertEq(address(_rnsCommission).balance, 0 ether); + + address randomAddr = makeAddr("random address"); + vm.deal(address(randomAddr), 100 ether); + vm.prank(randomAddr); + (sent,) = address(_rnsCommission).call{ value: 100 ether }(""); + assertTrue(sent); + + assertEq(address(_rnsCommission).balance, 100 ether); + } + + function _validateSendMoneyFromSenders_ZeroRonAmount() internal logFn("_validateSendMoneyFromSenders_ZeroRonAmount") { + bool sent; + uint256 balanceBefore = address(_rnsCommission).balance; + + vm.prank(address(_auction)); + (sent,) = address(_rnsCommission).call{ value: 0 }(""); + assertTrue(sent); + + vm.prank(address(_controller)); + (sent,) = address(_rnsCommission).call{ value: 0 }(""); + assertTrue(sent); + + assertEq(address(_rnsCommission).balance, balanceBefore); + } + + function _validateSendersAddress() internal logFn("_validateSendersAddress") { + bytes32 SENDER_ROLE = keccak256("SENDER_ROLE"); + + require(_rnsCommission.hasRole(SENDER_ROLE, address(_auction))); + require(_rnsCommission.hasRole(SENDER_ROLE, address(_controller))); + } +} diff --git a/src/RNSCommission.sol b/src/RNSCommission.sol index 3e1174f..9dc52d1 100644 --- a/src/RNSCommission.sol +++ b/src/RNSCommission.sol @@ -67,7 +67,7 @@ contract RNSCommission is Initializable, AccessControlEnumerable, INSCommission * @dev Helper method to allocate commission and take fee into recipient address. */ function _allocateCommissionAndTransferToRecipient(uint256 ronAmount) internal { - if (ronAmount == 0) revert InvalidAmountOfRON(); + if (ronAmount == 0) return; uint256 length = _commissionInfos.length; if (length == 0) revert InvalidArrayLength(); diff --git a/test/RNSCommission/RNSCommission._allocateCommissionAndTransferToRecipient.t.sol b/test/RNSCommission/RNSCommission._allocateCommissionAndTransferToRecipient.t.sol index a9e3f23..1cf6369 100644 --- a/test/RNSCommission/RNSCommission._allocateCommissionAndTransferToRecipient.t.sol +++ b/test/RNSCommission/RNSCommission._allocateCommissionAndTransferToRecipient.t.sol @@ -71,12 +71,17 @@ contract RNSCommisson__allocateCommissionAndTransferToRecipient_Test is RNSCommi assertEq(random.balance, 0); } - function test_RevertWhen_RonAmount_is_zero() external { + function testConcrete_Success_When_RonAmount_is_zero() external { vm.deal(_senders[0], 1e18); bool sent; - vm.expectRevert(INSCommission.InvalidAmountOfRON.selector); vm.prank(_senders[0]); (sent,) = address(_rnsCommission).call{ value: 0 }(new bytes(0)); + + assertTrue(sent); + assertEq(_skyMavisTreasuryAddr.balance, 0); + assertEq(_roninNetworkTreasuryAddr.balance, 0); + assertEq(address(_rnsCommission).balance, 0); + assertEq(_senders[0].balance, 1e18); } }