@latticexyz/world 1.40.0 → 1.41.0

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 (84) hide show
  1. package/LICENSE +21 -0
  2. package/abi/AddressArraySchemaLib.json +718 -869
  3. package/abi/BoolSchemaLib.json +401 -401
  4. package/abi/Bytes.json +1162 -1162
  5. package/abi/CommonBase.json +125 -125
  6. package/abi/DSTest.json +2630 -2630
  7. package/abi/DecodeSlice.json +3883 -3883
  8. package/abi/EncodeArray.json +3336 -3336
  9. package/abi/Hooks.json +1491 -785
  10. package/abi/IMulticall3.json +283 -283
  11. package/abi/IStore.json +623 -421
  12. package/abi/IStoreHook.json +567 -421
  13. package/abi/ISystemHook.json +19 -19
  14. package/abi/Memory.json +131 -131
  15. package/abi/PackedCounterLib.json +683 -683
  16. package/abi/RouteAccess.json +2209 -1159
  17. package/abi/RouteOwnerSchemaLib.json +349 -349
  18. package/abi/RouteOwnerTable.json +297 -297
  19. package/abi/RouteSchemaLib.json +433 -433
  20. package/abi/RouteTable.json +336 -336
  21. package/abi/SchemaLib.json +1211 -1211
  22. package/abi/ScriptBase.json +125 -125
  23. package/abi/SliceInstance.json +429 -429
  24. package/abi/SliceLib.json +429 -429
  25. package/abi/StdAssertions.json +2135 -2135
  26. package/abi/StdChains.json +1051 -1051
  27. package/abi/StdCheats.json +3257 -3257
  28. package/abi/StdCheatsSafe.json +3257 -3257
  29. package/abi/StdInvariant.json +337 -337
  30. package/abi/StdUtils.json +1122 -1122
  31. package/abi/Storage.json +491 -491
  32. package/abi/Store.json +374 -209
  33. package/abi/StoreCore.json +10665 -7865
  34. package/abi/StoreCoreExtended.json +10443 -7722
  35. package/abi/StoreCoreInternal.json +10482 -7638
  36. package/abi/StoreMetadata.json +3719 -2417
  37. package/abi/StoreSwitch.json +1692 -783
  38. package/abi/System.json +16 -16
  39. package/abi/SystemRouteSchemaLib.json +402 -402
  40. package/abi/SystemRouteTable.json +336 -336
  41. package/abi/SystemTable.json +8544 -651
  42. package/abi/SystemTest.json +287 -303
  43. package/abi/Test.json +124 -124
  44. package/abi/TestBase.json +125 -125
  45. package/abi/TestSystem.json +287 -303
  46. package/abi/TightCoder.json +272 -272
  47. package/abi/Utils.json +67 -67
  48. package/abi/Vm.json +1850 -1850
  49. package/abi/VmSafe.json +1850 -1850
  50. package/abi/World.json +5183 -3374
  51. package/abi/WorldTest.json +9983 -10520
  52. package/abi/WorldTestSystem.json +9992 -10503
  53. package/abi/WorldTestTableHook.json +9978 -10511
  54. package/abi/console.json +11417 -11417
  55. package/abi/console2.json +11459 -11459
  56. package/abi/stdError.json +79 -79
  57. package/abi/stdJson.json +1016 -1016
  58. package/abi/stdMath.json +218 -218
  59. package/abi/stdStorage.json +2400 -2400
  60. package/abi/stdStorageSafe.json +2400 -2400
  61. package/package.json +8 -8
  62. package/src/World.sol +78 -32
  63. package/src/schemas/AddressArray.sol +5 -19
  64. package/src/tables/RouteAccess.sol +35 -30
  65. package/src/tables/SystemTable.sol +142 -23
  66. package/types/ethers-contracts/IStore.ts +49 -0
  67. package/types/ethers-contracts/Store.ts +49 -0
  68. package/types/ethers-contracts/World.ts +94 -0
  69. package/types/ethers-contracts/WorldTest.ts +27 -0
  70. package/types/ethers-contracts/factories/IStore__factory.ts +28 -0
  71. package/types/ethers-contracts/factories/StoreCore__factory.ts +2 -23
  72. package/types/ethers-contracts/factories/StoreSwitch__factory.ts +1 -1
  73. package/types/ethers-contracts/factories/Store__factory.ts +81 -0
  74. package/types/ethers-contracts/factories/SystemTest__factory.ts +1 -1
  75. package/types/ethers-contracts/factories/TestSystem__factory.ts +1 -1
  76. package/types/ethers-contracts/factories/WorldTestSystem__factory.ts +12 -1
  77. package/types/ethers-contracts/factories/WorldTestTableHook__factory.ts +1 -1
  78. package/types/ethers-contracts/factories/WorldTest__factory.ts +11 -34
  79. package/types/ethers-contracts/factories/World__factory.ts +70 -30
  80. package/types/ethers-contracts/index.ts +0 -2
  81. package/abi/SystemSchemaLib.json +0 -3704
  82. package/src/schemas/SystemSchema.sol +0 -78
  83. package/types/ethers-contracts/StoreCoreExtended.ts +0 -141
  84. package/types/ethers-contracts/factories/StoreCoreExtended__factory.ts +0 -123
@@ -1,3704 +0,0 @@
1
- {
2
- "abi": [],
3
- "bytecode": {
4
- "object": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122058aac1421406c62bba5b60640e6f343f3a9a3eefb098b312d73d03547e53f5c464736f6c634300080d0033",
5
- "sourceMap": "907:1742:71:-:0;;;;;;;;;;;;;;;-1:-1:-1;;;907:1742:71;;;;;;;;;;;;;;;;;",
6
- "linkReferences": {}
7
- },
8
- "deployedBytecode": {
9
- "object": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122058aac1421406c62bba5b60640e6f343f3a9a3eefb098b312d73d03547e53f5c464736f6c634300080d0033",
10
- "sourceMap": "907:1742:71:-:0;;;;;;;;",
11
- "linkReferences": {}
12
- },
13
- "methodIdentifiers": {},
14
- "rawMetadata": "{\"compiler\":{\"version\":\"0.8.13+commit.abaa5c0e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/schemas/SystemSchema.sol\":\"SystemSchemaLib\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":3000},\"remappings\":[\":@latticexyz/=../../node_modules/@latticexyz/\",\":@rari-capital/=/Users/flomllr/git/latticexyz/mud/packages/store/../../node_modules/@rari-capital/\",\":@solidstate/=/Users/flomllr/git/latticexyz/mud/packages/store/../../node_modules/@solidstate/\",\":abdk-libraries-solidity/=/Users/flomllr/git/latticexyz/mud/packages/store/../../node_modules/abdk-libraries-solidity/\",\":base64-sol/=/Users/flomllr/git/latticexyz/mud/packages/store/../../node_modules/base64-sol/\",\":create-mud/=/Users/flomllr/git/latticexyz/mud/packages/store/../../node_modules/create-mud/\",\":ds-test/=../../node_modules/ds-test/src/\",\":forge-std/=../../node_modules/forge-std/src/\",\":hardhat/=/Users/flomllr/git/latticexyz/mud/packages/store/../../node_modules/hardhat/\",\":memmove/=/Users/flomllr/git/latticexyz/mud/node_modules/memmove/src/\",\":solmate/=/Users/flomllr/git/latticexyz/mud/node_modules/solmate/src/\",\":store/=/Users/flomllr/git/latticexyz/mud/packages/store/src/\",\":test/=../store/test/\"]},\"sources\":{\"../../node_modules/@latticexyz/schema-type/src/solidity/SchemaType.sol\":{\"keccak256\":\"0xe881f296ba0fe410faa6395ee4a65b9bf154947aebc6aa323d41a0484504221e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ba7f706464d14365ff751936ba96f79f200df7bcd9d9f8abccd0b41387ca7967\",\"dweb:/ipfs/QmTiHgH3ZM2oJoqsbNs3iwwPFNYFNU7m8co87woxRLaUZ6\"]},\"../../node_modules/@latticexyz/store/src/Bytes.sol\":{\"keccak256\":\"0xbf62a7c112d01458cf6798e22c7e9efb4b429f2a448613465f8a1d04ed4909d6\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://2f3fb1fecc95937b75af7ba625f80c3ea0848dddf2d8a1d1f987e705ebc20086\",\"dweb:/ipfs/QmU8kMF6YBL5QV43CmqdqaquKtn7699npyRJX1o5rHUo8W\"]},\"../../node_modules/@latticexyz/store/src/IStore.sol\":{\"keccak256\":\"0xfbea7bdd90fe24c52036c3d429e41004d5166ab0dcdaccac76f9c7c89919b60e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6104878a5b8e1a8c8f7b3bca268c33232380088dfc3c185506fbf9c6de530ece\",\"dweb:/ipfs/QmT1HPAWYXgzNS6BueLwQpLzKAmCUgyiBwbpTF3au3e6yc\"]},\"../../node_modules/@latticexyz/store/src/Memory.sol\":{\"keccak256\":\"0xdcd3da381bf9618de6b5e2d6235b1e22c54078242f1b66e897cfaf2776850db5\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://0511205cfb3c935ffc63cc227745360cd549636da5331f249cc34387b5181f44\",\"dweb:/ipfs/QmVYZ7YCT1rJemmTVRsjXZJ4HsWgspRxqbsbhy8AD1jwey\"]},\"../../node_modules/@latticexyz/store/src/PackedCounter.sol\":{\"keccak256\":\"0x4db3052d5a5009da45208715e433556d0fe7aa25f9ec6ba6f7c9711afdaba96e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ee5a2906544f37897175c19423ec50e15a070e94bcd97a5201df29e1dc3c7d0f\",\"dweb:/ipfs/QmeA5iZbRLynduDgkaLMZyY3YrPweDkFExuQEDg1GjdVCc\"]},\"../../node_modules/@latticexyz/store/src/Schema.sol\":{\"keccak256\":\"0xd2eba52a5552d6309fa0796f1a3965c529bb19456cdda6ea0d05050ce5db6a4a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://9276795636982ab9c9c245883760aee797e95e84ffc0633362615b54c68fb8fd\",\"dweb:/ipfs/QmYXkMgnLmBeLi8VH1p4hp2bCAxFLiQS97RXbGbBmqU1yD\"]},\"../../node_modules/@latticexyz/store/src/Slice.sol\":{\"keccak256\":\"0x64107104822c8aa724b120fb37648d5da0a50e66b80a801e460d968748d9a95c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://afc6e93a56eac7916adbced5c2304c253f22c9c5eed201e4086ea07b1ec36a72\",\"dweb:/ipfs/QmWZEDiEUe3iVEkUYbzzT6dTVYzADJejDmbsjTsXPkk6TY\"]},\"../../node_modules/@latticexyz/store/src/Storage.sol\":{\"keccak256\":\"0x0fc7628696d72f7c1b2c1e43a29a75c1b3747542bc9769b98a2ce898b1bd4969\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://b0251769edbb281e740d40b03526b7d1e206d98eeb1c4e220ac2220c4815f996\",\"dweb:/ipfs/Qmb9CVZ5h7HfAdDnj6n6ybqTHHCyMKkn8EBMFDuqhR1NRn\"]},\"../../node_modules/@latticexyz/store/src/StoreCore.sol\":{\"keccak256\":\"0x944f7b2c759355a951cb78084219769df228ba18c048acdf04fc73393873e082\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://cd71ee24a9ebda3e60a4a13ffee8de06ee6a5eded03ffd89ca734492e3a4dc5f\",\"dweb:/ipfs/QmPU7YJ3eDYcsRnTFkbeA46bmMp34r25nqR1wN2V8wDjUu\"]},\"../../node_modules/@latticexyz/store/src/StoreSwitch.sol\":{\"keccak256\":\"0x35ec8e612da5f531bcfde473e9983c7cc884b56b4e60761f87d72e988a099a31\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://75a5fd9db9bb0ff5dd04719a40395abf0cf72ea7f5ca9e4fbe1dba2c5ea6e5f8\",\"dweb:/ipfs/QmRTY9PMJW8oDtnY8JA8GJR1NX6sYgpfhRsjGbubhLdXyV\"]},\"../../node_modules/@latticexyz/store/src/Utils.sol\":{\"keccak256\":\"0x426216bfa1c0e70640787007a6e39257cf09e586fd04831ea4fb3dd9c5768fc4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://38e657fa9cfaebe39477eaff27d1ad4d7eeaf0c0058539d2ec7e6976d93df4f4\",\"dweb:/ipfs/QmRuaxqRjUrHHC2ZyTnpmq6sfrWGCDh91B6F5chFAToU6U\"]},\"../../node_modules/@latticexyz/store/src/tables/Hooks.sol\":{\"keccak256\":\"0xa895573566cc9c43793d2f70117d8386faafe29179f059706a138537920ab9b7\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://787f6b2d188298389a1f1ec1e34208b226650b9c72bf1f83f08e9a50ed8e0e08\",\"dweb:/ipfs/QmTuQ5ebVVdD6zAQoHBeVCyBr3qvrTymkcX91Cu7DQxZ2V\"]},\"../../node_modules/@latticexyz/store/src/tables/StoreMetadata.sol\":{\"keccak256\":\"0x39bbbfc9a04d8bea13041e4913873e166d9d347b30e3fa567c5c54c8a3f83c5f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://45ee18f22d00bd3bd026720678d7364645fc17b58c6dc54903942f3d601d095d\",\"dweb:/ipfs/QmcRfyjgEgock7cDkMxH1cH9XNz1x6rAQCMtHe1RgtEPnx\"]},\"../../node_modules/@latticexyz/store/src/tightcoder/DecodeSlice.sol\":{\"keccak256\":\"0x9109f170227f7430388345c88e0b7f416ea46297b7f0b5011c0b794bd6a95e6f\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://18b046c0706a582cba039bc6cce485bcb3489f089a6dec97f965a7ef6585df93\",\"dweb:/ipfs/QmaL2Wwe3AxzW1Lis7Kcp5sb16Y8inUgTTTWwoc8SvoEzC\"]},\"../../node_modules/@latticexyz/store/src/tightcoder/EncodeArray.sol\":{\"keccak256\":\"0x46f0010a3345cbc83f71900b7cd5375fa39e1523f5a34cb67828cfe59128368c\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://457cf33b3424d816011d70a8b03a10f0ea376f3e0990ed6657455a43cf82d35b\",\"dweb:/ipfs/QmejskGLC4Hdu5oWQDMwG3TgiLbLXQJPpnLW37yUVGvBmw\"]},\"../../node_modules/@latticexyz/store/src/tightcoder/TightCoder.sol\":{\"keccak256\":\"0xff0278a4e35174bbed8a38dad8ae7506f725bfe95f0b7c13829c353d68dd25dc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://26249ec0c2fa3a3430a2f8edbfc5cd678e34ea1cf1d7490ecaf1e925c976eb85\",\"dweb:/ipfs/QmUpkhr5kFiDKc7rZ2z5HcTf5PkrWVJu5sa31tYv911cPL\"]},\"../../node_modules/forge-std/src/console.sol\":{\"keccak256\":\"0x91d5413c2434ca58fd278b6e1e79fd98d10c83931cc2596a6038eee4daeb34ba\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://91ccea707361e48b9b7a161fe81f496b9932bc471e9c4e4e1e9c283f2453cc70\",\"dweb:/ipfs/QmcB66sZhQ6Kz7MUHcLE78YXRUZxoZnnxZjN6yATsbB2ec\"]},\"src/Utils.sol\":{\"keccak256\":\"0x0260ceb2052bc28c5f0026b24708ce5f2981d4303beae7b4cd974817fbf2abf0\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://e23438bb3b294c333e31dc532000c54c008beed960961db1680cc9662b30e6be\",\"dweb:/ipfs/QmPmLkejjfWhFzQGBc7itZwRnMPdExXsjZurxxxd6XbpL8\"]},\"src/schemas/SystemSchema.sol\":{\"keccak256\":\"0x7d93adbf0fe28a54974fb09bf4a37f0e5a7474a787f66e0fbaae84c0f7f74c03\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://6ed3bebf1f923837a548b9f11a135131039f5ad87a7d946e1552e8e28b5c3bb8\",\"dweb:/ipfs/QmVUcmcvkjLEtdERKUJcDHYHLeBSSs9M9mc28zhXJfbgAu\"]}},\"version\":1}",
15
- "metadata": {
16
- "compiler": {
17
- "version": "0.8.13+commit.abaa5c0e"
18
- },
19
- "language": "Solidity",
20
- "output": {
21
- "abi": [],
22
- "devdoc": {
23
- "kind": "dev",
24
- "methods": {},
25
- "version": 1
26
- },
27
- "userdoc": {
28
- "kind": "user",
29
- "methods": {},
30
- "version": 1
31
- }
32
- },
33
- "settings": {
34
- "remappings": [
35
- ":@latticexyz/=../../node_modules/@latticexyz/",
36
- ":@rari-capital/=/Users/flomllr/git/latticexyz/mud/packages/store/../../node_modules/@rari-capital/",
37
- ":@solidstate/=/Users/flomllr/git/latticexyz/mud/packages/store/../../node_modules/@solidstate/",
38
- ":abdk-libraries-solidity/=/Users/flomllr/git/latticexyz/mud/packages/store/../../node_modules/abdk-libraries-solidity/",
39
- ":base64-sol/=/Users/flomllr/git/latticexyz/mud/packages/store/../../node_modules/base64-sol/",
40
- ":create-mud/=/Users/flomllr/git/latticexyz/mud/packages/store/../../node_modules/create-mud/",
41
- ":ds-test/=../../node_modules/ds-test/src/",
42
- ":forge-std/=../../node_modules/forge-std/src/",
43
- ":hardhat/=/Users/flomllr/git/latticexyz/mud/packages/store/../../node_modules/hardhat/",
44
- ":memmove/=/Users/flomllr/git/latticexyz/mud/node_modules/memmove/src/",
45
- ":solmate/=/Users/flomllr/git/latticexyz/mud/node_modules/solmate/src/",
46
- ":store/=/Users/flomllr/git/latticexyz/mud/packages/store/src/",
47
- ":test/=../store/test/"
48
- ],
49
- "optimizer": {
50
- "enabled": true,
51
- "runs": 3000
52
- },
53
- "metadata": {
54
- "bytecodeHash": "ipfs"
55
- },
56
- "compilationTarget": {
57
- "src/schemas/SystemSchema.sol": "SystemSchemaLib"
58
- },
59
- "libraries": {}
60
- },
61
- "sources": {
62
- "../../node_modules/@latticexyz/schema-type/src/solidity/SchemaType.sol": {
63
- "keccak256": "0xe881f296ba0fe410faa6395ee4a65b9bf154947aebc6aa323d41a0484504221e",
64
- "urls": [
65
- "bzz-raw://ba7f706464d14365ff751936ba96f79f200df7bcd9d9f8abccd0b41387ca7967",
66
- "dweb:/ipfs/QmTiHgH3ZM2oJoqsbNs3iwwPFNYFNU7m8co87woxRLaUZ6"
67
- ],
68
- "license": "MIT"
69
- },
70
- "../../node_modules/@latticexyz/store/src/Bytes.sol": {
71
- "keccak256": "0xbf62a7c112d01458cf6798e22c7e9efb4b429f2a448613465f8a1d04ed4909d6",
72
- "urls": [
73
- "bzz-raw://2f3fb1fecc95937b75af7ba625f80c3ea0848dddf2d8a1d1f987e705ebc20086",
74
- "dweb:/ipfs/QmU8kMF6YBL5QV43CmqdqaquKtn7699npyRJX1o5rHUo8W"
75
- ],
76
- "license": "MIT"
77
- },
78
- "../../node_modules/@latticexyz/store/src/IStore.sol": {
79
- "keccak256": "0xfbea7bdd90fe24c52036c3d429e41004d5166ab0dcdaccac76f9c7c89919b60e",
80
- "urls": [
81
- "bzz-raw://6104878a5b8e1a8c8f7b3bca268c33232380088dfc3c185506fbf9c6de530ece",
82
- "dweb:/ipfs/QmT1HPAWYXgzNS6BueLwQpLzKAmCUgyiBwbpTF3au3e6yc"
83
- ],
84
- "license": "MIT"
85
- },
86
- "../../node_modules/@latticexyz/store/src/Memory.sol": {
87
- "keccak256": "0xdcd3da381bf9618de6b5e2d6235b1e22c54078242f1b66e897cfaf2776850db5",
88
- "urls": [
89
- "bzz-raw://0511205cfb3c935ffc63cc227745360cd549636da5331f249cc34387b5181f44",
90
- "dweb:/ipfs/QmVYZ7YCT1rJemmTVRsjXZJ4HsWgspRxqbsbhy8AD1jwey"
91
- ],
92
- "license": "MIT"
93
- },
94
- "../../node_modules/@latticexyz/store/src/PackedCounter.sol": {
95
- "keccak256": "0x4db3052d5a5009da45208715e433556d0fe7aa25f9ec6ba6f7c9711afdaba96e",
96
- "urls": [
97
- "bzz-raw://ee5a2906544f37897175c19423ec50e15a070e94bcd97a5201df29e1dc3c7d0f",
98
- "dweb:/ipfs/QmeA5iZbRLynduDgkaLMZyY3YrPweDkFExuQEDg1GjdVCc"
99
- ],
100
- "license": "MIT"
101
- },
102
- "../../node_modules/@latticexyz/store/src/Schema.sol": {
103
- "keccak256": "0xd2eba52a5552d6309fa0796f1a3965c529bb19456cdda6ea0d05050ce5db6a4a",
104
- "urls": [
105
- "bzz-raw://9276795636982ab9c9c245883760aee797e95e84ffc0633362615b54c68fb8fd",
106
- "dweb:/ipfs/QmYXkMgnLmBeLi8VH1p4hp2bCAxFLiQS97RXbGbBmqU1yD"
107
- ],
108
- "license": "MIT"
109
- },
110
- "../../node_modules/@latticexyz/store/src/Slice.sol": {
111
- "keccak256": "0x64107104822c8aa724b120fb37648d5da0a50e66b80a801e460d968748d9a95c",
112
- "urls": [
113
- "bzz-raw://afc6e93a56eac7916adbced5c2304c253f22c9c5eed201e4086ea07b1ec36a72",
114
- "dweb:/ipfs/QmWZEDiEUe3iVEkUYbzzT6dTVYzADJejDmbsjTsXPkk6TY"
115
- ],
116
- "license": "MIT"
117
- },
118
- "../../node_modules/@latticexyz/store/src/Storage.sol": {
119
- "keccak256": "0x0fc7628696d72f7c1b2c1e43a29a75c1b3747542bc9769b98a2ce898b1bd4969",
120
- "urls": [
121
- "bzz-raw://b0251769edbb281e740d40b03526b7d1e206d98eeb1c4e220ac2220c4815f996",
122
- "dweb:/ipfs/Qmb9CVZ5h7HfAdDnj6n6ybqTHHCyMKkn8EBMFDuqhR1NRn"
123
- ],
124
- "license": "MIT"
125
- },
126
- "../../node_modules/@latticexyz/store/src/StoreCore.sol": {
127
- "keccak256": "0x944f7b2c759355a951cb78084219769df228ba18c048acdf04fc73393873e082",
128
- "urls": [
129
- "bzz-raw://cd71ee24a9ebda3e60a4a13ffee8de06ee6a5eded03ffd89ca734492e3a4dc5f",
130
- "dweb:/ipfs/QmPU7YJ3eDYcsRnTFkbeA46bmMp34r25nqR1wN2V8wDjUu"
131
- ],
132
- "license": "MIT"
133
- },
134
- "../../node_modules/@latticexyz/store/src/StoreSwitch.sol": {
135
- "keccak256": "0x35ec8e612da5f531bcfde473e9983c7cc884b56b4e60761f87d72e988a099a31",
136
- "urls": [
137
- "bzz-raw://75a5fd9db9bb0ff5dd04719a40395abf0cf72ea7f5ca9e4fbe1dba2c5ea6e5f8",
138
- "dweb:/ipfs/QmRTY9PMJW8oDtnY8JA8GJR1NX6sYgpfhRsjGbubhLdXyV"
139
- ],
140
- "license": "MIT"
141
- },
142
- "../../node_modules/@latticexyz/store/src/Utils.sol": {
143
- "keccak256": "0x426216bfa1c0e70640787007a6e39257cf09e586fd04831ea4fb3dd9c5768fc4",
144
- "urls": [
145
- "bzz-raw://38e657fa9cfaebe39477eaff27d1ad4d7eeaf0c0058539d2ec7e6976d93df4f4",
146
- "dweb:/ipfs/QmRuaxqRjUrHHC2ZyTnpmq6sfrWGCDh91B6F5chFAToU6U"
147
- ],
148
- "license": "MIT"
149
- },
150
- "../../node_modules/@latticexyz/store/src/tables/Hooks.sol": {
151
- "keccak256": "0xa895573566cc9c43793d2f70117d8386faafe29179f059706a138537920ab9b7",
152
- "urls": [
153
- "bzz-raw://787f6b2d188298389a1f1ec1e34208b226650b9c72bf1f83f08e9a50ed8e0e08",
154
- "dweb:/ipfs/QmTuQ5ebVVdD6zAQoHBeVCyBr3qvrTymkcX91Cu7DQxZ2V"
155
- ],
156
- "license": "MIT"
157
- },
158
- "../../node_modules/@latticexyz/store/src/tables/StoreMetadata.sol": {
159
- "keccak256": "0x39bbbfc9a04d8bea13041e4913873e166d9d347b30e3fa567c5c54c8a3f83c5f",
160
- "urls": [
161
- "bzz-raw://45ee18f22d00bd3bd026720678d7364645fc17b58c6dc54903942f3d601d095d",
162
- "dweb:/ipfs/QmcRfyjgEgock7cDkMxH1cH9XNz1x6rAQCMtHe1RgtEPnx"
163
- ],
164
- "license": "MIT"
165
- },
166
- "../../node_modules/@latticexyz/store/src/tightcoder/DecodeSlice.sol": {
167
- "keccak256": "0x9109f170227f7430388345c88e0b7f416ea46297b7f0b5011c0b794bd6a95e6f",
168
- "urls": [
169
- "bzz-raw://18b046c0706a582cba039bc6cce485bcb3489f089a6dec97f965a7ef6585df93",
170
- "dweb:/ipfs/QmaL2Wwe3AxzW1Lis7Kcp5sb16Y8inUgTTTWwoc8SvoEzC"
171
- ],
172
- "license": "MIT"
173
- },
174
- "../../node_modules/@latticexyz/store/src/tightcoder/EncodeArray.sol": {
175
- "keccak256": "0x46f0010a3345cbc83f71900b7cd5375fa39e1523f5a34cb67828cfe59128368c",
176
- "urls": [
177
- "bzz-raw://457cf33b3424d816011d70a8b03a10f0ea376f3e0990ed6657455a43cf82d35b",
178
- "dweb:/ipfs/QmejskGLC4Hdu5oWQDMwG3TgiLbLXQJPpnLW37yUVGvBmw"
179
- ],
180
- "license": "MIT"
181
- },
182
- "../../node_modules/@latticexyz/store/src/tightcoder/TightCoder.sol": {
183
- "keccak256": "0xff0278a4e35174bbed8a38dad8ae7506f725bfe95f0b7c13829c353d68dd25dc",
184
- "urls": [
185
- "bzz-raw://26249ec0c2fa3a3430a2f8edbfc5cd678e34ea1cf1d7490ecaf1e925c976eb85",
186
- "dweb:/ipfs/QmUpkhr5kFiDKc7rZ2z5HcTf5PkrWVJu5sa31tYv911cPL"
187
- ],
188
- "license": "MIT"
189
- },
190
- "../../node_modules/forge-std/src/console.sol": {
191
- "keccak256": "0x91d5413c2434ca58fd278b6e1e79fd98d10c83931cc2596a6038eee4daeb34ba",
192
- "urls": [
193
- "bzz-raw://91ccea707361e48b9b7a161fe81f496b9932bc471e9c4e4e1e9c283f2453cc70",
194
- "dweb:/ipfs/QmcB66sZhQ6Kz7MUHcLE78YXRUZxoZnnxZjN6yATsbB2ec"
195
- ],
196
- "license": "MIT"
197
- },
198
- "src/Utils.sol": {
199
- "keccak256": "0x0260ceb2052bc28c5f0026b24708ce5f2981d4303beae7b4cd974817fbf2abf0",
200
- "urls": [
201
- "bzz-raw://e23438bb3b294c333e31dc532000c54c008beed960961db1680cc9662b30e6be",
202
- "dweb:/ipfs/QmPmLkejjfWhFzQGBc7itZwRnMPdExXsjZurxxxd6XbpL8"
203
- ],
204
- "license": "MIT"
205
- },
206
- "src/schemas/SystemSchema.sol": {
207
- "keccak256": "0x7d93adbf0fe28a54974fb09bf4a37f0e5a7474a787f66e0fbaae84c0f7f74c03",
208
- "urls": [
209
- "bzz-raw://6ed3bebf1f923837a548b9f11a135131039f5ad87a7d946e1552e8e28b5c3bb8",
210
- "dweb:/ipfs/QmVUcmcvkjLEtdERKUJcDHYHLeBSSs9M9mc28zhXJfbgAu"
211
- ],
212
- "license": "MIT"
213
- }
214
- },
215
- "version": 1
216
- },
217
- "ast": {
218
- "absolutePath": "src/schemas/SystemSchema.sol",
219
- "id": 55713,
220
- "exportedSymbols": {
221
- "Bytes": [
222
- 966
223
- ],
224
- "IStore": [
225
- 1100
226
- ],
227
- "PackedCounter": [
228
- 1137
229
- ],
230
- "PackedCounterLib": [
231
- 1553
232
- ],
233
- "Schema": [
234
- 1561
235
- ],
236
- "SchemaLib": [
237
- 2323
238
- ],
239
- "SchemaType": [
240
- 204
241
- ],
242
- "SliceLib": [
243
- 2476
244
- ],
245
- "StoreCore": [
246
- 3603
247
- ],
248
- "StoreSwitch": [
249
- 4583
250
- ],
251
- "SystemSchema": [
252
- 55469
253
- ],
254
- "SystemSchemaLib": [
255
- 55712
256
- ],
257
- "bytes32ToBool": [
258
- 53114
259
- ],
260
- "console": [
261
- 17649
262
- ]
263
- },
264
- "nodeType": "SourceUnit",
265
- "src": "32:2618:71",
266
- "nodes": [
267
- {
268
- "id": 55442,
269
- "nodeType": "PragmaDirective",
270
- "src": "32:24:71",
271
- "nodes": [],
272
- "literals": [
273
- "solidity",
274
- ">=",
275
- "0.8",
276
- ".0"
277
- ]
278
- },
279
- {
280
- "id": 55444,
281
- "nodeType": "ImportDirective",
282
- "src": "58:48:71",
283
- "nodes": [],
284
- "absolutePath": "../../node_modules/forge-std/src/console.sol",
285
- "file": "forge-std/console.sol",
286
- "nameLocation": "-1:-1:-1",
287
- "scope": 55713,
288
- "sourceUnit": 17650,
289
- "symbolAliases": [
290
- {
291
- "foreign": {
292
- "id": 55443,
293
- "name": "console",
294
- "nodeType": "Identifier",
295
- "overloadedDeclarations": [],
296
- "referencedDeclaration": 17649,
297
- "src": "67:7:71",
298
- "typeDescriptions": {}
299
- },
300
- "nameLocation": "-1:-1:-1"
301
- }
302
- ],
303
- "unitAlias": ""
304
- },
305
- {
306
- "id": 55446,
307
- "nodeType": "ImportDirective",
308
- "src": "107:81:71",
309
- "nodes": [],
310
- "absolutePath": "../../node_modules/@latticexyz/schema-type/src/solidity/SchemaType.sol",
311
- "file": "@latticexyz/schema-type/src/solidity/SchemaType.sol",
312
- "nameLocation": "-1:-1:-1",
313
- "scope": 55713,
314
- "sourceUnit": 271,
315
- "symbolAliases": [
316
- {
317
- "foreign": {
318
- "id": 55445,
319
- "name": "SchemaType",
320
- "nodeType": "Identifier",
321
- "overloadedDeclarations": [],
322
- "referencedDeclaration": 204,
323
- "src": "116:10:71",
324
- "typeDescriptions": {}
325
- },
326
- "nameLocation": "-1:-1:-1"
327
- }
328
- ],
329
- "unitAlias": ""
330
- },
331
- {
332
- "id": 55448,
333
- "nodeType": "ImportDirective",
334
- "src": "189:58:71",
335
- "nodes": [],
336
- "absolutePath": "../../node_modules/@latticexyz/store/src/IStore.sol",
337
- "file": "@latticexyz/store/src/IStore.sol",
338
- "nameLocation": "-1:-1:-1",
339
- "scope": 55713,
340
- "sourceUnit": 1132,
341
- "symbolAliases": [
342
- {
343
- "foreign": {
344
- "id": 55447,
345
- "name": "IStore",
346
- "nodeType": "Identifier",
347
- "overloadedDeclarations": [],
348
- "referencedDeclaration": 1100,
349
- "src": "198:6:71",
350
- "typeDescriptions": {}
351
- },
352
- "nameLocation": "-1:-1:-1"
353
- }
354
- ],
355
- "unitAlias": ""
356
- },
357
- {
358
- "id": 55450,
359
- "nodeType": "ImportDirective",
360
- "src": "248:68:71",
361
- "nodes": [],
362
- "absolutePath": "../../node_modules/@latticexyz/store/src/StoreSwitch.sol",
363
- "file": "@latticexyz/store/src/StoreSwitch.sol",
364
- "nameLocation": "-1:-1:-1",
365
- "scope": 55713,
366
- "sourceUnit": 4584,
367
- "symbolAliases": [
368
- {
369
- "foreign": {
370
- "id": 55449,
371
- "name": "StoreSwitch",
372
- "nodeType": "Identifier",
373
- "overloadedDeclarations": [],
374
- "referencedDeclaration": 4583,
375
- "src": "257:11:71",
376
- "typeDescriptions": {}
377
- },
378
- "nameLocation": "-1:-1:-1"
379
- }
380
- ],
381
- "unitAlias": ""
382
- },
383
- {
384
- "id": 55452,
385
- "nodeType": "ImportDirective",
386
- "src": "317:64:71",
387
- "nodes": [],
388
- "absolutePath": "../../node_modules/@latticexyz/store/src/StoreCore.sol",
389
- "file": "@latticexyz/store/src/StoreCore.sol",
390
- "nameLocation": "-1:-1:-1",
391
- "scope": 55713,
392
- "sourceUnit": 4267,
393
- "symbolAliases": [
394
- {
395
- "foreign": {
396
- "id": 55451,
397
- "name": "StoreCore",
398
- "nodeType": "Identifier",
399
- "overloadedDeclarations": [],
400
- "referencedDeclaration": 3603,
401
- "src": "326:9:71",
402
- "typeDescriptions": {}
403
- },
404
- "nameLocation": "-1:-1:-1"
405
- }
406
- ],
407
- "unitAlias": ""
408
- },
409
- {
410
- "id": 55454,
411
- "nodeType": "ImportDirective",
412
- "src": "382:56:71",
413
- "nodes": [],
414
- "absolutePath": "../../node_modules/@latticexyz/store/src/Bytes.sol",
415
- "file": "@latticexyz/store/src/Bytes.sol",
416
- "nameLocation": "-1:-1:-1",
417
- "scope": 55713,
418
- "sourceUnit": 967,
419
- "symbolAliases": [
420
- {
421
- "foreign": {
422
- "id": 55453,
423
- "name": "Bytes",
424
- "nodeType": "Identifier",
425
- "overloadedDeclarations": [],
426
- "referencedDeclaration": 966,
427
- "src": "391:5:71",
428
- "typeDescriptions": {}
429
- },
430
- "nameLocation": "-1:-1:-1"
431
- }
432
- ],
433
- "unitAlias": ""
434
- },
435
- {
436
- "id": 55457,
437
- "nodeType": "ImportDirective",
438
- "src": "439:69:71",
439
- "nodes": [],
440
- "absolutePath": "../../node_modules/@latticexyz/store/src/Schema.sol",
441
- "file": "@latticexyz/store/src/Schema.sol",
442
- "nameLocation": "-1:-1:-1",
443
- "scope": 55713,
444
- "sourceUnit": 2324,
445
- "symbolAliases": [
446
- {
447
- "foreign": {
448
- "id": 55455,
449
- "name": "Schema",
450
- "nodeType": "Identifier",
451
- "overloadedDeclarations": [],
452
- "referencedDeclaration": 1561,
453
- "src": "448:6:71",
454
- "typeDescriptions": {}
455
- },
456
- "nameLocation": "-1:-1:-1"
457
- },
458
- {
459
- "foreign": {
460
- "id": 55456,
461
- "name": "SchemaLib",
462
- "nodeType": "Identifier",
463
- "overloadedDeclarations": [],
464
- "referencedDeclaration": 2323,
465
- "src": "456:9:71",
466
- "typeDescriptions": {}
467
- },
468
- "nameLocation": "-1:-1:-1"
469
- }
470
- ],
471
- "unitAlias": ""
472
- },
473
- {
474
- "id": 55460,
475
- "nodeType": "ImportDirective",
476
- "src": "509:90:71",
477
- "nodes": [],
478
- "absolutePath": "../../node_modules/@latticexyz/store/src/PackedCounter.sol",
479
- "file": "@latticexyz/store/src/PackedCounter.sol",
480
- "nameLocation": "-1:-1:-1",
481
- "scope": 55713,
482
- "sourceUnit": 1554,
483
- "symbolAliases": [
484
- {
485
- "foreign": {
486
- "id": 55458,
487
- "name": "PackedCounter",
488
- "nodeType": "Identifier",
489
- "overloadedDeclarations": [],
490
- "referencedDeclaration": 1137,
491
- "src": "518:13:71",
492
- "typeDescriptions": {}
493
- },
494
- "nameLocation": "-1:-1:-1"
495
- },
496
- {
497
- "foreign": {
498
- "id": 55459,
499
- "name": "PackedCounterLib",
500
- "nodeType": "Identifier",
501
- "overloadedDeclarations": [],
502
- "referencedDeclaration": 1553,
503
- "src": "533:16:71",
504
- "typeDescriptions": {}
505
- },
506
- "nameLocation": "-1:-1:-1"
507
- }
508
- ],
509
- "unitAlias": ""
510
- },
511
- {
512
- "id": 55462,
513
- "nodeType": "ImportDirective",
514
- "src": "600:59:71",
515
- "nodes": [],
516
- "absolutePath": "../../node_modules/@latticexyz/store/src/Slice.sol",
517
- "file": "@latticexyz/store/src/Slice.sol",
518
- "nameLocation": "-1:-1:-1",
519
- "scope": 55713,
520
- "sourceUnit": 2573,
521
- "symbolAliases": [
522
- {
523
- "foreign": {
524
- "id": 55461,
525
- "name": "SliceLib",
526
- "nodeType": "Identifier",
527
- "overloadedDeclarations": [],
528
- "referencedDeclaration": 2476,
529
- "src": "609:8:71",
530
- "typeDescriptions": {}
531
- },
532
- "nameLocation": "-1:-1:-1"
533
- }
534
- ],
535
- "unitAlias": ""
536
- },
537
- {
538
- "id": 55464,
539
- "nodeType": "ImportDirective",
540
- "src": "660:45:71",
541
- "nodes": [],
542
- "absolutePath": "src/Utils.sol",
543
- "file": "../Utils.sol",
544
- "nameLocation": "-1:-1:-1",
545
- "scope": 55713,
546
- "sourceUnit": 53115,
547
- "symbolAliases": [
548
- {
549
- "foreign": {
550
- "id": 55463,
551
- "name": "bytes32ToBool",
552
- "nodeType": "Identifier",
553
- "overloadedDeclarations": [],
554
- "referencedDeclaration": 53114,
555
- "src": "669:13:71",
556
- "typeDescriptions": {}
557
- },
558
- "nameLocation": "-1:-1:-1"
559
- }
560
- ],
561
- "unitAlias": ""
562
- },
563
- {
564
- "id": 55469,
565
- "nodeType": "StructDefinition",
566
- "src": "748:62:71",
567
- "nodes": [],
568
- "canonicalName": "SystemSchema",
569
- "members": [
570
- {
571
- "constant": false,
572
- "id": 55466,
573
- "mutability": "mutable",
574
- "name": "system",
575
- "nameLocation": "780:6:71",
576
- "nodeType": "VariableDeclaration",
577
- "scope": 55469,
578
- "src": "772:14:71",
579
- "stateVariable": false,
580
- "storageLocation": "default",
581
- "typeDescriptions": {
582
- "typeIdentifier": "t_address",
583
- "typeString": "address"
584
- },
585
- "typeName": {
586
- "id": 55465,
587
- "name": "address",
588
- "nodeType": "ElementaryTypeName",
589
- "src": "772:7:71",
590
- "stateMutability": "nonpayable",
591
- "typeDescriptions": {
592
- "typeIdentifier": "t_address",
593
- "typeString": "address"
594
- }
595
- },
596
- "visibility": "internal"
597
- },
598
- {
599
- "constant": false,
600
- "id": 55468,
601
- "mutability": "mutable",
602
- "name": "publicAccess",
603
- "nameLocation": "795:12:71",
604
- "nodeType": "VariableDeclaration",
605
- "scope": 55469,
606
- "src": "790:17:71",
607
- "stateVariable": false,
608
- "storageLocation": "default",
609
- "typeDescriptions": {
610
- "typeIdentifier": "t_bool",
611
- "typeString": "bool"
612
- },
613
- "typeName": {
614
- "id": 55467,
615
- "name": "bool",
616
- "nodeType": "ElementaryTypeName",
617
- "src": "790:4:71",
618
- "typeDescriptions": {
619
- "typeIdentifier": "t_bool",
620
- "typeString": "bool"
621
- }
622
- },
623
- "visibility": "internal"
624
- }
625
- ],
626
- "name": "SystemSchema",
627
- "nameLocation": "755:12:71",
628
- "scope": 55713,
629
- "visibility": "public"
630
- },
631
- {
632
- "id": 55712,
633
- "nodeType": "ContractDefinition",
634
- "src": "907:1742:71",
635
- "nodes": [
636
- {
637
- "id": 55487,
638
- "nodeType": "FunctionDefinition",
639
- "src": "967:132:71",
640
- "nodes": [],
641
- "body": {
642
- "id": 55486,
643
- "nodeType": "Block",
644
- "src": "1026:73:71",
645
- "nodes": [],
646
- "statements": [
647
- {
648
- "expression": {
649
- "id": 55484,
650
- "isConstant": false,
651
- "isLValue": false,
652
- "isPure": false,
653
- "lValueRequested": false,
654
- "leftHandSide": {
655
- "id": 55476,
656
- "name": "schema",
657
- "nodeType": "Identifier",
658
- "overloadedDeclarations": [],
659
- "referencedDeclaration": 55474,
660
- "src": "1032:6:71",
661
- "typeDescriptions": {
662
- "typeIdentifier": "t_userDefinedValueType$_Schema_$1561",
663
- "typeString": "Schema"
664
- }
665
- },
666
- "nodeType": "Assignment",
667
- "operator": "=",
668
- "rightHandSide": {
669
- "arguments": [
670
- {
671
- "expression": {
672
- "id": 55479,
673
- "name": "SchemaType",
674
- "nodeType": "Identifier",
675
- "overloadedDeclarations": [],
676
- "referencedDeclaration": 204,
677
- "src": "1058:10:71",
678
- "typeDescriptions": {
679
- "typeIdentifier": "t_type$_t_enum$_SchemaType_$204_$",
680
- "typeString": "type(enum SchemaType)"
681
- }
682
- },
683
- "id": 55480,
684
- "isConstant": false,
685
- "isLValue": false,
686
- "isPure": true,
687
- "lValueRequested": false,
688
- "memberName": "BOOL",
689
- "nodeType": "MemberAccess",
690
- "referencedDeclaration": 102,
691
- "src": "1058:15:71",
692
- "typeDescriptions": {
693
- "typeIdentifier": "t_enum$_SchemaType_$204",
694
- "typeString": "enum SchemaType"
695
- }
696
- },
697
- {
698
- "expression": {
699
- "id": 55481,
700
- "name": "SchemaType",
701
- "nodeType": "Identifier",
702
- "overloadedDeclarations": [],
703
- "referencedDeclaration": 204,
704
- "src": "1075:10:71",
705
- "typeDescriptions": {
706
- "typeIdentifier": "t_type$_t_enum$_SchemaType_$204_$",
707
- "typeString": "type(enum SchemaType)"
708
- }
709
- },
710
- "id": 55482,
711
- "isConstant": false,
712
- "isLValue": false,
713
- "isPure": true,
714
- "lValueRequested": false,
715
- "memberName": "ADDRESS",
716
- "nodeType": "MemberAccess",
717
- "referencedDeclaration": 103,
718
- "src": "1075:18:71",
719
- "typeDescriptions": {
720
- "typeIdentifier": "t_enum$_SchemaType_$204",
721
- "typeString": "enum SchemaType"
722
- }
723
- }
724
- ],
725
- "expression": {
726
- "argumentTypes": [
727
- {
728
- "typeIdentifier": "t_enum$_SchemaType_$204",
729
- "typeString": "enum SchemaType"
730
- },
731
- {
732
- "typeIdentifier": "t_enum$_SchemaType_$204",
733
- "typeString": "enum SchemaType"
734
- }
735
- ],
736
- "expression": {
737
- "id": 55477,
738
- "name": "SchemaLib",
739
- "nodeType": "Identifier",
740
- "overloadedDeclarations": [],
741
- "referencedDeclaration": 2323,
742
- "src": "1041:9:71",
743
- "typeDescriptions": {
744
- "typeIdentifier": "t_type$_t_contract$_SchemaLib_$2323_$",
745
- "typeString": "type(library SchemaLib)"
746
- }
747
- },
748
- "id": 55478,
749
- "isConstant": false,
750
- "isLValue": false,
751
- "isPure": false,
752
- "lValueRequested": false,
753
- "memberName": "encode",
754
- "nodeType": "MemberAccess",
755
- "referencedDeclaration": 1804,
756
- "src": "1041:16:71",
757
- "typeDescriptions": {
758
- "typeIdentifier": "t_function_internal_pure$_t_enum$_SchemaType_$204_$_t_enum$_SchemaType_$204_$returns$_t_userDefinedValueType$_Schema_$1561_$",
759
- "typeString": "function (enum SchemaType,enum SchemaType) pure returns (Schema)"
760
- }
761
- },
762
- "id": 55483,
763
- "isConstant": false,
764
- "isLValue": false,
765
- "isPure": false,
766
- "kind": "functionCall",
767
- "lValueRequested": false,
768
- "names": [],
769
- "nodeType": "FunctionCall",
770
- "src": "1041:53:71",
771
- "tryCall": false,
772
- "typeDescriptions": {
773
- "typeIdentifier": "t_userDefinedValueType$_Schema_$1561",
774
- "typeString": "Schema"
775
- }
776
- },
777
- "src": "1032:62:71",
778
- "typeDescriptions": {
779
- "typeIdentifier": "t_userDefinedValueType$_Schema_$1561",
780
- "typeString": "Schema"
781
- }
782
- },
783
- "id": 55485,
784
- "nodeType": "ExpressionStatement",
785
- "src": "1032:62:71"
786
- }
787
- ]
788
- },
789
- "documentation": {
790
- "id": 55470,
791
- "nodeType": "StructuredDocumentation",
792
- "src": "935:29:71",
793
- "text": "Get the table's schema "
794
- },
795
- "implemented": true,
796
- "kind": "function",
797
- "modifiers": [],
798
- "name": "getSchema",
799
- "nameLocation": "976:9:71",
800
- "parameters": {
801
- "id": 55471,
802
- "nodeType": "ParameterList",
803
- "parameters": [],
804
- "src": "985:2:71"
805
- },
806
- "returnParameters": {
807
- "id": 55475,
808
- "nodeType": "ParameterList",
809
- "parameters": [
810
- {
811
- "constant": false,
812
- "id": 55474,
813
- "mutability": "mutable",
814
- "name": "schema",
815
- "nameLocation": "1018:6:71",
816
- "nodeType": "VariableDeclaration",
817
- "scope": 55487,
818
- "src": "1011:13:71",
819
- "stateVariable": false,
820
- "storageLocation": "default",
821
- "typeDescriptions": {
822
- "typeIdentifier": "t_userDefinedValueType$_Schema_$1561",
823
- "typeString": "Schema"
824
- },
825
- "typeName": {
826
- "id": 55473,
827
- "nodeType": "UserDefinedTypeName",
828
- "pathNode": {
829
- "id": 55472,
830
- "name": "Schema",
831
- "nodeType": "IdentifierPath",
832
- "referencedDeclaration": 1561,
833
- "src": "1011:6:71"
834
- },
835
- "referencedDeclaration": 1561,
836
- "src": "1011:6:71",
837
- "typeDescriptions": {
838
- "typeIdentifier": "t_userDefinedValueType$_Schema_$1561",
839
- "typeString": "Schema"
840
- }
841
- },
842
- "visibility": "internal"
843
- }
844
- ],
845
- "src": "1010:15:71"
846
- },
847
- "scope": 55712,
848
- "stateMutability": "pure",
849
- "virtual": false,
850
- "visibility": "internal"
851
- },
852
- {
853
- "id": 55502,
854
- "nodeType": "FunctionDefinition",
855
- "src": "1140:109:71",
856
- "nodes": [],
857
- "body": {
858
- "id": 55501,
859
- "nodeType": "Block",
860
- "src": "1190:59:71",
861
- "nodes": [],
862
- "statements": [
863
- {
864
- "expression": {
865
- "arguments": [
866
- {
867
- "id": 55496,
868
- "name": "tableId",
869
- "nodeType": "Identifier",
870
- "overloadedDeclarations": [],
871
- "referencedDeclaration": 55490,
872
- "src": "1223:7:71",
873
- "typeDescriptions": {
874
- "typeIdentifier": "t_uint256",
875
- "typeString": "uint256"
876
- }
877
- },
878
- {
879
- "arguments": [],
880
- "expression": {
881
- "argumentTypes": [],
882
- "id": 55497,
883
- "name": "getSchema",
884
- "nodeType": "Identifier",
885
- "overloadedDeclarations": [],
886
- "referencedDeclaration": 55487,
887
- "src": "1232:9:71",
888
- "typeDescriptions": {
889
- "typeIdentifier": "t_function_internal_pure$__$returns$_t_userDefinedValueType$_Schema_$1561_$",
890
- "typeString": "function () pure returns (Schema)"
891
- }
892
- },
893
- "id": 55498,
894
- "isConstant": false,
895
- "isLValue": false,
896
- "isPure": false,
897
- "kind": "functionCall",
898
- "lValueRequested": false,
899
- "names": [],
900
- "nodeType": "FunctionCall",
901
- "src": "1232:11:71",
902
- "tryCall": false,
903
- "typeDescriptions": {
904
- "typeIdentifier": "t_userDefinedValueType$_Schema_$1561",
905
- "typeString": "Schema"
906
- }
907
- }
908
- ],
909
- "expression": {
910
- "argumentTypes": [
911
- {
912
- "typeIdentifier": "t_uint256",
913
- "typeString": "uint256"
914
- },
915
- {
916
- "typeIdentifier": "t_userDefinedValueType$_Schema_$1561",
917
- "typeString": "Schema"
918
- }
919
- ],
920
- "expression": {
921
- "id": 55493,
922
- "name": "StoreSwitch",
923
- "nodeType": "Identifier",
924
- "overloadedDeclarations": [],
925
- "referencedDeclaration": 4583,
926
- "src": "1196:11:71",
927
- "typeDescriptions": {
928
- "typeIdentifier": "t_type$_t_contract$_StoreSwitch_$4583_$",
929
- "typeString": "type(library StoreSwitch)"
930
- }
931
- },
932
- "id": 55495,
933
- "isConstant": false,
934
- "isLValue": false,
935
- "isPure": false,
936
- "lValueRequested": false,
937
- "memberName": "registerSchema",
938
- "nodeType": "MemberAccess",
939
- "referencedDeclaration": 4347,
940
- "src": "1196:26:71",
941
- "typeDescriptions": {
942
- "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_userDefinedValueType$_Schema_$1561_$returns$__$",
943
- "typeString": "function (uint256,Schema)"
944
- }
945
- },
946
- "id": 55499,
947
- "isConstant": false,
948
- "isLValue": false,
949
- "isPure": false,
950
- "kind": "functionCall",
951
- "lValueRequested": false,
952
- "names": [],
953
- "nodeType": "FunctionCall",
954
- "src": "1196:48:71",
955
- "tryCall": false,
956
- "typeDescriptions": {
957
- "typeIdentifier": "t_tuple$__$",
958
- "typeString": "tuple()"
959
- }
960
- },
961
- "id": 55500,
962
- "nodeType": "ExpressionStatement",
963
- "src": "1196:48:71"
964
- }
965
- ]
966
- },
967
- "documentation": {
968
- "id": 55488,
969
- "nodeType": "StructuredDocumentation",
970
- "src": "1103:34:71",
971
- "text": "Register the table's schema "
972
- },
973
- "implemented": true,
974
- "kind": "function",
975
- "modifiers": [],
976
- "name": "registerSchema",
977
- "nameLocation": "1149:14:71",
978
- "parameters": {
979
- "id": 55491,
980
- "nodeType": "ParameterList",
981
- "parameters": [
982
- {
983
- "constant": false,
984
- "id": 55490,
985
- "mutability": "mutable",
986
- "name": "tableId",
987
- "nameLocation": "1172:7:71",
988
- "nodeType": "VariableDeclaration",
989
- "scope": 55502,
990
- "src": "1164:15:71",
991
- "stateVariable": false,
992
- "storageLocation": "default",
993
- "typeDescriptions": {
994
- "typeIdentifier": "t_uint256",
995
- "typeString": "uint256"
996
- },
997
- "typeName": {
998
- "id": 55489,
999
- "name": "uint256",
1000
- "nodeType": "ElementaryTypeName",
1001
- "src": "1164:7:71",
1002
- "typeDescriptions": {
1003
- "typeIdentifier": "t_uint256",
1004
- "typeString": "uint256"
1005
- }
1006
- },
1007
- "visibility": "internal"
1008
- }
1009
- ],
1010
- "src": "1163:17:71"
1011
- },
1012
- "returnParameters": {
1013
- "id": 55492,
1014
- "nodeType": "ParameterList",
1015
- "parameters": [],
1016
- "src": "1190:0:71"
1017
- },
1018
- "scope": 55712,
1019
- "stateMutability": "nonpayable",
1020
- "virtual": false,
1021
- "visibility": "internal"
1022
- },
1023
- {
1024
- "id": 55519,
1025
- "nodeType": "FunctionDefinition",
1026
- "src": "1253:117:71",
1027
- "nodes": [],
1028
- "body": {
1029
- "id": 55518,
1030
- "nodeType": "Block",
1031
- "src": "1317:53:71",
1032
- "nodes": [],
1033
- "statements": [
1034
- {
1035
- "expression": {
1036
- "arguments": [
1037
- {
1038
- "id": 55513,
1039
- "name": "tableId",
1040
- "nodeType": "Identifier",
1041
- "overloadedDeclarations": [],
1042
- "referencedDeclaration": 55504,
1043
- "src": "1344:7:71",
1044
- "typeDescriptions": {
1045
- "typeIdentifier": "t_uint256",
1046
- "typeString": "uint256"
1047
- }
1048
- },
1049
- {
1050
- "arguments": [],
1051
- "expression": {
1052
- "argumentTypes": [],
1053
- "id": 55514,
1054
- "name": "getSchema",
1055
- "nodeType": "Identifier",
1056
- "overloadedDeclarations": [],
1057
- "referencedDeclaration": 55487,
1058
- "src": "1353:9:71",
1059
- "typeDescriptions": {
1060
- "typeIdentifier": "t_function_internal_pure$__$returns$_t_userDefinedValueType$_Schema_$1561_$",
1061
- "typeString": "function () pure returns (Schema)"
1062
- }
1063
- },
1064
- "id": 55515,
1065
- "isConstant": false,
1066
- "isLValue": false,
1067
- "isPure": false,
1068
- "kind": "functionCall",
1069
- "lValueRequested": false,
1070
- "names": [],
1071
- "nodeType": "FunctionCall",
1072
- "src": "1353:11:71",
1073
- "tryCall": false,
1074
- "typeDescriptions": {
1075
- "typeIdentifier": "t_userDefinedValueType$_Schema_$1561",
1076
- "typeString": "Schema"
1077
- }
1078
- }
1079
- ],
1080
- "expression": {
1081
- "argumentTypes": [
1082
- {
1083
- "typeIdentifier": "t_uint256",
1084
- "typeString": "uint256"
1085
- },
1086
- {
1087
- "typeIdentifier": "t_userDefinedValueType$_Schema_$1561",
1088
- "typeString": "Schema"
1089
- }
1090
- ],
1091
- "expression": {
1092
- "id": 55510,
1093
- "name": "store",
1094
- "nodeType": "Identifier",
1095
- "overloadedDeclarations": [],
1096
- "referencedDeclaration": 55507,
1097
- "src": "1323:5:71",
1098
- "typeDescriptions": {
1099
- "typeIdentifier": "t_contract$_IStore_$1100",
1100
- "typeString": "contract IStore"
1101
- }
1102
- },
1103
- "id": 55512,
1104
- "isConstant": false,
1105
- "isLValue": false,
1106
- "isPure": false,
1107
- "lValueRequested": false,
1108
- "memberName": "registerSchema",
1109
- "nodeType": "MemberAccess",
1110
- "referencedDeclaration": 1005,
1111
- "src": "1323:20:71",
1112
- "typeDescriptions": {
1113
- "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$_t_userDefinedValueType$_Schema_$1561_$returns$__$",
1114
- "typeString": "function (uint256,Schema) external"
1115
- }
1116
- },
1117
- "id": 55516,
1118
- "isConstant": false,
1119
- "isLValue": false,
1120
- "isPure": false,
1121
- "kind": "functionCall",
1122
- "lValueRequested": false,
1123
- "names": [],
1124
- "nodeType": "FunctionCall",
1125
- "src": "1323:42:71",
1126
- "tryCall": false,
1127
- "typeDescriptions": {
1128
- "typeIdentifier": "t_tuple$__$",
1129
- "typeString": "tuple()"
1130
- }
1131
- },
1132
- "id": 55517,
1133
- "nodeType": "ExpressionStatement",
1134
- "src": "1323:42:71"
1135
- }
1136
- ]
1137
- },
1138
- "implemented": true,
1139
- "kind": "function",
1140
- "modifiers": [],
1141
- "name": "registerSchema",
1142
- "nameLocation": "1262:14:71",
1143
- "parameters": {
1144
- "id": 55508,
1145
- "nodeType": "ParameterList",
1146
- "parameters": [
1147
- {
1148
- "constant": false,
1149
- "id": 55504,
1150
- "mutability": "mutable",
1151
- "name": "tableId",
1152
- "nameLocation": "1285:7:71",
1153
- "nodeType": "VariableDeclaration",
1154
- "scope": 55519,
1155
- "src": "1277:15:71",
1156
- "stateVariable": false,
1157
- "storageLocation": "default",
1158
- "typeDescriptions": {
1159
- "typeIdentifier": "t_uint256",
1160
- "typeString": "uint256"
1161
- },
1162
- "typeName": {
1163
- "id": 55503,
1164
- "name": "uint256",
1165
- "nodeType": "ElementaryTypeName",
1166
- "src": "1277:7:71",
1167
- "typeDescriptions": {
1168
- "typeIdentifier": "t_uint256",
1169
- "typeString": "uint256"
1170
- }
1171
- },
1172
- "visibility": "internal"
1173
- },
1174
- {
1175
- "constant": false,
1176
- "id": 55507,
1177
- "mutability": "mutable",
1178
- "name": "store",
1179
- "nameLocation": "1301:5:71",
1180
- "nodeType": "VariableDeclaration",
1181
- "scope": 55519,
1182
- "src": "1294:12:71",
1183
- "stateVariable": false,
1184
- "storageLocation": "default",
1185
- "typeDescriptions": {
1186
- "typeIdentifier": "t_contract$_IStore_$1100",
1187
- "typeString": "contract IStore"
1188
- },
1189
- "typeName": {
1190
- "id": 55506,
1191
- "nodeType": "UserDefinedTypeName",
1192
- "pathNode": {
1193
- "id": 55505,
1194
- "name": "IStore",
1195
- "nodeType": "IdentifierPath",
1196
- "referencedDeclaration": 1100,
1197
- "src": "1294:6:71"
1198
- },
1199
- "referencedDeclaration": 1100,
1200
- "src": "1294:6:71",
1201
- "typeDescriptions": {
1202
- "typeIdentifier": "t_contract$_IStore_$1100",
1203
- "typeString": "contract IStore"
1204
- }
1205
- },
1206
- "visibility": "internal"
1207
- }
1208
- ],
1209
- "src": "1276:31:71"
1210
- },
1211
- "returnParameters": {
1212
- "id": 55509,
1213
- "nodeType": "ParameterList",
1214
- "parameters": [],
1215
- "src": "1317:0:71"
1216
- },
1217
- "scope": 55712,
1218
- "stateMutability": "nonpayable",
1219
- "virtual": false,
1220
- "visibility": "internal"
1221
- },
1222
- {
1223
- "id": 55540,
1224
- "nodeType": "FunctionDefinition",
1225
- "src": "1404:165:71",
1226
- "nodes": [],
1227
- "body": {
1228
- "id": 55539,
1229
- "nodeType": "Block",
1230
- "src": "1503:66:71",
1231
- "nodes": [],
1232
- "statements": [
1233
- {
1234
- "expression": {
1235
- "arguments": [
1236
- {
1237
- "id": 55531,
1238
- "name": "tableId",
1239
- "nodeType": "Identifier",
1240
- "overloadedDeclarations": [],
1241
- "referencedDeclaration": 55522,
1242
- "src": "1513:7:71",
1243
- "typeDescriptions": {
1244
- "typeIdentifier": "t_uint256",
1245
- "typeString": "uint256"
1246
- }
1247
- },
1248
- {
1249
- "id": 55532,
1250
- "name": "routeId",
1251
- "nodeType": "Identifier",
1252
- "overloadedDeclarations": [],
1253
- "referencedDeclaration": 55524,
1254
- "src": "1522:7:71",
1255
- "typeDescriptions": {
1256
- "typeIdentifier": "t_uint256",
1257
- "typeString": "uint256"
1258
- }
1259
- },
1260
- {
1261
- "expression": {
1262
- "id": 55533,
1263
- "name": "value",
1264
- "nodeType": "Identifier",
1265
- "overloadedDeclarations": [],
1266
- "referencedDeclaration": 55527,
1267
- "src": "1531:5:71",
1268
- "typeDescriptions": {
1269
- "typeIdentifier": "t_struct$_SystemSchema_$55469_memory_ptr",
1270
- "typeString": "struct SystemSchema memory"
1271
- }
1272
- },
1273
- "id": 55534,
1274
- "isConstant": false,
1275
- "isLValue": true,
1276
- "isPure": false,
1277
- "lValueRequested": false,
1278
- "memberName": "system",
1279
- "nodeType": "MemberAccess",
1280
- "referencedDeclaration": 55466,
1281
- "src": "1531:12:71",
1282
- "typeDescriptions": {
1283
- "typeIdentifier": "t_address",
1284
- "typeString": "address"
1285
- }
1286
- },
1287
- {
1288
- "expression": {
1289
- "id": 55535,
1290
- "name": "value",
1291
- "nodeType": "Identifier",
1292
- "overloadedDeclarations": [],
1293
- "referencedDeclaration": 55527,
1294
- "src": "1545:5:71",
1295
- "typeDescriptions": {
1296
- "typeIdentifier": "t_struct$_SystemSchema_$55469_memory_ptr",
1297
- "typeString": "struct SystemSchema memory"
1298
- }
1299
- },
1300
- "id": 55536,
1301
- "isConstant": false,
1302
- "isLValue": true,
1303
- "isPure": false,
1304
- "lValueRequested": false,
1305
- "memberName": "publicAccess",
1306
- "nodeType": "MemberAccess",
1307
- "referencedDeclaration": 55468,
1308
- "src": "1545:18:71",
1309
- "typeDescriptions": {
1310
- "typeIdentifier": "t_bool",
1311
- "typeString": "bool"
1312
- }
1313
- }
1314
- ],
1315
- "expression": {
1316
- "argumentTypes": [
1317
- {
1318
- "typeIdentifier": "t_uint256",
1319
- "typeString": "uint256"
1320
- },
1321
- {
1322
- "typeIdentifier": "t_uint256",
1323
- "typeString": "uint256"
1324
- },
1325
- {
1326
- "typeIdentifier": "t_address",
1327
- "typeString": "address"
1328
- },
1329
- {
1330
- "typeIdentifier": "t_bool",
1331
- "typeString": "bool"
1332
- }
1333
- ],
1334
- "id": 55530,
1335
- "name": "set",
1336
- "nodeType": "Identifier",
1337
- "overloadedDeclarations": [
1338
- 55540,
1339
- 55584
1340
- ],
1341
- "referencedDeclaration": 55584,
1342
- "src": "1509:3:71",
1343
- "typeDescriptions": {
1344
- "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_uint256_$_t_address_$_t_bool_$returns$__$",
1345
- "typeString": "function (uint256,uint256,address,bool)"
1346
- }
1347
- },
1348
- "id": 55537,
1349
- "isConstant": false,
1350
- "isLValue": false,
1351
- "isPure": false,
1352
- "kind": "functionCall",
1353
- "lValueRequested": false,
1354
- "names": [],
1355
- "nodeType": "FunctionCall",
1356
- "src": "1509:55:71",
1357
- "tryCall": false,
1358
- "typeDescriptions": {
1359
- "typeIdentifier": "t_tuple$__$",
1360
- "typeString": "tuple()"
1361
- }
1362
- },
1363
- "id": 55538,
1364
- "nodeType": "ExpressionStatement",
1365
- "src": "1509:55:71"
1366
- }
1367
- ]
1368
- },
1369
- "documentation": {
1370
- "id": 55520,
1371
- "nodeType": "StructuredDocumentation",
1372
- "src": "1374:27:71",
1373
- "text": "Set the table's data "
1374
- },
1375
- "implemented": true,
1376
- "kind": "function",
1377
- "modifiers": [],
1378
- "name": "set",
1379
- "nameLocation": "1413:3:71",
1380
- "parameters": {
1381
- "id": 55528,
1382
- "nodeType": "ParameterList",
1383
- "parameters": [
1384
- {
1385
- "constant": false,
1386
- "id": 55522,
1387
- "mutability": "mutable",
1388
- "name": "tableId",
1389
- "nameLocation": "1430:7:71",
1390
- "nodeType": "VariableDeclaration",
1391
- "scope": 55540,
1392
- "src": "1422:15:71",
1393
- "stateVariable": false,
1394
- "storageLocation": "default",
1395
- "typeDescriptions": {
1396
- "typeIdentifier": "t_uint256",
1397
- "typeString": "uint256"
1398
- },
1399
- "typeName": {
1400
- "id": 55521,
1401
- "name": "uint256",
1402
- "nodeType": "ElementaryTypeName",
1403
- "src": "1422:7:71",
1404
- "typeDescriptions": {
1405
- "typeIdentifier": "t_uint256",
1406
- "typeString": "uint256"
1407
- }
1408
- },
1409
- "visibility": "internal"
1410
- },
1411
- {
1412
- "constant": false,
1413
- "id": 55524,
1414
- "mutability": "mutable",
1415
- "name": "routeId",
1416
- "nameLocation": "1451:7:71",
1417
- "nodeType": "VariableDeclaration",
1418
- "scope": 55540,
1419
- "src": "1443:15:71",
1420
- "stateVariable": false,
1421
- "storageLocation": "default",
1422
- "typeDescriptions": {
1423
- "typeIdentifier": "t_uint256",
1424
- "typeString": "uint256"
1425
- },
1426
- "typeName": {
1427
- "id": 55523,
1428
- "name": "uint256",
1429
- "nodeType": "ElementaryTypeName",
1430
- "src": "1443:7:71",
1431
- "typeDescriptions": {
1432
- "typeIdentifier": "t_uint256",
1433
- "typeString": "uint256"
1434
- }
1435
- },
1436
- "visibility": "internal"
1437
- },
1438
- {
1439
- "constant": false,
1440
- "id": 55527,
1441
- "mutability": "mutable",
1442
- "name": "value",
1443
- "nameLocation": "1484:5:71",
1444
- "nodeType": "VariableDeclaration",
1445
- "scope": 55540,
1446
- "src": "1464:25:71",
1447
- "stateVariable": false,
1448
- "storageLocation": "memory",
1449
- "typeDescriptions": {
1450
- "typeIdentifier": "t_struct$_SystemSchema_$55469_memory_ptr",
1451
- "typeString": "struct SystemSchema"
1452
- },
1453
- "typeName": {
1454
- "id": 55526,
1455
- "nodeType": "UserDefinedTypeName",
1456
- "pathNode": {
1457
- "id": 55525,
1458
- "name": "SystemSchema",
1459
- "nodeType": "IdentifierPath",
1460
- "referencedDeclaration": 55469,
1461
- "src": "1464:12:71"
1462
- },
1463
- "referencedDeclaration": 55469,
1464
- "src": "1464:12:71",
1465
- "typeDescriptions": {
1466
- "typeIdentifier": "t_struct$_SystemSchema_$55469_storage_ptr",
1467
- "typeString": "struct SystemSchema"
1468
- }
1469
- },
1470
- "visibility": "internal"
1471
- }
1472
- ],
1473
- "src": "1416:77:71"
1474
- },
1475
- "returnParameters": {
1476
- "id": 55529,
1477
- "nodeType": "ParameterList",
1478
- "parameters": [],
1479
- "src": "1503:0:71"
1480
- },
1481
- "scope": 55712,
1482
- "stateMutability": "nonpayable",
1483
- "virtual": false,
1484
- "visibility": "internal"
1485
- },
1486
- {
1487
- "id": 55584,
1488
- "nodeType": "FunctionDefinition",
1489
- "src": "1573:288:71",
1490
- "nodes": [],
1491
- "body": {
1492
- "id": 55583,
1493
- "nodeType": "Block",
1494
- "src": "1684:177:71",
1495
- "nodes": [],
1496
- "statements": [
1497
- {
1498
- "assignments": [
1499
- 55555
1500
- ],
1501
- "declarations": [
1502
- {
1503
- "constant": false,
1504
- "id": 55555,
1505
- "mutability": "mutable",
1506
- "name": "keyTuple",
1507
- "nameLocation": "1707:8:71",
1508
- "nodeType": "VariableDeclaration",
1509
- "scope": 55583,
1510
- "src": "1690:25:71",
1511
- "stateVariable": false,
1512
- "storageLocation": "memory",
1513
- "typeDescriptions": {
1514
- "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
1515
- "typeString": "bytes32[]"
1516
- },
1517
- "typeName": {
1518
- "baseType": {
1519
- "id": 55553,
1520
- "name": "bytes32",
1521
- "nodeType": "ElementaryTypeName",
1522
- "src": "1690:7:71",
1523
- "typeDescriptions": {
1524
- "typeIdentifier": "t_bytes32",
1525
- "typeString": "bytes32"
1526
- }
1527
- },
1528
- "id": 55554,
1529
- "nodeType": "ArrayTypeName",
1530
- "src": "1690:9:71",
1531
- "typeDescriptions": {
1532
- "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
1533
- "typeString": "bytes32[]"
1534
- }
1535
- },
1536
- "visibility": "internal"
1537
- }
1538
- ],
1539
- "id": 55561,
1540
- "initialValue": {
1541
- "arguments": [
1542
- {
1543
- "hexValue": "31",
1544
- "id": 55559,
1545
- "isConstant": false,
1546
- "isLValue": false,
1547
- "isPure": true,
1548
- "kind": "number",
1549
- "lValueRequested": false,
1550
- "nodeType": "Literal",
1551
- "src": "1732:1:71",
1552
- "typeDescriptions": {
1553
- "typeIdentifier": "t_rational_1_by_1",
1554
- "typeString": "int_const 1"
1555
- },
1556
- "value": "1"
1557
- }
1558
- ],
1559
- "expression": {
1560
- "argumentTypes": [
1561
- {
1562
- "typeIdentifier": "t_rational_1_by_1",
1563
- "typeString": "int_const 1"
1564
- }
1565
- ],
1566
- "id": 55558,
1567
- "isConstant": false,
1568
- "isLValue": false,
1569
- "isPure": true,
1570
- "lValueRequested": false,
1571
- "nodeType": "NewExpression",
1572
- "src": "1718:13:71",
1573
- "typeDescriptions": {
1574
- "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_bytes32_$dyn_memory_ptr_$",
1575
- "typeString": "function (uint256) pure returns (bytes32[] memory)"
1576
- },
1577
- "typeName": {
1578
- "baseType": {
1579
- "id": 55556,
1580
- "name": "bytes32",
1581
- "nodeType": "ElementaryTypeName",
1582
- "src": "1722:7:71",
1583
- "typeDescriptions": {
1584
- "typeIdentifier": "t_bytes32",
1585
- "typeString": "bytes32"
1586
- }
1587
- },
1588
- "id": 55557,
1589
- "nodeType": "ArrayTypeName",
1590
- "src": "1722:9:71",
1591
- "typeDescriptions": {
1592
- "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
1593
- "typeString": "bytes32[]"
1594
- }
1595
- }
1596
- },
1597
- "id": 55560,
1598
- "isConstant": false,
1599
- "isLValue": false,
1600
- "isPure": true,
1601
- "kind": "functionCall",
1602
- "lValueRequested": false,
1603
- "names": [],
1604
- "nodeType": "FunctionCall",
1605
- "src": "1718:16:71",
1606
- "tryCall": false,
1607
- "typeDescriptions": {
1608
- "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
1609
- "typeString": "bytes32[] memory"
1610
- }
1611
- },
1612
- "nodeType": "VariableDeclarationStatement",
1613
- "src": "1690:44:71"
1614
- },
1615
- {
1616
- "expression": {
1617
- "id": 55569,
1618
- "isConstant": false,
1619
- "isLValue": false,
1620
- "isPure": false,
1621
- "lValueRequested": false,
1622
- "leftHandSide": {
1623
- "baseExpression": {
1624
- "id": 55562,
1625
- "name": "keyTuple",
1626
- "nodeType": "Identifier",
1627
- "overloadedDeclarations": [],
1628
- "referencedDeclaration": 55555,
1629
- "src": "1740:8:71",
1630
- "typeDescriptions": {
1631
- "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
1632
- "typeString": "bytes32[] memory"
1633
- }
1634
- },
1635
- "id": 55564,
1636
- "indexExpression": {
1637
- "hexValue": "30",
1638
- "id": 55563,
1639
- "isConstant": false,
1640
- "isLValue": false,
1641
- "isPure": true,
1642
- "kind": "number",
1643
- "lValueRequested": false,
1644
- "nodeType": "Literal",
1645
- "src": "1749:1:71",
1646
- "typeDescriptions": {
1647
- "typeIdentifier": "t_rational_0_by_1",
1648
- "typeString": "int_const 0"
1649
- },
1650
- "value": "0"
1651
- },
1652
- "isConstant": false,
1653
- "isLValue": true,
1654
- "isPure": false,
1655
- "lValueRequested": true,
1656
- "nodeType": "IndexAccess",
1657
- "src": "1740:11:71",
1658
- "typeDescriptions": {
1659
- "typeIdentifier": "t_bytes32",
1660
- "typeString": "bytes32"
1661
- }
1662
- },
1663
- "nodeType": "Assignment",
1664
- "operator": "=",
1665
- "rightHandSide": {
1666
- "arguments": [
1667
- {
1668
- "id": 55567,
1669
- "name": "routeId",
1670
- "nodeType": "Identifier",
1671
- "overloadedDeclarations": [],
1672
- "referencedDeclaration": 55544,
1673
- "src": "1762:7:71",
1674
- "typeDescriptions": {
1675
- "typeIdentifier": "t_uint256",
1676
- "typeString": "uint256"
1677
- }
1678
- }
1679
- ],
1680
- "expression": {
1681
- "argumentTypes": [
1682
- {
1683
- "typeIdentifier": "t_uint256",
1684
- "typeString": "uint256"
1685
- }
1686
- ],
1687
- "id": 55566,
1688
- "isConstant": false,
1689
- "isLValue": false,
1690
- "isPure": true,
1691
- "lValueRequested": false,
1692
- "nodeType": "ElementaryTypeNameExpression",
1693
- "src": "1754:7:71",
1694
- "typeDescriptions": {
1695
- "typeIdentifier": "t_type$_t_bytes32_$",
1696
- "typeString": "type(bytes32)"
1697
- },
1698
- "typeName": {
1699
- "id": 55565,
1700
- "name": "bytes32",
1701
- "nodeType": "ElementaryTypeName",
1702
- "src": "1754:7:71",
1703
- "typeDescriptions": {}
1704
- }
1705
- },
1706
- "id": 55568,
1707
- "isConstant": false,
1708
- "isLValue": false,
1709
- "isPure": false,
1710
- "kind": "typeConversion",
1711
- "lValueRequested": false,
1712
- "names": [],
1713
- "nodeType": "FunctionCall",
1714
- "src": "1754:16:71",
1715
- "tryCall": false,
1716
- "typeDescriptions": {
1717
- "typeIdentifier": "t_bytes32",
1718
- "typeString": "bytes32"
1719
- }
1720
- },
1721
- "src": "1740:30:71",
1722
- "typeDescriptions": {
1723
- "typeIdentifier": "t_bytes32",
1724
- "typeString": "bytes32"
1725
- }
1726
- },
1727
- "id": 55570,
1728
- "nodeType": "ExpressionStatement",
1729
- "src": "1740:30:71"
1730
- },
1731
- {
1732
- "expression": {
1733
- "arguments": [
1734
- {
1735
- "id": 55574,
1736
- "name": "tableId",
1737
- "nodeType": "Identifier",
1738
- "overloadedDeclarations": [],
1739
- "referencedDeclaration": 55542,
1740
- "src": "1798:7:71",
1741
- "typeDescriptions": {
1742
- "typeIdentifier": "t_uint256",
1743
- "typeString": "uint256"
1744
- }
1745
- },
1746
- {
1747
- "id": 55575,
1748
- "name": "keyTuple",
1749
- "nodeType": "Identifier",
1750
- "overloadedDeclarations": [],
1751
- "referencedDeclaration": 55555,
1752
- "src": "1807:8:71",
1753
- "typeDescriptions": {
1754
- "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
1755
- "typeString": "bytes32[] memory"
1756
- }
1757
- },
1758
- {
1759
- "arguments": [
1760
- {
1761
- "id": 55578,
1762
- "name": "system",
1763
- "nodeType": "Identifier",
1764
- "overloadedDeclarations": [],
1765
- "referencedDeclaration": 55546,
1766
- "src": "1834:6:71",
1767
- "typeDescriptions": {
1768
- "typeIdentifier": "t_address",
1769
- "typeString": "address"
1770
- }
1771
- },
1772
- {
1773
- "id": 55579,
1774
- "name": "publicAccess",
1775
- "nodeType": "Identifier",
1776
- "overloadedDeclarations": [],
1777
- "referencedDeclaration": 55548,
1778
- "src": "1842:12:71",
1779
- "typeDescriptions": {
1780
- "typeIdentifier": "t_bool",
1781
- "typeString": "bool"
1782
- }
1783
- }
1784
- ],
1785
- "expression": {
1786
- "argumentTypes": [
1787
- {
1788
- "typeIdentifier": "t_address",
1789
- "typeString": "address"
1790
- },
1791
- {
1792
- "typeIdentifier": "t_bool",
1793
- "typeString": "bool"
1794
- }
1795
- ],
1796
- "expression": {
1797
- "id": 55576,
1798
- "name": "abi",
1799
- "nodeType": "Identifier",
1800
- "overloadedDeclarations": [],
1801
- "referencedDeclaration": -1,
1802
- "src": "1817:3:71",
1803
- "typeDescriptions": {
1804
- "typeIdentifier": "t_magic_abi",
1805
- "typeString": "abi"
1806
- }
1807
- },
1808
- "id": 55577,
1809
- "isConstant": false,
1810
- "isLValue": false,
1811
- "isPure": true,
1812
- "lValueRequested": false,
1813
- "memberName": "encodePacked",
1814
- "nodeType": "MemberAccess",
1815
- "src": "1817:16:71",
1816
- "typeDescriptions": {
1817
- "typeIdentifier": "t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$",
1818
- "typeString": "function () pure returns (bytes memory)"
1819
- }
1820
- },
1821
- "id": 55580,
1822
- "isConstant": false,
1823
- "isLValue": false,
1824
- "isPure": false,
1825
- "kind": "functionCall",
1826
- "lValueRequested": false,
1827
- "names": [],
1828
- "nodeType": "FunctionCall",
1829
- "src": "1817:38:71",
1830
- "tryCall": false,
1831
- "typeDescriptions": {
1832
- "typeIdentifier": "t_bytes_memory_ptr",
1833
- "typeString": "bytes memory"
1834
- }
1835
- }
1836
- ],
1837
- "expression": {
1838
- "argumentTypes": [
1839
- {
1840
- "typeIdentifier": "t_uint256",
1841
- "typeString": "uint256"
1842
- },
1843
- {
1844
- "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
1845
- "typeString": "bytes32[] memory"
1846
- },
1847
- {
1848
- "typeIdentifier": "t_bytes_memory_ptr",
1849
- "typeString": "bytes memory"
1850
- }
1851
- ],
1852
- "expression": {
1853
- "id": 55571,
1854
- "name": "StoreSwitch",
1855
- "nodeType": "Identifier",
1856
- "overloadedDeclarations": [],
1857
- "referencedDeclaration": 4583,
1858
- "src": "1776:11:71",
1859
- "typeDescriptions": {
1860
- "typeIdentifier": "t_type$_t_contract$_StoreSwitch_$4583_$",
1861
- "typeString": "type(library StoreSwitch)"
1862
- }
1863
- },
1864
- "id": 55573,
1865
- "isConstant": false,
1866
- "isLValue": false,
1867
- "isPure": false,
1868
- "lValueRequested": false,
1869
- "memberName": "setRecord",
1870
- "nodeType": "MemberAccess",
1871
- "referencedDeclaration": 4412,
1872
- "src": "1776:21:71",
1873
- "typeDescriptions": {
1874
- "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_array$_t_bytes32_$dyn_memory_ptr_$_t_bytes_memory_ptr_$returns$__$",
1875
- "typeString": "function (uint256,bytes32[] memory,bytes memory)"
1876
- }
1877
- },
1878
- "id": 55581,
1879
- "isConstant": false,
1880
- "isLValue": false,
1881
- "isPure": false,
1882
- "kind": "functionCall",
1883
- "lValueRequested": false,
1884
- "names": [],
1885
- "nodeType": "FunctionCall",
1886
- "src": "1776:80:71",
1887
- "tryCall": false,
1888
- "typeDescriptions": {
1889
- "typeIdentifier": "t_tuple$__$",
1890
- "typeString": "tuple()"
1891
- }
1892
- },
1893
- "id": 55582,
1894
- "nodeType": "ExpressionStatement",
1895
- "src": "1776:80:71"
1896
- }
1897
- ]
1898
- },
1899
- "implemented": true,
1900
- "kind": "function",
1901
- "modifiers": [],
1902
- "name": "set",
1903
- "nameLocation": "1582:3:71",
1904
- "parameters": {
1905
- "id": 55549,
1906
- "nodeType": "ParameterList",
1907
- "parameters": [
1908
- {
1909
- "constant": false,
1910
- "id": 55542,
1911
- "mutability": "mutable",
1912
- "name": "tableId",
1913
- "nameLocation": "1599:7:71",
1914
- "nodeType": "VariableDeclaration",
1915
- "scope": 55584,
1916
- "src": "1591:15:71",
1917
- "stateVariable": false,
1918
- "storageLocation": "default",
1919
- "typeDescriptions": {
1920
- "typeIdentifier": "t_uint256",
1921
- "typeString": "uint256"
1922
- },
1923
- "typeName": {
1924
- "id": 55541,
1925
- "name": "uint256",
1926
- "nodeType": "ElementaryTypeName",
1927
- "src": "1591:7:71",
1928
- "typeDescriptions": {
1929
- "typeIdentifier": "t_uint256",
1930
- "typeString": "uint256"
1931
- }
1932
- },
1933
- "visibility": "internal"
1934
- },
1935
- {
1936
- "constant": false,
1937
- "id": 55544,
1938
- "mutability": "mutable",
1939
- "name": "routeId",
1940
- "nameLocation": "1620:7:71",
1941
- "nodeType": "VariableDeclaration",
1942
- "scope": 55584,
1943
- "src": "1612:15:71",
1944
- "stateVariable": false,
1945
- "storageLocation": "default",
1946
- "typeDescriptions": {
1947
- "typeIdentifier": "t_uint256",
1948
- "typeString": "uint256"
1949
- },
1950
- "typeName": {
1951
- "id": 55543,
1952
- "name": "uint256",
1953
- "nodeType": "ElementaryTypeName",
1954
- "src": "1612:7:71",
1955
- "typeDescriptions": {
1956
- "typeIdentifier": "t_uint256",
1957
- "typeString": "uint256"
1958
- }
1959
- },
1960
- "visibility": "internal"
1961
- },
1962
- {
1963
- "constant": false,
1964
- "id": 55546,
1965
- "mutability": "mutable",
1966
- "name": "system",
1967
- "nameLocation": "1641:6:71",
1968
- "nodeType": "VariableDeclaration",
1969
- "scope": 55584,
1970
- "src": "1633:14:71",
1971
- "stateVariable": false,
1972
- "storageLocation": "default",
1973
- "typeDescriptions": {
1974
- "typeIdentifier": "t_address",
1975
- "typeString": "address"
1976
- },
1977
- "typeName": {
1978
- "id": 55545,
1979
- "name": "address",
1980
- "nodeType": "ElementaryTypeName",
1981
- "src": "1633:7:71",
1982
- "stateMutability": "nonpayable",
1983
- "typeDescriptions": {
1984
- "typeIdentifier": "t_address",
1985
- "typeString": "address"
1986
- }
1987
- },
1988
- "visibility": "internal"
1989
- },
1990
- {
1991
- "constant": false,
1992
- "id": 55548,
1993
- "mutability": "mutable",
1994
- "name": "publicAccess",
1995
- "nameLocation": "1658:12:71",
1996
- "nodeType": "VariableDeclaration",
1997
- "scope": 55584,
1998
- "src": "1653:17:71",
1999
- "stateVariable": false,
2000
- "storageLocation": "default",
2001
- "typeDescriptions": {
2002
- "typeIdentifier": "t_bool",
2003
- "typeString": "bool"
2004
- },
2005
- "typeName": {
2006
- "id": 55547,
2007
- "name": "bool",
2008
- "nodeType": "ElementaryTypeName",
2009
- "src": "1653:4:71",
2010
- "typeDescriptions": {
2011
- "typeIdentifier": "t_bool",
2012
- "typeString": "bool"
2013
- }
2014
- },
2015
- "visibility": "internal"
2016
- }
2017
- ],
2018
- "src": "1585:89:71"
2019
- },
2020
- "returnParameters": {
2021
- "id": 55550,
2022
- "nodeType": "ParameterList",
2023
- "parameters": [],
2024
- "src": "1684:0:71"
2025
- },
2026
- "scope": 55712,
2027
- "stateMutability": "nonpayable",
2028
- "virtual": false,
2029
- "visibility": "internal"
2030
- },
2031
- {
2032
- "id": 55646,
2033
- "nodeType": "FunctionDefinition",
2034
- "src": "1865:377:71",
2035
- "nodes": [],
2036
- "body": {
2037
- "id": 55645,
2038
- "nodeType": "Block",
2039
- "src": "1970:272:71",
2040
- "nodes": [],
2041
- "statements": [
2042
- {
2043
- "assignments": [
2044
- 55599
2045
- ],
2046
- "declarations": [
2047
- {
2048
- "constant": false,
2049
- "id": 55599,
2050
- "mutability": "mutable",
2051
- "name": "keyTuple",
2052
- "nameLocation": "1993:8:71",
2053
- "nodeType": "VariableDeclaration",
2054
- "scope": 55645,
2055
- "src": "1976:25:71",
2056
- "stateVariable": false,
2057
- "storageLocation": "memory",
2058
- "typeDescriptions": {
2059
- "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
2060
- "typeString": "bytes32[]"
2061
- },
2062
- "typeName": {
2063
- "baseType": {
2064
- "id": 55597,
2065
- "name": "bytes32",
2066
- "nodeType": "ElementaryTypeName",
2067
- "src": "1976:7:71",
2068
- "typeDescriptions": {
2069
- "typeIdentifier": "t_bytes32",
2070
- "typeString": "bytes32"
2071
- }
2072
- },
2073
- "id": 55598,
2074
- "nodeType": "ArrayTypeName",
2075
- "src": "1976:9:71",
2076
- "typeDescriptions": {
2077
- "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
2078
- "typeString": "bytes32[]"
2079
- }
2080
- },
2081
- "visibility": "internal"
2082
- }
2083
- ],
2084
- "id": 55605,
2085
- "initialValue": {
2086
- "arguments": [
2087
- {
2088
- "hexValue": "31",
2089
- "id": 55603,
2090
- "isConstant": false,
2091
- "isLValue": false,
2092
- "isPure": true,
2093
- "kind": "number",
2094
- "lValueRequested": false,
2095
- "nodeType": "Literal",
2096
- "src": "2018:1:71",
2097
- "typeDescriptions": {
2098
- "typeIdentifier": "t_rational_1_by_1",
2099
- "typeString": "int_const 1"
2100
- },
2101
- "value": "1"
2102
- }
2103
- ],
2104
- "expression": {
2105
- "argumentTypes": [
2106
- {
2107
- "typeIdentifier": "t_rational_1_by_1",
2108
- "typeString": "int_const 1"
2109
- }
2110
- ],
2111
- "id": 55602,
2112
- "isConstant": false,
2113
- "isLValue": false,
2114
- "isPure": true,
2115
- "lValueRequested": false,
2116
- "nodeType": "NewExpression",
2117
- "src": "2004:13:71",
2118
- "typeDescriptions": {
2119
- "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_bytes32_$dyn_memory_ptr_$",
2120
- "typeString": "function (uint256) pure returns (bytes32[] memory)"
2121
- },
2122
- "typeName": {
2123
- "baseType": {
2124
- "id": 55600,
2125
- "name": "bytes32",
2126
- "nodeType": "ElementaryTypeName",
2127
- "src": "2008:7:71",
2128
- "typeDescriptions": {
2129
- "typeIdentifier": "t_bytes32",
2130
- "typeString": "bytes32"
2131
- }
2132
- },
2133
- "id": 55601,
2134
- "nodeType": "ArrayTypeName",
2135
- "src": "2008:9:71",
2136
- "typeDescriptions": {
2137
- "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
2138
- "typeString": "bytes32[]"
2139
- }
2140
- }
2141
- },
2142
- "id": 55604,
2143
- "isConstant": false,
2144
- "isLValue": false,
2145
- "isPure": true,
2146
- "kind": "functionCall",
2147
- "lValueRequested": false,
2148
- "names": [],
2149
- "nodeType": "FunctionCall",
2150
- "src": "2004:16:71",
2151
- "tryCall": false,
2152
- "typeDescriptions": {
2153
- "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
2154
- "typeString": "bytes32[] memory"
2155
- }
2156
- },
2157
- "nodeType": "VariableDeclarationStatement",
2158
- "src": "1976:44:71"
2159
- },
2160
- {
2161
- "expression": {
2162
- "id": 55613,
2163
- "isConstant": false,
2164
- "isLValue": false,
2165
- "isPure": false,
2166
- "lValueRequested": false,
2167
- "leftHandSide": {
2168
- "baseExpression": {
2169
- "id": 55606,
2170
- "name": "keyTuple",
2171
- "nodeType": "Identifier",
2172
- "overloadedDeclarations": [],
2173
- "referencedDeclaration": 55599,
2174
- "src": "2026:8:71",
2175
- "typeDescriptions": {
2176
- "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
2177
- "typeString": "bytes32[] memory"
2178
- }
2179
- },
2180
- "id": 55608,
2181
- "indexExpression": {
2182
- "hexValue": "30",
2183
- "id": 55607,
2184
- "isConstant": false,
2185
- "isLValue": false,
2186
- "isPure": true,
2187
- "kind": "number",
2188
- "lValueRequested": false,
2189
- "nodeType": "Literal",
2190
- "src": "2035:1:71",
2191
- "typeDescriptions": {
2192
- "typeIdentifier": "t_rational_0_by_1",
2193
- "typeString": "int_const 0"
2194
- },
2195
- "value": "0"
2196
- },
2197
- "isConstant": false,
2198
- "isLValue": true,
2199
- "isPure": false,
2200
- "lValueRequested": true,
2201
- "nodeType": "IndexAccess",
2202
- "src": "2026:11:71",
2203
- "typeDescriptions": {
2204
- "typeIdentifier": "t_bytes32",
2205
- "typeString": "bytes32"
2206
- }
2207
- },
2208
- "nodeType": "Assignment",
2209
- "operator": "=",
2210
- "rightHandSide": {
2211
- "arguments": [
2212
- {
2213
- "id": 55611,
2214
- "name": "routeId",
2215
- "nodeType": "Identifier",
2216
- "overloadedDeclarations": [],
2217
- "referencedDeclaration": 55588,
2218
- "src": "2048:7:71",
2219
- "typeDescriptions": {
2220
- "typeIdentifier": "t_uint256",
2221
- "typeString": "uint256"
2222
- }
2223
- }
2224
- ],
2225
- "expression": {
2226
- "argumentTypes": [
2227
- {
2228
- "typeIdentifier": "t_uint256",
2229
- "typeString": "uint256"
2230
- }
2231
- ],
2232
- "id": 55610,
2233
- "isConstant": false,
2234
- "isLValue": false,
2235
- "isPure": true,
2236
- "lValueRequested": false,
2237
- "nodeType": "ElementaryTypeNameExpression",
2238
- "src": "2040:7:71",
2239
- "typeDescriptions": {
2240
- "typeIdentifier": "t_type$_t_bytes32_$",
2241
- "typeString": "type(bytes32)"
2242
- },
2243
- "typeName": {
2244
- "id": 55609,
2245
- "name": "bytes32",
2246
- "nodeType": "ElementaryTypeName",
2247
- "src": "2040:7:71",
2248
- "typeDescriptions": {}
2249
- }
2250
- },
2251
- "id": 55612,
2252
- "isConstant": false,
2253
- "isLValue": false,
2254
- "isPure": false,
2255
- "kind": "typeConversion",
2256
- "lValueRequested": false,
2257
- "names": [],
2258
- "nodeType": "FunctionCall",
2259
- "src": "2040:16:71",
2260
- "tryCall": false,
2261
- "typeDescriptions": {
2262
- "typeIdentifier": "t_bytes32",
2263
- "typeString": "bytes32"
2264
- }
2265
- },
2266
- "src": "2026:30:71",
2267
- "typeDescriptions": {
2268
- "typeIdentifier": "t_bytes32",
2269
- "typeString": "bytes32"
2270
- }
2271
- },
2272
- "id": 55614,
2273
- "nodeType": "ExpressionStatement",
2274
- "src": "2026:30:71"
2275
- },
2276
- {
2277
- "assignments": [
2278
- 55616
2279
- ],
2280
- "declarations": [
2281
- {
2282
- "constant": false,
2283
- "id": 55616,
2284
- "mutability": "mutable",
2285
- "name": "blob",
2286
- "nameLocation": "2075:4:71",
2287
- "nodeType": "VariableDeclaration",
2288
- "scope": 55645,
2289
- "src": "2062:17:71",
2290
- "stateVariable": false,
2291
- "storageLocation": "memory",
2292
- "typeDescriptions": {
2293
- "typeIdentifier": "t_bytes_memory_ptr",
2294
- "typeString": "bytes"
2295
- },
2296
- "typeName": {
2297
- "id": 55615,
2298
- "name": "bytes",
2299
- "nodeType": "ElementaryTypeName",
2300
- "src": "2062:5:71",
2301
- "typeDescriptions": {
2302
- "typeIdentifier": "t_bytes_storage_ptr",
2303
- "typeString": "bytes"
2304
- }
2305
- },
2306
- "visibility": "internal"
2307
- }
2308
- ],
2309
- "id": 55622,
2310
- "initialValue": {
2311
- "arguments": [
2312
- {
2313
- "id": 55619,
2314
- "name": "tableId",
2315
- "nodeType": "Identifier",
2316
- "overloadedDeclarations": [],
2317
- "referencedDeclaration": 55586,
2318
- "src": "2104:7:71",
2319
- "typeDescriptions": {
2320
- "typeIdentifier": "t_uint256",
2321
- "typeString": "uint256"
2322
- }
2323
- },
2324
- {
2325
- "id": 55620,
2326
- "name": "keyTuple",
2327
- "nodeType": "Identifier",
2328
- "overloadedDeclarations": [],
2329
- "referencedDeclaration": 55599,
2330
- "src": "2113:8:71",
2331
- "typeDescriptions": {
2332
- "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
2333
- "typeString": "bytes32[] memory"
2334
- }
2335
- }
2336
- ],
2337
- "expression": {
2338
- "argumentTypes": [
2339
- {
2340
- "typeIdentifier": "t_uint256",
2341
- "typeString": "uint256"
2342
- },
2343
- {
2344
- "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
2345
- "typeString": "bytes32[] memory"
2346
- }
2347
- ],
2348
- "expression": {
2349
- "id": 55617,
2350
- "name": "StoreSwitch",
2351
- "nodeType": "Identifier",
2352
- "overloadedDeclarations": [],
2353
- "referencedDeclaration": 4583,
2354
- "src": "2082:11:71",
2355
- "typeDescriptions": {
2356
- "typeIdentifier": "t_type$_t_contract$_StoreSwitch_$4583_$",
2357
- "typeString": "type(library StoreSwitch)"
2358
- }
2359
- },
2360
- "id": 55618,
2361
- "isConstant": false,
2362
- "isLValue": false,
2363
- "isPure": false,
2364
- "lValueRequested": false,
2365
- "memberName": "getRecord",
2366
- "nodeType": "MemberAccess",
2367
- "referencedDeclaration": 4511,
2368
- "src": "2082:21:71",
2369
- "typeDescriptions": {
2370
- "typeIdentifier": "t_function_internal_view$_t_uint256_$_t_array$_t_bytes32_$dyn_memory_ptr_$returns$_t_bytes_memory_ptr_$",
2371
- "typeString": "function (uint256,bytes32[] memory) view returns (bytes memory)"
2372
- }
2373
- },
2374
- "id": 55621,
2375
- "isConstant": false,
2376
- "isLValue": false,
2377
- "isPure": false,
2378
- "kind": "functionCall",
2379
- "lValueRequested": false,
2380
- "names": [],
2381
- "nodeType": "FunctionCall",
2382
- "src": "2082:40:71",
2383
- "tryCall": false,
2384
- "typeDescriptions": {
2385
- "typeIdentifier": "t_bytes_memory_ptr",
2386
- "typeString": "bytes memory"
2387
- }
2388
- },
2389
- "nodeType": "VariableDeclarationStatement",
2390
- "src": "2062:60:71"
2391
- },
2392
- {
2393
- "expression": {
2394
- "id": 55631,
2395
- "isConstant": false,
2396
- "isLValue": false,
2397
- "isPure": false,
2398
- "lValueRequested": false,
2399
- "leftHandSide": {
2400
- "id": 55623,
2401
- "name": "system",
2402
- "nodeType": "Identifier",
2403
- "overloadedDeclarations": [],
2404
- "referencedDeclaration": 55591,
2405
- "src": "2128:6:71",
2406
- "typeDescriptions": {
2407
- "typeIdentifier": "t_address",
2408
- "typeString": "address"
2409
- }
2410
- },
2411
- "nodeType": "Assignment",
2412
- "operator": "=",
2413
- "rightHandSide": {
2414
- "arguments": [
2415
- {
2416
- "arguments": [
2417
- {
2418
- "id": 55628,
2419
- "name": "blob",
2420
- "nodeType": "Identifier",
2421
- "overloadedDeclarations": [],
2422
- "referencedDeclaration": 55616,
2423
- "src": "2153:4:71",
2424
- "typeDescriptions": {
2425
- "typeIdentifier": "t_bytes_memory_ptr",
2426
- "typeString": "bytes memory"
2427
- }
2428
- }
2429
- ],
2430
- "expression": {
2431
- "argumentTypes": [
2432
- {
2433
- "typeIdentifier": "t_bytes_memory_ptr",
2434
- "typeString": "bytes memory"
2435
- }
2436
- ],
2437
- "id": 55627,
2438
- "isConstant": false,
2439
- "isLValue": false,
2440
- "isPure": true,
2441
- "lValueRequested": false,
2442
- "nodeType": "ElementaryTypeNameExpression",
2443
- "src": "2145:7:71",
2444
- "typeDescriptions": {
2445
- "typeIdentifier": "t_type$_t_bytes20_$",
2446
- "typeString": "type(bytes20)"
2447
- },
2448
- "typeName": {
2449
- "id": 55626,
2450
- "name": "bytes20",
2451
- "nodeType": "ElementaryTypeName",
2452
- "src": "2145:7:71",
2453
- "typeDescriptions": {}
2454
- }
2455
- },
2456
- "id": 55629,
2457
- "isConstant": false,
2458
- "isLValue": false,
2459
- "isPure": false,
2460
- "kind": "typeConversion",
2461
- "lValueRequested": false,
2462
- "names": [],
2463
- "nodeType": "FunctionCall",
2464
- "src": "2145:13:71",
2465
- "tryCall": false,
2466
- "typeDescriptions": {
2467
- "typeIdentifier": "t_bytes20",
2468
- "typeString": "bytes20"
2469
- }
2470
- }
2471
- ],
2472
- "expression": {
2473
- "argumentTypes": [
2474
- {
2475
- "typeIdentifier": "t_bytes20",
2476
- "typeString": "bytes20"
2477
- }
2478
- ],
2479
- "id": 55625,
2480
- "isConstant": false,
2481
- "isLValue": false,
2482
- "isPure": true,
2483
- "lValueRequested": false,
2484
- "nodeType": "ElementaryTypeNameExpression",
2485
- "src": "2137:7:71",
2486
- "typeDescriptions": {
2487
- "typeIdentifier": "t_type$_t_address_$",
2488
- "typeString": "type(address)"
2489
- },
2490
- "typeName": {
2491
- "id": 55624,
2492
- "name": "address",
2493
- "nodeType": "ElementaryTypeName",
2494
- "src": "2137:7:71",
2495
- "typeDescriptions": {}
2496
- }
2497
- },
2498
- "id": 55630,
2499
- "isConstant": false,
2500
- "isLValue": false,
2501
- "isPure": false,
2502
- "kind": "typeConversion",
2503
- "lValueRequested": false,
2504
- "names": [],
2505
- "nodeType": "FunctionCall",
2506
- "src": "2137:22:71",
2507
- "tryCall": false,
2508
- "typeDescriptions": {
2509
- "typeIdentifier": "t_address",
2510
- "typeString": "address"
2511
- }
2512
- },
2513
- "src": "2128:31:71",
2514
- "typeDescriptions": {
2515
- "typeIdentifier": "t_address",
2516
- "typeString": "address"
2517
- }
2518
- },
2519
- "id": 55632,
2520
- "nodeType": "ExpressionStatement",
2521
- "src": "2128:31:71"
2522
- },
2523
- {
2524
- "expression": {
2525
- "id": 55643,
2526
- "isConstant": false,
2527
- "isLValue": false,
2528
- "isPure": false,
2529
- "lValueRequested": false,
2530
- "leftHandSide": {
2531
- "id": 55633,
2532
- "name": "publicAccess",
2533
- "nodeType": "Identifier",
2534
- "overloadedDeclarations": [],
2535
- "referencedDeclaration": 55593,
2536
- "src": "2165:12:71",
2537
- "typeDescriptions": {
2538
- "typeIdentifier": "t_bool",
2539
- "typeString": "bool"
2540
- }
2541
- },
2542
- "nodeType": "Assignment",
2543
- "operator": "=",
2544
- "rightHandSide": {
2545
- "arguments": [
2546
- {
2547
- "arguments": [],
2548
- "expression": {
2549
- "argumentTypes": [],
2550
- "expression": {
2551
- "arguments": [
2552
- {
2553
- "id": 55637,
2554
- "name": "blob",
2555
- "nodeType": "Identifier",
2556
- "overloadedDeclarations": [],
2557
- "referencedDeclaration": 55616,
2558
- "src": "2215:4:71",
2559
- "typeDescriptions": {
2560
- "typeIdentifier": "t_bytes_memory_ptr",
2561
- "typeString": "bytes memory"
2562
- }
2563
- },
2564
- {
2565
- "hexValue": "3230",
2566
- "id": 55638,
2567
- "isConstant": false,
2568
- "isLValue": false,
2569
- "isPure": true,
2570
- "kind": "number",
2571
- "lValueRequested": false,
2572
- "nodeType": "Literal",
2573
- "src": "2221:2:71",
2574
- "typeDescriptions": {
2575
- "typeIdentifier": "t_rational_20_by_1",
2576
- "typeString": "int_const 20"
2577
- },
2578
- "value": "20"
2579
- }
2580
- ],
2581
- "expression": {
2582
- "argumentTypes": [
2583
- {
2584
- "typeIdentifier": "t_bytes_memory_ptr",
2585
- "typeString": "bytes memory"
2586
- },
2587
- {
2588
- "typeIdentifier": "t_rational_20_by_1",
2589
- "typeString": "int_const 20"
2590
- }
2591
- ],
2592
- "expression": {
2593
- "id": 55635,
2594
- "name": "SliceLib",
2595
- "nodeType": "Identifier",
2596
- "overloadedDeclarations": [],
2597
- "referencedDeclaration": 2476,
2598
- "src": "2194:8:71",
2599
- "typeDescriptions": {
2600
- "typeIdentifier": "t_type$_t_contract$_SliceLib_$2476_$",
2601
- "typeString": "type(library SliceLib)"
2602
- }
2603
- },
2604
- "id": 55636,
2605
- "isConstant": false,
2606
- "isLValue": false,
2607
- "isPure": false,
2608
- "lValueRequested": false,
2609
- "memberName": "getSubslice",
2610
- "nodeType": "MemberAccess",
2611
- "referencedDeclaration": 2417,
2612
- "src": "2194:20:71",
2613
- "typeDescriptions": {
2614
- "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_uint256_$returns$_t_userDefinedValueType$_Slice_$2331_$",
2615
- "typeString": "function (bytes memory,uint256) pure returns (Slice)"
2616
- }
2617
- },
2618
- "id": 55639,
2619
- "isConstant": false,
2620
- "isLValue": false,
2621
- "isPure": false,
2622
- "kind": "functionCall",
2623
- "lValueRequested": false,
2624
- "names": [],
2625
- "nodeType": "FunctionCall",
2626
- "src": "2194:30:71",
2627
- "tryCall": false,
2628
- "typeDescriptions": {
2629
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2331",
2630
- "typeString": "Slice"
2631
- }
2632
- },
2633
- "id": 55640,
2634
- "isConstant": false,
2635
- "isLValue": false,
2636
- "isPure": false,
2637
- "lValueRequested": false,
2638
- "memberName": "toBytes32",
2639
- "nodeType": "MemberAccess",
2640
- "referencedDeclaration": 2571,
2641
- "src": "2194:40:71",
2642
- "typeDescriptions": {
2643
- "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$2331_$returns$_t_bytes32_$bound_to$_t_userDefinedValueType$_Slice_$2331_$",
2644
- "typeString": "function (Slice) pure returns (bytes32)"
2645
- }
2646
- },
2647
- "id": 55641,
2648
- "isConstant": false,
2649
- "isLValue": false,
2650
- "isPure": false,
2651
- "kind": "functionCall",
2652
- "lValueRequested": false,
2653
- "names": [],
2654
- "nodeType": "FunctionCall",
2655
- "src": "2194:42:71",
2656
- "tryCall": false,
2657
- "typeDescriptions": {
2658
- "typeIdentifier": "t_bytes32",
2659
- "typeString": "bytes32"
2660
- }
2661
- }
2662
- ],
2663
- "expression": {
2664
- "argumentTypes": [
2665
- {
2666
- "typeIdentifier": "t_bytes32",
2667
- "typeString": "bytes32"
2668
- }
2669
- ],
2670
- "id": 55634,
2671
- "name": "bytes32ToBool",
2672
- "nodeType": "Identifier",
2673
- "overloadedDeclarations": [],
2674
- "referencedDeclaration": 53114,
2675
- "src": "2180:13:71",
2676
- "typeDescriptions": {
2677
- "typeIdentifier": "t_function_internal_pure$_t_bytes32_$returns$_t_bool_$",
2678
- "typeString": "function (bytes32) pure returns (bool)"
2679
- }
2680
- },
2681
- "id": 55642,
2682
- "isConstant": false,
2683
- "isLValue": false,
2684
- "isPure": false,
2685
- "kind": "functionCall",
2686
- "lValueRequested": false,
2687
- "names": [],
2688
- "nodeType": "FunctionCall",
2689
- "src": "2180:57:71",
2690
- "tryCall": false,
2691
- "typeDescriptions": {
2692
- "typeIdentifier": "t_bool",
2693
- "typeString": "bool"
2694
- }
2695
- },
2696
- "src": "2165:72:71",
2697
- "typeDescriptions": {
2698
- "typeIdentifier": "t_bool",
2699
- "typeString": "bool"
2700
- }
2701
- },
2702
- "id": 55644,
2703
- "nodeType": "ExpressionStatement",
2704
- "src": "2165:72:71"
2705
- }
2706
- ]
2707
- },
2708
- "implemented": true,
2709
- "kind": "function",
2710
- "modifiers": [],
2711
- "name": "get",
2712
- "nameLocation": "1874:3:71",
2713
- "parameters": {
2714
- "id": 55589,
2715
- "nodeType": "ParameterList",
2716
- "parameters": [
2717
- {
2718
- "constant": false,
2719
- "id": 55586,
2720
- "mutability": "mutable",
2721
- "name": "tableId",
2722
- "nameLocation": "1886:7:71",
2723
- "nodeType": "VariableDeclaration",
2724
- "scope": 55646,
2725
- "src": "1878:15:71",
2726
- "stateVariable": false,
2727
- "storageLocation": "default",
2728
- "typeDescriptions": {
2729
- "typeIdentifier": "t_uint256",
2730
- "typeString": "uint256"
2731
- },
2732
- "typeName": {
2733
- "id": 55585,
2734
- "name": "uint256",
2735
- "nodeType": "ElementaryTypeName",
2736
- "src": "1878:7:71",
2737
- "typeDescriptions": {
2738
- "typeIdentifier": "t_uint256",
2739
- "typeString": "uint256"
2740
- }
2741
- },
2742
- "visibility": "internal"
2743
- },
2744
- {
2745
- "constant": false,
2746
- "id": 55588,
2747
- "mutability": "mutable",
2748
- "name": "routeId",
2749
- "nameLocation": "1903:7:71",
2750
- "nodeType": "VariableDeclaration",
2751
- "scope": 55646,
2752
- "src": "1895:15:71",
2753
- "stateVariable": false,
2754
- "storageLocation": "default",
2755
- "typeDescriptions": {
2756
- "typeIdentifier": "t_uint256",
2757
- "typeString": "uint256"
2758
- },
2759
- "typeName": {
2760
- "id": 55587,
2761
- "name": "uint256",
2762
- "nodeType": "ElementaryTypeName",
2763
- "src": "1895:7:71",
2764
- "typeDescriptions": {
2765
- "typeIdentifier": "t_uint256",
2766
- "typeString": "uint256"
2767
- }
2768
- },
2769
- "visibility": "internal"
2770
- }
2771
- ],
2772
- "src": "1877:34:71"
2773
- },
2774
- "returnParameters": {
2775
- "id": 55594,
2776
- "nodeType": "ParameterList",
2777
- "parameters": [
2778
- {
2779
- "constant": false,
2780
- "id": 55591,
2781
- "mutability": "mutable",
2782
- "name": "system",
2783
- "nameLocation": "1943:6:71",
2784
- "nodeType": "VariableDeclaration",
2785
- "scope": 55646,
2786
- "src": "1935:14:71",
2787
- "stateVariable": false,
2788
- "storageLocation": "default",
2789
- "typeDescriptions": {
2790
- "typeIdentifier": "t_address",
2791
- "typeString": "address"
2792
- },
2793
- "typeName": {
2794
- "id": 55590,
2795
- "name": "address",
2796
- "nodeType": "ElementaryTypeName",
2797
- "src": "1935:7:71",
2798
- "stateMutability": "nonpayable",
2799
- "typeDescriptions": {
2800
- "typeIdentifier": "t_address",
2801
- "typeString": "address"
2802
- }
2803
- },
2804
- "visibility": "internal"
2805
- },
2806
- {
2807
- "constant": false,
2808
- "id": 55593,
2809
- "mutability": "mutable",
2810
- "name": "publicAccess",
2811
- "nameLocation": "1956:12:71",
2812
- "nodeType": "VariableDeclaration",
2813
- "scope": 55646,
2814
- "src": "1951:17:71",
2815
- "stateVariable": false,
2816
- "storageLocation": "default",
2817
- "typeDescriptions": {
2818
- "typeIdentifier": "t_bool",
2819
- "typeString": "bool"
2820
- },
2821
- "typeName": {
2822
- "id": 55592,
2823
- "name": "bool",
2824
- "nodeType": "ElementaryTypeName",
2825
- "src": "1951:4:71",
2826
- "typeDescriptions": {
2827
- "typeIdentifier": "t_bool",
2828
- "typeString": "bool"
2829
- }
2830
- },
2831
- "visibility": "internal"
2832
- }
2833
- ],
2834
- "src": "1934:35:71"
2835
- },
2836
- "scope": 55712,
2837
- "stateMutability": "view",
2838
- "virtual": false,
2839
- "visibility": "internal"
2840
- },
2841
- {
2842
- "id": 55711,
2843
- "nodeType": "FunctionDefinition",
2844
- "src": "2246:401:71",
2845
- "nodes": [],
2846
- "body": {
2847
- "id": 55710,
2848
- "nodeType": "Block",
2849
- "src": "2381:266:71",
2850
- "nodes": [],
2851
- "statements": [
2852
- {
2853
- "assignments": [
2854
- 55664
2855
- ],
2856
- "declarations": [
2857
- {
2858
- "constant": false,
2859
- "id": 55664,
2860
- "mutability": "mutable",
2861
- "name": "keyTuple",
2862
- "nameLocation": "2404:8:71",
2863
- "nodeType": "VariableDeclaration",
2864
- "scope": 55710,
2865
- "src": "2387:25:71",
2866
- "stateVariable": false,
2867
- "storageLocation": "memory",
2868
- "typeDescriptions": {
2869
- "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
2870
- "typeString": "bytes32[]"
2871
- },
2872
- "typeName": {
2873
- "baseType": {
2874
- "id": 55662,
2875
- "name": "bytes32",
2876
- "nodeType": "ElementaryTypeName",
2877
- "src": "2387:7:71",
2878
- "typeDescriptions": {
2879
- "typeIdentifier": "t_bytes32",
2880
- "typeString": "bytes32"
2881
- }
2882
- },
2883
- "id": 55663,
2884
- "nodeType": "ArrayTypeName",
2885
- "src": "2387:9:71",
2886
- "typeDescriptions": {
2887
- "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
2888
- "typeString": "bytes32[]"
2889
- }
2890
- },
2891
- "visibility": "internal"
2892
- }
2893
- ],
2894
- "id": 55670,
2895
- "initialValue": {
2896
- "arguments": [
2897
- {
2898
- "hexValue": "31",
2899
- "id": 55668,
2900
- "isConstant": false,
2901
- "isLValue": false,
2902
- "isPure": true,
2903
- "kind": "number",
2904
- "lValueRequested": false,
2905
- "nodeType": "Literal",
2906
- "src": "2429:1:71",
2907
- "typeDescriptions": {
2908
- "typeIdentifier": "t_rational_1_by_1",
2909
- "typeString": "int_const 1"
2910
- },
2911
- "value": "1"
2912
- }
2913
- ],
2914
- "expression": {
2915
- "argumentTypes": [
2916
- {
2917
- "typeIdentifier": "t_rational_1_by_1",
2918
- "typeString": "int_const 1"
2919
- }
2920
- ],
2921
- "id": 55667,
2922
- "isConstant": false,
2923
- "isLValue": false,
2924
- "isPure": true,
2925
- "lValueRequested": false,
2926
- "nodeType": "NewExpression",
2927
- "src": "2415:13:71",
2928
- "typeDescriptions": {
2929
- "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_bytes32_$dyn_memory_ptr_$",
2930
- "typeString": "function (uint256) pure returns (bytes32[] memory)"
2931
- },
2932
- "typeName": {
2933
- "baseType": {
2934
- "id": 55665,
2935
- "name": "bytes32",
2936
- "nodeType": "ElementaryTypeName",
2937
- "src": "2419:7:71",
2938
- "typeDescriptions": {
2939
- "typeIdentifier": "t_bytes32",
2940
- "typeString": "bytes32"
2941
- }
2942
- },
2943
- "id": 55666,
2944
- "nodeType": "ArrayTypeName",
2945
- "src": "2419:9:71",
2946
- "typeDescriptions": {
2947
- "typeIdentifier": "t_array$_t_bytes32_$dyn_storage_ptr",
2948
- "typeString": "bytes32[]"
2949
- }
2950
- }
2951
- },
2952
- "id": 55669,
2953
- "isConstant": false,
2954
- "isLValue": false,
2955
- "isPure": true,
2956
- "kind": "functionCall",
2957
- "lValueRequested": false,
2958
- "names": [],
2959
- "nodeType": "FunctionCall",
2960
- "src": "2415:16:71",
2961
- "tryCall": false,
2962
- "typeDescriptions": {
2963
- "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
2964
- "typeString": "bytes32[] memory"
2965
- }
2966
- },
2967
- "nodeType": "VariableDeclarationStatement",
2968
- "src": "2387:44:71"
2969
- },
2970
- {
2971
- "expression": {
2972
- "id": 55678,
2973
- "isConstant": false,
2974
- "isLValue": false,
2975
- "isPure": false,
2976
- "lValueRequested": false,
2977
- "leftHandSide": {
2978
- "baseExpression": {
2979
- "id": 55671,
2980
- "name": "keyTuple",
2981
- "nodeType": "Identifier",
2982
- "overloadedDeclarations": [],
2983
- "referencedDeclaration": 55664,
2984
- "src": "2437:8:71",
2985
- "typeDescriptions": {
2986
- "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
2987
- "typeString": "bytes32[] memory"
2988
- }
2989
- },
2990
- "id": 55673,
2991
- "indexExpression": {
2992
- "hexValue": "30",
2993
- "id": 55672,
2994
- "isConstant": false,
2995
- "isLValue": false,
2996
- "isPure": true,
2997
- "kind": "number",
2998
- "lValueRequested": false,
2999
- "nodeType": "Literal",
3000
- "src": "2446:1:71",
3001
- "typeDescriptions": {
3002
- "typeIdentifier": "t_rational_0_by_1",
3003
- "typeString": "int_const 0"
3004
- },
3005
- "value": "0"
3006
- },
3007
- "isConstant": false,
3008
- "isLValue": true,
3009
- "isPure": false,
3010
- "lValueRequested": true,
3011
- "nodeType": "IndexAccess",
3012
- "src": "2437:11:71",
3013
- "typeDescriptions": {
3014
- "typeIdentifier": "t_bytes32",
3015
- "typeString": "bytes32"
3016
- }
3017
- },
3018
- "nodeType": "Assignment",
3019
- "operator": "=",
3020
- "rightHandSide": {
3021
- "arguments": [
3022
- {
3023
- "id": 55676,
3024
- "name": "routeId",
3025
- "nodeType": "Identifier",
3026
- "overloadedDeclarations": [],
3027
- "referencedDeclaration": 55653,
3028
- "src": "2459:7:71",
3029
- "typeDescriptions": {
3030
- "typeIdentifier": "t_uint256",
3031
- "typeString": "uint256"
3032
- }
3033
- }
3034
- ],
3035
- "expression": {
3036
- "argumentTypes": [
3037
- {
3038
- "typeIdentifier": "t_uint256",
3039
- "typeString": "uint256"
3040
- }
3041
- ],
3042
- "id": 55675,
3043
- "isConstant": false,
3044
- "isLValue": false,
3045
- "isPure": true,
3046
- "lValueRequested": false,
3047
- "nodeType": "ElementaryTypeNameExpression",
3048
- "src": "2451:7:71",
3049
- "typeDescriptions": {
3050
- "typeIdentifier": "t_type$_t_bytes32_$",
3051
- "typeString": "type(bytes32)"
3052
- },
3053
- "typeName": {
3054
- "id": 55674,
3055
- "name": "bytes32",
3056
- "nodeType": "ElementaryTypeName",
3057
- "src": "2451:7:71",
3058
- "typeDescriptions": {}
3059
- }
3060
- },
3061
- "id": 55677,
3062
- "isConstant": false,
3063
- "isLValue": false,
3064
- "isPure": false,
3065
- "kind": "typeConversion",
3066
- "lValueRequested": false,
3067
- "names": [],
3068
- "nodeType": "FunctionCall",
3069
- "src": "2451:16:71",
3070
- "tryCall": false,
3071
- "typeDescriptions": {
3072
- "typeIdentifier": "t_bytes32",
3073
- "typeString": "bytes32"
3074
- }
3075
- },
3076
- "src": "2437:30:71",
3077
- "typeDescriptions": {
3078
- "typeIdentifier": "t_bytes32",
3079
- "typeString": "bytes32"
3080
- }
3081
- },
3082
- "id": 55679,
3083
- "nodeType": "ExpressionStatement",
3084
- "src": "2437:30:71"
3085
- },
3086
- {
3087
- "assignments": [
3088
- 55681
3089
- ],
3090
- "declarations": [
3091
- {
3092
- "constant": false,
3093
- "id": 55681,
3094
- "mutability": "mutable",
3095
- "name": "blob",
3096
- "nameLocation": "2486:4:71",
3097
- "nodeType": "VariableDeclaration",
3098
- "scope": 55710,
3099
- "src": "2473:17:71",
3100
- "stateVariable": false,
3101
- "storageLocation": "memory",
3102
- "typeDescriptions": {
3103
- "typeIdentifier": "t_bytes_memory_ptr",
3104
- "typeString": "bytes"
3105
- },
3106
- "typeName": {
3107
- "id": 55680,
3108
- "name": "bytes",
3109
- "nodeType": "ElementaryTypeName",
3110
- "src": "2473:5:71",
3111
- "typeDescriptions": {
3112
- "typeIdentifier": "t_bytes_storage_ptr",
3113
- "typeString": "bytes"
3114
- }
3115
- },
3116
- "visibility": "internal"
3117
- }
3118
- ],
3119
- "id": 55687,
3120
- "initialValue": {
3121
- "arguments": [
3122
- {
3123
- "id": 55684,
3124
- "name": "tableId",
3125
- "nodeType": "Identifier",
3126
- "overloadedDeclarations": [],
3127
- "referencedDeclaration": 55648,
3128
- "src": "2509:7:71",
3129
- "typeDescriptions": {
3130
- "typeIdentifier": "t_uint256",
3131
- "typeString": "uint256"
3132
- }
3133
- },
3134
- {
3135
- "id": 55685,
3136
- "name": "keyTuple",
3137
- "nodeType": "Identifier",
3138
- "overloadedDeclarations": [],
3139
- "referencedDeclaration": 55664,
3140
- "src": "2518:8:71",
3141
- "typeDescriptions": {
3142
- "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
3143
- "typeString": "bytes32[] memory"
3144
- }
3145
- }
3146
- ],
3147
- "expression": {
3148
- "argumentTypes": [
3149
- {
3150
- "typeIdentifier": "t_uint256",
3151
- "typeString": "uint256"
3152
- },
3153
- {
3154
- "typeIdentifier": "t_array$_t_bytes32_$dyn_memory_ptr",
3155
- "typeString": "bytes32[] memory"
3156
- }
3157
- ],
3158
- "expression": {
3159
- "id": 55682,
3160
- "name": "store",
3161
- "nodeType": "Identifier",
3162
- "overloadedDeclarations": [],
3163
- "referencedDeclaration": 55651,
3164
- "src": "2493:5:71",
3165
- "typeDescriptions": {
3166
- "typeIdentifier": "t_contract$_IStore_$1100",
3167
- "typeString": "contract IStore"
3168
- }
3169
- },
3170
- "id": 55683,
3171
- "isConstant": false,
3172
- "isLValue": false,
3173
- "isPure": false,
3174
- "lValueRequested": false,
3175
- "memberName": "getRecord",
3176
- "nodeType": "MemberAccess",
3177
- "referencedDeclaration": 1071,
3178
- "src": "2493:15:71",
3179
- "typeDescriptions": {
3180
- "typeIdentifier": "t_function_external_view$_t_uint256_$_t_array$_t_bytes32_$dyn_memory_ptr_$returns$_t_bytes_memory_ptr_$",
3181
- "typeString": "function (uint256,bytes32[] memory) view external returns (bytes memory)"
3182
- }
3183
- },
3184
- "id": 55686,
3185
- "isConstant": false,
3186
- "isLValue": false,
3187
- "isPure": false,
3188
- "kind": "functionCall",
3189
- "lValueRequested": false,
3190
- "names": [],
3191
- "nodeType": "FunctionCall",
3192
- "src": "2493:34:71",
3193
- "tryCall": false,
3194
- "typeDescriptions": {
3195
- "typeIdentifier": "t_bytes_memory_ptr",
3196
- "typeString": "bytes memory"
3197
- }
3198
- },
3199
- "nodeType": "VariableDeclarationStatement",
3200
- "src": "2473:54:71"
3201
- },
3202
- {
3203
- "expression": {
3204
- "id": 55696,
3205
- "isConstant": false,
3206
- "isLValue": false,
3207
- "isPure": false,
3208
- "lValueRequested": false,
3209
- "leftHandSide": {
3210
- "id": 55688,
3211
- "name": "system",
3212
- "nodeType": "Identifier",
3213
- "overloadedDeclarations": [],
3214
- "referencedDeclaration": 55656,
3215
- "src": "2533:6:71",
3216
- "typeDescriptions": {
3217
- "typeIdentifier": "t_address",
3218
- "typeString": "address"
3219
- }
3220
- },
3221
- "nodeType": "Assignment",
3222
- "operator": "=",
3223
- "rightHandSide": {
3224
- "arguments": [
3225
- {
3226
- "arguments": [
3227
- {
3228
- "id": 55693,
3229
- "name": "blob",
3230
- "nodeType": "Identifier",
3231
- "overloadedDeclarations": [],
3232
- "referencedDeclaration": 55681,
3233
- "src": "2558:4:71",
3234
- "typeDescriptions": {
3235
- "typeIdentifier": "t_bytes_memory_ptr",
3236
- "typeString": "bytes memory"
3237
- }
3238
- }
3239
- ],
3240
- "expression": {
3241
- "argumentTypes": [
3242
- {
3243
- "typeIdentifier": "t_bytes_memory_ptr",
3244
- "typeString": "bytes memory"
3245
- }
3246
- ],
3247
- "id": 55692,
3248
- "isConstant": false,
3249
- "isLValue": false,
3250
- "isPure": true,
3251
- "lValueRequested": false,
3252
- "nodeType": "ElementaryTypeNameExpression",
3253
- "src": "2550:7:71",
3254
- "typeDescriptions": {
3255
- "typeIdentifier": "t_type$_t_bytes20_$",
3256
- "typeString": "type(bytes20)"
3257
- },
3258
- "typeName": {
3259
- "id": 55691,
3260
- "name": "bytes20",
3261
- "nodeType": "ElementaryTypeName",
3262
- "src": "2550:7:71",
3263
- "typeDescriptions": {}
3264
- }
3265
- },
3266
- "id": 55694,
3267
- "isConstant": false,
3268
- "isLValue": false,
3269
- "isPure": false,
3270
- "kind": "typeConversion",
3271
- "lValueRequested": false,
3272
- "names": [],
3273
- "nodeType": "FunctionCall",
3274
- "src": "2550:13:71",
3275
- "tryCall": false,
3276
- "typeDescriptions": {
3277
- "typeIdentifier": "t_bytes20",
3278
- "typeString": "bytes20"
3279
- }
3280
- }
3281
- ],
3282
- "expression": {
3283
- "argumentTypes": [
3284
- {
3285
- "typeIdentifier": "t_bytes20",
3286
- "typeString": "bytes20"
3287
- }
3288
- ],
3289
- "id": 55690,
3290
- "isConstant": false,
3291
- "isLValue": false,
3292
- "isPure": true,
3293
- "lValueRequested": false,
3294
- "nodeType": "ElementaryTypeNameExpression",
3295
- "src": "2542:7:71",
3296
- "typeDescriptions": {
3297
- "typeIdentifier": "t_type$_t_address_$",
3298
- "typeString": "type(address)"
3299
- },
3300
- "typeName": {
3301
- "id": 55689,
3302
- "name": "address",
3303
- "nodeType": "ElementaryTypeName",
3304
- "src": "2542:7:71",
3305
- "typeDescriptions": {}
3306
- }
3307
- },
3308
- "id": 55695,
3309
- "isConstant": false,
3310
- "isLValue": false,
3311
- "isPure": false,
3312
- "kind": "typeConversion",
3313
- "lValueRequested": false,
3314
- "names": [],
3315
- "nodeType": "FunctionCall",
3316
- "src": "2542:22:71",
3317
- "tryCall": false,
3318
- "typeDescriptions": {
3319
- "typeIdentifier": "t_address",
3320
- "typeString": "address"
3321
- }
3322
- },
3323
- "src": "2533:31:71",
3324
- "typeDescriptions": {
3325
- "typeIdentifier": "t_address",
3326
- "typeString": "address"
3327
- }
3328
- },
3329
- "id": 55697,
3330
- "nodeType": "ExpressionStatement",
3331
- "src": "2533:31:71"
3332
- },
3333
- {
3334
- "expression": {
3335
- "id": 55708,
3336
- "isConstant": false,
3337
- "isLValue": false,
3338
- "isPure": false,
3339
- "lValueRequested": false,
3340
- "leftHandSide": {
3341
- "id": 55698,
3342
- "name": "publicAccess",
3343
- "nodeType": "Identifier",
3344
- "overloadedDeclarations": [],
3345
- "referencedDeclaration": 55658,
3346
- "src": "2570:12:71",
3347
- "typeDescriptions": {
3348
- "typeIdentifier": "t_bool",
3349
- "typeString": "bool"
3350
- }
3351
- },
3352
- "nodeType": "Assignment",
3353
- "operator": "=",
3354
- "rightHandSide": {
3355
- "arguments": [
3356
- {
3357
- "arguments": [],
3358
- "expression": {
3359
- "argumentTypes": [],
3360
- "expression": {
3361
- "arguments": [
3362
- {
3363
- "id": 55702,
3364
- "name": "blob",
3365
- "nodeType": "Identifier",
3366
- "overloadedDeclarations": [],
3367
- "referencedDeclaration": 55681,
3368
- "src": "2620:4:71",
3369
- "typeDescriptions": {
3370
- "typeIdentifier": "t_bytes_memory_ptr",
3371
- "typeString": "bytes memory"
3372
- }
3373
- },
3374
- {
3375
- "hexValue": "3230",
3376
- "id": 55703,
3377
- "isConstant": false,
3378
- "isLValue": false,
3379
- "isPure": true,
3380
- "kind": "number",
3381
- "lValueRequested": false,
3382
- "nodeType": "Literal",
3383
- "src": "2626:2:71",
3384
- "typeDescriptions": {
3385
- "typeIdentifier": "t_rational_20_by_1",
3386
- "typeString": "int_const 20"
3387
- },
3388
- "value": "20"
3389
- }
3390
- ],
3391
- "expression": {
3392
- "argumentTypes": [
3393
- {
3394
- "typeIdentifier": "t_bytes_memory_ptr",
3395
- "typeString": "bytes memory"
3396
- },
3397
- {
3398
- "typeIdentifier": "t_rational_20_by_1",
3399
- "typeString": "int_const 20"
3400
- }
3401
- ],
3402
- "expression": {
3403
- "id": 55700,
3404
- "name": "SliceLib",
3405
- "nodeType": "Identifier",
3406
- "overloadedDeclarations": [],
3407
- "referencedDeclaration": 2476,
3408
- "src": "2599:8:71",
3409
- "typeDescriptions": {
3410
- "typeIdentifier": "t_type$_t_contract$_SliceLib_$2476_$",
3411
- "typeString": "type(library SliceLib)"
3412
- }
3413
- },
3414
- "id": 55701,
3415
- "isConstant": false,
3416
- "isLValue": false,
3417
- "isPure": false,
3418
- "lValueRequested": false,
3419
- "memberName": "getSubslice",
3420
- "nodeType": "MemberAccess",
3421
- "referencedDeclaration": 2417,
3422
- "src": "2599:20:71",
3423
- "typeDescriptions": {
3424
- "typeIdentifier": "t_function_internal_pure$_t_bytes_memory_ptr_$_t_uint256_$returns$_t_userDefinedValueType$_Slice_$2331_$",
3425
- "typeString": "function (bytes memory,uint256) pure returns (Slice)"
3426
- }
3427
- },
3428
- "id": 55704,
3429
- "isConstant": false,
3430
- "isLValue": false,
3431
- "isPure": false,
3432
- "kind": "functionCall",
3433
- "lValueRequested": false,
3434
- "names": [],
3435
- "nodeType": "FunctionCall",
3436
- "src": "2599:30:71",
3437
- "tryCall": false,
3438
- "typeDescriptions": {
3439
- "typeIdentifier": "t_userDefinedValueType$_Slice_$2331",
3440
- "typeString": "Slice"
3441
- }
3442
- },
3443
- "id": 55705,
3444
- "isConstant": false,
3445
- "isLValue": false,
3446
- "isPure": false,
3447
- "lValueRequested": false,
3448
- "memberName": "toBytes32",
3449
- "nodeType": "MemberAccess",
3450
- "referencedDeclaration": 2571,
3451
- "src": "2599:40:71",
3452
- "typeDescriptions": {
3453
- "typeIdentifier": "t_function_internal_pure$_t_userDefinedValueType$_Slice_$2331_$returns$_t_bytes32_$bound_to$_t_userDefinedValueType$_Slice_$2331_$",
3454
- "typeString": "function (Slice) pure returns (bytes32)"
3455
- }
3456
- },
3457
- "id": 55706,
3458
- "isConstant": false,
3459
- "isLValue": false,
3460
- "isPure": false,
3461
- "kind": "functionCall",
3462
- "lValueRequested": false,
3463
- "names": [],
3464
- "nodeType": "FunctionCall",
3465
- "src": "2599:42:71",
3466
- "tryCall": false,
3467
- "typeDescriptions": {
3468
- "typeIdentifier": "t_bytes32",
3469
- "typeString": "bytes32"
3470
- }
3471
- }
3472
- ],
3473
- "expression": {
3474
- "argumentTypes": [
3475
- {
3476
- "typeIdentifier": "t_bytes32",
3477
- "typeString": "bytes32"
3478
- }
3479
- ],
3480
- "id": 55699,
3481
- "name": "bytes32ToBool",
3482
- "nodeType": "Identifier",
3483
- "overloadedDeclarations": [],
3484
- "referencedDeclaration": 53114,
3485
- "src": "2585:13:71",
3486
- "typeDescriptions": {
3487
- "typeIdentifier": "t_function_internal_pure$_t_bytes32_$returns$_t_bool_$",
3488
- "typeString": "function (bytes32) pure returns (bool)"
3489
- }
3490
- },
3491
- "id": 55707,
3492
- "isConstant": false,
3493
- "isLValue": false,
3494
- "isPure": false,
3495
- "kind": "functionCall",
3496
- "lValueRequested": false,
3497
- "names": [],
3498
- "nodeType": "FunctionCall",
3499
- "src": "2585:57:71",
3500
- "tryCall": false,
3501
- "typeDescriptions": {
3502
- "typeIdentifier": "t_bool",
3503
- "typeString": "bool"
3504
- }
3505
- },
3506
- "src": "2570:72:71",
3507
- "typeDescriptions": {
3508
- "typeIdentifier": "t_bool",
3509
- "typeString": "bool"
3510
- }
3511
- },
3512
- "id": 55709,
3513
- "nodeType": "ExpressionStatement",
3514
- "src": "2570:72:71"
3515
- }
3516
- ]
3517
- },
3518
- "implemented": true,
3519
- "kind": "function",
3520
- "modifiers": [],
3521
- "name": "get",
3522
- "nameLocation": "2255:3:71",
3523
- "parameters": {
3524
- "id": 55654,
3525
- "nodeType": "ParameterList",
3526
- "parameters": [
3527
- {
3528
- "constant": false,
3529
- "id": 55648,
3530
- "mutability": "mutable",
3531
- "name": "tableId",
3532
- "nameLocation": "2272:7:71",
3533
- "nodeType": "VariableDeclaration",
3534
- "scope": 55711,
3535
- "src": "2264:15:71",
3536
- "stateVariable": false,
3537
- "storageLocation": "default",
3538
- "typeDescriptions": {
3539
- "typeIdentifier": "t_uint256",
3540
- "typeString": "uint256"
3541
- },
3542
- "typeName": {
3543
- "id": 55647,
3544
- "name": "uint256",
3545
- "nodeType": "ElementaryTypeName",
3546
- "src": "2264:7:71",
3547
- "typeDescriptions": {
3548
- "typeIdentifier": "t_uint256",
3549
- "typeString": "uint256"
3550
- }
3551
- },
3552
- "visibility": "internal"
3553
- },
3554
- {
3555
- "constant": false,
3556
- "id": 55651,
3557
- "mutability": "mutable",
3558
- "name": "store",
3559
- "nameLocation": "2292:5:71",
3560
- "nodeType": "VariableDeclaration",
3561
- "scope": 55711,
3562
- "src": "2285:12:71",
3563
- "stateVariable": false,
3564
- "storageLocation": "default",
3565
- "typeDescriptions": {
3566
- "typeIdentifier": "t_contract$_IStore_$1100",
3567
- "typeString": "contract IStore"
3568
- },
3569
- "typeName": {
3570
- "id": 55650,
3571
- "nodeType": "UserDefinedTypeName",
3572
- "pathNode": {
3573
- "id": 55649,
3574
- "name": "IStore",
3575
- "nodeType": "IdentifierPath",
3576
- "referencedDeclaration": 1100,
3577
- "src": "2285:6:71"
3578
- },
3579
- "referencedDeclaration": 1100,
3580
- "src": "2285:6:71",
3581
- "typeDescriptions": {
3582
- "typeIdentifier": "t_contract$_IStore_$1100",
3583
- "typeString": "contract IStore"
3584
- }
3585
- },
3586
- "visibility": "internal"
3587
- },
3588
- {
3589
- "constant": false,
3590
- "id": 55653,
3591
- "mutability": "mutable",
3592
- "name": "routeId",
3593
- "nameLocation": "2311:7:71",
3594
- "nodeType": "VariableDeclaration",
3595
- "scope": 55711,
3596
- "src": "2303:15:71",
3597
- "stateVariable": false,
3598
- "storageLocation": "default",
3599
- "typeDescriptions": {
3600
- "typeIdentifier": "t_uint256",
3601
- "typeString": "uint256"
3602
- },
3603
- "typeName": {
3604
- "id": 55652,
3605
- "name": "uint256",
3606
- "nodeType": "ElementaryTypeName",
3607
- "src": "2303:7:71",
3608
- "typeDescriptions": {
3609
- "typeIdentifier": "t_uint256",
3610
- "typeString": "uint256"
3611
- }
3612
- },
3613
- "visibility": "internal"
3614
- }
3615
- ],
3616
- "src": "2258:64:71"
3617
- },
3618
- "returnParameters": {
3619
- "id": 55659,
3620
- "nodeType": "ParameterList",
3621
- "parameters": [
3622
- {
3623
- "constant": false,
3624
- "id": 55656,
3625
- "mutability": "mutable",
3626
- "name": "system",
3627
- "nameLocation": "2354:6:71",
3628
- "nodeType": "VariableDeclaration",
3629
- "scope": 55711,
3630
- "src": "2346:14:71",
3631
- "stateVariable": false,
3632
- "storageLocation": "default",
3633
- "typeDescriptions": {
3634
- "typeIdentifier": "t_address",
3635
- "typeString": "address"
3636
- },
3637
- "typeName": {
3638
- "id": 55655,
3639
- "name": "address",
3640
- "nodeType": "ElementaryTypeName",
3641
- "src": "2346:7:71",
3642
- "stateMutability": "nonpayable",
3643
- "typeDescriptions": {
3644
- "typeIdentifier": "t_address",
3645
- "typeString": "address"
3646
- }
3647
- },
3648
- "visibility": "internal"
3649
- },
3650
- {
3651
- "constant": false,
3652
- "id": 55658,
3653
- "mutability": "mutable",
3654
- "name": "publicAccess",
3655
- "nameLocation": "2367:12:71",
3656
- "nodeType": "VariableDeclaration",
3657
- "scope": 55711,
3658
- "src": "2362:17:71",
3659
- "stateVariable": false,
3660
- "storageLocation": "default",
3661
- "typeDescriptions": {
3662
- "typeIdentifier": "t_bool",
3663
- "typeString": "bool"
3664
- },
3665
- "typeName": {
3666
- "id": 55657,
3667
- "name": "bool",
3668
- "nodeType": "ElementaryTypeName",
3669
- "src": "2362:4:71",
3670
- "typeDescriptions": {
3671
- "typeIdentifier": "t_bool",
3672
- "typeString": "bool"
3673
- }
3674
- },
3675
- "visibility": "internal"
3676
- }
3677
- ],
3678
- "src": "2345:35:71"
3679
- },
3680
- "scope": 55712,
3681
- "stateMutability": "view",
3682
- "virtual": false,
3683
- "visibility": "internal"
3684
- }
3685
- ],
3686
- "abstract": false,
3687
- "baseContracts": [],
3688
- "canonicalName": "SystemSchemaLib",
3689
- "contractDependencies": [],
3690
- "contractKind": "library",
3691
- "fullyImplemented": true,
3692
- "linearizedBaseContracts": [
3693
- 55712
3694
- ],
3695
- "name": "SystemSchemaLib",
3696
- "nameLocation": "915:15:71",
3697
- "scope": 55713,
3698
- "usedErrors": []
3699
- }
3700
- ],
3701
- "license": "MIT"
3702
- },
3703
- "id": 71
3704
- }