@etherisc/gif-next 0.0.2-cc4a5cb-898 → 0.0.2-cd89a0b-062
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +40 -25
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.json +80 -41
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +101 -61
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.json +43 -40
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +55 -52
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +100 -113
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +50 -47
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +150 -126
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +110 -52
- package/artifacts/contracts/experiment/errors/Require.sol/Require.dbg.json +1 -1
- package/artifacts/contracts/experiment/errors/Revert.sol/Revert.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/A.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/A.sol/AShared.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/B.sol/B.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/C.sol/C.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/IA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IA.sol/ISharedA.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IB.sol/IB.dbg.json +1 -1
- package/artifacts/contracts/experiment/inheritance/IC.sol/IC.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/Dummy.sol/LifeCycleModule.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/ISM.sol/ISMEE.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SM.sol/SM.dbg.json +1 -1
- package/artifacts/contracts/experiment/statemachine/SimpleStateMachine.sol/SimpleStateMachine.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeA.sol/TypeALib.dbg.json +1 -1
- package/artifacts/contracts/experiment/types/TypeB.sol/TypeBLib.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +256 -91
- package/artifacts/contracts/instance/IInstanceLinked.sol/IInstanceLinked.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +364 -170
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.json +139 -46
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +1 -1
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ILifecycle.sol/ILifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IService.sol/IService.json +99 -55
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +139 -59
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ModuleBase.sol/ModuleBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/ServiceBase.sol/ServiceBase.json +135 -55
- package/artifacts/contracts/instance/module/access/Access.sol/AccessModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/access/IAccess.sol/IAccessModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/BundleModule.sol/BundleModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/bundle/IBundle.sol/IBundleModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponent.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/IComponent.sol/IComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +2 -2
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +1 -1
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicy.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/IPolicy.sol/IPolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPool.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/IPoolModule.sol/IPoolModule.json +29 -9
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +28 -8
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRisk.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/IRisk.sol/IRiskModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +2 -2
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasury.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/ITreasury.sol/ITreasuryModule.json +138 -11
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/TokenHandler.sol/TokenHandler.json +2 -2
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/treasury/TreasuryModule.sol/TreasuryModule.json +138 -11
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +245 -86
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +167 -61
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.json +99 -74
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +99 -55
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +104 -60
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +104 -60
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +169 -63
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +197 -91
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +141 -12
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.json +5 -0
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.json +293 -40
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.json +668 -0
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +4 -0
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.json +34 -0
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +483 -120
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +885 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +4 -0
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +460 -0
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +4 -0
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.json +107 -0
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/ERC165.sol/ERC165.json +2 -2
- package/artifacts/contracts/shared/IOwnable.sol/IOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.json +43 -40
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.json +55 -14
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +4 -0
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +132 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +4 -0
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +344 -0
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +76 -37
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +4 -0
- package/artifacts/contracts/shared/{Proxy.sol/ProxyWithProxyAdminGetter.json → UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json} +4 -4
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
- package/artifacts/contracts/shared/Versionable.sol/Versionable.json +78 -14
- package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +1 -1
- package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +101 -61
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestPool.sol/TestPool.dbg.json +1 -1
- package/artifacts/contracts/test/TestPool.sol/TestPool.json +150 -126
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +1 -1
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +115 -58
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +93 -39
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +161 -68
- package/artifacts/contracts/test/TestToken.sol/TestUsdc.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersion.sol/TestVersion.json +2 -2
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestVersionable.sol/TestVersionable.json +89 -25
- package/artifacts/contracts/test/Usdc.sol/USDC.dbg.json +1 -1
- package/artifacts/contracts/types/AddressSet.sol/LibAddressSet.dbg.json +1 -1
- package/artifacts/contracts/types/Blocknumber.sol/BlocknumberLib.dbg.json +1 -1
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedMathLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.json +40 -2
- package/artifacts/contracts/types/Version.sol/VersionPartLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionPartLib.json +2 -2
- package/contracts/components/BaseComponent.sol +12 -27
- package/contracts/components/Distribution.sol +29 -6
- package/contracts/components/IBaseComponent.sol +2 -2
- package/contracts/components/IPoolComponent.sol +2 -8
- package/contracts/components/IProductComponent.sol +2 -1
- package/contracts/components/Pool.sol +84 -73
- package/contracts/components/Product.sol +85 -13
- package/contracts/instance/IInstance.sol +4 -3
- package/contracts/instance/Instance.sol +14 -3
- package/contracts/instance/base/ComponentServiceBase.sol +13 -6
- package/contracts/instance/base/IInstanceBase.sol +3 -2
- package/contracts/instance/base/InstanceBase.sol +6 -8
- package/contracts/instance/base/ServiceBase.sol +19 -13
- package/contracts/instance/module/component/ComponentModule.sol +5 -4
- package/contracts/instance/module/component/IComponent.sol +2 -2
- package/contracts/instance/module/pool/IPoolModule.sol +4 -3
- package/contracts/instance/module/pool/PoolModule.sol +12 -7
- package/contracts/instance/module/treasury/ITreasury.sol +7 -5
- package/contracts/instance/module/treasury/TokenHandler.sol +2 -2
- package/contracts/instance/module/treasury/TreasuryModule.sol +21 -28
- package/contracts/instance/service/ComponentOwnerService.sol +181 -66
- package/contracts/instance/service/DistributionService.sol +6 -11
- package/contracts/instance/service/IComponentOwnerService.sol +0 -2
- package/contracts/instance/service/PoolService.sol +19 -19
- package/contracts/instance/service/ProductService.sol +20 -20
- package/contracts/registry/ChainNft.sol +43 -15
- package/contracts/registry/IChainNft.sol +3 -2
- package/contracts/registry/IRegistry.sol +44 -28
- package/contracts/registry/IRegistryService.sol +29 -0
- package/contracts/registry/ITransferInterceptor.sol +6 -0
- package/contracts/registry/Registry.sol +382 -273
- package/contracts/registry/RegistryService.sol +375 -0
- package/contracts/registry/RegistryServiceManager.sol +52 -0
- package/contracts/shared/ContractDeployerLib.sol +72 -0
- package/contracts/shared/ERC165.sol +1 -1
- package/contracts/shared/IRegisterable.sol +7 -9
- package/contracts/shared/IVersionable.sol +55 -11
- package/contracts/shared/NftOwnable.sol +87 -0
- package/contracts/shared/ProxyManager.sol +103 -0
- package/contracts/shared/Registerable.sol +74 -43
- package/contracts/shared/UpgradableProxyWithAdmin.sol +16 -0
- package/contracts/shared/Versionable.sol +112 -54
- package/contracts/test/TestDistribution.sol +3 -2
- package/contracts/test/TestPool.sol +4 -2
- package/contracts/test/TestProduct.sol +4 -2
- package/contracts/test/TestRegisterable.sol +5 -6
- package/contracts/test/TestService.sol +5 -11
- package/contracts/types/Version.sol +9 -0
- package/package.json +1 -1
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +0 -4
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.json +0 -24
- package/artifacts/contracts/shared/Proxy.sol/Proxy.dbg.json +0 -4
- package/artifacts/contracts/shared/Proxy.sol/Proxy.json +0 -178
- package/artifacts/contracts/shared/Proxy.sol/ProxyWithProxyAdminGetter.dbg.json +0 -4
- package/contracts/experiment/statemachine/README.md +0 -112
- package/contracts/registry/IRegistryLinked.sol +0 -8
- package/contracts/shared/Proxy.sol +0 -83
@@ -88,27 +88,9 @@
|
|
88
88
|
"type": "address"
|
89
89
|
}
|
90
90
|
],
|
91
|
-
"name": "
|
91
|
+
"name": "LogVersionableInitialized",
|
92
92
|
"type": "event"
|
93
93
|
},
|
94
|
-
{
|
95
|
-
"inputs": [
|
96
|
-
{
|
97
|
-
"internalType": "address",
|
98
|
-
"name": "implementation",
|
99
|
-
"type": "address"
|
100
|
-
},
|
101
|
-
{
|
102
|
-
"internalType": "address",
|
103
|
-
"name": "activatedBy",
|
104
|
-
"type": "address"
|
105
|
-
}
|
106
|
-
],
|
107
|
-
"name": "activate",
|
108
|
-
"outputs": [],
|
109
|
-
"stateMutability": "nonpayable",
|
110
|
-
"type": "function"
|
111
|
-
},
|
112
94
|
{
|
113
95
|
"inputs": [
|
114
96
|
{
|
@@ -535,19 +517,6 @@
|
|
535
517
|
"stateMutability": "view",
|
536
518
|
"type": "function"
|
537
519
|
},
|
538
|
-
{
|
539
|
-
"inputs": [],
|
540
|
-
"name": "getData",
|
541
|
-
"outputs": [
|
542
|
-
{
|
543
|
-
"internalType": "bytes",
|
544
|
-
"name": "data",
|
545
|
-
"type": "bytes"
|
546
|
-
}
|
547
|
-
],
|
548
|
-
"stateMutability": "view",
|
549
|
-
"type": "function"
|
550
|
-
},
|
551
520
|
{
|
552
521
|
"inputs": [],
|
553
522
|
"name": "getDistributionService",
|
@@ -599,12 +568,54 @@
|
|
599
568
|
},
|
600
569
|
{
|
601
570
|
"inputs": [],
|
602
|
-
"name": "
|
571
|
+
"name": "getInitialInfo",
|
603
572
|
"outputs": [
|
604
573
|
{
|
605
|
-
"
|
606
|
-
|
607
|
-
|
574
|
+
"components": [
|
575
|
+
{
|
576
|
+
"internalType": "NftId",
|
577
|
+
"name": "nftId",
|
578
|
+
"type": "uint96"
|
579
|
+
},
|
580
|
+
{
|
581
|
+
"internalType": "NftId",
|
582
|
+
"name": "parentNftId",
|
583
|
+
"type": "uint96"
|
584
|
+
},
|
585
|
+
{
|
586
|
+
"internalType": "ObjectType",
|
587
|
+
"name": "objectType",
|
588
|
+
"type": "uint8"
|
589
|
+
},
|
590
|
+
{
|
591
|
+
"internalType": "bool",
|
592
|
+
"name": "isInterceptor",
|
593
|
+
"type": "bool"
|
594
|
+
},
|
595
|
+
{
|
596
|
+
"internalType": "address",
|
597
|
+
"name": "objectAddress",
|
598
|
+
"type": "address"
|
599
|
+
},
|
600
|
+
{
|
601
|
+
"internalType": "address",
|
602
|
+
"name": "initialOwner",
|
603
|
+
"type": "address"
|
604
|
+
},
|
605
|
+
{
|
606
|
+
"internalType": "bytes",
|
607
|
+
"name": "data",
|
608
|
+
"type": "bytes"
|
609
|
+
}
|
610
|
+
],
|
611
|
+
"internalType": "struct IRegistry.ObjectInfo",
|
612
|
+
"name": "",
|
613
|
+
"type": "tuple"
|
614
|
+
},
|
615
|
+
{
|
616
|
+
"internalType": "bytes",
|
617
|
+
"name": "data",
|
618
|
+
"type": "bytes"
|
608
619
|
}
|
609
620
|
],
|
610
621
|
"stateMutability": "view",
|
@@ -612,12 +623,12 @@
|
|
612
623
|
},
|
613
624
|
{
|
614
625
|
"inputs": [],
|
615
|
-
"name": "
|
626
|
+
"name": "getInitializedVersion",
|
616
627
|
"outputs": [
|
617
628
|
{
|
618
|
-
"internalType": "
|
619
|
-
"name": "
|
620
|
-
"type": "
|
629
|
+
"internalType": "uint64",
|
630
|
+
"name": "",
|
631
|
+
"type": "uint64"
|
621
632
|
}
|
622
633
|
],
|
623
634
|
"stateMutability": "view",
|
@@ -625,11 +636,11 @@
|
|
625
636
|
},
|
626
637
|
{
|
627
638
|
"inputs": [],
|
628
|
-
"name": "
|
639
|
+
"name": "getKeyValueStore",
|
629
640
|
"outputs": [
|
630
641
|
{
|
631
|
-
"internalType": "
|
632
|
-
"name": "
|
642
|
+
"internalType": "contract IKeyValueStore",
|
643
|
+
"name": "keyValueStore",
|
633
644
|
"type": "address"
|
634
645
|
}
|
635
646
|
],
|
@@ -638,7 +649,7 @@
|
|
638
649
|
},
|
639
650
|
{
|
640
651
|
"inputs": [],
|
641
|
-
"name": "
|
652
|
+
"name": "getNftId",
|
642
653
|
"outputs": [
|
643
654
|
{
|
644
655
|
"internalType": "NftId",
|
@@ -649,6 +660,19 @@
|
|
649
660
|
"stateMutability": "view",
|
650
661
|
"type": "function"
|
651
662
|
},
|
663
|
+
{
|
664
|
+
"inputs": [],
|
665
|
+
"name": "getOwner",
|
666
|
+
"outputs": [
|
667
|
+
{
|
668
|
+
"internalType": "address",
|
669
|
+
"name": "owner",
|
670
|
+
"type": "address"
|
671
|
+
}
|
672
|
+
],
|
673
|
+
"stateMutability": "view",
|
674
|
+
"type": "function"
|
675
|
+
},
|
652
676
|
{
|
653
677
|
"inputs": [
|
654
678
|
{
|
@@ -1166,19 +1190,6 @@
|
|
1166
1190
|
"stateMutability": "view",
|
1167
1191
|
"type": "function"
|
1168
1192
|
},
|
1169
|
-
{
|
1170
|
-
"inputs": [],
|
1171
|
-
"name": "getType",
|
1172
|
-
"outputs": [
|
1173
|
-
{
|
1174
|
-
"internalType": "ObjectType",
|
1175
|
-
"name": "objectType",
|
1176
|
-
"type": "uint8"
|
1177
|
-
}
|
1178
|
-
],
|
1179
|
-
"stateMutability": "pure",
|
1180
|
-
"type": "function"
|
1181
|
-
},
|
1182
1193
|
{
|
1183
1194
|
"inputs": [
|
1184
1195
|
{
|
@@ -1399,6 +1410,29 @@
|
|
1399
1410
|
"stateMutability": "view",
|
1400
1411
|
"type": "function"
|
1401
1412
|
},
|
1413
|
+
{
|
1414
|
+
"inputs": [
|
1415
|
+
{
|
1416
|
+
"internalType": "address",
|
1417
|
+
"name": "implementation",
|
1418
|
+
"type": "address"
|
1419
|
+
},
|
1420
|
+
{
|
1421
|
+
"internalType": "address",
|
1422
|
+
"name": "activatedBy",
|
1423
|
+
"type": "address"
|
1424
|
+
},
|
1425
|
+
{
|
1426
|
+
"internalType": "bytes",
|
1427
|
+
"name": "activationData",
|
1428
|
+
"type": "bytes"
|
1429
|
+
}
|
1430
|
+
],
|
1431
|
+
"name": "initialize",
|
1432
|
+
"outputs": [],
|
1433
|
+
"stateMutability": "nonpayable",
|
1434
|
+
"type": "function"
|
1435
|
+
},
|
1402
1436
|
{
|
1403
1437
|
"inputs": [
|
1404
1438
|
{
|
@@ -1407,7 +1441,7 @@
|
|
1407
1441
|
"type": "uint24"
|
1408
1442
|
}
|
1409
1443
|
],
|
1410
|
-
"name": "
|
1444
|
+
"name": "isInitialized",
|
1411
1445
|
"outputs": [
|
1412
1446
|
{
|
1413
1447
|
"internalType": "bool",
|
@@ -1418,19 +1452,6 @@
|
|
1418
1452
|
"stateMutability": "view",
|
1419
1453
|
"type": "function"
|
1420
1454
|
},
|
1421
|
-
{
|
1422
|
-
"inputs": [],
|
1423
|
-
"name": "register",
|
1424
|
-
"outputs": [
|
1425
|
-
{
|
1426
|
-
"internalType": "NftId",
|
1427
|
-
"name": "nftId",
|
1428
|
-
"type": "uint96"
|
1429
|
-
}
|
1430
|
-
],
|
1431
|
-
"stateMutability": "nonpayable",
|
1432
|
-
"type": "function"
|
1433
|
-
},
|
1434
1455
|
{
|
1435
1456
|
"inputs": [
|
1436
1457
|
{
|
@@ -1458,18 +1479,25 @@
|
|
1458
1479
|
"inputs": [
|
1459
1480
|
{
|
1460
1481
|
"internalType": "NftId",
|
1461
|
-
"name": "
|
1482
|
+
"name": "nftId",
|
1462
1483
|
"type": "uint96"
|
1463
1484
|
},
|
1464
1485
|
{
|
1465
|
-
"
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1486
|
+
"components": [
|
1487
|
+
{
|
1488
|
+
"internalType": "bool",
|
1489
|
+
"name": "isVerifying",
|
1490
|
+
"type": "bool"
|
1491
|
+
},
|
1492
|
+
{
|
1493
|
+
"internalType": "UFixed",
|
1494
|
+
"name": "collateralizationLevel",
|
1495
|
+
"type": "uint256"
|
1496
|
+
}
|
1497
|
+
],
|
1498
|
+
"internalType": "struct IPool.PoolInfo",
|
1499
|
+
"name": "info",
|
1500
|
+
"type": "tuple"
|
1473
1501
|
}
|
1474
1502
|
],
|
1475
1503
|
"name": "registerPool",
|
@@ -1480,19 +1508,133 @@
|
|
1480
1508
|
{
|
1481
1509
|
"inputs": [
|
1482
1510
|
{
|
1483
|
-
"internalType": "
|
1484
|
-
"name": "
|
1485
|
-
"type": "
|
1486
|
-
},
|
1487
|
-
{
|
1488
|
-
"internalType": "contract IPoolComponent",
|
1489
|
-
"name": "pool",
|
1490
|
-
"type": "address"
|
1511
|
+
"internalType": "NftId",
|
1512
|
+
"name": "productNftId",
|
1513
|
+
"type": "uint96"
|
1491
1514
|
},
|
1492
1515
|
{
|
1493
|
-
"
|
1494
|
-
|
1495
|
-
|
1516
|
+
"components": [
|
1517
|
+
{
|
1518
|
+
"internalType": "NftId",
|
1519
|
+
"name": "poolNftId",
|
1520
|
+
"type": "uint96"
|
1521
|
+
},
|
1522
|
+
{
|
1523
|
+
"internalType": "NftId",
|
1524
|
+
"name": "distributionNftId",
|
1525
|
+
"type": "uint96"
|
1526
|
+
},
|
1527
|
+
{
|
1528
|
+
"internalType": "contract IERC20Metadata",
|
1529
|
+
"name": "token",
|
1530
|
+
"type": "address"
|
1531
|
+
},
|
1532
|
+
{
|
1533
|
+
"components": [
|
1534
|
+
{
|
1535
|
+
"internalType": "UFixed",
|
1536
|
+
"name": "fractionalFee",
|
1537
|
+
"type": "uint256"
|
1538
|
+
},
|
1539
|
+
{
|
1540
|
+
"internalType": "uint256",
|
1541
|
+
"name": "fixedFee",
|
1542
|
+
"type": "uint256"
|
1543
|
+
}
|
1544
|
+
],
|
1545
|
+
"internalType": "struct Fee",
|
1546
|
+
"name": "productFee",
|
1547
|
+
"type": "tuple"
|
1548
|
+
},
|
1549
|
+
{
|
1550
|
+
"components": [
|
1551
|
+
{
|
1552
|
+
"internalType": "UFixed",
|
1553
|
+
"name": "fractionalFee",
|
1554
|
+
"type": "uint256"
|
1555
|
+
},
|
1556
|
+
{
|
1557
|
+
"internalType": "uint256",
|
1558
|
+
"name": "fixedFee",
|
1559
|
+
"type": "uint256"
|
1560
|
+
}
|
1561
|
+
],
|
1562
|
+
"internalType": "struct Fee",
|
1563
|
+
"name": "processingFee",
|
1564
|
+
"type": "tuple"
|
1565
|
+
},
|
1566
|
+
{
|
1567
|
+
"components": [
|
1568
|
+
{
|
1569
|
+
"internalType": "UFixed",
|
1570
|
+
"name": "fractionalFee",
|
1571
|
+
"type": "uint256"
|
1572
|
+
},
|
1573
|
+
{
|
1574
|
+
"internalType": "uint256",
|
1575
|
+
"name": "fixedFee",
|
1576
|
+
"type": "uint256"
|
1577
|
+
}
|
1578
|
+
],
|
1579
|
+
"internalType": "struct Fee",
|
1580
|
+
"name": "poolFee",
|
1581
|
+
"type": "tuple"
|
1582
|
+
},
|
1583
|
+
{
|
1584
|
+
"components": [
|
1585
|
+
{
|
1586
|
+
"internalType": "UFixed",
|
1587
|
+
"name": "fractionalFee",
|
1588
|
+
"type": "uint256"
|
1589
|
+
},
|
1590
|
+
{
|
1591
|
+
"internalType": "uint256",
|
1592
|
+
"name": "fixedFee",
|
1593
|
+
"type": "uint256"
|
1594
|
+
}
|
1595
|
+
],
|
1596
|
+
"internalType": "struct Fee",
|
1597
|
+
"name": "stakingFee",
|
1598
|
+
"type": "tuple"
|
1599
|
+
},
|
1600
|
+
{
|
1601
|
+
"components": [
|
1602
|
+
{
|
1603
|
+
"internalType": "UFixed",
|
1604
|
+
"name": "fractionalFee",
|
1605
|
+
"type": "uint256"
|
1606
|
+
},
|
1607
|
+
{
|
1608
|
+
"internalType": "uint256",
|
1609
|
+
"name": "fixedFee",
|
1610
|
+
"type": "uint256"
|
1611
|
+
}
|
1612
|
+
],
|
1613
|
+
"internalType": "struct Fee",
|
1614
|
+
"name": "performanceFee",
|
1615
|
+
"type": "tuple"
|
1616
|
+
},
|
1617
|
+
{
|
1618
|
+
"components": [
|
1619
|
+
{
|
1620
|
+
"internalType": "UFixed",
|
1621
|
+
"name": "fractionalFee",
|
1622
|
+
"type": "uint256"
|
1623
|
+
},
|
1624
|
+
{
|
1625
|
+
"internalType": "uint256",
|
1626
|
+
"name": "fixedFee",
|
1627
|
+
"type": "uint256"
|
1628
|
+
}
|
1629
|
+
],
|
1630
|
+
"internalType": "struct Fee",
|
1631
|
+
"name": "distributionFee",
|
1632
|
+
"type": "tuple"
|
1633
|
+
}
|
1634
|
+
],
|
1635
|
+
"internalType": "struct ITreasury.TreasuryInfo",
|
1636
|
+
"name": "info",
|
1637
|
+
"type": "tuple"
|
1496
1638
|
}
|
1497
1639
|
],
|
1498
1640
|
"name": "registerProductSetup",
|
@@ -1998,6 +2140,29 @@
|
|
1998
2140
|
"outputs": [],
|
1999
2141
|
"stateMutability": "nonpayable",
|
2000
2142
|
"type": "function"
|
2143
|
+
},
|
2144
|
+
{
|
2145
|
+
"inputs": [
|
2146
|
+
{
|
2147
|
+
"internalType": "address",
|
2148
|
+
"name": "implementation",
|
2149
|
+
"type": "address"
|
2150
|
+
},
|
2151
|
+
{
|
2152
|
+
"internalType": "address",
|
2153
|
+
"name": "activatedBy",
|
2154
|
+
"type": "address"
|
2155
|
+
},
|
2156
|
+
{
|
2157
|
+
"internalType": "bytes",
|
2158
|
+
"name": "upgradeData",
|
2159
|
+
"type": "bytes"
|
2160
|
+
}
|
2161
|
+
],
|
2162
|
+
"name": "upgrade",
|
2163
|
+
"outputs": [],
|
2164
|
+
"stateMutability": "nonpayable",
|
2165
|
+
"type": "function"
|
2001
2166
|
}
|
2002
2167
|
],
|
2003
2168
|
"bytecode": "0x",
|