@superfluid-finance/ethereum-contracts 1.2.3-dev.f94fdbb.0 → 1.3.1-dev.7df8a6a.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.
- package/build/contracts/AccessControl.json +3 -3
- package/build/contracts/AccessControlEnumerable.json +3 -3
- package/build/contracts/Address.json +5 -5
- package/build/contracts/AgreementBase.json +13 -13
- package/build/contracts/AgreementLibrary.json +7 -7
- package/build/contracts/BaseRelayRecipient.json +5 -5
- package/build/contracts/BatchLiquidator.json +179 -179
- package/build/contracts/BatchOperation.json +5 -5
- package/build/contracts/CFAv1Library.json +5 -5
- package/build/contracts/CallUtils.json +7 -7
- package/build/contracts/ClosingOnUpdateFlowTestApp.json +2107 -1917
- package/build/contracts/ConstantFlowAgreementV1.json +8 -8
- package/build/contracts/Context.json +3 -3
- package/build/contracts/ContextDefinitions.json +5 -5
- package/build/contracts/Create2.json +5 -5
- package/build/contracts/CustomSuperTokenBase.json +3 -3
- package/build/contracts/ERC165.json +3 -3
- package/build/contracts/ERC1820Implementer.json +5 -5
- package/build/contracts/ERC1820RegistryCompiled.json +7 -7
- package/build/contracts/ERC20.json +5 -5
- package/build/contracts/ERC20Burnable.json +3 -3
- package/build/contracts/ERC20Pausable.json +3 -3
- package/build/contracts/ERC20PresetMinterPauser.json +5 -5
- package/build/contracts/ERC20WithTokenInfo.json +3 -3
- package/build/contracts/ERC777Helper.json +7 -7
- package/build/contracts/ERC777RecipientDrainingGas.json +839 -839
- package/build/contracts/ERC777RecipientReverting.json +839 -839
- package/build/contracts/EnumerableSet.json +5 -5
- package/build/contracts/EventsEmitter.json +47 -47
- package/build/contracts/ExclusiveInflowTestApp.json +2107 -1917
- package/build/contracts/FixedSizeData.json +213 -213
- package/build/contracts/FlowExchangeTestApp.json +2107 -1917
- package/build/contracts/FlowOperatorDefinitions.json +5 -5
- package/build/contracts/FullUpgradableSuperTokenProxy.json +226 -312
- package/build/contracts/IAccessControl.json +3 -3
- package/build/contracts/IAccessControlEnumerable.json +3 -3
- package/build/contracts/IConstantFlowAgreementV1.json +451 -444
- package/build/contracts/IDAv1Library.json +5 -5
- package/build/contracts/IERC165.json +3 -3
- package/build/contracts/IERC1820Implementer.json +3 -3
- package/build/contracts/IERC1820Registry.json +3 -3
- package/build/contracts/IERC20.json +3 -3
- package/build/contracts/IERC20Metadata.json +3 -3
- package/build/contracts/IERC777.json +3 -3
- package/build/contracts/IERC777Recipient.json +3 -3
- package/build/contracts/IERC777Sender.json +3 -3
- package/build/contracts/IInstantDistributionAgreementV1.json +570 -559
- package/build/contracts/IMaticBridgedNativeSuperToken.json +71 -32
- package/build/contracts/IMaticBridgedNativeSuperTokenCustom.json +3 -3
- package/build/contracts/IMultiSigWallet.json +3 -3
- package/build/contracts/IPureSuperToken.json +71 -32
- package/build/contracts/IPureSuperTokenCustom.json +3 -3
- package/build/contracts/IRelayRecipient.json +3 -3
- package/build/contracts/IResolver.json +3 -3
- package/build/contracts/ISETH.json +71 -32
- package/build/contracts/ISETHCustom.json +3 -3
- package/build/contracts/ISuperAgreement.json +3 -3
- package/build/contracts/ISuperApp.json +179 -173
- package/build/contracts/ISuperToken.json +522 -483
- package/build/contracts/ISuperTokenFactory.json +3 -3
- package/build/contracts/ISuperfluid.json +633 -628
- package/build/contracts/ISuperfluidGovernance.json +134 -133
- package/build/contracts/ISuperfluidToken.json +403 -394
- package/build/contracts/ITOGAv1.json +1211 -1211
- package/build/contracts/ITOGAv2.json +1211 -1211
- package/build/contracts/Initializable.json +3 -3
- package/build/contracts/InstantDistributionAgreementV1.json +10 -10
- package/build/contracts/MaticBridgedNativeSuperTokenProxy.json +194 -194
- package/build/contracts/NonClosableOutflowTestApp.json +2107 -1917
- package/build/contracts/Ownable.json +3 -3
- package/build/contracts/Pausable.json +3 -3
- package/build/contracts/Proxy.json +3 -3
- package/build/contracts/PureSuperToken.json +91 -91
- package/build/contracts/Resolver.json +96 -96
- package/build/contracts/SETHProxy.json +199 -199
- package/build/contracts/SafeCast.json +5 -5
- package/build/contracts/SafeERC20.json +5 -5
- package/build/contracts/SafeMath.json +5 -5
- package/build/contracts/SelfDeletingFlowTestApp.json +2107 -1917
- package/build/contracts/SlotsBitmapLibrary.json +7 -7
- package/build/contracts/Strings.json +5 -5
- package/build/contracts/SuperAppBase.json +3 -3
- package/build/contracts/SuperAppDefinitions.json +5 -5
- package/build/contracts/SuperToken.json +2262 -2262
- package/build/contracts/SuperTokenFactory.json +582 -582
- package/build/contracts/SuperTokenFactoryBase.json +576 -576
- package/build/contracts/SuperTokenFactoryHelper.json +578 -578
- package/build/contracts/SuperUpgrader.json +687 -687
- package/build/contracts/Superfluid.json +6648 -6678
- package/build/contracts/SuperfluidFrameworkDeployer.json +526 -526
- package/build/contracts/SuperfluidGovernanceBase.json +13 -13
- package/build/contracts/SuperfluidGovernanceConfigs.json +5 -5
- package/build/contracts/SuperfluidGovernanceII.json +21 -21
- package/build/contracts/SuperfluidGovernanceIIProxy.json +20 -20
- package/build/contracts/SuperfluidLoader.json +147 -147
- package/build/contracts/SuperfluidToken.json +1269 -1269
- package/build/contracts/TOGA.json +1221 -1221
- package/build/contracts/TestGovernance.json +315 -315
- package/build/contracts/TestToken.json +475 -561
- package/build/contracts/TokenCustodian.json +220 -220
- package/build/contracts/TokenInfo.json +3 -3
- package/build/contracts/UUPSProxiable.json +136 -136
- package/build/contracts/UUPSProxy.json +87 -87
- package/build/contracts/UUPSUtils.json +43 -43
- package/build/contracts-sizes.txt +6 -6
- package/contracts/agreements/AgreementBase.sol +1 -1
- package/contracts/agreements/AgreementLibrary.sol +1 -1
- package/contracts/agreements/ConstantFlowAgreementV1.sol +1 -1
- package/contracts/agreements/InstantDistributionAgreementV1.sol +1 -1
- package/contracts/gov/SuperfluidGovernanceBase.sol +1 -1
- package/contracts/gov/SuperfluidGovernanceII.sol +1 -1
- package/contracts/interfaces/agreements/IConstantFlowAgreementV1.sol +7 -10
- package/contracts/interfaces/agreements/IInstantDistributionAgreementV1.sol +11 -18
- package/contracts/interfaces/superfluid/ISuperApp.sol +7 -9
- package/contracts/interfaces/superfluid/ISuperToken.sol +36 -44
- package/contracts/interfaces/superfluid/ISuperfluid.sol +17 -21
- package/contracts/interfaces/superfluid/ISuperfluidGovernance.sol +1 -1
- package/contracts/interfaces/superfluid/ISuperfluidToken.sol +13 -14
- package/contracts/libs/BaseRelayRecipient.sol +1 -1
- package/contracts/libs/CallUtils.sol +1 -1
- package/contracts/libs/ERC1820RegistryCompiled.sol +1 -1
- package/contracts/libs/ERC777Helper.sol +1 -1
- package/contracts/libs/EventsEmitter.sol +2 -2
- package/contracts/libs/FixedSizeData.sol +2 -2
- package/contracts/libs/SlotsBitmapLibrary.sol +1 -1
- package/contracts/mocks/AgreementMock.sol +1 -1
- package/contracts/mocks/CFAAppMocks.sol +6 -6
- package/contracts/mocks/CFALibraryMock.sol +2 -2
- package/contracts/mocks/CallUtilsMock.sol +1 -1
- package/contracts/mocks/CallUtilsTester.sol +1 -1
- package/contracts/mocks/CustomSuperTokenMock.sol +1 -1
- package/contracts/mocks/ERC777SenderRecipientMock.sol +1 -1
- package/contracts/mocks/FakeSuperfluidMock.sol +1 -1
- package/contracts/mocks/ForwarderMock.sol +1 -1
- package/contracts/mocks/IDASuperAppTester.sol +2 -2
- package/contracts/mocks/IDAv1LibraryMock.sol +3 -3
- package/contracts/mocks/MockSmartWallet.sol +1 -1
- package/contracts/mocks/MultiFlowTesterApp.sol +2 -2
- package/contracts/mocks/SuperAppMocks.sol +15 -12
- package/contracts/mocks/SuperTokenFactoryMock.sol +1 -1
- package/contracts/mocks/SuperTokenMock.sol +1 -1
- package/contracts/mocks/SuperfluidDestructorMock.sol +1 -1
- package/contracts/mocks/SuperfluidGovernanceIIMock.sol +1 -1
- package/contracts/mocks/SuperfluidMock.sol +2 -2
- package/contracts/mocks/UUPSProxiableMock.sol +1 -1
- package/contracts/superfluid/FullUpgradableSuperTokenProxy.sol +2 -2
- package/contracts/superfluid/SuperToken.sol +1 -1
- package/contracts/superfluid/SuperTokenFactory.sol +1 -1
- package/contracts/superfluid/Superfluid.sol +4 -4
- package/contracts/superfluid/SuperfluidToken.sol +1 -1
- package/contracts/tokens/MaticBridgedNativeSuperToken.sol +1 -1
- package/contracts/tokens/PureSuperToken.sol +1 -1
- package/contracts/tokens/SETH.sol +1 -1
- package/contracts/upgradability/UUPSProxiable.sol +1 -1
- package/contracts/upgradability/UUPSProxy.sol +1 -1
- package/contracts/upgradability/UUPSUtils.sol +1 -1
- package/contracts/utils/BatchLiquidator.sol +1 -1
- package/contracts/utils/Resolver.sol +1 -1
- package/contracts/utils/SuperUpgrader.sol +6 -6
- package/contracts/utils/SuperfluidLoader.sol +1 -1
- package/contracts/utils/TOGA.sol +1 -1
- package/contracts/utils/TestGovernance.sol +2 -2
- package/contracts/utils/TestToken.sol +2 -2
- package/contracts/utils/TokenCustodian.sol +1 -1
- package/package.json +5 -3
- package/scripts/deploy-framework.js +5 -5
- package/scripts/deploy-super-token.js +13 -4
- package/scripts/gov-create-new-app-registration-key.js +2 -1
- package/scripts/gov-create-new-factory-registration.js +1 -1
- package/scripts/libs/getConfig.js +21 -3
- package/scripts/resolver-list-super-token.js +1 -0
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"type": "function"
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
|
-
"metadata": "{\"compiler\":{\"version\":\"0.8.
|
|
21
|
-
"bytecode": "
|
|
22
|
-
"deployedBytecode": "
|
|
20
|
+
"metadata": "{\"compiler\":{\"version\":\"0.8.14+commit.80d49f37\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"inputs\":[],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"author\":\"Superfluid\",\"kind\":\"dev\",\"methods\":{},\"title\":\"Full upgradable super token proxy contract\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"project:/contracts/superfluid/FullUpgradableSuperTokenProxy.sol\":\"FullUpgradableSuperTokenProxy\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/proxy/Proxy.sol\":{\"keccak256\":\"0x0edeb16b9821ae2b16e9d69c383b38d3ad2fbb3e0c06cf809a0786d96e602551\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://88adc865fb1bd8dab4c58096e1d5887713f62c0405f8d2d17294727a8f43d8f7\",\"dweb:/ipfs/QmUJ27zsjxCatfoTFWho4k4qdhuBTorMqLuJzWqUX4Sdmg\"]},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0xbbc8ac883ac3c0078ce5ad3e288fbb3ffcc8a30c3a98c0fda0114d64fc44fca2\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://87a7a5d2f6f63f84598af02b8c50ca2df2631cb8ba2453e8d95fcb17e4be9824\",\"dweb:/ipfs/QmR76hqtAcRqoFj33tmNjcWTLrgNsAaakYwnKZ8zoJtKei\"]},\"@openzeppelin/contracts/token/ERC777/IERC777.sol\":{\"keccak256\":\"0xe4e0b7e3f0265ffaa565d26acd2d45f2633f19127ed625e5a05a9f201a87a667\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://1762b5bc15a009b5f092ccf547b81e0827c8705884f18e0623e497658514a7ed\",\"dweb:/ipfs/QmTtmVQYuynan3j2uVjdjjRJS1mr7LPRgxSZNnfqC7oxkz\"]},\"project:/contracts/interfaces/superfluid/Definitions.sol\":{\"keccak256\":\"0x199095781e4221b6015d859558da09977f79199f38d342ab4899c2cecdf8cec1\",\"license\":\"AGPLv3\",\"urls\":[\"bzz-raw://9fd3a5a8b16d8517e2af10e20390a9af5adbfa4e783e3a7dd89eb4588db98385\",\"dweb:/ipfs/QmPDtGR43DeMMVsHjUh7FYzMGsFKPpGriRkaahFpN5T5d3\"]},\"project:/contracts/interfaces/superfluid/ISuperAgreement.sol\":{\"keccak256\":\"0xc3a6a907245116bcecc70fe4b207454012e8ce4fa190228fb8bbe39e0b1bc5cf\",\"license\":\"AGPLv3\",\"urls\":[\"bzz-raw://83c116bdae48685d20e5a27c942111e685ec1ef6334e7ff6f6d9af66edbd8025\",\"dweb:/ipfs/QmTnVuNTaRFiDmkAmDk7NFYdfQTW1kqgBZiY2exC6k8jDx\"]},\"project:/contracts/interfaces/superfluid/ISuperApp.sol\":{\"keccak256\":\"0x42b604992cf67321cc12e8bed16543df0db4eaf125b8c1c82c330ebbeb20c014\",\"license\":\"AGPLv3\",\"urls\":[\"bzz-raw://7c18b00caf7b8be7e11f75284fb96263ce48a3984d56f2a91ec44cae4413d2fc\",\"dweb:/ipfs/QmWVzdW9KnkwAVe9g5zRuMoqCf7N89AoBfzzRr8puw5d8a\"]},\"project:/contracts/interfaces/superfluid/ISuperToken.sol\":{\"keccak256\":\"0xcff22ed43df0f34a645e6cbe0d7c5fd08f204d769e9095bc59d7c2fe6d11b7d6\",\"license\":\"AGPLv3\",\"urls\":[\"bzz-raw://944b8c5a37839b40ec8ee1ccfecbaf007808a61ea16c7b1351a7184606772032\",\"dweb:/ipfs/QmbUKZqZtVfqZMKYnQUygE4svatKuN9kT2ibrnxMuWXR7n\"]},\"project:/contracts/interfaces/superfluid/ISuperTokenFactory.sol\":{\"keccak256\":\"0x68a466c978557e47bd7385b1d7d78f1c8fb07462a870efc5a791008e33a4f535\",\"license\":\"AGPLv3\",\"urls\":[\"bzz-raw://d109879bdb7f022560a792af2ff481df729bf1b4b8e1831b8022f4d12892d41d\",\"dweb:/ipfs/QmRSWqHq8CP5XWgyV4mJpPxMg33s312s2K5ndHRHVqqZ8n\"]},\"project:/contracts/interfaces/superfluid/ISuperfluid.sol\":{\"keccak256\":\"0xf16efd1ba72322e77e0d936b723c0e71eb14c23e11cf69efae8c7caa407012cf\",\"license\":\"AGPLv3\",\"urls\":[\"bzz-raw://ff4bb321b72dc3332984346e5b66ad131c6132101658fe6707d7a9d043f981ab\",\"dweb:/ipfs/QmXmVD2mZ3LRb7wQZ2VcrpYhtjm21zUe5hPDDDJA1WXbFz\"]},\"project:/contracts/interfaces/superfluid/ISuperfluidGovernance.sol\":{\"keccak256\":\"0xea33d20751ffea4f4446bc04f6c10194fb4da0803a988586d41d49cf4859731c\",\"license\":\"AGPLv3\",\"urls\":[\"bzz-raw://7716b1f5eec0a7ac8780d82de4f0274ecd7059be4eec46c82b0b7adce110f10b\",\"dweb:/ipfs/QmWRQafvdCBsyfDYnevXSav1AAz8uZRRBwh2be5Z3vSfVN\"]},\"project:/contracts/interfaces/superfluid/ISuperfluidToken.sol\":{\"keccak256\":\"0x3eec5a3bf337cd319c1918fd1b16f350cf5f6850ac71f6859066fbf86e734ff4\",\"license\":\"AGPLv3\",\"urls\":[\"bzz-raw://cda19a2f5ca18e79c1e2300c8efac84c718df76c4fb313f59f84264a4c6b398a\",\"dweb:/ipfs/QmfQiwgDH5Q64w5ufBnDzVaeWv6WCZ6fLTrYu1FSYfBGhq\"]},\"project:/contracts/interfaces/tokens/ERC20WithTokenInfo.sol\":{\"keccak256\":\"0x66708dae3fcd06e6fc0a46f2959fc2d1e6b9361f28598337339d26af8eb8c0f9\",\"license\":\"AGPLv3\",\"urls\":[\"bzz-raw://77b80718cec21b81ef190c19fb9fbe73913a95c71f7e6715f671bbe8a224dafc\",\"dweb:/ipfs/QmUdsc6DF2Bgih5VZm7sfaECjhGmwE7tAx8pMkzGQgVKQw\"]},\"project:/contracts/interfaces/tokens/TokenInfo.sol\":{\"keccak256\":\"0x70e573644a0ff271c0ccef526809e9d9ab4950ec58755ca84e833cde3b8f3df0\",\"license\":\"AGPLv3\",\"urls\":[\"bzz-raw://aea3709687cc37ba625f4cc882fbdb149a7bf5be5afe2b030203c8719641a77b\",\"dweb:/ipfs/QmVpvfR6ZheE5wNUK9CobaVBgVvEnEPkvjWF9cfwyZr7eQ\"]},\"project:/contracts/superfluid/FullUpgradableSuperTokenProxy.sol\":{\"keccak256\":\"0xd8762c876977d3417650ef425eb3829a2da7e54b24e0bfab265dee36dbe5923a\",\"license\":\"AGPLv3\",\"urls\":[\"bzz-raw://3e8ba627d3732d4794f4bbfa615e648c1f7385668ed7dc66c52e167bd5e46204\",\"dweb:/ipfs/QmVSw4WYnJpr7B1XEZgxNdarRDMDzfm1T43e8HZy4Sgg2m\"]}},\"version\":1}",
|
|
21
|
+
"bytecode": "0x608060405234801561001057600080fd5b5061023c806100206000396000f3fe6080604052600436106100225760003560e01c80638129fc1c1461003957610031565b366100315761002f61004e565b005b61002f61004e565b34801561004557600080fd5b5061002f610060565b61005e6100596100f9565b61019c565b565b7fb8fcd5719b3ddf8626f3664705a89b7fc476129a58c1aa5eda57c600cc1821a0546001600160a01b038116156100d35760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b604482015260640160405180910390fd5b50337fb8fcd5719b3ddf8626f3664705a89b7fc476129a58c1aa5eda57c600cc1821a055565b7fb8fcd5719b3ddf8626f3664705a89b7fc476129a58c1aa5eda57c600cc1821a0546000906001600160a01b038116610134576101346101c0565b806001600160a01b0316639470a5b26040518163ffffffff1660e01b8152600401602060405180830381865afa158015610172573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019691906101d6565b91505090565b3660008037600080366000845af43d6000803e8080156101bb573d6000f35b3d6000fd5b634e487b7160e01b600052600160045260246000fd5b6000602082840312156101e857600080fd5b81516001600160a01b03811681146101ff57600080fd5b939250505056fea26469706673582212207043e53497a533e70c116d93df021028be97de44d238f19564ab53cf1fa1eeab64736f6c634300080e0033",
|
|
22
|
+
"deployedBytecode": "0x6080604052600436106100225760003560e01c80638129fc1c1461003957610031565b366100315761002f61004e565b005b61002f61004e565b34801561004557600080fd5b5061002f610060565b61005e6100596100f9565b61019c565b565b7fb8fcd5719b3ddf8626f3664705a89b7fc476129a58c1aa5eda57c600cc1821a0546001600160a01b038116156100d35760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b604482015260640160405180910390fd5b50337fb8fcd5719b3ddf8626f3664705a89b7fc476129a58c1aa5eda57c600cc1821a055565b7fb8fcd5719b3ddf8626f3664705a89b7fc476129a58c1aa5eda57c600cc1821a0546000906001600160a01b038116610134576101346101c0565b806001600160a01b0316639470a5b26040518163ffffffff1660e01b8152600401602060405180830381865afa158015610172573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019691906101d6565b91505090565b3660008037600080366000845af43d6000803e8080156101bb573d6000f35b3d6000fd5b634e487b7160e01b600052600160045260246000fd5b6000602082840312156101e857600080fd5b81516001600160a01b03811681146101ff57600080fd5b939250505056fea26469706673582212207043e53497a533e70c116d93df021028be97de44d238f19564ab53cf1fa1eeab64736f6c634300080e0033",
|
|
23
23
|
"immutableReferences": {},
|
|
24
24
|
"generatedSources": [],
|
|
25
25
|
"deployedGeneratedSources": [
|
|
26
26
|
{
|
|
27
27
|
"ast": {
|
|
28
28
|
"nodeType": "YulBlock",
|
|
29
|
-
"src": "0:
|
|
29
|
+
"src": "0:807:105",
|
|
30
30
|
"statements": [
|
|
31
31
|
{
|
|
32
32
|
"nodeType": "YulBlock",
|
|
@@ -215,191 +215,128 @@
|
|
|
215
215
|
{
|
|
216
216
|
"body": {
|
|
217
217
|
"nodeType": "YulBlock",
|
|
218
|
-
"src": "
|
|
218
|
+
"src": "394:95:105",
|
|
219
219
|
"statements": [
|
|
220
220
|
{
|
|
221
221
|
"expression": {
|
|
222
222
|
"arguments": [
|
|
223
|
-
{
|
|
224
|
-
"name": "headStart",
|
|
225
|
-
"nodeType": "YulIdentifier",
|
|
226
|
-
"src": "553:9:105"
|
|
227
|
-
},
|
|
228
223
|
{
|
|
229
224
|
"kind": "number",
|
|
230
225
|
"nodeType": "YulLiteral",
|
|
231
|
-
"src": "
|
|
226
|
+
"src": "411:1:105",
|
|
232
227
|
"type": "",
|
|
233
|
-
"value": "
|
|
234
|
-
}
|
|
235
|
-
],
|
|
236
|
-
"functionName": {
|
|
237
|
-
"name": "mstore",
|
|
238
|
-
"nodeType": "YulIdentifier",
|
|
239
|
-
"src": "546:6:105"
|
|
240
|
-
},
|
|
241
|
-
"nodeType": "YulFunctionCall",
|
|
242
|
-
"src": "546:21:105"
|
|
243
|
-
},
|
|
244
|
-
"nodeType": "YulExpressionStatement",
|
|
245
|
-
"src": "546:21:105"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"expression": {
|
|
249
|
-
"arguments": [
|
|
228
|
+
"value": "0"
|
|
229
|
+
},
|
|
250
230
|
{
|
|
251
231
|
"arguments": [
|
|
252
232
|
{
|
|
253
|
-
"
|
|
254
|
-
"nodeType": "
|
|
255
|
-
"src": "
|
|
233
|
+
"kind": "number",
|
|
234
|
+
"nodeType": "YulLiteral",
|
|
235
|
+
"src": "418:3:105",
|
|
236
|
+
"type": "",
|
|
237
|
+
"value": "224"
|
|
256
238
|
},
|
|
257
239
|
{
|
|
258
240
|
"kind": "number",
|
|
259
241
|
"nodeType": "YulLiteral",
|
|
260
|
-
"src": "
|
|
242
|
+
"src": "423:10:105",
|
|
261
243
|
"type": "",
|
|
262
|
-
"value": "
|
|
244
|
+
"value": "0x4e487b71"
|
|
263
245
|
}
|
|
264
246
|
],
|
|
265
247
|
"functionName": {
|
|
266
|
-
"name": "
|
|
248
|
+
"name": "shl",
|
|
267
249
|
"nodeType": "YulIdentifier",
|
|
268
|
-
"src": "
|
|
250
|
+
"src": "414:3:105"
|
|
269
251
|
},
|
|
270
252
|
"nodeType": "YulFunctionCall",
|
|
271
|
-
"src": "
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
"kind": "number",
|
|
275
|
-
"nodeType": "YulLiteral",
|
|
276
|
-
"src": "603:2:105",
|
|
277
|
-
"type": "",
|
|
278
|
-
"value": "15"
|
|
253
|
+
"src": "414:20:105"
|
|
279
254
|
}
|
|
280
255
|
],
|
|
281
256
|
"functionName": {
|
|
282
257
|
"name": "mstore",
|
|
283
258
|
"nodeType": "YulIdentifier",
|
|
284
|
-
"src": "
|
|
259
|
+
"src": "404:6:105"
|
|
285
260
|
},
|
|
286
261
|
"nodeType": "YulFunctionCall",
|
|
287
|
-
"src": "
|
|
262
|
+
"src": "404:31:105"
|
|
288
263
|
},
|
|
289
264
|
"nodeType": "YulExpressionStatement",
|
|
290
|
-
"src": "
|
|
265
|
+
"src": "404:31:105"
|
|
291
266
|
},
|
|
292
267
|
{
|
|
293
268
|
"expression": {
|
|
294
269
|
"arguments": [
|
|
295
270
|
{
|
|
296
|
-
"
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"kind": "number",
|
|
304
|
-
"nodeType": "YulLiteral",
|
|
305
|
-
"src": "637:2:105",
|
|
306
|
-
"type": "",
|
|
307
|
-
"value": "64"
|
|
308
|
-
}
|
|
309
|
-
],
|
|
310
|
-
"functionName": {
|
|
311
|
-
"name": "add",
|
|
312
|
-
"nodeType": "YulIdentifier",
|
|
313
|
-
"src": "622:3:105"
|
|
314
|
-
},
|
|
315
|
-
"nodeType": "YulFunctionCall",
|
|
316
|
-
"src": "622:18:105"
|
|
271
|
+
"kind": "number",
|
|
272
|
+
"nodeType": "YulLiteral",
|
|
273
|
+
"src": "451:1:105",
|
|
274
|
+
"type": "",
|
|
275
|
+
"value": "4"
|
|
317
276
|
},
|
|
318
277
|
{
|
|
319
|
-
"
|
|
320
|
-
"kind": "string",
|
|
278
|
+
"kind": "number",
|
|
321
279
|
"nodeType": "YulLiteral",
|
|
322
|
-
"src": "
|
|
280
|
+
"src": "454:4:105",
|
|
323
281
|
"type": "",
|
|
324
|
-
"value": "
|
|
282
|
+
"value": "0x01"
|
|
325
283
|
}
|
|
326
284
|
],
|
|
327
285
|
"functionName": {
|
|
328
286
|
"name": "mstore",
|
|
329
287
|
"nodeType": "YulIdentifier",
|
|
330
|
-
"src": "
|
|
288
|
+
"src": "444:6:105"
|
|
331
289
|
},
|
|
332
290
|
"nodeType": "YulFunctionCall",
|
|
333
|
-
"src": "
|
|
291
|
+
"src": "444:15:105"
|
|
334
292
|
},
|
|
335
293
|
"nodeType": "YulExpressionStatement",
|
|
336
|
-
"src": "
|
|
294
|
+
"src": "444:15:105"
|
|
337
295
|
},
|
|
338
296
|
{
|
|
339
|
-
"
|
|
340
|
-
"src": "669:26:105",
|
|
341
|
-
"value": {
|
|
297
|
+
"expression": {
|
|
342
298
|
"arguments": [
|
|
343
299
|
{
|
|
344
|
-
"
|
|
345
|
-
"nodeType": "
|
|
346
|
-
"src": "
|
|
300
|
+
"kind": "number",
|
|
301
|
+
"nodeType": "YulLiteral",
|
|
302
|
+
"src": "475:1:105",
|
|
303
|
+
"type": "",
|
|
304
|
+
"value": "0"
|
|
347
305
|
},
|
|
348
306
|
{
|
|
349
307
|
"kind": "number",
|
|
350
308
|
"nodeType": "YulLiteral",
|
|
351
|
-
"src": "
|
|
309
|
+
"src": "478:4:105",
|
|
352
310
|
"type": "",
|
|
353
|
-
"value": "
|
|
311
|
+
"value": "0x24"
|
|
354
312
|
}
|
|
355
313
|
],
|
|
356
314
|
"functionName": {
|
|
357
|
-
"name": "
|
|
315
|
+
"name": "revert",
|
|
358
316
|
"nodeType": "YulIdentifier",
|
|
359
|
-
"src": "
|
|
317
|
+
"src": "468:6:105"
|
|
360
318
|
},
|
|
361
319
|
"nodeType": "YulFunctionCall",
|
|
362
|
-
"src": "
|
|
320
|
+
"src": "468:15:105"
|
|
363
321
|
},
|
|
364
|
-
"
|
|
365
|
-
|
|
366
|
-
"name": "tail",
|
|
367
|
-
"nodeType": "YulIdentifier",
|
|
368
|
-
"src": "669:4:105"
|
|
369
|
-
}
|
|
370
|
-
]
|
|
322
|
+
"nodeType": "YulExpressionStatement",
|
|
323
|
+
"src": "468:15:105"
|
|
371
324
|
}
|
|
372
325
|
]
|
|
373
326
|
},
|
|
374
|
-
"name": "
|
|
327
|
+
"name": "panic_error_0x01",
|
|
375
328
|
"nodeType": "YulFunctionDefinition",
|
|
376
|
-
"
|
|
377
|
-
{
|
|
378
|
-
"name": "headStart",
|
|
379
|
-
"nodeType": "YulTypedName",
|
|
380
|
-
"src": "513:9:105",
|
|
381
|
-
"type": ""
|
|
382
|
-
}
|
|
383
|
-
],
|
|
384
|
-
"returnVariables": [
|
|
385
|
-
{
|
|
386
|
-
"name": "tail",
|
|
387
|
-
"nodeType": "YulTypedName",
|
|
388
|
-
"src": "527:4:105",
|
|
389
|
-
"type": ""
|
|
390
|
-
}
|
|
391
|
-
],
|
|
392
|
-
"src": "362:339:105"
|
|
329
|
+
"src": "362:127:105"
|
|
393
330
|
},
|
|
394
331
|
{
|
|
395
332
|
"body": {
|
|
396
333
|
"nodeType": "YulBlock",
|
|
397
|
-
"src": "
|
|
334
|
+
"src": "596:209:105",
|
|
398
335
|
"statements": [
|
|
399
336
|
{
|
|
400
337
|
"body": {
|
|
401
338
|
"nodeType": "YulBlock",
|
|
402
|
-
"src": "
|
|
339
|
+
"src": "642:16:105",
|
|
403
340
|
"statements": [
|
|
404
341
|
{
|
|
405
342
|
"expression": {
|
|
@@ -407,14 +344,14 @@
|
|
|
407
344
|
{
|
|
408
345
|
"kind": "number",
|
|
409
346
|
"nodeType": "YulLiteral",
|
|
410
|
-
"src": "
|
|
347
|
+
"src": "651:1:105",
|
|
411
348
|
"type": "",
|
|
412
349
|
"value": "0"
|
|
413
350
|
},
|
|
414
351
|
{
|
|
415
352
|
"kind": "number",
|
|
416
353
|
"nodeType": "YulLiteral",
|
|
417
|
-
"src": "
|
|
354
|
+
"src": "654:1:105",
|
|
418
355
|
"type": "",
|
|
419
356
|
"value": "0"
|
|
420
357
|
}
|
|
@@ -422,13 +359,13 @@
|
|
|
422
359
|
"functionName": {
|
|
423
360
|
"name": "revert",
|
|
424
361
|
"nodeType": "YulIdentifier",
|
|
425
|
-
"src": "
|
|
362
|
+
"src": "644:6:105"
|
|
426
363
|
},
|
|
427
364
|
"nodeType": "YulFunctionCall",
|
|
428
|
-
"src": "
|
|
365
|
+
"src": "644:12:105"
|
|
429
366
|
},
|
|
430
367
|
"nodeType": "YulExpressionStatement",
|
|
431
|
-
"src": "
|
|
368
|
+
"src": "644:12:105"
|
|
432
369
|
}
|
|
433
370
|
]
|
|
434
371
|
},
|
|
@@ -439,26 +376,26 @@
|
|
|
439
376
|
{
|
|
440
377
|
"name": "dataEnd",
|
|
441
378
|
"nodeType": "YulIdentifier",
|
|
442
|
-
"src": "
|
|
379
|
+
"src": "617:7:105"
|
|
443
380
|
},
|
|
444
381
|
{
|
|
445
382
|
"name": "headStart",
|
|
446
383
|
"nodeType": "YulIdentifier",
|
|
447
|
-
"src": "
|
|
384
|
+
"src": "626:9:105"
|
|
448
385
|
}
|
|
449
386
|
],
|
|
450
387
|
"functionName": {
|
|
451
388
|
"name": "sub",
|
|
452
389
|
"nodeType": "YulIdentifier",
|
|
453
|
-
"src": "
|
|
390
|
+
"src": "613:3:105"
|
|
454
391
|
},
|
|
455
392
|
"nodeType": "YulFunctionCall",
|
|
456
|
-
"src": "
|
|
393
|
+
"src": "613:23:105"
|
|
457
394
|
},
|
|
458
395
|
{
|
|
459
396
|
"kind": "number",
|
|
460
397
|
"nodeType": "YulLiteral",
|
|
461
|
-
"src": "
|
|
398
|
+
"src": "638:2:105",
|
|
462
399
|
"type": "",
|
|
463
400
|
"value": "32"
|
|
464
401
|
}
|
|
@@ -466,38 +403,38 @@
|
|
|
466
403
|
"functionName": {
|
|
467
404
|
"name": "slt",
|
|
468
405
|
"nodeType": "YulIdentifier",
|
|
469
|
-
"src": "
|
|
406
|
+
"src": "609:3:105"
|
|
470
407
|
},
|
|
471
408
|
"nodeType": "YulFunctionCall",
|
|
472
|
-
"src": "
|
|
409
|
+
"src": "609:32:105"
|
|
473
410
|
},
|
|
474
411
|
"nodeType": "YulIf",
|
|
475
|
-
"src": "
|
|
412
|
+
"src": "606:52:105"
|
|
476
413
|
},
|
|
477
414
|
{
|
|
478
415
|
"nodeType": "YulVariableDeclaration",
|
|
479
|
-
"src": "
|
|
416
|
+
"src": "667:29:105",
|
|
480
417
|
"value": {
|
|
481
418
|
"arguments": [
|
|
482
419
|
{
|
|
483
420
|
"name": "headStart",
|
|
484
421
|
"nodeType": "YulIdentifier",
|
|
485
|
-
"src": "
|
|
422
|
+
"src": "686:9:105"
|
|
486
423
|
}
|
|
487
424
|
],
|
|
488
425
|
"functionName": {
|
|
489
426
|
"name": "mload",
|
|
490
427
|
"nodeType": "YulIdentifier",
|
|
491
|
-
"src": "
|
|
428
|
+
"src": "680:5:105"
|
|
492
429
|
},
|
|
493
430
|
"nodeType": "YulFunctionCall",
|
|
494
|
-
"src": "
|
|
431
|
+
"src": "680:16:105"
|
|
495
432
|
},
|
|
496
433
|
"variables": [
|
|
497
434
|
{
|
|
498
435
|
"name": "value",
|
|
499
436
|
"nodeType": "YulTypedName",
|
|
500
|
-
"src": "
|
|
437
|
+
"src": "671:5:105",
|
|
501
438
|
"type": ""
|
|
502
439
|
}
|
|
503
440
|
]
|
|
@@ -505,7 +442,7 @@
|
|
|
505
442
|
{
|
|
506
443
|
"body": {
|
|
507
444
|
"nodeType": "YulBlock",
|
|
508
|
-
"src": "
|
|
445
|
+
"src": "759:16:105",
|
|
509
446
|
"statements": [
|
|
510
447
|
{
|
|
511
448
|
"expression": {
|
|
@@ -513,14 +450,14 @@
|
|
|
513
450
|
{
|
|
514
451
|
"kind": "number",
|
|
515
452
|
"nodeType": "YulLiteral",
|
|
516
|
-
"src": "
|
|
453
|
+
"src": "768:1:105",
|
|
517
454
|
"type": "",
|
|
518
455
|
"value": "0"
|
|
519
456
|
},
|
|
520
457
|
{
|
|
521
458
|
"kind": "number",
|
|
522
459
|
"nodeType": "YulLiteral",
|
|
523
|
-
"src": "
|
|
460
|
+
"src": "771:1:105",
|
|
524
461
|
"type": "",
|
|
525
462
|
"value": "0"
|
|
526
463
|
}
|
|
@@ -528,13 +465,13 @@
|
|
|
528
465
|
"functionName": {
|
|
529
466
|
"name": "revert",
|
|
530
467
|
"nodeType": "YulIdentifier",
|
|
531
|
-
"src": "
|
|
468
|
+
"src": "761:6:105"
|
|
532
469
|
},
|
|
533
470
|
"nodeType": "YulFunctionCall",
|
|
534
|
-
"src": "
|
|
471
|
+
"src": "761:12:105"
|
|
535
472
|
},
|
|
536
473
|
"nodeType": "YulExpressionStatement",
|
|
537
|
-
"src": "
|
|
474
|
+
"src": "761:12:105"
|
|
538
475
|
}
|
|
539
476
|
]
|
|
540
477
|
},
|
|
@@ -545,14 +482,14 @@
|
|
|
545
482
|
{
|
|
546
483
|
"name": "value",
|
|
547
484
|
"nodeType": "YulIdentifier",
|
|
548
|
-
"src": "
|
|
485
|
+
"src": "718:5:105"
|
|
549
486
|
},
|
|
550
487
|
{
|
|
551
488
|
"arguments": [
|
|
552
489
|
{
|
|
553
490
|
"name": "value",
|
|
554
491
|
"nodeType": "YulIdentifier",
|
|
555
|
-
"src": "
|
|
492
|
+
"src": "729:5:105"
|
|
556
493
|
},
|
|
557
494
|
{
|
|
558
495
|
"arguments": [
|
|
@@ -561,14 +498,14 @@
|
|
|
561
498
|
{
|
|
562
499
|
"kind": "number",
|
|
563
500
|
"nodeType": "YulLiteral",
|
|
564
|
-
"src": "
|
|
501
|
+
"src": "744:3:105",
|
|
565
502
|
"type": "",
|
|
566
503
|
"value": "160"
|
|
567
504
|
},
|
|
568
505
|
{
|
|
569
506
|
"kind": "number",
|
|
570
507
|
"nodeType": "YulLiteral",
|
|
571
|
-
"src": "
|
|
508
|
+
"src": "749:1:105",
|
|
572
509
|
"type": "",
|
|
573
510
|
"value": "1"
|
|
574
511
|
}
|
|
@@ -576,15 +513,15 @@
|
|
|
576
513
|
"functionName": {
|
|
577
514
|
"name": "shl",
|
|
578
515
|
"nodeType": "YulIdentifier",
|
|
579
|
-
"src": "
|
|
516
|
+
"src": "740:3:105"
|
|
580
517
|
},
|
|
581
518
|
"nodeType": "YulFunctionCall",
|
|
582
|
-
"src": "
|
|
519
|
+
"src": "740:11:105"
|
|
583
520
|
},
|
|
584
521
|
{
|
|
585
522
|
"kind": "number",
|
|
586
523
|
"nodeType": "YulLiteral",
|
|
587
|
-
"src": "
|
|
524
|
+
"src": "753:1:105",
|
|
588
525
|
"type": "",
|
|
589
526
|
"value": "1"
|
|
590
527
|
}
|
|
@@ -592,54 +529,54 @@
|
|
|
592
529
|
"functionName": {
|
|
593
530
|
"name": "sub",
|
|
594
531
|
"nodeType": "YulIdentifier",
|
|
595
|
-
"src": "
|
|
532
|
+
"src": "736:3:105"
|
|
596
533
|
},
|
|
597
534
|
"nodeType": "YulFunctionCall",
|
|
598
|
-
"src": "
|
|
535
|
+
"src": "736:19:105"
|
|
599
536
|
}
|
|
600
537
|
],
|
|
601
538
|
"functionName": {
|
|
602
539
|
"name": "and",
|
|
603
540
|
"nodeType": "YulIdentifier",
|
|
604
|
-
"src": "
|
|
541
|
+
"src": "725:3:105"
|
|
605
542
|
},
|
|
606
543
|
"nodeType": "YulFunctionCall",
|
|
607
|
-
"src": "
|
|
544
|
+
"src": "725:31:105"
|
|
608
545
|
}
|
|
609
546
|
],
|
|
610
547
|
"functionName": {
|
|
611
548
|
"name": "eq",
|
|
612
549
|
"nodeType": "YulIdentifier",
|
|
613
|
-
"src": "
|
|
550
|
+
"src": "715:2:105"
|
|
614
551
|
},
|
|
615
552
|
"nodeType": "YulFunctionCall",
|
|
616
|
-
"src": "
|
|
553
|
+
"src": "715:42:105"
|
|
617
554
|
}
|
|
618
555
|
],
|
|
619
556
|
"functionName": {
|
|
620
557
|
"name": "iszero",
|
|
621
558
|
"nodeType": "YulIdentifier",
|
|
622
|
-
"src": "
|
|
559
|
+
"src": "708:6:105"
|
|
623
560
|
},
|
|
624
561
|
"nodeType": "YulFunctionCall",
|
|
625
|
-
"src": "
|
|
562
|
+
"src": "708:50:105"
|
|
626
563
|
},
|
|
627
564
|
"nodeType": "YulIf",
|
|
628
|
-
"src": "
|
|
565
|
+
"src": "705:70:105"
|
|
629
566
|
},
|
|
630
567
|
{
|
|
631
568
|
"nodeType": "YulAssignment",
|
|
632
|
-
"src": "
|
|
569
|
+
"src": "784:15:105",
|
|
633
570
|
"value": {
|
|
634
571
|
"name": "value",
|
|
635
572
|
"nodeType": "YulIdentifier",
|
|
636
|
-
"src": "
|
|
573
|
+
"src": "794:5:105"
|
|
637
574
|
},
|
|
638
575
|
"variableNames": [
|
|
639
576
|
{
|
|
640
577
|
"name": "value0",
|
|
641
578
|
"nodeType": "YulIdentifier",
|
|
642
|
-
"src": "
|
|
579
|
+
"src": "784:6:105"
|
|
643
580
|
}
|
|
644
581
|
]
|
|
645
582
|
}
|
|
@@ -651,13 +588,13 @@
|
|
|
651
588
|
{
|
|
652
589
|
"name": "headStart",
|
|
653
590
|
"nodeType": "YulTypedName",
|
|
654
|
-
"src": "
|
|
591
|
+
"src": "562:9:105",
|
|
655
592
|
"type": ""
|
|
656
593
|
},
|
|
657
594
|
{
|
|
658
595
|
"name": "dataEnd",
|
|
659
596
|
"nodeType": "YulTypedName",
|
|
660
|
-
"src": "
|
|
597
|
+
"src": "573:7:105",
|
|
661
598
|
"type": ""
|
|
662
599
|
}
|
|
663
600
|
],
|
|
@@ -665,29 +602,29 @@
|
|
|
665
602
|
{
|
|
666
603
|
"name": "value0",
|
|
667
604
|
"nodeType": "YulTypedName",
|
|
668
|
-
"src": "
|
|
605
|
+
"src": "585:6:105",
|
|
669
606
|
"type": ""
|
|
670
607
|
}
|
|
671
608
|
],
|
|
672
|
-
"src": "
|
|
609
|
+
"src": "494:311:105"
|
|
673
610
|
}
|
|
674
611
|
]
|
|
675
612
|
},
|
|
676
|
-
"contents": "{\n { }\n function abi_encode_tuple_t_stringliteral_d3814fd4e72cfd7651525eee846049aca388165c613a1085fb56751abcdd36c0__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 19)\n mstore(add(headStart, 64), \"Already initialized\")\n tail := add(headStart, 96)\n }\n function
|
|
613
|
+
"contents": "{\n { }\n function abi_encode_tuple_t_stringliteral_d3814fd4e72cfd7651525eee846049aca388165c613a1085fb56751abcdd36c0__to_t_string_memory_ptr__fromStack_reversed(headStart) -> tail\n {\n mstore(headStart, 32)\n mstore(add(headStart, 32), 19)\n mstore(add(headStart, 64), \"Already initialized\")\n tail := add(headStart, 96)\n }\n function panic_error_0x01()\n {\n mstore(0, shl(224, 0x4e487b71))\n mstore(4, 0x01)\n revert(0, 0x24)\n }\n function abi_decode_tuple_t_contract$_ISuperToken_$17761_fromMemory(headStart, dataEnd) -> value0\n {\n if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }\n let value := mload(headStart)\n if iszero(eq(value, and(value, sub(shl(160, 1), 1)))) { revert(0, 0) }\n value0 := value\n }\n}",
|
|
677
614
|
"id": 105,
|
|
678
615
|
"language": "Yul",
|
|
679
616
|
"name": "#utility.yul"
|
|
680
617
|
}
|
|
681
618
|
],
|
|
682
|
-
"sourceMap": "296:
|
|
683
|
-
"deployedSourceMap": "296:
|
|
684
|
-
"source": "// SPDX-License-Identifier: AGPLv3\npragma solidity 0.8.
|
|
619
|
+
"sourceMap": "296:952:85:-:0;;;;;;;;;;;;;;;;;;;",
|
|
620
|
+
"deployedSourceMap": "296:952:85:-:0;;;;;;;;;;;;;;;;;;;;;;;2898:11:5;:9;:11::i;:::-;296:952:85;;2675:11:5;:9;:11::i;565:360:85:-;;;;;;;;;;;;;:::i;2322:110:5:-;2397:28;2407:17;:15;:17::i;:::-;2397:9;:28::i;:::-;2322:110::o;565:360:85:-;698:13;692:20;-1:-1:-1;;;;;739:30:85;;;731:62;;;;-1:-1:-1;;;731:62:85;;216:2:105;731:62:85;;;198:21:105;255:2;235:18;;;228:30;-1:-1:-1;;;274:18:105;;;267:49;333:18;;731:62:85;;;;;;;;-1:-1:-1;813:10:85;886:13;879:30;565:360::o;931:314::-;1113:13;1107:20;990:12;;-1:-1:-1;;;;;1153:30:85;;1146:38;;;;:::i;:::-;1209:7;-1:-1:-1;;;;;1209:26:85;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1194:44;;;931:314;:::o;948:895:5:-;1286:14;1283:1;1280;1267:34;1500:1;1497;1481:14;1478:1;1462:14;1455:5;1442:60;1576:16;1573:1;1570;1555:38;1614:6;1681:66;;;;1796:16;1793:1;1786:27;1681:66;1716:16;1713:1;1706:27;362:127:105;423:10;418:3;414:20;411:1;404:31;454:4;451:1;444:15;478:4;475:1;468:15;494:311;585:6;638:2;626:9;617:7;613:23;609:32;606:52;;;654:1;651;644:12;606:52;680:16;;-1:-1:-1;;;;;725:31:105;;715:42;;705:70;;771:1;768;761:12;705:70;794:5;494:311;-1:-1:-1;;;494:311:105:o",
|
|
621
|
+
"source": "// SPDX-License-Identifier: AGPLv3\npragma solidity 0.8.14;\n\nimport { ISuperTokenFactory } from \"../interfaces/superfluid/ISuperTokenFactory.sol\";\nimport { Proxy } from \"@openzeppelin/contracts/proxy/Proxy.sol\";\n\n\n/**\n * @title Full upgradable super token proxy contract\n * @author Superfluid\n */\ncontract FullUpgradableSuperTokenProxy is Proxy {\n\n // web3.utils.keccak256(\"org.superfluid-finance.FullUpgradableSuperTokenWrapper.factory_slot\")\n bytes32 internal constant _FACTORY_SLOT = 0xb8fcd5719b3ddf8626f3664705a89b7fc476129a58c1aa5eda57c600cc1821a0;\n\n function initialize() external\n {\n address factory;\n assembly { // solium-disable-line\n factory := sload(_FACTORY_SLOT)\n }\n require(address(factory) == address(0), \"Already initialized\");\n factory = msg.sender;\n assembly { // solium-disable-line\n sstore(_FACTORY_SLOT, factory)\n }\n }\n\n function _implementation() internal override view returns (address impl) {\n ISuperTokenFactory factory;\n assembly { // solium-disable-line\n factory := sload(_FACTORY_SLOT)\n }\n assert(address(factory) != address(0));\n return address(factory.getSuperTokenLogic());\n }\n\n}\n",
|
|
685
622
|
"sourcePath": "/home/runner/work/protocol-monorepo/protocol-monorepo/packages/ethereum-contracts/contracts/superfluid/FullUpgradableSuperTokenProxy.sol",
|
|
686
623
|
"ast": {
|
|
687
624
|
"absolutePath": "project:/contracts/superfluid/FullUpgradableSuperTokenProxy.sol",
|
|
688
625
|
"exportedSymbols": {
|
|
689
626
|
"FullUpgradableSuperTokenProxy": [
|
|
690
|
-
|
|
627
|
+
28599
|
|
691
628
|
],
|
|
692
629
|
"ISuperTokenFactory": [
|
|
693
630
|
17850
|
|
@@ -696,16 +633,16 @@
|
|
|
696
633
|
688
|
|
697
634
|
]
|
|
698
635
|
},
|
|
699
|
-
"id":
|
|
636
|
+
"id": 28600,
|
|
700
637
|
"license": "AGPLv3",
|
|
701
638
|
"nodeType": "SourceUnit",
|
|
702
639
|
"nodes": [
|
|
703
640
|
{
|
|
704
|
-
"id":
|
|
641
|
+
"id": 28530,
|
|
705
642
|
"literals": [
|
|
706
643
|
"solidity",
|
|
707
644
|
"0.8",
|
|
708
|
-
".
|
|
645
|
+
".14"
|
|
709
646
|
],
|
|
710
647
|
"nodeType": "PragmaDirective",
|
|
711
648
|
"src": "35:23:85"
|
|
@@ -713,16 +650,16 @@
|
|
|
713
650
|
{
|
|
714
651
|
"absolutePath": "project:/contracts/interfaces/superfluid/ISuperTokenFactory.sol",
|
|
715
652
|
"file": "../interfaces/superfluid/ISuperTokenFactory.sol",
|
|
716
|
-
"id":
|
|
653
|
+
"id": 28532,
|
|
717
654
|
"nameLocation": "-1:-1:-1",
|
|
718
655
|
"nodeType": "ImportDirective",
|
|
719
|
-
"scope":
|
|
656
|
+
"scope": 28600,
|
|
720
657
|
"sourceUnit": 17851,
|
|
721
658
|
"src": "60:85:85",
|
|
722
659
|
"symbolAliases": [
|
|
723
660
|
{
|
|
724
661
|
"foreign": {
|
|
725
|
-
"id":
|
|
662
|
+
"id": 28531,
|
|
726
663
|
"name": "ISuperTokenFactory",
|
|
727
664
|
"nodeType": "Identifier",
|
|
728
665
|
"overloadedDeclarations": [],
|
|
@@ -738,16 +675,16 @@
|
|
|
738
675
|
{
|
|
739
676
|
"absolutePath": "@openzeppelin/contracts/proxy/Proxy.sol",
|
|
740
677
|
"file": "@openzeppelin/contracts/proxy/Proxy.sol",
|
|
741
|
-
"id":
|
|
678
|
+
"id": 28534,
|
|
742
679
|
"nameLocation": "-1:-1:-1",
|
|
743
680
|
"nodeType": "ImportDirective",
|
|
744
|
-
"scope":
|
|
681
|
+
"scope": 28600,
|
|
745
682
|
"sourceUnit": 689,
|
|
746
683
|
"src": "146:64:85",
|
|
747
684
|
"symbolAliases": [
|
|
748
685
|
{
|
|
749
686
|
"foreign": {
|
|
750
|
-
"id":
|
|
687
|
+
"id": 28533,
|
|
751
688
|
"name": "Proxy",
|
|
752
689
|
"nodeType": "Identifier",
|
|
753
690
|
"overloadedDeclarations": [],
|
|
@@ -765,13 +702,13 @@
|
|
|
765
702
|
"baseContracts": [
|
|
766
703
|
{
|
|
767
704
|
"baseName": {
|
|
768
|
-
"id":
|
|
705
|
+
"id": 28536,
|
|
769
706
|
"name": "Proxy",
|
|
770
707
|
"nodeType": "IdentifierPath",
|
|
771
708
|
"referencedDeclaration": 688,
|
|
772
709
|
"src": "338:5:85"
|
|
773
710
|
},
|
|
774
|
-
"id":
|
|
711
|
+
"id": 28537,
|
|
775
712
|
"nodeType": "InheritanceSpecifier",
|
|
776
713
|
"src": "338:5:85"
|
|
777
714
|
}
|
|
@@ -780,15 +717,15 @@
|
|
|
780
717
|
"contractDependencies": [],
|
|
781
718
|
"contractKind": "contract",
|
|
782
719
|
"documentation": {
|
|
783
|
-
"id":
|
|
720
|
+
"id": 28535,
|
|
784
721
|
"nodeType": "StructuredDocumentation",
|
|
785
722
|
"src": "213:82:85",
|
|
786
723
|
"text": " @title Full upgradable super token proxy contract\n @author Superfluid"
|
|
787
724
|
},
|
|
788
725
|
"fullyImplemented": true,
|
|
789
|
-
"id":
|
|
726
|
+
"id": 28599,
|
|
790
727
|
"linearizedBaseContracts": [
|
|
791
|
-
|
|
728
|
+
28599,
|
|
792
729
|
688
|
|
793
730
|
],
|
|
794
731
|
"name": "FullUpgradableSuperTokenProxy",
|
|
@@ -797,12 +734,12 @@
|
|
|
797
734
|
"nodes": [
|
|
798
735
|
{
|
|
799
736
|
"constant": true,
|
|
800
|
-
"id":
|
|
737
|
+
"id": 28540,
|
|
801
738
|
"mutability": "constant",
|
|
802
739
|
"name": "_FACTORY_SLOT",
|
|
803
740
|
"nameLocation": "476:13:85",
|
|
804
741
|
"nodeType": "VariableDeclaration",
|
|
805
|
-
"scope":
|
|
742
|
+
"scope": 28599,
|
|
806
743
|
"src": "450:108:85",
|
|
807
744
|
"stateVariable": true,
|
|
808
745
|
"storageLocation": "default",
|
|
@@ -811,7 +748,7 @@
|
|
|
811
748
|
"typeString": "bytes32"
|
|
812
749
|
},
|
|
813
750
|
"typeName": {
|
|
814
|
-
"id":
|
|
751
|
+
"id": 28538,
|
|
815
752
|
"name": "bytes32",
|
|
816
753
|
"nodeType": "ElementaryTypeName",
|
|
817
754
|
"src": "450:7:85",
|
|
@@ -822,7 +759,7 @@
|
|
|
822
759
|
},
|
|
823
760
|
"value": {
|
|
824
761
|
"hexValue": "307862386663643537313962336464663836323666333636343730356138396237666334373631323961353863316161356564613537633630306363313832316130",
|
|
825
|
-
"id":
|
|
762
|
+
"id": 28539,
|
|
826
763
|
"isConstant": false,
|
|
827
764
|
"isLValue": false,
|
|
828
765
|
"isPure": true,
|
|
@@ -840,23 +777,23 @@
|
|
|
840
777
|
},
|
|
841
778
|
{
|
|
842
779
|
"body": {
|
|
843
|
-
"id":
|
|
780
|
+
"id": 28566,
|
|
844
781
|
"nodeType": "Block",
|
|
845
782
|
"src": "600:325:85",
|
|
846
783
|
"statements": [
|
|
847
784
|
{
|
|
848
785
|
"assignments": [
|
|
849
|
-
|
|
786
|
+
28544
|
|
850
787
|
],
|
|
851
788
|
"declarations": [
|
|
852
789
|
{
|
|
853
790
|
"constant": false,
|
|
854
|
-
"id":
|
|
791
|
+
"id": 28544,
|
|
855
792
|
"mutability": "mutable",
|
|
856
793
|
"name": "factory",
|
|
857
794
|
"nameLocation": "618:7:85",
|
|
858
795
|
"nodeType": "VariableDeclaration",
|
|
859
|
-
"scope":
|
|
796
|
+
"scope": 28566,
|
|
860
797
|
"src": "610:15:85",
|
|
861
798
|
"stateVariable": false,
|
|
862
799
|
"storageLocation": "default",
|
|
@@ -865,7 +802,7 @@
|
|
|
865
802
|
"typeString": "address"
|
|
866
803
|
},
|
|
867
804
|
"typeName": {
|
|
868
|
-
"id":
|
|
805
|
+
"id": 28543,
|
|
869
806
|
"name": "address",
|
|
870
807
|
"nodeType": "ElementaryTypeName",
|
|
871
808
|
"src": "610:7:85",
|
|
@@ -878,7 +815,7 @@
|
|
|
878
815
|
"visibility": "internal"
|
|
879
816
|
}
|
|
880
817
|
],
|
|
881
|
-
"id":
|
|
818
|
+
"id": 28545,
|
|
882
819
|
"nodeType": "VariableDeclarationStatement",
|
|
883
820
|
"src": "610:15:85"
|
|
884
821
|
},
|
|
@@ -919,21 +856,21 @@
|
|
|
919
856
|
"evmVersion": "london",
|
|
920
857
|
"externalReferences": [
|
|
921
858
|
{
|
|
922
|
-
"declaration":
|
|
859
|
+
"declaration": 28540,
|
|
923
860
|
"isOffset": false,
|
|
924
861
|
"isSlot": false,
|
|
925
862
|
"src": "698:13:85",
|
|
926
863
|
"valueSize": 1
|
|
927
864
|
},
|
|
928
865
|
{
|
|
929
|
-
"declaration":
|
|
866
|
+
"declaration": 28544,
|
|
930
867
|
"isOffset": false,
|
|
931
868
|
"isSlot": false,
|
|
932
869
|
"src": "681:7:85",
|
|
933
870
|
"valueSize": 1
|
|
934
871
|
}
|
|
935
872
|
],
|
|
936
|
-
"id":
|
|
873
|
+
"id": 28546,
|
|
937
874
|
"nodeType": "InlineAssembly",
|
|
938
875
|
"src": "635:87:85"
|
|
939
876
|
},
|
|
@@ -945,7 +882,7 @@
|
|
|
945
882
|
"typeIdentifier": "t_address",
|
|
946
883
|
"typeString": "address"
|
|
947
884
|
},
|
|
948
|
-
"id":
|
|
885
|
+
"id": 28556,
|
|
949
886
|
"isConstant": false,
|
|
950
887
|
"isLValue": false,
|
|
951
888
|
"isPure": false,
|
|
@@ -953,11 +890,11 @@
|
|
|
953
890
|
"leftExpression": {
|
|
954
891
|
"arguments": [
|
|
955
892
|
{
|
|
956
|
-
"id":
|
|
893
|
+
"id": 28550,
|
|
957
894
|
"name": "factory",
|
|
958
895
|
"nodeType": "Identifier",
|
|
959
896
|
"overloadedDeclarations": [],
|
|
960
|
-
"referencedDeclaration":
|
|
897
|
+
"referencedDeclaration": 28544,
|
|
961
898
|
"src": "747:7:85",
|
|
962
899
|
"typeDescriptions": {
|
|
963
900
|
"typeIdentifier": "t_address",
|
|
@@ -972,7 +909,7 @@
|
|
|
972
909
|
"typeString": "address"
|
|
973
910
|
}
|
|
974
911
|
],
|
|
975
|
-
"id":
|
|
912
|
+
"id": 28549,
|
|
976
913
|
"isConstant": false,
|
|
977
914
|
"isLValue": false,
|
|
978
915
|
"isPure": true,
|
|
@@ -984,14 +921,14 @@
|
|
|
984
921
|
"typeString": "type(address)"
|
|
985
922
|
},
|
|
986
923
|
"typeName": {
|
|
987
|
-
"id":
|
|
924
|
+
"id": 28548,
|
|
988
925
|
"name": "address",
|
|
989
926
|
"nodeType": "ElementaryTypeName",
|
|
990
927
|
"src": "739:7:85",
|
|
991
928
|
"typeDescriptions": {}
|
|
992
929
|
}
|
|
993
930
|
},
|
|
994
|
-
"id":
|
|
931
|
+
"id": 28551,
|
|
995
932
|
"isConstant": false,
|
|
996
933
|
"isLValue": false,
|
|
997
934
|
"isPure": false,
|
|
@@ -1012,7 +949,7 @@
|
|
|
1012
949
|
"arguments": [
|
|
1013
950
|
{
|
|
1014
951
|
"hexValue": "30",
|
|
1015
|
-
"id":
|
|
952
|
+
"id": 28554,
|
|
1016
953
|
"isConstant": false,
|
|
1017
954
|
"isLValue": false,
|
|
1018
955
|
"isPure": true,
|
|
@@ -1034,7 +971,7 @@
|
|
|
1034
971
|
"typeString": "int_const 0"
|
|
1035
972
|
}
|
|
1036
973
|
],
|
|
1037
|
-
"id":
|
|
974
|
+
"id": 28553,
|
|
1038
975
|
"isConstant": false,
|
|
1039
976
|
"isLValue": false,
|
|
1040
977
|
"isPure": true,
|
|
@@ -1046,14 +983,14 @@
|
|
|
1046
983
|
"typeString": "type(address)"
|
|
1047
984
|
},
|
|
1048
985
|
"typeName": {
|
|
1049
|
-
"id":
|
|
986
|
+
"id": 28552,
|
|
1050
987
|
"name": "address",
|
|
1051
988
|
"nodeType": "ElementaryTypeName",
|
|
1052
989
|
"src": "759:7:85",
|
|
1053
990
|
"typeDescriptions": {}
|
|
1054
991
|
}
|
|
1055
992
|
},
|
|
1056
|
-
"id":
|
|
993
|
+
"id": 28555,
|
|
1057
994
|
"isConstant": false,
|
|
1058
995
|
"isLValue": false,
|
|
1059
996
|
"isPure": true,
|
|
@@ -1076,7 +1013,7 @@
|
|
|
1076
1013
|
},
|
|
1077
1014
|
{
|
|
1078
1015
|
"hexValue": "416c726561647920696e697469616c697a6564",
|
|
1079
|
-
"id":
|
|
1016
|
+
"id": 28557,
|
|
1080
1017
|
"isConstant": false,
|
|
1081
1018
|
"isLValue": false,
|
|
1082
1019
|
"isPure": true,
|
|
@@ -1102,7 +1039,7 @@
|
|
|
1102
1039
|
"typeString": "literal_string \"Already initialized\""
|
|
1103
1040
|
}
|
|
1104
1041
|
],
|
|
1105
|
-
"id":
|
|
1042
|
+
"id": 28547,
|
|
1106
1043
|
"name": "require",
|
|
1107
1044
|
"nodeType": "Identifier",
|
|
1108
1045
|
"overloadedDeclarations": [
|
|
@@ -1116,7 +1053,7 @@
|
|
|
1116
1053
|
"typeString": "function (bool,string memory) pure"
|
|
1117
1054
|
}
|
|
1118
1055
|
},
|
|
1119
|
-
"id":
|
|
1056
|
+
"id": 28558,
|
|
1120
1057
|
"isConstant": false,
|
|
1121
1058
|
"isLValue": false,
|
|
1122
1059
|
"isPure": false,
|
|
@@ -1131,23 +1068,23 @@
|
|
|
1131
1068
|
"typeString": "tuple()"
|
|
1132
1069
|
}
|
|
1133
1070
|
},
|
|
1134
|
-
"id":
|
|
1071
|
+
"id": 28559,
|
|
1135
1072
|
"nodeType": "ExpressionStatement",
|
|
1136
1073
|
"src": "731:62:85"
|
|
1137
1074
|
},
|
|
1138
1075
|
{
|
|
1139
1076
|
"expression": {
|
|
1140
|
-
"id":
|
|
1077
|
+
"id": 28563,
|
|
1141
1078
|
"isConstant": false,
|
|
1142
1079
|
"isLValue": false,
|
|
1143
1080
|
"isPure": false,
|
|
1144
1081
|
"lValueRequested": false,
|
|
1145
1082
|
"leftHandSide": {
|
|
1146
|
-
"id":
|
|
1083
|
+
"id": 28560,
|
|
1147
1084
|
"name": "factory",
|
|
1148
1085
|
"nodeType": "Identifier",
|
|
1149
1086
|
"overloadedDeclarations": [],
|
|
1150
|
-
"referencedDeclaration":
|
|
1087
|
+
"referencedDeclaration": 28544,
|
|
1151
1088
|
"src": "803:7:85",
|
|
1152
1089
|
"typeDescriptions": {
|
|
1153
1090
|
"typeIdentifier": "t_address",
|
|
@@ -1158,7 +1095,7 @@
|
|
|
1158
1095
|
"operator": "=",
|
|
1159
1096
|
"rightHandSide": {
|
|
1160
1097
|
"expression": {
|
|
1161
|
-
"id":
|
|
1098
|
+
"id": 28561,
|
|
1162
1099
|
"name": "msg",
|
|
1163
1100
|
"nodeType": "Identifier",
|
|
1164
1101
|
"overloadedDeclarations": [],
|
|
@@ -1169,7 +1106,7 @@
|
|
|
1169
1106
|
"typeString": "msg"
|
|
1170
1107
|
}
|
|
1171
1108
|
},
|
|
1172
|
-
"id":
|
|
1109
|
+
"id": 28562,
|
|
1173
1110
|
"isConstant": false,
|
|
1174
1111
|
"isLValue": false,
|
|
1175
1112
|
"isPure": false,
|
|
@@ -1188,7 +1125,7 @@
|
|
|
1188
1125
|
"typeString": "address"
|
|
1189
1126
|
}
|
|
1190
1127
|
},
|
|
1191
|
-
"id":
|
|
1128
|
+
"id": 28564,
|
|
1192
1129
|
"nodeType": "ExpressionStatement",
|
|
1193
1130
|
"src": "803:20:85"
|
|
1194
1131
|
},
|
|
@@ -1227,28 +1164,28 @@
|
|
|
1227
1164
|
"evmVersion": "london",
|
|
1228
1165
|
"externalReferences": [
|
|
1229
1166
|
{
|
|
1230
|
-
"declaration":
|
|
1167
|
+
"declaration": 28540,
|
|
1231
1168
|
"isOffset": false,
|
|
1232
1169
|
"isSlot": false,
|
|
1233
1170
|
"src": "886:13:85",
|
|
1234
1171
|
"valueSize": 1
|
|
1235
1172
|
},
|
|
1236
1173
|
{
|
|
1237
|
-
"declaration":
|
|
1174
|
+
"declaration": 28544,
|
|
1238
1175
|
"isOffset": false,
|
|
1239
1176
|
"isSlot": false,
|
|
1240
1177
|
"src": "901:7:85",
|
|
1241
1178
|
"valueSize": 1
|
|
1242
1179
|
}
|
|
1243
1180
|
],
|
|
1244
|
-
"id":
|
|
1181
|
+
"id": 28565,
|
|
1245
1182
|
"nodeType": "InlineAssembly",
|
|
1246
1183
|
"src": "833:86:85"
|
|
1247
1184
|
}
|
|
1248
1185
|
]
|
|
1249
1186
|
},
|
|
1250
1187
|
"functionSelector": "8129fc1c",
|
|
1251
|
-
"id":
|
|
1188
|
+
"id": 28567,
|
|
1252
1189
|
"implemented": true,
|
|
1253
1190
|
"kind": "function",
|
|
1254
1191
|
"modifiers": [],
|
|
@@ -1256,18 +1193,18 @@
|
|
|
1256
1193
|
"nameLocation": "574:10:85",
|
|
1257
1194
|
"nodeType": "FunctionDefinition",
|
|
1258
1195
|
"parameters": {
|
|
1259
|
-
"id":
|
|
1196
|
+
"id": 28541,
|
|
1260
1197
|
"nodeType": "ParameterList",
|
|
1261
1198
|
"parameters": [],
|
|
1262
1199
|
"src": "584:2:85"
|
|
1263
1200
|
},
|
|
1264
1201
|
"returnParameters": {
|
|
1265
|
-
"id":
|
|
1202
|
+
"id": 28542,
|
|
1266
1203
|
"nodeType": "ParameterList",
|
|
1267
1204
|
"parameters": [],
|
|
1268
1205
|
"src": "600:0:85"
|
|
1269
1206
|
},
|
|
1270
|
-
"scope":
|
|
1207
|
+
"scope": 28599,
|
|
1271
1208
|
"src": "565:360:85",
|
|
1272
1209
|
"stateMutability": "nonpayable",
|
|
1273
1210
|
"virtual": false,
|
|
@@ -1278,23 +1215,23 @@
|
|
|
1278
1215
|
653
|
|
1279
1216
|
],
|
|
1280
1217
|
"body": {
|
|
1281
|
-
"id":
|
|
1218
|
+
"id": 28597,
|
|
1282
1219
|
"nodeType": "Block",
|
|
1283
|
-
"src": "1004:
|
|
1220
|
+
"src": "1004:241:85",
|
|
1284
1221
|
"statements": [
|
|
1285
1222
|
{
|
|
1286
1223
|
"assignments": [
|
|
1287
|
-
|
|
1224
|
+
28575
|
|
1288
1225
|
],
|
|
1289
1226
|
"declarations": [
|
|
1290
1227
|
{
|
|
1291
1228
|
"constant": false,
|
|
1292
|
-
"id":
|
|
1229
|
+
"id": 28575,
|
|
1293
1230
|
"mutability": "mutable",
|
|
1294
1231
|
"name": "factory",
|
|
1295
1232
|
"nameLocation": "1033:7:85",
|
|
1296
1233
|
"nodeType": "VariableDeclaration",
|
|
1297
|
-
"scope":
|
|
1234
|
+
"scope": 28597,
|
|
1298
1235
|
"src": "1014:26:85",
|
|
1299
1236
|
"stateVariable": false,
|
|
1300
1237
|
"storageLocation": "default",
|
|
@@ -1303,10 +1240,10 @@
|
|
|
1303
1240
|
"typeString": "contract ISuperTokenFactory"
|
|
1304
1241
|
},
|
|
1305
1242
|
"typeName": {
|
|
1306
|
-
"id":
|
|
1243
|
+
"id": 28574,
|
|
1307
1244
|
"nodeType": "UserDefinedTypeName",
|
|
1308
1245
|
"pathNode": {
|
|
1309
|
-
"id":
|
|
1246
|
+
"id": 28573,
|
|
1310
1247
|
"name": "ISuperTokenFactory",
|
|
1311
1248
|
"nodeType": "IdentifierPath",
|
|
1312
1249
|
"referencedDeclaration": 17850,
|
|
@@ -1322,7 +1259,7 @@
|
|
|
1322
1259
|
"visibility": "internal"
|
|
1323
1260
|
}
|
|
1324
1261
|
],
|
|
1325
|
-
"id":
|
|
1262
|
+
"id": 28576,
|
|
1326
1263
|
"nodeType": "VariableDeclarationStatement",
|
|
1327
1264
|
"src": "1014:26:85"
|
|
1328
1265
|
},
|
|
@@ -1363,21 +1300,21 @@
|
|
|
1363
1300
|
"evmVersion": "london",
|
|
1364
1301
|
"externalReferences": [
|
|
1365
1302
|
{
|
|
1366
|
-
"declaration":
|
|
1303
|
+
"declaration": 28540,
|
|
1367
1304
|
"isOffset": false,
|
|
1368
1305
|
"isSlot": false,
|
|
1369
1306
|
"src": "1113:13:85",
|
|
1370
1307
|
"valueSize": 1
|
|
1371
1308
|
},
|
|
1372
1309
|
{
|
|
1373
|
-
"declaration":
|
|
1310
|
+
"declaration": 28575,
|
|
1374
1311
|
"isOffset": false,
|
|
1375
1312
|
"isSlot": false,
|
|
1376
1313
|
"src": "1096:7:85",
|
|
1377
1314
|
"valueSize": 1
|
|
1378
1315
|
}
|
|
1379
1316
|
],
|
|
1380
|
-
"id":
|
|
1317
|
+
"id": 28577,
|
|
1381
1318
|
"nodeType": "InlineAssembly",
|
|
1382
1319
|
"src": "1050:87:85"
|
|
1383
1320
|
},
|
|
@@ -1389,7 +1326,7 @@
|
|
|
1389
1326
|
"typeIdentifier": "t_address",
|
|
1390
1327
|
"typeString": "address"
|
|
1391
1328
|
},
|
|
1392
|
-
"id":
|
|
1329
|
+
"id": 28587,
|
|
1393
1330
|
"isConstant": false,
|
|
1394
1331
|
"isLValue": false,
|
|
1395
1332
|
"isPure": false,
|
|
@@ -1397,12 +1334,12 @@
|
|
|
1397
1334
|
"leftExpression": {
|
|
1398
1335
|
"arguments": [
|
|
1399
1336
|
{
|
|
1400
|
-
"id":
|
|
1337
|
+
"id": 28581,
|
|
1401
1338
|
"name": "factory",
|
|
1402
1339
|
"nodeType": "Identifier",
|
|
1403
1340
|
"overloadedDeclarations": [],
|
|
1404
|
-
"referencedDeclaration":
|
|
1405
|
-
"src": "
|
|
1341
|
+
"referencedDeclaration": 28575,
|
|
1342
|
+
"src": "1161:7:85",
|
|
1406
1343
|
"typeDescriptions": {
|
|
1407
1344
|
"typeIdentifier": "t_contract$_ISuperTokenFactory_$17850",
|
|
1408
1345
|
"typeString": "contract ISuperTokenFactory"
|
|
@@ -1416,26 +1353,26 @@
|
|
|
1416
1353
|
"typeString": "contract ISuperTokenFactory"
|
|
1417
1354
|
}
|
|
1418
1355
|
],
|
|
1419
|
-
"id":
|
|
1356
|
+
"id": 28580,
|
|
1420
1357
|
"isConstant": false,
|
|
1421
1358
|
"isLValue": false,
|
|
1422
1359
|
"isPure": true,
|
|
1423
1360
|
"lValueRequested": false,
|
|
1424
1361
|
"nodeType": "ElementaryTypeNameExpression",
|
|
1425
|
-
"src": "
|
|
1362
|
+
"src": "1153:7:85",
|
|
1426
1363
|
"typeDescriptions": {
|
|
1427
1364
|
"typeIdentifier": "t_type$_t_address_$",
|
|
1428
1365
|
"typeString": "type(address)"
|
|
1429
1366
|
},
|
|
1430
1367
|
"typeName": {
|
|
1431
|
-
"id":
|
|
1368
|
+
"id": 28579,
|
|
1432
1369
|
"name": "address",
|
|
1433
1370
|
"nodeType": "ElementaryTypeName",
|
|
1434
|
-
"src": "
|
|
1371
|
+
"src": "1153:7:85",
|
|
1435
1372
|
"typeDescriptions": {}
|
|
1436
1373
|
}
|
|
1437
1374
|
},
|
|
1438
|
-
"id":
|
|
1375
|
+
"id": 28582,
|
|
1439
1376
|
"isConstant": false,
|
|
1440
1377
|
"isLValue": false,
|
|
1441
1378
|
"isPure": false,
|
|
@@ -1443,7 +1380,7 @@
|
|
|
1443
1380
|
"lValueRequested": false,
|
|
1444
1381
|
"names": [],
|
|
1445
1382
|
"nodeType": "FunctionCall",
|
|
1446
|
-
"src": "
|
|
1383
|
+
"src": "1153:16:85",
|
|
1447
1384
|
"tryCall": false,
|
|
1448
1385
|
"typeDescriptions": {
|
|
1449
1386
|
"typeIdentifier": "t_address",
|
|
@@ -1456,14 +1393,14 @@
|
|
|
1456
1393
|
"arguments": [
|
|
1457
1394
|
{
|
|
1458
1395
|
"hexValue": "30",
|
|
1459
|
-
"id":
|
|
1396
|
+
"id": 28585,
|
|
1460
1397
|
"isConstant": false,
|
|
1461
1398
|
"isLValue": false,
|
|
1462
1399
|
"isPure": true,
|
|
1463
1400
|
"kind": "number",
|
|
1464
1401
|
"lValueRequested": false,
|
|
1465
1402
|
"nodeType": "Literal",
|
|
1466
|
-
"src": "
|
|
1403
|
+
"src": "1181:1:85",
|
|
1467
1404
|
"typeDescriptions": {
|
|
1468
1405
|
"typeIdentifier": "t_rational_0_by_1",
|
|
1469
1406
|
"typeString": "int_const 0"
|
|
@@ -1478,26 +1415,26 @@
|
|
|
1478
1415
|
"typeString": "int_const 0"
|
|
1479
1416
|
}
|
|
1480
1417
|
],
|
|
1481
|
-
"id":
|
|
1418
|
+
"id": 28584,
|
|
1482
1419
|
"isConstant": false,
|
|
1483
1420
|
"isLValue": false,
|
|
1484
1421
|
"isPure": true,
|
|
1485
1422
|
"lValueRequested": false,
|
|
1486
1423
|
"nodeType": "ElementaryTypeNameExpression",
|
|
1487
|
-
"src": "
|
|
1424
|
+
"src": "1173:7:85",
|
|
1488
1425
|
"typeDescriptions": {
|
|
1489
1426
|
"typeIdentifier": "t_type$_t_address_$",
|
|
1490
1427
|
"typeString": "type(address)"
|
|
1491
1428
|
},
|
|
1492
1429
|
"typeName": {
|
|
1493
|
-
"id":
|
|
1430
|
+
"id": 28583,
|
|
1494
1431
|
"name": "address",
|
|
1495
1432
|
"nodeType": "ElementaryTypeName",
|
|
1496
|
-
"src": "
|
|
1433
|
+
"src": "1173:7:85",
|
|
1497
1434
|
"typeDescriptions": {}
|
|
1498
1435
|
}
|
|
1499
1436
|
},
|
|
1500
|
-
"id":
|
|
1437
|
+
"id": 28586,
|
|
1501
1438
|
"isConstant": false,
|
|
1502
1439
|
"isLValue": false,
|
|
1503
1440
|
"isPure": true,
|
|
@@ -1505,34 +1442,18 @@
|
|
|
1505
1442
|
"lValueRequested": false,
|
|
1506
1443
|
"names": [],
|
|
1507
1444
|
"nodeType": "FunctionCall",
|
|
1508
|
-
"src": "
|
|
1445
|
+
"src": "1173:10:85",
|
|
1509
1446
|
"tryCall": false,
|
|
1510
1447
|
"typeDescriptions": {
|
|
1511
1448
|
"typeIdentifier": "t_address",
|
|
1512
1449
|
"typeString": "address"
|
|
1513
1450
|
}
|
|
1514
1451
|
},
|
|
1515
|
-
"src": "
|
|
1452
|
+
"src": "1153:30:85",
|
|
1516
1453
|
"typeDescriptions": {
|
|
1517
1454
|
"typeIdentifier": "t_bool",
|
|
1518
1455
|
"typeString": "bool"
|
|
1519
1456
|
}
|
|
1520
|
-
},
|
|
1521
|
-
{
|
|
1522
|
-
"hexValue": "4e6f7420696e697469616c697a6564",
|
|
1523
|
-
"id": 28565,
|
|
1524
|
-
"isConstant": false,
|
|
1525
|
-
"isLValue": false,
|
|
1526
|
-
"isPure": true,
|
|
1527
|
-
"kind": "string",
|
|
1528
|
-
"lValueRequested": false,
|
|
1529
|
-
"nodeType": "Literal",
|
|
1530
|
-
"src": "1186:17:85",
|
|
1531
|
-
"typeDescriptions": {
|
|
1532
|
-
"typeIdentifier": "t_stringliteral_6ae2314e839d4d9cfe442dd3a2386a5c83b76bbc48be45cca60d84c71c4359b2",
|
|
1533
|
-
"typeString": "literal_string \"Not initialized\""
|
|
1534
|
-
},
|
|
1535
|
-
"value": "Not initialized"
|
|
1536
1457
|
}
|
|
1537
1458
|
],
|
|
1538
1459
|
"expression": {
|
|
@@ -1540,27 +1461,20 @@
|
|
|
1540
1461
|
{
|
|
1541
1462
|
"typeIdentifier": "t_bool",
|
|
1542
1463
|
"typeString": "bool"
|
|
1543
|
-
},
|
|
1544
|
-
{
|
|
1545
|
-
"typeIdentifier": "t_stringliteral_6ae2314e839d4d9cfe442dd3a2386a5c83b76bbc48be45cca60d84c71c4359b2",
|
|
1546
|
-
"typeString": "literal_string \"Not initialized\""
|
|
1547
1464
|
}
|
|
1548
1465
|
],
|
|
1549
|
-
"id":
|
|
1550
|
-
"name": "
|
|
1466
|
+
"id": 28578,
|
|
1467
|
+
"name": "assert",
|
|
1551
1468
|
"nodeType": "Identifier",
|
|
1552
|
-
"overloadedDeclarations": [
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
],
|
|
1556
|
-
"referencedDeclaration": 4294967278,
|
|
1557
|
-
"src": "1146:7:85",
|
|
1469
|
+
"overloadedDeclarations": [],
|
|
1470
|
+
"referencedDeclaration": 4294967293,
|
|
1471
|
+
"src": "1146:6:85",
|
|
1558
1472
|
"typeDescriptions": {
|
|
1559
|
-
"typeIdentifier": "
|
|
1560
|
-
"typeString": "function (bool
|
|
1473
|
+
"typeIdentifier": "t_function_assert_pure$_t_bool_$returns$__$",
|
|
1474
|
+
"typeString": "function (bool) pure"
|
|
1561
1475
|
}
|
|
1562
1476
|
},
|
|
1563
|
-
"id":
|
|
1477
|
+
"id": 28588,
|
|
1564
1478
|
"isConstant": false,
|
|
1565
1479
|
"isLValue": false,
|
|
1566
1480
|
"isPure": false,
|
|
@@ -1568,16 +1482,16 @@
|
|
|
1568
1482
|
"lValueRequested": false,
|
|
1569
1483
|
"names": [],
|
|
1570
1484
|
"nodeType": "FunctionCall",
|
|
1571
|
-
"src": "1146:
|
|
1485
|
+
"src": "1146:38:85",
|
|
1572
1486
|
"tryCall": false,
|
|
1573
1487
|
"typeDescriptions": {
|
|
1574
1488
|
"typeIdentifier": "t_tuple$__$",
|
|
1575
1489
|
"typeString": "tuple()"
|
|
1576
1490
|
}
|
|
1577
1491
|
},
|
|
1578
|
-
"id":
|
|
1492
|
+
"id": 28589,
|
|
1579
1493
|
"nodeType": "ExpressionStatement",
|
|
1580
|
-
"src": "1146:
|
|
1494
|
+
"src": "1146:38:85"
|
|
1581
1495
|
},
|
|
1582
1496
|
{
|
|
1583
1497
|
"expression": {
|
|
@@ -1587,18 +1501,18 @@
|
|
|
1587
1501
|
"expression": {
|
|
1588
1502
|
"argumentTypes": [],
|
|
1589
1503
|
"expression": {
|
|
1590
|
-
"id":
|
|
1504
|
+
"id": 28592,
|
|
1591
1505
|
"name": "factory",
|
|
1592
1506
|
"nodeType": "Identifier",
|
|
1593
1507
|
"overloadedDeclarations": [],
|
|
1594
|
-
"referencedDeclaration":
|
|
1595
|
-
"src": "
|
|
1508
|
+
"referencedDeclaration": 28575,
|
|
1509
|
+
"src": "1209:7:85",
|
|
1596
1510
|
"typeDescriptions": {
|
|
1597
1511
|
"typeIdentifier": "t_contract$_ISuperTokenFactory_$17850",
|
|
1598
1512
|
"typeString": "contract ISuperTokenFactory"
|
|
1599
1513
|
}
|
|
1600
1514
|
},
|
|
1601
|
-
"id":
|
|
1515
|
+
"id": 28593,
|
|
1602
1516
|
"isConstant": false,
|
|
1603
1517
|
"isLValue": false,
|
|
1604
1518
|
"isPure": false,
|
|
@@ -1606,13 +1520,13 @@
|
|
|
1606
1520
|
"memberName": "getSuperTokenLogic",
|
|
1607
1521
|
"nodeType": "MemberAccess",
|
|
1608
1522
|
"referencedDeclaration": 17786,
|
|
1609
|
-
"src": "
|
|
1523
|
+
"src": "1209:26:85",
|
|
1610
1524
|
"typeDescriptions": {
|
|
1611
1525
|
"typeIdentifier": "t_function_external_view$__$returns$_t_contract$_ISuperToken_$17761_$",
|
|
1612
1526
|
"typeString": "function () view external returns (contract ISuperToken)"
|
|
1613
1527
|
}
|
|
1614
1528
|
},
|
|
1615
|
-
"id":
|
|
1529
|
+
"id": 28594,
|
|
1616
1530
|
"isConstant": false,
|
|
1617
1531
|
"isLValue": false,
|
|
1618
1532
|
"isPure": false,
|
|
@@ -1620,7 +1534,7 @@
|
|
|
1620
1534
|
"lValueRequested": false,
|
|
1621
1535
|
"names": [],
|
|
1622
1536
|
"nodeType": "FunctionCall",
|
|
1623
|
-
"src": "
|
|
1537
|
+
"src": "1209:28:85",
|
|
1624
1538
|
"tryCall": false,
|
|
1625
1539
|
"typeDescriptions": {
|
|
1626
1540
|
"typeIdentifier": "t_contract$_ISuperToken_$17761",
|
|
@@ -1635,26 +1549,26 @@
|
|
|
1635
1549
|
"typeString": "contract ISuperToken"
|
|
1636
1550
|
}
|
|
1637
1551
|
],
|
|
1638
|
-
"id":
|
|
1552
|
+
"id": 28591,
|
|
1639
1553
|
"isConstant": false,
|
|
1640
1554
|
"isLValue": false,
|
|
1641
1555
|
"isPure": true,
|
|
1642
1556
|
"lValueRequested": false,
|
|
1643
1557
|
"nodeType": "ElementaryTypeNameExpression",
|
|
1644
|
-
"src": "
|
|
1558
|
+
"src": "1201:7:85",
|
|
1645
1559
|
"typeDescriptions": {
|
|
1646
1560
|
"typeIdentifier": "t_type$_t_address_$",
|
|
1647
1561
|
"typeString": "type(address)"
|
|
1648
1562
|
},
|
|
1649
1563
|
"typeName": {
|
|
1650
|
-
"id":
|
|
1564
|
+
"id": 28590,
|
|
1651
1565
|
"name": "address",
|
|
1652
1566
|
"nodeType": "ElementaryTypeName",
|
|
1653
|
-
"src": "
|
|
1567
|
+
"src": "1201:7:85",
|
|
1654
1568
|
"typeDescriptions": {}
|
|
1655
1569
|
}
|
|
1656
1570
|
},
|
|
1657
|
-
"id":
|
|
1571
|
+
"id": 28595,
|
|
1658
1572
|
"isConstant": false,
|
|
1659
1573
|
"isLValue": false,
|
|
1660
1574
|
"isPure": false,
|
|
@@ -1662,21 +1576,21 @@
|
|
|
1662
1576
|
"lValueRequested": false,
|
|
1663
1577
|
"names": [],
|
|
1664
1578
|
"nodeType": "FunctionCall",
|
|
1665
|
-
"src": "
|
|
1579
|
+
"src": "1201:37:85",
|
|
1666
1580
|
"tryCall": false,
|
|
1667
1581
|
"typeDescriptions": {
|
|
1668
1582
|
"typeIdentifier": "t_address",
|
|
1669
1583
|
"typeString": "address"
|
|
1670
1584
|
}
|
|
1671
1585
|
},
|
|
1672
|
-
"functionReturnParameters":
|
|
1673
|
-
"id":
|
|
1586
|
+
"functionReturnParameters": 28572,
|
|
1587
|
+
"id": 28596,
|
|
1674
1588
|
"nodeType": "Return",
|
|
1675
|
-
"src": "
|
|
1589
|
+
"src": "1194:44:85"
|
|
1676
1590
|
}
|
|
1677
1591
|
]
|
|
1678
1592
|
},
|
|
1679
|
-
"id":
|
|
1593
|
+
"id": 28598,
|
|
1680
1594
|
"implemented": true,
|
|
1681
1595
|
"kind": "function",
|
|
1682
1596
|
"modifiers": [],
|
|
@@ -1684,29 +1598,29 @@
|
|
|
1684
1598
|
"nameLocation": "940:15:85",
|
|
1685
1599
|
"nodeType": "FunctionDefinition",
|
|
1686
1600
|
"overrides": {
|
|
1687
|
-
"id":
|
|
1601
|
+
"id": 28569,
|
|
1688
1602
|
"nodeType": "OverrideSpecifier",
|
|
1689
1603
|
"overrides": [],
|
|
1690
1604
|
"src": "967:8:85"
|
|
1691
1605
|
},
|
|
1692
1606
|
"parameters": {
|
|
1693
|
-
"id":
|
|
1607
|
+
"id": 28568,
|
|
1694
1608
|
"nodeType": "ParameterList",
|
|
1695
1609
|
"parameters": [],
|
|
1696
1610
|
"src": "955:2:85"
|
|
1697
1611
|
},
|
|
1698
1612
|
"returnParameters": {
|
|
1699
|
-
"id":
|
|
1613
|
+
"id": 28572,
|
|
1700
1614
|
"nodeType": "ParameterList",
|
|
1701
1615
|
"parameters": [
|
|
1702
1616
|
{
|
|
1703
1617
|
"constant": false,
|
|
1704
|
-
"id":
|
|
1618
|
+
"id": 28571,
|
|
1705
1619
|
"mutability": "mutable",
|
|
1706
1620
|
"name": "impl",
|
|
1707
1621
|
"nameLocation": "998:4:85",
|
|
1708
1622
|
"nodeType": "VariableDeclaration",
|
|
1709
|
-
"scope":
|
|
1623
|
+
"scope": 28598,
|
|
1710
1624
|
"src": "990:12:85",
|
|
1711
1625
|
"stateVariable": false,
|
|
1712
1626
|
"storageLocation": "default",
|
|
@@ -1715,7 +1629,7 @@
|
|
|
1715
1629
|
"typeString": "address"
|
|
1716
1630
|
},
|
|
1717
1631
|
"typeName": {
|
|
1718
|
-
"id":
|
|
1632
|
+
"id": 28570,
|
|
1719
1633
|
"name": "address",
|
|
1720
1634
|
"nodeType": "ElementaryTypeName",
|
|
1721
1635
|
"src": "990:7:85",
|
|
@@ -1730,27 +1644,27 @@
|
|
|
1730
1644
|
],
|
|
1731
1645
|
"src": "989:14:85"
|
|
1732
1646
|
},
|
|
1733
|
-
"scope":
|
|
1734
|
-
"src": "931:
|
|
1647
|
+
"scope": 28599,
|
|
1648
|
+
"src": "931:314:85",
|
|
1735
1649
|
"stateMutability": "view",
|
|
1736
1650
|
"virtual": false,
|
|
1737
1651
|
"visibility": "internal"
|
|
1738
1652
|
}
|
|
1739
1653
|
],
|
|
1740
|
-
"scope":
|
|
1741
|
-
"src": "296:
|
|
1654
|
+
"scope": 28600,
|
|
1655
|
+
"src": "296:952:85",
|
|
1742
1656
|
"usedErrors": []
|
|
1743
1657
|
}
|
|
1744
1658
|
],
|
|
1745
|
-
"src": "35:
|
|
1659
|
+
"src": "35:1214:85"
|
|
1746
1660
|
},
|
|
1747
1661
|
"compiler": {
|
|
1748
1662
|
"name": "solc",
|
|
1749
|
-
"version": "0.8.
|
|
1663
|
+
"version": "0.8.14+commit.80d49f37.Emscripten.clang"
|
|
1750
1664
|
},
|
|
1751
1665
|
"networks": {},
|
|
1752
1666
|
"schemaVersion": "3.4.7",
|
|
1753
|
-
"updatedAt": "2022-06-
|
|
1667
|
+
"updatedAt": "2022-06-20T11:32:30.020Z",
|
|
1754
1668
|
"devdoc": {
|
|
1755
1669
|
"author": "Superfluid",
|
|
1756
1670
|
"kind": "dev",
|