@keep-network/tbtc-v2 1.8.0-dev.0 → 1.8.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/artifacts/BLS.json +6 -6
  2. package/artifacts/Bank.json +11 -11
  3. package/artifacts/BeaconAuthorization.json +11 -11
  4. package/artifacts/BeaconDkg.json +9 -9
  5. package/artifacts/BeaconDkgValidator.json +12 -12
  6. package/artifacts/BeaconInactivity.json +11 -11
  7. package/artifacts/BeaconSortitionPool.json +16 -16
  8. package/artifacts/Bridge.json +32 -32
  9. package/artifacts/BridgeGovernance.json +14 -14
  10. package/artifacts/BridgeGovernanceParameters.json +6 -6
  11. package/artifacts/Deposit.json +6 -6
  12. package/artifacts/DepositSweep.json +6 -6
  13. package/artifacts/DonationVault.json +7 -7
  14. package/artifacts/EcdsaDkgValidator.json +7 -7
  15. package/artifacts/EcdsaInactivity.json +6 -6
  16. package/artifacts/EcdsaSortitionPool.json +16 -16
  17. package/artifacts/Fraud.json +6 -6
  18. package/artifacts/LightRelay.json +11 -11
  19. package/artifacts/LightRelayMaintainerProxy.json +13 -13
  20. package/artifacts/MaintainerProxy.json +13 -13
  21. package/artifacts/MovingFunds.json +6 -6
  22. package/artifacts/NuCypherToken.json +11 -11
  23. package/artifacts/RandomBeacon.json +126 -126
  24. package/artifacts/RandomBeaconChaosnet.json +13 -13
  25. package/artifacts/RandomBeaconGovernance.json +66 -66
  26. package/artifacts/Redemption.json +6 -6
  27. package/artifacts/RedemptionWatchtower.json +26 -26
  28. package/artifacts/ReimbursementPool.json +19 -19
  29. package/artifacts/T.json +11 -11
  30. package/artifacts/TBTC.json +11 -11
  31. package/artifacts/TBTCToken.json +11 -11
  32. package/artifacts/TBTCVault.json +14 -14
  33. package/artifacts/Timelock.json +80 -80
  34. package/artifacts/TokenStaking.json +156 -308
  35. package/artifacts/TokenholderGovernor.json +47 -47
  36. package/artifacts/TokenholderTimelock.json +36 -36
  37. package/artifacts/VendingMachine.json +13 -13
  38. package/artifacts/VendingMachineNuCypher.json +9 -9
  39. package/artifacts/VendingMachineV2.json +13 -13
  40. package/artifacts/VendingMachineV3.json +13 -13
  41. package/artifacts/WalletProposalValidator.json +7 -7
  42. package/artifacts/WalletRegistry.json +31 -31
  43. package/artifacts/WalletRegistryGovernance.json +56 -56
  44. package/artifacts/Wallets.json +6 -6
  45. package/export/artifacts/@keep-network/ecdsa/contracts/WalletRegistry.sol/WalletRegistry.json +4999 -4814
  46. package/export/typechain/factories/EcdsaAuthorization__factory.js +1 -1
  47. package/export/typechain/factories/IStaking__factory.js +24 -103
  48. package/export/typechain/factories/WalletRegistry__factory.js +1 -1
  49. package/package.json +4 -4
  50. package/artifacts/KeepRegistry.json +0 -99
  51. package/artifacts/KeepStake.json +0 -286
  52. package/artifacts/KeepToken.json +0 -711
  53. package/artifacts/KeepTokenStaking.json +0 -483
  54. package/artifacts/NuCypherStakingEscrow.json +0 -287
  55. package/artifacts/VendingMachineKeep.json +0 -400
@@ -1,5 +1,5 @@
1
1
  {
2
- "address": "0x8990C5DAAA40673eF8826990A6Fd8284a0a17d61",
2
+ "address": "0xDadd1125B8Df98A66Abd5EB302C0d9Ca5A061dC2",
3
3
  "abi": [
4
4
  {
5
5
  "anonymous": false,
@@ -83,18 +83,18 @@
83
83
  "type": "event"
84
84
  }
85
85
  ],
86
- "transactionHash": "0x62f6b87e258ec14bc61222f5ef68eae42c6f952923e313f5a66e785afa8df453",
86
+ "transactionHash": "0x90dbd3636c04276d48cdc27dd1de1aee8b089d3561aed85d6795984bd671cc07",
87
87
  "receipt": {
88
88
  "to": null,
89
89
  "from": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
90
- "contractAddress": "0x8990C5DAAA40673eF8826990A6Fd8284a0a17d61",
90
+ "contractAddress": "0xDadd1125B8Df98A66Abd5EB302C0d9Ca5A061dC2",
91
91
  "transactionIndex": 0,
92
92
  "gasUsed": "3864291",
93
93
  "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
94
- "blockHash": "0x6c6c5dba95258324e5555b46e9fab737e4fd8d5a62ba65d3db45573ddaee0267",
95
- "transactionHash": "0x62f6b87e258ec14bc61222f5ef68eae42c6f952923e313f5a66e785afa8df453",
94
+ "blockHash": "0x1e87bb74e59d4c6a5b3778670c66c66b43814547ab67b8cb39948bc37f57c3a6",
95
+ "transactionHash": "0x90dbd3636c04276d48cdc27dd1de1aee8b089d3561aed85d6795984bd671cc07",
96
96
  "logs": [],
97
- "blockNumber": 61,
97
+ "blockNumber": 52,
98
98
  "cumulativeGasUsed": "3864291",
99
99
  "status": 1,
100
100
  "byzantium": true
@@ -1,5 +1,5 @@
1
1
  {
2
- "address": "0xa115891Cae16388b84cb7a521A2032f6b354FE25",
2
+ "address": "0x650aEF4b63095e4EDe581BC79CdeA927e3ba553A",
3
3
  "abi": [
4
4
  {
5
5
  "inputs": [],
@@ -745,35 +745,35 @@
745
745
  "type": "function"
746
746
  }
747
747
  ],
748
- "transactionHash": "0xeffe94b5354d038d1341f7574b6231e5959de92673c0c5157f2df8afec6f7da4",
748
+ "transactionHash": "0x63d024a4e530d83c3ef0c886b2be9490ab7a12db07d5ceec47349533cbc453b4",
749
749
  "receipt": {
750
750
  "to": null,
751
751
  "from": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
752
- "contractAddress": "0xa115891Cae16388b84cb7a521A2032f6b354FE25",
752
+ "contractAddress": "0x650aEF4b63095e4EDe581BC79CdeA927e3ba553A",
753
753
  "transactionIndex": 0,
754
754
  "gasUsed": "725605",
755
- "logsBloom": "0x00000000000000000002000000000000400000000000000000800000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000002000001000000000000000000000000000000000800020010000000000000000800000000800000080000000000000000400000000000000000000000000000000000000000000080000000000000800000000000000000000000000000000400000000000000000000000000000000000004000020000000000000000000040000000000000400000000000000000020000000080000000000000000000000000001000000000000000000000000000000",
756
- "blockHash": "0x93526321068ed308a879f3267d483e5b148c84a3f711da778e0b3322e50c483e",
757
- "transactionHash": "0xeffe94b5354d038d1341f7574b6231e5959de92673c0c5157f2df8afec6f7da4",
755
+ "logsBloom": "0x00000000000000000002000000000800400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000802020000000000000000400800000000800000000000000000000000480000000000000000000000000000000000000000000080000000000000800000000000000000000000000000000400000000000000000000000000080000000000000020000000000004000000040000000000000400000000000000000020000000000000000000000000000000000001000000000000000000000000000000",
756
+ "blockHash": "0xa4d992e919e9dacb18a6df477ca93dd77c98dd8b3feb756b6967f2d9364b1d7a",
757
+ "transactionHash": "0x63d024a4e530d83c3ef0c886b2be9490ab7a12db07d5ceec47349533cbc453b4",
758
758
  "logs": [
759
759
  {
760
760
  "transactionIndex": 0,
761
- "blockNumber": 85,
762
- "transactionHash": "0xeffe94b5354d038d1341f7574b6231e5959de92673c0c5157f2df8afec6f7da4",
763
- "address": "0xa115891Cae16388b84cb7a521A2032f6b354FE25",
761
+ "blockNumber": 76,
762
+ "transactionHash": "0x63d024a4e530d83c3ef0c886b2be9490ab7a12db07d5ceec47349533cbc453b4",
763
+ "address": "0x650aEF4b63095e4EDe581BC79CdeA927e3ba553A",
764
764
  "topics": [
765
765
  "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
766
- "0x0000000000000000000000009b4ac8fafc44575c6963fa22d50963379e899a49"
766
+ "0x0000000000000000000000009fe28b717ade38ba99e32c45be3ee4291f2e338b"
767
767
  ],
768
768
  "data": "0x",
769
769
  "logIndex": 0,
770
- "blockHash": "0x93526321068ed308a879f3267d483e5b148c84a3f711da778e0b3322e50c483e"
770
+ "blockHash": "0xa4d992e919e9dacb18a6df477ca93dd77c98dd8b3feb756b6967f2d9364b1d7a"
771
771
  },
772
772
  {
773
773
  "transactionIndex": 0,
774
- "blockNumber": 85,
775
- "transactionHash": "0xeffe94b5354d038d1341f7574b6231e5959de92673c0c5157f2df8afec6f7da4",
776
- "address": "0xa115891Cae16388b84cb7a521A2032f6b354FE25",
774
+ "blockNumber": 76,
775
+ "transactionHash": "0x63d024a4e530d83c3ef0c886b2be9490ab7a12db07d5ceec47349533cbc453b4",
776
+ "address": "0x650aEF4b63095e4EDe581BC79CdeA927e3ba553A",
777
777
  "topics": [
778
778
  "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
779
779
  "0x0000000000000000000000000000000000000000000000000000000000000000",
@@ -781,39 +781,39 @@
781
781
  ],
782
782
  "data": "0x",
783
783
  "logIndex": 1,
784
- "blockHash": "0x93526321068ed308a879f3267d483e5b148c84a3f711da778e0b3322e50c483e"
784
+ "blockHash": "0xa4d992e919e9dacb18a6df477ca93dd77c98dd8b3feb756b6967f2d9364b1d7a"
785
785
  },
786
786
  {
787
787
  "transactionIndex": 0,
788
- "blockNumber": 85,
789
- "transactionHash": "0xeffe94b5354d038d1341f7574b6231e5959de92673c0c5157f2df8afec6f7da4",
790
- "address": "0xa115891Cae16388b84cb7a521A2032f6b354FE25",
788
+ "blockNumber": 76,
789
+ "transactionHash": "0x63d024a4e530d83c3ef0c886b2be9490ab7a12db07d5ceec47349533cbc453b4",
790
+ "address": "0x650aEF4b63095e4EDe581BC79CdeA927e3ba553A",
791
791
  "topics": [
792
792
  "0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498"
793
793
  ],
794
794
  "data": "0x0000000000000000000000000000000000000000000000000000000000000001",
795
795
  "logIndex": 2,
796
- "blockHash": "0x93526321068ed308a879f3267d483e5b148c84a3f711da778e0b3322e50c483e"
796
+ "blockHash": "0xa4d992e919e9dacb18a6df477ca93dd77c98dd8b3feb756b6967f2d9364b1d7a"
797
797
  },
798
798
  {
799
799
  "transactionIndex": 0,
800
- "blockNumber": 85,
801
- "transactionHash": "0xeffe94b5354d038d1341f7574b6231e5959de92673c0c5157f2df8afec6f7da4",
802
- "address": "0xa115891Cae16388b84cb7a521A2032f6b354FE25",
800
+ "blockNumber": 76,
801
+ "transactionHash": "0x63d024a4e530d83c3ef0c886b2be9490ab7a12db07d5ceec47349533cbc453b4",
802
+ "address": "0x650aEF4b63095e4EDe581BC79CdeA927e3ba553A",
803
803
  "topics": [
804
804
  "0x7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f"
805
805
  ],
806
- "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000afdacd509e73115ea1654b1a770f1a807e7c9c0",
806
+ "data": "0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f818a7c2afc45cf4b9ddc48933c9a1edd624e46f",
807
807
  "logIndex": 3,
808
- "blockHash": "0x93526321068ed308a879f3267d483e5b148c84a3f711da778e0b3322e50c483e"
808
+ "blockHash": "0xa4d992e919e9dacb18a6df477ca93dd77c98dd8b3feb756b6967f2d9364b1d7a"
809
809
  }
810
810
  ],
811
- "blockNumber": 85,
811
+ "blockNumber": 76,
812
812
  "cumulativeGasUsed": "725605",
813
813
  "status": 1,
814
814
  "byzantium": true
815
815
  },
816
816
  "numDeployments": 1,
817
- "implementation": "0x9B4aC8FAfC44575C6963fA22D50963379e899a49",
817
+ "implementation": "0x9Fe28b717aDE38BA99E32c45BE3Ee4291f2E338B",
818
818
  "devdoc": "Contract deployed as upgradable proxy"
819
819
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "address": "0xAfe1b5bdEbD4ae65AF2024738bf0735fbb65d44b",
2
+ "address": "0xcA03Dc4665A8C3603cb4Fd5Ce71Af9649dC00d44",
3
3
  "abi": [
4
4
  {
5
5
  "inputs": [
@@ -310,22 +310,22 @@
310
310
  "type": "receive"
311
311
  }
312
312
  ],
313
- "transactionHash": "0xa7db7a47eaa65c0eff59252c5362b5f82f5f227a4df84e57eed207d65ab68341",
313
+ "transactionHash": "0x5eef3d9a690db5a7d92e4ece2f2b37f682bc1534b5561fd080f78fc0e672b6fc",
314
314
  "receipt": {
315
315
  "to": null,
316
316
  "from": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
317
- "contractAddress": "0xAfe1b5bdEbD4ae65AF2024738bf0735fbb65d44b",
317
+ "contractAddress": "0xcA03Dc4665A8C3603cb4Fd5Ce71Af9649dC00d44",
318
318
  "transactionIndex": 0,
319
- "gasUsed": "673344",
320
- "logsBloom": "0x00000000000000000002000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000800020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000002000000000001000000000000000000000000000000",
321
- "blockHash": "0xb8879d9cb4ae2a7e0f4ce7409146f8c204a524f2650e8de927ce186c2f911e61",
322
- "transactionHash": "0xa7db7a47eaa65c0eff59252c5362b5f82f5f227a4df84e57eed207d65ab68341",
319
+ "gasUsed": "670722",
320
+ "logsBloom": "0x00000000000000000002000000000000000000000000000000880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000800020000000000000000000800000000000000000000000000000000400000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000001000000000008000000000000000000",
321
+ "blockHash": "0xc61920dfac496aea41972618fbbab7d09a3e3185a5d88b0a371346fab6bc5d02",
322
+ "transactionHash": "0x5eef3d9a690db5a7d92e4ece2f2b37f682bc1534b5561fd080f78fc0e672b6fc",
323
323
  "logs": [
324
324
  {
325
325
  "transactionIndex": 0,
326
- "blockNumber": 22,
327
- "transactionHash": "0xa7db7a47eaa65c0eff59252c5362b5f82f5f227a4df84e57eed207d65ab68341",
328
- "address": "0xAfe1b5bdEbD4ae65AF2024738bf0735fbb65d44b",
326
+ "blockNumber": 13,
327
+ "transactionHash": "0x5eef3d9a690db5a7d92e4ece2f2b37f682bc1534b5561fd080f78fc0e672b6fc",
328
+ "address": "0xcA03Dc4665A8C3603cb4Fd5Ce71Af9649dC00d44",
329
329
  "topics": [
330
330
  "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
331
331
  "0x0000000000000000000000000000000000000000000000000000000000000000",
@@ -333,11 +333,11 @@
333
333
  ],
334
334
  "data": "0x",
335
335
  "logIndex": 0,
336
- "blockHash": "0xb8879d9cb4ae2a7e0f4ce7409146f8c204a524f2650e8de927ce186c2f911e61"
336
+ "blockHash": "0xc61920dfac496aea41972618fbbab7d09a3e3185a5d88b0a371346fab6bc5d02"
337
337
  }
338
338
  ],
339
- "blockNumber": 22,
340
- "cumulativeGasUsed": "673344",
339
+ "blockNumber": 13,
340
+ "cumulativeGasUsed": "670722",
341
341
  "status": 1,
342
342
  "byzantium": true
343
343
  },
@@ -346,9 +346,9 @@
346
346
  500000000000
347
347
  ],
348
348
  "numDeployments": 1,
349
- "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_staticGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_maxGasPrice\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"thirdPartyContract\",\"type\":\"address\"}],\"name\":\"AuthorizedContract\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"withdrawnAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"FundsWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newMaxGasPrice\",\"type\":\"uint256\"}],\"name\":\"MaxGasPriceUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"refundAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"SendingEtherFailed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newStaticGas\",\"type\":\"uint256\"}],\"name\":\"StaticGasUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"thirdPartyContract\",\"type\":\"address\"}],\"name\":\"UnauthorizedContract\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_contract\",\"type\":\"address\"}],\"name\":\"authorize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isAuthorized\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxGasPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"gasSpent\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"refund\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_maxGasPrice\",\"type\":\"uint256\"}],\"name\":\"setMaxGasPrice\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_staticGas\",\"type\":\"uint256\"}],\"name\":\"setStaticGas\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"staticGas\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_contract\",\"type\":\"address\"}],\"name\":\"unauthorize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"withdrawAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"authorize(address)\":{\"params\":{\"_contract\":\"Authorized contract.\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"refund(uint256,address)\":{\"details\":\"Ignoring the result of sending ETH to a receiver is made on purpose. For EOA receiving ETH should always work. If a receiver is a smart contract, then we do not want to fail a transaction, because in some cases the refund is done at the very end of multiple calls where all the previous calls were already paid off. It is a receiver's smart contract resposibility to make sure it can receive ETH.Only authorized contracts are allowed calling this function.\",\"params\":{\"gasSpent\":\"Gas spent on a transaction that needs to be reimbursed.\",\"receiver\":\"Address where the reimbursment is sent.\"}},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"setMaxGasPrice(uint256)\":{\"params\":{\"_maxGasPrice\":\"Max gas price used to reimburse tx submitters.\"}},\"setStaticGas(uint256)\":{\"params\":{\"_staticGas\":\"Static gas cost.\"}},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"},\"unauthorize(address)\":{\"params\":{\"_contract\":\"Authorized contract.\"}},\"withdraw(uint256,address)\":{\"params\":{\"amount\":\"Amount to withdraw from the pool.\",\"receiver\":\"An address where ETH is sent.\"}},\"withdrawAll(address)\":{\"params\":{\"receiver\":\"An address where ETH is sent.\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"authorize(address)\":{\"notice\":\"Authorize a contract that can interact with this reimbursment pool. Can be authorized by the owner only.\"},\"isAuthorized(address)\":{\"notice\":\"Authorized contracts that can interact with the reimbursment pool. Authorization can be granted and removed by the owner.\"},\"maxGasPrice()\":{\"notice\":\"Max gas price used to reimburse a transaction submitter. Protects against malicious operator-miners.\"},\"refund(uint256,address)\":{\"notice\":\"Refunds ETH to a spender for executing specific transactions.\"},\"setMaxGasPrice(uint256)\":{\"notice\":\"Setting a max gas price for transactions. Can be set by the owner only.\"},\"setStaticGas(uint256)\":{\"notice\":\"Setting a static gas cost for executing a transaction. Can be set by the owner only.\"},\"staticGas()\":{\"notice\":\"Static gas includes: - cost of the refund function - base transaction cost\"},\"unauthorize(address)\":{\"notice\":\"Unauthorize a contract that was previously authorized to interact with this reimbursment pool. Can be unauthorized by the owner only.\"},\"withdraw(uint256,address)\":{\"notice\":\"Withdraws ETH amount from this pool which are sent to a given address. Can be set by the owner only.\"},\"withdrawAll(address)\":{\"notice\":\"Withdraws all ETH from this pool which are sent to a given address. Can be set by the owner only.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/ReimbursementPool.sol\":\"ReimbursementPool\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xa94b34880e3c1b0b931662cb1c09e5dfa6662f31cba80e07c5ee71cd135c9673\",\"license\":\"MIT\"},\"@openzeppelin/contracts/security/ReentrancyGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuard {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n constructor() {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n _nonReentrantBefore();\\n _;\\n _nonReentrantAfter();\\n }\\n\\n function _nonReentrantBefore() private {\\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n }\\n\\n function _nonReentrantAfter() private {\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n}\\n\",\"keccak256\":\"0x190dd6f8d592b7e4e930feb7f4313aeb8e1c4ad3154c27ce1cf6a512fc30d8cc\",\"license\":\"MIT\"},\"@openzeppelin/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\"},\"contracts/ReimbursementPool.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n//\\n// \\u2593\\u2593\\u258c \\u2593\\u2593 \\u2590\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2588\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n//\\n// Trust math, not hardware.\\n\\npragma solidity 0.8.17;\\n\\nimport \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\nimport \\\"@openzeppelin/contracts/security/ReentrancyGuard.sol\\\";\\n\\ncontract ReimbursementPool is Ownable, ReentrancyGuard {\\n /// @notice Authorized contracts that can interact with the reimbursment pool.\\n /// Authorization can be granted and removed by the owner.\\n mapping(address => bool) public isAuthorized;\\n\\n /// @notice Static gas includes:\\n /// - cost of the refund function\\n /// - base transaction cost\\n uint256 public staticGas;\\n\\n /// @notice Max gas price used to reimburse a transaction submitter. Protects\\n /// against malicious operator-miners.\\n uint256 public maxGasPrice;\\n\\n event StaticGasUpdated(uint256 newStaticGas);\\n\\n event MaxGasPriceUpdated(uint256 newMaxGasPrice);\\n\\n event SendingEtherFailed(uint256 refundAmount, address receiver);\\n\\n event AuthorizedContract(address thirdPartyContract);\\n\\n event UnauthorizedContract(address thirdPartyContract);\\n\\n event FundsWithdrawn(uint256 withdrawnAmount, address receiver);\\n\\n constructor(uint256 _staticGas, uint256 _maxGasPrice) {\\n staticGas = _staticGas;\\n maxGasPrice = _maxGasPrice;\\n }\\n\\n /// @notice Receive ETH\\n receive() external payable {}\\n\\n /// @notice Refunds ETH to a spender for executing specific transactions.\\n /// @dev Ignoring the result of sending ETH to a receiver is made on purpose.\\n /// For EOA receiving ETH should always work. If a receiver is a smart\\n /// contract, then we do not want to fail a transaction, because in some\\n /// cases the refund is done at the very end of multiple calls where all\\n /// the previous calls were already paid off. It is a receiver's smart\\n /// contract resposibility to make sure it can receive ETH.\\n /// @dev Only authorized contracts are allowed calling this function.\\n /// @param gasSpent Gas spent on a transaction that needs to be reimbursed.\\n /// @param receiver Address where the reimbursment is sent.\\n function refund(uint256 gasSpent, address receiver) external nonReentrant {\\n require(\\n isAuthorized[msg.sender],\\n \\\"Contract is not authorized for a refund\\\"\\n );\\n require(receiver != address(0), \\\"Receiver's address cannot be zero\\\");\\n\\n uint256 gasPrice = tx.gasprice < maxGasPrice\\n ? tx.gasprice\\n : maxGasPrice;\\n\\n uint256 refundAmount = (gasSpent + staticGas) * gasPrice;\\n\\n /* solhint-disable avoid-low-level-calls */\\n // slither-disable-next-line low-level-calls,unchecked-lowlevel\\n (bool sent, ) = receiver.call{value: refundAmount}(\\\"\\\");\\n /* solhint-enable avoid-low-level-calls */\\n if (!sent) {\\n // slither-disable-next-line reentrancy-events\\n emit SendingEtherFailed(refundAmount, receiver);\\n }\\n }\\n\\n /// @notice Authorize a contract that can interact with this reimbursment pool.\\n /// Can be authorized by the owner only.\\n /// @param _contract Authorized contract.\\n function authorize(address _contract) external onlyOwner {\\n isAuthorized[_contract] = true;\\n\\n emit AuthorizedContract(_contract);\\n }\\n\\n /// @notice Unauthorize a contract that was previously authorized to interact\\n /// with this reimbursment pool. Can be unauthorized by the\\n /// owner only.\\n /// @param _contract Authorized contract.\\n function unauthorize(address _contract) external onlyOwner {\\n delete isAuthorized[_contract];\\n\\n emit UnauthorizedContract(_contract);\\n }\\n\\n /// @notice Setting a static gas cost for executing a transaction. Can be set\\n /// by the owner only.\\n /// @param _staticGas Static gas cost.\\n function setStaticGas(uint256 _staticGas) external onlyOwner {\\n staticGas = _staticGas;\\n\\n emit StaticGasUpdated(_staticGas);\\n }\\n\\n /// @notice Setting a max gas price for transactions. Can be set by the\\n /// owner only.\\n /// @param _maxGasPrice Max gas price used to reimburse tx submitters.\\n function setMaxGasPrice(uint256 _maxGasPrice) external onlyOwner {\\n maxGasPrice = _maxGasPrice;\\n\\n emit MaxGasPriceUpdated(_maxGasPrice);\\n }\\n\\n /// @notice Withdraws all ETH from this pool which are sent to a given\\n /// address. Can be set by the owner only.\\n /// @param receiver An address where ETH is sent.\\n function withdrawAll(address receiver) external onlyOwner {\\n withdraw(address(this).balance, receiver);\\n }\\n\\n /// @notice Withdraws ETH amount from this pool which are sent to a given\\n /// address. Can be set by the owner only.\\n /// @param amount Amount to withdraw from the pool.\\n /// @param receiver An address where ETH is sent.\\n function withdraw(uint256 amount, address receiver) public onlyOwner {\\n require(\\n address(this).balance >= amount,\\n \\\"Insufficient contract balance\\\"\\n );\\n require(receiver != address(0), \\\"Receiver's address cannot be zero\\\");\\n\\n emit FundsWithdrawn(amount, receiver);\\n\\n /* solhint-disable avoid-low-level-calls */\\n // slither-disable-next-line low-level-calls,arbitrary-send\\n (bool sent, ) = receiver.call{value: amount}(\\\"\\\");\\n /* solhint-enable avoid-low-level-calls */\\n require(sent, \\\"Failed to send Ether\\\");\\n }\\n}\\n\",\"keccak256\":\"0xd6c24368cc4c6349b8b614e878ca961cad8254b8e8db1cc0abe452a70022ce50\",\"license\":\"GPL-3.0-only\"}},\"version\":1}",
350
- "bytecode": "0x608060405234801561001057600080fd5b50604051610a55380380610a5583398101604081905261002f9161009a565b6100383361004a565b600180556003919091556004556100be565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080604083850312156100ad57600080fd5b505080516020909101519092909150565b610988806100cd6000396000f3fe6080604052600436106100c55760003560e01c8063b6a5d7de1161007f578063f0b37c0411610059578063f0b37c04146101ef578063f2fde38b1461020f578063fa09e6301461022f578063fe9fbb801461024f57600080fd5b8063b6a5d7de14610199578063d2fa635e146101b9578063e25b5345146101d957600080fd5b8062f714ce146100d15780633de39c11146100f35780633e2174041461011c578063715018a61461013c5780637ad226dc146101515780638da5cb5b1461017157600080fd5b366100cc57005b600080fd5b3480156100dd57600080fd5b506100f16100ec366004610864565b61028f565b005b3480156100ff57600080fd5b5061010960045481565b6040519081526020015b60405180910390f35b34801561012857600080fd5b506100f1610137366004610890565b6103f2565b34801561014857600080fd5b506100f1610436565b34801561015d57600080fd5b506100f161016c366004610864565b61044a565b34801561017d57600080fd5b506000546040516001600160a01b039091168152602001610113565b3480156101a557600080fd5b506100f16101b43660046108a9565b6105c8565b3480156101c557600080fd5b506100f16101d4366004610890565b610624565b3480156101e557600080fd5b5061010960035481565b3480156101fb57600080fd5b506100f161020a3660046108a9565b610661565b34801561021b57600080fd5b506100f161022a3660046108a9565b6106ba565b34801561023b57600080fd5b506100f161024a3660046108a9565b610733565b34801561025b57600080fd5b5061027f61026a3660046108a9565b60026020526000908152604090205460ff1681565b6040519015158152602001610113565b610297610745565b814710156102ec5760405162461bcd60e51b815260206004820152601d60248201527f496e73756666696369656e7420636f6e74726163742062616c616e636500000060448201526064015b60405180910390fd5b6001600160a01b0381166103125760405162461bcd60e51b81526004016102e3906108cb565b604080518381526001600160a01b03831660208201527f6141b54b56b8a52a8c6f5cd2a857f6117b18ffbf4d46bd3106f300a839cbf5ea910160405180910390a16000816001600160a01b03168360405160006040518083038185875af1925050503d80600081146103a0576040519150601f19603f3d011682016040523d82523d6000602084013e6103a5565b606091505b50509050806103ed5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064016102e3565b505050565b6103fa610745565b60038190556040518181527fa86b6e9a406df021f05f513a796a1d5bea0bd3e18fe1d3f6082a3cccfc898d14906020015b60405180910390a150565b61043e610745565b610448600061079f565b565b6104526107ef565b3360009081526002602052604090205460ff166104c15760405162461bcd60e51b815260206004820152602760248201527f436f6e7472616374206973206e6f7420617574686f72697a656420666f722061604482015266081c99599d5b9960ca1b60648201526084016102e3565b6001600160a01b0381166104e75760405162461bcd60e51b81526004016102e3906108cb565b60006004543a106104fa576004546104fc565b3a5b90506000816003548561050f9190610922565b610519919061093b565b90506000836001600160a01b03168260405160006040518083038185875af1925050503d8060008114610568576040519150601f19603f3d011682016040523d82523d6000602084013e61056d565b606091505b50509050806105b857604080518381526001600160a01b03861660208201527fd955712c3ae4c3c40451db84ea0c4531c61cc0ea75c13fe9168ae0e07d71e050910160405180910390a15b5050506105c460018055565b5050565b6105d0610745565b6001600160a01b038116600081815260026020908152604091829020805460ff1916600117905590519182527f2c74592fddad593c2c4403101ce9b30930711ab87571268ddd1e1989ee1d7917910161042b565b61062c610745565b60048190556040518181527fa7a07f821dfdfca8e4baa9ccc4bbe7b782baac5946918bd19f1c9c761db414109060200161042b565b610669610745565b6001600160a01b038116600081815260026020908152604091829020805460ff1916905590519182527fe195aa139c7c69ba98f719c94aecd784e12fabc0789ef81335150078bc087317910161042b565b6106c2610745565b6001600160a01b0381166107275760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102e3565b6107308161079f565b50565b61073b610745565b610730478261028f565b6000546001600160a01b031633146104485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102e3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6002600154036108415760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102e3565b6002600155565b80356001600160a01b038116811461085f57600080fd5b919050565b6000806040838503121561087757600080fd5b8235915061088760208401610848565b90509250929050565b6000602082840312156108a257600080fd5b5035919050565b6000602082840312156108bb57600080fd5b6108c482610848565b9392505050565b60208082526021908201527f5265636569766572277320616464726573732063616e6e6f74206265207a65726040820152606f60f81b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b808201808211156109355761093561090c565b92915050565b80820281158282048414176109355761093561090c56fea264697066735822122001f8f2ff2aeb7f71d55ffba9efa3db4b1dcbc9c7748521d616063b495e19b38e64736f6c63430008110033",
351
- "deployedBytecode": "0x6080604052600436106100c55760003560e01c8063b6a5d7de1161007f578063f0b37c0411610059578063f0b37c04146101ef578063f2fde38b1461020f578063fa09e6301461022f578063fe9fbb801461024f57600080fd5b8063b6a5d7de14610199578063d2fa635e146101b9578063e25b5345146101d957600080fd5b8062f714ce146100d15780633de39c11146100f35780633e2174041461011c578063715018a61461013c5780637ad226dc146101515780638da5cb5b1461017157600080fd5b366100cc57005b600080fd5b3480156100dd57600080fd5b506100f16100ec366004610864565b61028f565b005b3480156100ff57600080fd5b5061010960045481565b6040519081526020015b60405180910390f35b34801561012857600080fd5b506100f1610137366004610890565b6103f2565b34801561014857600080fd5b506100f1610436565b34801561015d57600080fd5b506100f161016c366004610864565b61044a565b34801561017d57600080fd5b506000546040516001600160a01b039091168152602001610113565b3480156101a557600080fd5b506100f16101b43660046108a9565b6105c8565b3480156101c557600080fd5b506100f16101d4366004610890565b610624565b3480156101e557600080fd5b5061010960035481565b3480156101fb57600080fd5b506100f161020a3660046108a9565b610661565b34801561021b57600080fd5b506100f161022a3660046108a9565b6106ba565b34801561023b57600080fd5b506100f161024a3660046108a9565b610733565b34801561025b57600080fd5b5061027f61026a3660046108a9565b60026020526000908152604090205460ff1681565b6040519015158152602001610113565b610297610745565b814710156102ec5760405162461bcd60e51b815260206004820152601d60248201527f496e73756666696369656e7420636f6e74726163742062616c616e636500000060448201526064015b60405180910390fd5b6001600160a01b0381166103125760405162461bcd60e51b81526004016102e3906108cb565b604080518381526001600160a01b03831660208201527f6141b54b56b8a52a8c6f5cd2a857f6117b18ffbf4d46bd3106f300a839cbf5ea910160405180910390a16000816001600160a01b03168360405160006040518083038185875af1925050503d80600081146103a0576040519150601f19603f3d011682016040523d82523d6000602084013e6103a5565b606091505b50509050806103ed5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064016102e3565b505050565b6103fa610745565b60038190556040518181527fa86b6e9a406df021f05f513a796a1d5bea0bd3e18fe1d3f6082a3cccfc898d14906020015b60405180910390a150565b61043e610745565b610448600061079f565b565b6104526107ef565b3360009081526002602052604090205460ff166104c15760405162461bcd60e51b815260206004820152602760248201527f436f6e7472616374206973206e6f7420617574686f72697a656420666f722061604482015266081c99599d5b9960ca1b60648201526084016102e3565b6001600160a01b0381166104e75760405162461bcd60e51b81526004016102e3906108cb565b60006004543a106104fa576004546104fc565b3a5b90506000816003548561050f9190610922565b610519919061093b565b90506000836001600160a01b03168260405160006040518083038185875af1925050503d8060008114610568576040519150601f19603f3d011682016040523d82523d6000602084013e61056d565b606091505b50509050806105b857604080518381526001600160a01b03861660208201527fd955712c3ae4c3c40451db84ea0c4531c61cc0ea75c13fe9168ae0e07d71e050910160405180910390a15b5050506105c460018055565b5050565b6105d0610745565b6001600160a01b038116600081815260026020908152604091829020805460ff1916600117905590519182527f2c74592fddad593c2c4403101ce9b30930711ab87571268ddd1e1989ee1d7917910161042b565b61062c610745565b60048190556040518181527fa7a07f821dfdfca8e4baa9ccc4bbe7b782baac5946918bd19f1c9c761db414109060200161042b565b610669610745565b6001600160a01b038116600081815260026020908152604091829020805460ff1916905590519182527fe195aa139c7c69ba98f719c94aecd784e12fabc0789ef81335150078bc087317910161042b565b6106c2610745565b6001600160a01b0381166107275760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102e3565b6107308161079f565b50565b61073b610745565b610730478261028f565b6000546001600160a01b031633146104485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102e3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6002600154036108415760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102e3565b6002600155565b80356001600160a01b038116811461085f57600080fd5b919050565b6000806040838503121561087757600080fd5b8235915061088760208401610848565b90509250929050565b6000602082840312156108a257600080fd5b5035919050565b6000602082840312156108bb57600080fd5b6108c482610848565b9392505050565b60208082526021908201527f5265636569766572277320616464726573732063616e6e6f74206265207a65726040820152606f60f81b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b808201808211156109355761093561090c565b92915050565b80820281158282048414176109355761093561090c56fea264697066735822122001f8f2ff2aeb7f71d55ffba9efa3db4b1dcbc9c7748521d616063b495e19b38e64736f6c63430008110033",
349
+ "metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_staticGas\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_maxGasPrice\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"thirdPartyContract\",\"type\":\"address\"}],\"name\":\"AuthorizedContract\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"withdrawnAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"FundsWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newMaxGasPrice\",\"type\":\"uint256\"}],\"name\":\"MaxGasPriceUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"refundAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"SendingEtherFailed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newStaticGas\",\"type\":\"uint256\"}],\"name\":\"StaticGasUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"thirdPartyContract\",\"type\":\"address\"}],\"name\":\"UnauthorizedContract\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_contract\",\"type\":\"address\"}],\"name\":\"authorize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isAuthorized\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maxGasPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"gasSpent\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"refund\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_maxGasPrice\",\"type\":\"uint256\"}],\"name\":\"setMaxGasPrice\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_staticGas\",\"type\":\"uint256\"}],\"name\":\"setStaticGas\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"staticGas\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_contract\",\"type\":\"address\"}],\"name\":\"unauthorize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"withdrawAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"authorize(address)\":{\"params\":{\"_contract\":\"Authorized contract.\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"refund(uint256,address)\":{\"details\":\"Ignoring the result of sending ETH to a receiver is made on purpose. For EOA receiving ETH should always work. If a receiver is a smart contract, then we do not want to fail a transaction, because in some cases the refund is done at the very end of multiple calls where all the previous calls were already paid off. It is a receiver's smart contract resposibility to make sure it can receive ETH.Only authorized contracts are allowed calling this function.\",\"params\":{\"gasSpent\":\"Gas spent on a transaction that needs to be reimbursed.\",\"receiver\":\"Address where the reimbursment is sent.\"}},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"setMaxGasPrice(uint256)\":{\"params\":{\"_maxGasPrice\":\"Max gas price used to reimburse tx submitters.\"}},\"setStaticGas(uint256)\":{\"params\":{\"_staticGas\":\"Static gas cost.\"}},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"},\"unauthorize(address)\":{\"params\":{\"_contract\":\"Authorized contract.\"}},\"withdraw(uint256,address)\":{\"params\":{\"amount\":\"Amount to withdraw from the pool.\",\"receiver\":\"An address where ETH is sent.\"}},\"withdrawAll(address)\":{\"params\":{\"receiver\":\"An address where ETH is sent.\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"authorize(address)\":{\"notice\":\"Authorize a contract that can interact with this reimbursment pool. Can be authorized by the owner only.\"},\"isAuthorized(address)\":{\"notice\":\"Authorized contracts that can interact with the reimbursment pool. Authorization can be granted and removed by the owner.\"},\"maxGasPrice()\":{\"notice\":\"Max gas price used to reimburse a transaction submitter. Protects against malicious operator-miners.\"},\"refund(uint256,address)\":{\"notice\":\"Refunds ETH to a spender for executing specific transactions.\"},\"setMaxGasPrice(uint256)\":{\"notice\":\"Setting a max gas price for transactions. Can be set by the owner only.\"},\"setStaticGas(uint256)\":{\"notice\":\"Setting a static gas cost for executing a transaction. Can be set by the owner only.\"},\"staticGas()\":{\"notice\":\"Static gas includes: - cost of the refund function - base transaction cost\"},\"unauthorize(address)\":{\"notice\":\"Unauthorize a contract that was previously authorized to interact with this reimbursment pool. Can be unauthorized by the owner only.\"},\"withdraw(uint256,address)\":{\"notice\":\"Withdraws ETH amount from this pool which are sent to a given address. Can be set by the owner only.\"},\"withdrawAll(address)\":{\"notice\":\"Withdraws all ETH from this pool which are sent to a given address. Can be set by the owner only.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/ReimbursementPool.sol\":\"ReimbursementPool\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xa94b34880e3c1b0b931662cb1c09e5dfa6662f31cba80e07c5ee71cd135c9673\",\"license\":\"MIT\"},\"@openzeppelin/contracts/security/ReentrancyGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuard {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n constructor() {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n // On the first call to nonReentrant, _notEntered will be true\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n\\n _;\\n\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n}\\n\",\"keccak256\":\"0x0e9621f60b2faabe65549f7ed0f24e8853a45c1b7990d47e8160e523683f3935\",\"license\":\"MIT\"},\"@openzeppelin/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\"},\"contracts/ReimbursementPool.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n//\\n// \\u2593\\u2593\\u258c \\u2593\\u2593 \\u2590\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2588\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n//\\n// Trust math, not hardware.\\n\\npragma solidity 0.8.17;\\n\\nimport \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\nimport \\\"@openzeppelin/contracts/security/ReentrancyGuard.sol\\\";\\n\\ncontract ReimbursementPool is Ownable, ReentrancyGuard {\\n /// @notice Authorized contracts that can interact with the reimbursment pool.\\n /// Authorization can be granted and removed by the owner.\\n mapping(address => bool) public isAuthorized;\\n\\n /// @notice Static gas includes:\\n /// - cost of the refund function\\n /// - base transaction cost\\n uint256 public staticGas;\\n\\n /// @notice Max gas price used to reimburse a transaction submitter. Protects\\n /// against malicious operator-miners.\\n uint256 public maxGasPrice;\\n\\n event StaticGasUpdated(uint256 newStaticGas);\\n\\n event MaxGasPriceUpdated(uint256 newMaxGasPrice);\\n\\n event SendingEtherFailed(uint256 refundAmount, address receiver);\\n\\n event AuthorizedContract(address thirdPartyContract);\\n\\n event UnauthorizedContract(address thirdPartyContract);\\n\\n event FundsWithdrawn(uint256 withdrawnAmount, address receiver);\\n\\n constructor(uint256 _staticGas, uint256 _maxGasPrice) {\\n staticGas = _staticGas;\\n maxGasPrice = _maxGasPrice;\\n }\\n\\n /// @notice Receive ETH\\n receive() external payable {}\\n\\n /// @notice Refunds ETH to a spender for executing specific transactions.\\n /// @dev Ignoring the result of sending ETH to a receiver is made on purpose.\\n /// For EOA receiving ETH should always work. If a receiver is a smart\\n /// contract, then we do not want to fail a transaction, because in some\\n /// cases the refund is done at the very end of multiple calls where all\\n /// the previous calls were already paid off. It is a receiver's smart\\n /// contract resposibility to make sure it can receive ETH.\\n /// @dev Only authorized contracts are allowed calling this function.\\n /// @param gasSpent Gas spent on a transaction that needs to be reimbursed.\\n /// @param receiver Address where the reimbursment is sent.\\n function refund(uint256 gasSpent, address receiver) external nonReentrant {\\n require(\\n isAuthorized[msg.sender],\\n \\\"Contract is not authorized for a refund\\\"\\n );\\n require(receiver != address(0), \\\"Receiver's address cannot be zero\\\");\\n\\n uint256 gasPrice = tx.gasprice < maxGasPrice\\n ? tx.gasprice\\n : maxGasPrice;\\n\\n uint256 refundAmount = (gasSpent + staticGas) * gasPrice;\\n\\n /* solhint-disable avoid-low-level-calls */\\n // slither-disable-next-line low-level-calls,unchecked-lowlevel\\n (bool sent, ) = receiver.call{value: refundAmount}(\\\"\\\");\\n /* solhint-enable avoid-low-level-calls */\\n if (!sent) {\\n // slither-disable-next-line reentrancy-events\\n emit SendingEtherFailed(refundAmount, receiver);\\n }\\n }\\n\\n /// @notice Authorize a contract that can interact with this reimbursment pool.\\n /// Can be authorized by the owner only.\\n /// @param _contract Authorized contract.\\n function authorize(address _contract) external onlyOwner {\\n isAuthorized[_contract] = true;\\n\\n emit AuthorizedContract(_contract);\\n }\\n\\n /// @notice Unauthorize a contract that was previously authorized to interact\\n /// with this reimbursment pool. Can be unauthorized by the\\n /// owner only.\\n /// @param _contract Authorized contract.\\n function unauthorize(address _contract) external onlyOwner {\\n delete isAuthorized[_contract];\\n\\n emit UnauthorizedContract(_contract);\\n }\\n\\n /// @notice Setting a static gas cost for executing a transaction. Can be set\\n /// by the owner only.\\n /// @param _staticGas Static gas cost.\\n function setStaticGas(uint256 _staticGas) external onlyOwner {\\n staticGas = _staticGas;\\n\\n emit StaticGasUpdated(_staticGas);\\n }\\n\\n /// @notice Setting a max gas price for transactions. Can be set by the\\n /// owner only.\\n /// @param _maxGasPrice Max gas price used to reimburse tx submitters.\\n function setMaxGasPrice(uint256 _maxGasPrice) external onlyOwner {\\n maxGasPrice = _maxGasPrice;\\n\\n emit MaxGasPriceUpdated(_maxGasPrice);\\n }\\n\\n /// @notice Withdraws all ETH from this pool which are sent to a given\\n /// address. Can be set by the owner only.\\n /// @param receiver An address where ETH is sent.\\n function withdrawAll(address receiver) external onlyOwner {\\n withdraw(address(this).balance, receiver);\\n }\\n\\n /// @notice Withdraws ETH amount from this pool which are sent to a given\\n /// address. Can be set by the owner only.\\n /// @param amount Amount to withdraw from the pool.\\n /// @param receiver An address where ETH is sent.\\n function withdraw(uint256 amount, address receiver) public onlyOwner {\\n require(\\n address(this).balance >= amount,\\n \\\"Insufficient contract balance\\\"\\n );\\n require(receiver != address(0), \\\"Receiver's address cannot be zero\\\");\\n\\n emit FundsWithdrawn(amount, receiver);\\n\\n /* solhint-disable avoid-low-level-calls */\\n // slither-disable-next-line low-level-calls,arbitrary-send\\n (bool sent, ) = receiver.call{value: amount}(\\\"\\\");\\n /* solhint-enable avoid-low-level-calls */\\n require(sent, \\\"Failed to send Ether\\\");\\n }\\n}\\n\",\"keccak256\":\"0xd6c24368cc4c6349b8b614e878ca961cad8254b8e8db1cc0abe452a70022ce50\",\"license\":\"GPL-3.0-only\"}},\"version\":1}",
350
+ "bytecode": "0x608060405234801561001057600080fd5b50604051610a49380380610a4983398101604081905261002f9161009a565b6100383361004a565b600180556003919091556004556100be565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080604083850312156100ad57600080fd5b505080516020909101519092909150565b61097c806100cd6000396000f3fe6080604052600436106100c55760003560e01c8063b6a5d7de1161007f578063f0b37c0411610059578063f0b37c04146101ef578063f2fde38b1461020f578063fa09e6301461022f578063fe9fbb801461024f57600080fd5b8063b6a5d7de14610199578063d2fa635e146101b9578063e25b5345146101d957600080fd5b8062f714ce146100d15780633de39c11146100f35780633e2174041461011c578063715018a61461013c5780637ad226dc146101515780638da5cb5b1461017157600080fd5b366100cc57005b600080fd5b3480156100dd57600080fd5b506100f16100ec366004610858565b61028f565b005b3480156100ff57600080fd5b5061010960045481565b6040519081526020015b60405180910390f35b34801561012857600080fd5b506100f1610137366004610884565b6103f2565b34801561014857600080fd5b506100f1610436565b34801561015d57600080fd5b506100f161016c366004610858565b61044a565b34801561017d57600080fd5b506000546040516001600160a01b039091168152602001610113565b3480156101a557600080fd5b506100f16101b436600461089d565b610615565b3480156101c557600080fd5b506100f16101d4366004610884565b610671565b3480156101e557600080fd5b5061010960035481565b3480156101fb57600080fd5b506100f161020a36600461089d565b6106ae565b34801561021b57600080fd5b506100f161022a36600461089d565b610707565b34801561023b57600080fd5b506100f161024a36600461089d565b610780565b34801561025b57600080fd5b5061027f61026a36600461089d565b60026020526000908152604090205460ff1681565b6040519015158152602001610113565b610297610792565b814710156102ec5760405162461bcd60e51b815260206004820152601d60248201527f496e73756666696369656e7420636f6e74726163742062616c616e636500000060448201526064015b60405180910390fd5b6001600160a01b0381166103125760405162461bcd60e51b81526004016102e3906108bf565b604080518381526001600160a01b03831660208201527f6141b54b56b8a52a8c6f5cd2a857f6117b18ffbf4d46bd3106f300a839cbf5ea910160405180910390a16000816001600160a01b03168360405160006040518083038185875af1925050503d80600081146103a0576040519150601f19603f3d011682016040523d82523d6000602084013e6103a5565b606091505b50509050806103ed5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064016102e3565b505050565b6103fa610792565b60038190556040518181527fa86b6e9a406df021f05f513a796a1d5bea0bd3e18fe1d3f6082a3cccfc898d14906020015b60405180910390a150565b61043e610792565b61044860006107ec565b565b60026001540361049c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102e3565b60026001819055336000908152602091909152604090205460ff166105135760405162461bcd60e51b815260206004820152602760248201527f436f6e7472616374206973206e6f7420617574686f72697a656420666f722061604482015266081c99599d5b9960ca1b60648201526084016102e3565b6001600160a01b0381166105395760405162461bcd60e51b81526004016102e3906108bf565b60006004543a1061054c5760045461054e565b3a5b9050600081600354856105619190610916565b61056b919061092f565b90506000836001600160a01b03168260405160006040518083038185875af1925050503d80600081146105ba576040519150601f19603f3d011682016040523d82523d6000602084013e6105bf565b606091505b505090508061060a57604080518381526001600160a01b03861660208201527fd955712c3ae4c3c40451db84ea0c4531c61cc0ea75c13fe9168ae0e07d71e050910160405180910390a15b505060018055505050565b61061d610792565b6001600160a01b038116600081815260026020908152604091829020805460ff1916600117905590519182527f2c74592fddad593c2c4403101ce9b30930711ab87571268ddd1e1989ee1d7917910161042b565b610679610792565b60048190556040518181527fa7a07f821dfdfca8e4baa9ccc4bbe7b782baac5946918bd19f1c9c761db414109060200161042b565b6106b6610792565b6001600160a01b038116600081815260026020908152604091829020805460ff1916905590519182527fe195aa139c7c69ba98f719c94aecd784e12fabc0789ef81335150078bc087317910161042b565b61070f610792565b6001600160a01b0381166107745760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102e3565b61077d816107ec565b50565b610788610792565b61077d478261028f565b6000546001600160a01b031633146104485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102e3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461085357600080fd5b919050565b6000806040838503121561086b57600080fd5b8235915061087b6020840161083c565b90509250929050565b60006020828403121561089657600080fd5b5035919050565b6000602082840312156108af57600080fd5b6108b88261083c565b9392505050565b60208082526021908201527f5265636569766572277320616464726573732063616e6e6f74206265207a65726040820152606f60f81b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561092957610929610900565b92915050565b80820281158282048414176109295761092961090056fea2646970667358221220578df9772b15d4ba1bc520679b4729538fcffa2275405fa7f9472c205cf79f2764736f6c63430008110033",
351
+ "deployedBytecode": "0x6080604052600436106100c55760003560e01c8063b6a5d7de1161007f578063f0b37c0411610059578063f0b37c04146101ef578063f2fde38b1461020f578063fa09e6301461022f578063fe9fbb801461024f57600080fd5b8063b6a5d7de14610199578063d2fa635e146101b9578063e25b5345146101d957600080fd5b8062f714ce146100d15780633de39c11146100f35780633e2174041461011c578063715018a61461013c5780637ad226dc146101515780638da5cb5b1461017157600080fd5b366100cc57005b600080fd5b3480156100dd57600080fd5b506100f16100ec366004610858565b61028f565b005b3480156100ff57600080fd5b5061010960045481565b6040519081526020015b60405180910390f35b34801561012857600080fd5b506100f1610137366004610884565b6103f2565b34801561014857600080fd5b506100f1610436565b34801561015d57600080fd5b506100f161016c366004610858565b61044a565b34801561017d57600080fd5b506000546040516001600160a01b039091168152602001610113565b3480156101a557600080fd5b506100f16101b436600461089d565b610615565b3480156101c557600080fd5b506100f16101d4366004610884565b610671565b3480156101e557600080fd5b5061010960035481565b3480156101fb57600080fd5b506100f161020a36600461089d565b6106ae565b34801561021b57600080fd5b506100f161022a36600461089d565b610707565b34801561023b57600080fd5b506100f161024a36600461089d565b610780565b34801561025b57600080fd5b5061027f61026a36600461089d565b60026020526000908152604090205460ff1681565b6040519015158152602001610113565b610297610792565b814710156102ec5760405162461bcd60e51b815260206004820152601d60248201527f496e73756666696369656e7420636f6e74726163742062616c616e636500000060448201526064015b60405180910390fd5b6001600160a01b0381166103125760405162461bcd60e51b81526004016102e3906108bf565b604080518381526001600160a01b03831660208201527f6141b54b56b8a52a8c6f5cd2a857f6117b18ffbf4d46bd3106f300a839cbf5ea910160405180910390a16000816001600160a01b03168360405160006040518083038185875af1925050503d80600081146103a0576040519150601f19603f3d011682016040523d82523d6000602084013e6103a5565b606091505b50509050806103ed5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b60448201526064016102e3565b505050565b6103fa610792565b60038190556040518181527fa86b6e9a406df021f05f513a796a1d5bea0bd3e18fe1d3f6082a3cccfc898d14906020015b60405180910390a150565b61043e610792565b61044860006107ec565b565b60026001540361049c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016102e3565b60026001819055336000908152602091909152604090205460ff166105135760405162461bcd60e51b815260206004820152602760248201527f436f6e7472616374206973206e6f7420617574686f72697a656420666f722061604482015266081c99599d5b9960ca1b60648201526084016102e3565b6001600160a01b0381166105395760405162461bcd60e51b81526004016102e3906108bf565b60006004543a1061054c5760045461054e565b3a5b9050600081600354856105619190610916565b61056b919061092f565b90506000836001600160a01b03168260405160006040518083038185875af1925050503d80600081146105ba576040519150601f19603f3d011682016040523d82523d6000602084013e6105bf565b606091505b505090508061060a57604080518381526001600160a01b03861660208201527fd955712c3ae4c3c40451db84ea0c4531c61cc0ea75c13fe9168ae0e07d71e050910160405180910390a15b505060018055505050565b61061d610792565b6001600160a01b038116600081815260026020908152604091829020805460ff1916600117905590519182527f2c74592fddad593c2c4403101ce9b30930711ab87571268ddd1e1989ee1d7917910161042b565b610679610792565b60048190556040518181527fa7a07f821dfdfca8e4baa9ccc4bbe7b782baac5946918bd19f1c9c761db414109060200161042b565b6106b6610792565b6001600160a01b038116600081815260026020908152604091829020805460ff1916905590519182527fe195aa139c7c69ba98f719c94aecd784e12fabc0789ef81335150078bc087317910161042b565b61070f610792565b6001600160a01b0381166107745760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102e3565b61077d816107ec565b50565b610788610792565b61077d478261028f565b6000546001600160a01b031633146104485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102e3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461085357600080fd5b919050565b6000806040838503121561086b57600080fd5b8235915061087b6020840161083c565b90509250929050565b60006020828403121561089657600080fd5b5035919050565b6000602082840312156108af57600080fd5b6108b88261083c565b9392505050565b60208082526021908201527f5265636569766572277320616464726573732063616e6e6f74206265207a65726040820152606f60f81b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561092957610929610900565b92915050565b80820281158282048414176109295761092961090056fea2646970667358221220578df9772b15d4ba1bc520679b4729538fcffa2275405fa7f9472c205cf79f2764736f6c63430008110033",
352
352
  "devdoc": {
353
353
  "kind": "dev",
354
354
  "methods": {
@@ -457,7 +457,7 @@
457
457
  "type": "t_uint256"
458
458
  },
459
459
  {
460
- "astId": 14793,
460
+ "astId": 14735,
461
461
  "contract": "contracts/ReimbursementPool.sol:ReimbursementPool",
462
462
  "label": "isAuthorized",
463
463
  "offset": 0,
@@ -465,7 +465,7 @@
465
465
  "type": "t_mapping(t_address,t_bool)"
466
466
  },
467
467
  {
468
- "astId": 14796,
468
+ "astId": 14738,
469
469
  "contract": "contracts/ReimbursementPool.sol:ReimbursementPool",
470
470
  "label": "staticGas",
471
471
  "offset": 0,
@@ -473,7 +473,7 @@
473
473
  "type": "t_uint256"
474
474
  },
475
475
  {
476
- "astId": 14799,
476
+ "astId": 14741,
477
477
  "contract": "contracts/ReimbursementPool.sol:ReimbursementPool",
478
478
  "label": "maxGasPrice",
479
479
  "offset": 0,
package/artifacts/T.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "address": "0x1275D096B9DBf2347bD2a131Fb6BDaB0B4882487",
2
+ "address": "0x948B3c65b89DF0B4894ABE91E6D02FE579834F8F",
3
3
  "abi": [
4
4
  {
5
5
  "inputs": [],
@@ -774,22 +774,22 @@
774
774
  "type": "function"
775
775
  }
776
776
  ],
777
- "transactionHash": "0x9587210e09b700720245220026e4819fbc763ef079760461f88f778b20065feb",
777
+ "transactionHash": "0xc3d7e666e17129259e1878431720640a2dd88af2f2113a5f806d320e8c641de2",
778
778
  "receipt": {
779
779
  "to": null,
780
780
  "from": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
781
- "contractAddress": "0x1275D096B9DBf2347bD2a131Fb6BDaB0B4882487",
781
+ "contractAddress": "0x948B3c65b89DF0B4894ABE91E6D02FE579834F8F",
782
782
  "transactionIndex": 0,
783
783
  "gasUsed": "2233156",
784
- "logsBloom": "0x00000000000000000002000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000808020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000040000000000000000000000020000000000000000000000000000000000001000000000000000000000000000000",
785
- "blockHash": "0xba931c0bed27fec31a9923ac71251e8c05676d015c216423a194523a53af3fcb",
786
- "transactionHash": "0x9587210e09b700720245220026e4819fbc763ef079760461f88f778b20065feb",
784
+ "logsBloom": "0x00000000000000000002000000000000000000000000000000820000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000001000000000000000000000000000000000800020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000001000000000000000000000000000000",
785
+ "blockHash": "0x8e833ca2aa00ca7d750dc37eb1bf9ad63a42bc12a17fefc590dabd2f9f8911c3",
786
+ "transactionHash": "0xc3d7e666e17129259e1878431720640a2dd88af2f2113a5f806d320e8c641de2",
787
787
  "logs": [
788
788
  {
789
789
  "transactionIndex": 0,
790
- "blockNumber": 8,
791
- "transactionHash": "0x9587210e09b700720245220026e4819fbc763ef079760461f88f778b20065feb",
792
- "address": "0x1275D096B9DBf2347bD2a131Fb6BDaB0B4882487",
790
+ "blockNumber": 3,
791
+ "transactionHash": "0xc3d7e666e17129259e1878431720640a2dd88af2f2113a5f806d320e8c641de2",
792
+ "address": "0x948B3c65b89DF0B4894ABE91E6D02FE579834F8F",
793
793
  "topics": [
794
794
  "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
795
795
  "0x0000000000000000000000000000000000000000000000000000000000000000",
@@ -797,10 +797,10 @@
797
797
  ],
798
798
  "data": "0x",
799
799
  "logIndex": 0,
800
- "blockHash": "0xba931c0bed27fec31a9923ac71251e8c05676d015c216423a194523a53af3fcb"
800
+ "blockHash": "0x8e833ca2aa00ca7d750dc37eb1bf9ad63a42bc12a17fefc590dabd2f9f8911c3"
801
801
  }
802
802
  ],
803
- "blockNumber": 8,
803
+ "blockNumber": 3,
804
804
  "cumulativeGasUsed": "2233156",
805
805
  "status": 1,
806
806
  "byzantium": true
@@ -1,5 +1,5 @@
1
1
  {
2
- "address": "0x1D99a347B5EcdbAa3C5365470d461Cf66B77ECd2",
2
+ "address": "0x093e8F4d8f267d2CeEc9eB889E2054710d187beD",
3
3
  "abi": [
4
4
  {
5
5
  "inputs": [],
@@ -524,22 +524,22 @@
524
524
  "type": "function"
525
525
  }
526
526
  ],
527
- "transactionHash": "0xfaceb50f3bbbbdf0b5574b75b11ac2db99125131567cd39772de12d8f55870d6",
527
+ "transactionHash": "0x8c273953dc3b35e5bc63626d8259da76d519586c9ee9c67996c8ba1a1de76461",
528
528
  "receipt": {
529
529
  "to": null,
530
530
  "from": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
531
- "contractAddress": "0x1D99a347B5EcdbAa3C5365470d461Cf66B77ECd2",
531
+ "contractAddress": "0x093e8F4d8f267d2CeEc9eB889E2054710d187beD",
532
532
  "transactionIndex": 0,
533
533
  "gasUsed": "1590261",
534
- "logsBloom": "0x00000000000000000002000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000800020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000001000000000800000000000000000000",
535
- "blockHash": "0xccb4d63374d8874600db66b8a1041cba6d9be9facb92232a53071f0f13fd10d9",
536
- "transactionHash": "0xfaceb50f3bbbbdf0b5574b75b11ac2db99125131567cd39772de12d8f55870d6",
534
+ "logsBloom": "0x00000000000000000002000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000800020000000000000000000800000000000000000000000000000000400000000000800000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000010000000000000000000000001000000000000000000000000000000",
535
+ "blockHash": "0xb524c0b6fbc527703d34342d0651f447a671d781977139c5aa8ae20f8a412f3f",
536
+ "transactionHash": "0x8c273953dc3b35e5bc63626d8259da76d519586c9ee9c67996c8ba1a1de76461",
537
537
  "logs": [
538
538
  {
539
539
  "transactionIndex": 0,
540
- "blockNumber": 56,
541
- "transactionHash": "0xfaceb50f3bbbbdf0b5574b75b11ac2db99125131567cd39772de12d8f55870d6",
542
- "address": "0x1D99a347B5EcdbAa3C5365470d461Cf66B77ECd2",
540
+ "blockNumber": 47,
541
+ "transactionHash": "0x8c273953dc3b35e5bc63626d8259da76d519586c9ee9c67996c8ba1a1de76461",
542
+ "address": "0x093e8F4d8f267d2CeEc9eB889E2054710d187beD",
543
543
  "topics": [
544
544
  "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
545
545
  "0x0000000000000000000000000000000000000000000000000000000000000000",
@@ -547,10 +547,10 @@
547
547
  ],
548
548
  "data": "0x",
549
549
  "logIndex": 0,
550
- "blockHash": "0xccb4d63374d8874600db66b8a1041cba6d9be9facb92232a53071f0f13fd10d9"
550
+ "blockHash": "0xb524c0b6fbc527703d34342d0651f447a671d781977139c5aa8ae20f8a412f3f"
551
551
  }
552
552
  ],
553
- "blockNumber": 56,
553
+ "blockNumber": 47,
554
554
  "cumulativeGasUsed": "1590261",
555
555
  "status": 1,
556
556
  "byzantium": true
@@ -1,5 +1,5 @@
1
1
  {
2
- "address": "0x35D2F51DBC8b401B11fA3FE04423E0f5cd9fEDb4",
2
+ "address": "0xc63d2a04762529edB649d7a4cC3E57A0085e8544",
3
3
  "abi": [
4
4
  {
5
5
  "inputs": [],
@@ -499,22 +499,22 @@
499
499
  "type": "function"
500
500
  }
501
501
  ],
502
- "transactionHash": "0x1e04c3f0ace733178d7af49f4b24b8a9f370df60072c9aa411d4c176bc16d50f",
502
+ "transactionHash": "0x9e76375604aa29a2c80f0a011790c30fe837dcef34ba66c046acaac266ee0baa",
503
503
  "receipt": {
504
504
  "to": null,
505
505
  "from": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
506
- "contractAddress": "0x35D2F51DBC8b401B11fA3FE04423E0f5cd9fEDb4",
506
+ "contractAddress": "0xc63d2a04762529edB649d7a4cC3E57A0085e8544",
507
507
  "transactionIndex": 0,
508
508
  "gasUsed": "1334985",
509
- "logsBloom": "0x00000000000000000002000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000800020000000000000000000800000000000000000000000000001000400000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000080000000000001000000000000000000000000000000",
510
- "blockHash": "0x44c20ae3a9757e5130a05c7fdd88c43364367f88d5b48cd1331a57488bdbef89",
511
- "transactionHash": "0x1e04c3f0ace733178d7af49f4b24b8a9f370df60072c9aa411d4c176bc16d50f",
509
+ "logsBloom": "0x00000000000000000002000000000000000000000040000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000800020000000000000000000800000000000000000008000008000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000001000000000000000000000000000000",
510
+ "blockHash": "0x2b2190964f9c6ca7a08b62f014aee318d7c55f6b23f407569bc5eea38aef4dc7",
511
+ "transactionHash": "0x9e76375604aa29a2c80f0a011790c30fe837dcef34ba66c046acaac266ee0baa",
512
512
  "logs": [
513
513
  {
514
514
  "transactionIndex": 0,
515
- "blockNumber": 54,
516
- "transactionHash": "0x1e04c3f0ace733178d7af49f4b24b8a9f370df60072c9aa411d4c176bc16d50f",
517
- "address": "0x35D2F51DBC8b401B11fA3FE04423E0f5cd9fEDb4",
515
+ "blockNumber": 45,
516
+ "transactionHash": "0x9e76375604aa29a2c80f0a011790c30fe837dcef34ba66c046acaac266ee0baa",
517
+ "address": "0xc63d2a04762529edB649d7a4cC3E57A0085e8544",
518
518
  "topics": [
519
519
  "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
520
520
  "0x0000000000000000000000000000000000000000000000000000000000000000",
@@ -522,10 +522,10 @@
522
522
  ],
523
523
  "data": "0x",
524
524
  "logIndex": 0,
525
- "blockHash": "0x44c20ae3a9757e5130a05c7fdd88c43364367f88d5b48cd1331a57488bdbef89"
525
+ "blockHash": "0x2b2190964f9c6ca7a08b62f014aee318d7c55f6b23f407569bc5eea38aef4dc7"
526
526
  }
527
527
  ],
528
- "blockNumber": 54,
528
+ "blockNumber": 45,
529
529
  "cumulativeGasUsed": "1334985",
530
530
  "status": 1,
531
531
  "byzantium": true