@etherisc/gif-next 0.0.2-bdcb44f-543 → 0.0.2-be8b3db-650
Sign up to get free protection for your applications and to get access to all the features.
- package/artifacts/contracts/components/Component.sol/Component.dbg.json +1 -1
- package/artifacts/contracts/components/Component.sol/Component.json +40 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +41 -19
- package/artifacts/contracts/components/IComponent.sol/IComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IComponent.sol/IComponent.json +40 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +41 -19
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +57 -150
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +40 -0
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +76 -189
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +40 -0
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.dbg.json +1 -1
- package/artifacts/contracts/instance/BundleManager.sol/BundleManager.json +30 -11
- package/artifacts/contracts/instance/Cloneable.sol/Cloneable.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.dbg.json +1 -1
- package/artifacts/contracts/instance/IInstance.sol/IInstance.json +32 -174
- package/artifacts/contracts/instance/IInstanceService.sol/IInstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.dbg.json +1 -1
- package/artifacts/contracts/instance/Instance.sol/Instance.json +103 -238
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceAccessManager.sol/InstanceAccessManager.json +2 -2
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceReader.sol/InstanceReader.json +73 -144
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceService.sol/InstanceService.json +32 -32
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/InstanceServiceManager.sol/InstanceServiceManager.json +17 -17
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.dbg.json +1 -1
- package/artifacts/contracts/instance/ObjectManager.sol/ObjectManager.json +2 -2
- package/artifacts/contracts/instance/base/ComponentService.sol/ComponentService.dbg.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/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +40 -10
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +36 -11
- package/artifacts/contracts/instance/module/IAccess.sol/IAccess.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IBundle.sol/IBundle.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IComponents.sol/IComponents.dbg.json +4 -0
- package/artifacts/contracts/instance/module/IComponents.sol/IComponents.json +10 -0
- package/artifacts/contracts/instance/module/IDistribution.sol/IDistribution.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IPolicy.sol/IPolicy.dbg.json +1 -1
- package/artifacts/contracts/instance/module/IRisk.sol/IRisk.dbg.json +1 -1
- package/artifacts/contracts/instance/module/ISetup.sol/ISetup.dbg.json +1 -1
- package/artifacts/contracts/instance/module/ITreasury.sol/ITreasury.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ApplicationService.sol/ApplicationService.json +14 -14
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ApplicationServiceManager.sol/ApplicationServiceManager.json +8 -8
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleService.sol/BundleService.json +132 -135
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/BundleServiceManager.sol/BundleServiceManager.json +12 -12
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ClaimService.sol/ClaimService.json +2 -2
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ClaimServiceManager.sol/ClaimServiceManager.json +2 -2
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +234 -63
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/DistributionServiceManager.sol/DistributionServiceManager.json +40 -32
- package/artifacts/contracts/instance/service/IApplicationService.sol/IApplicationService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IBundleService.sol/IBundleService.json +89 -92
- package/artifacts/contracts/instance/service/IClaimService.sol/IClaimService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +156 -1
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPolicyService.sol/IPolicyService.json +21 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +81 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyService.sol/PolicyService.json +31 -10
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PolicyServiceManager.sol/PolicyServiceManager.json +6 -6
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +105 -16
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolServiceManager.sol/PoolServiceManager.json +13 -9
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +2 -2
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductServiceManager.sol/ProductServiceManager.json +2 -2
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.json +15 -2
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryService.sol/IRegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/ITransferInterceptor.sol/ITransferInterceptor.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +4 -4
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryAccessManager.sol/RegistryAccessManager.json +2 -2
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryService.sol/RegistryService.json +12 -12
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.dbg.json +1 -1
- package/artifacts/contracts/registry/RegistryServiceManager.sol/RegistryServiceManager.json +7 -7
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.dbg.json +1 -1
- package/artifacts/contracts/registry/ReleaseManager.sol/ReleaseManager.json +3 -3
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/TokenRegistry.sol/TokenRegistry.json +2 -2
- package/artifacts/contracts/shared/ContractDeployerLib.sol/ContractDeployerLib.dbg.json +1 -1
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
- package/artifacts/contracts/shared/INftOwnable.sol/INftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/IPolicyHolder.sol/IPolicyHolder.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegisterable.sol/IRegisterable.dbg.json +1 -1
- package/artifacts/contracts/shared/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/shared/IService.sol/IService.dbg.json +1 -1
- package/artifacts/contracts/shared/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.dbg.json +1 -1
- package/artifacts/contracts/shared/NftOwnable.sol/NftOwnable.json +2 -2
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.dbg.json +1 -1
- package/artifacts/contracts/shared/PolicyHolder.sol/PolicyHolder.json +2 -2
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.dbg.json +1 -1
- package/artifacts/contracts/shared/ProxyManager.sol/ProxyManager.json +2 -2
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.json +2 -2
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/shared/RegistryLinked.sol/RegistryLinked.json +2 -2
- package/artifacts/contracts/shared/Service.sol/Service.dbg.json +1 -1
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.dbg.json +1 -1
- package/artifacts/contracts/shared/TokenHandler.sol/TokenHandler.json +2 -2
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.dbg.json +1 -1
- package/artifacts/contracts/shared/UpgradableProxyWithAdmin.sol/UpgradableProxyWithAdmin.json +2 -2
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestFee.sol/TestFee.dbg.json +1 -1
- package/artifacts/contracts/test/TestFee.sol/TestFee.json +2 -2
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.dbg.json +1 -1
- package/artifacts/contracts/test/TestRegisterable.sol/TestRegisterable.json +2 -2
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.dbg.json +1 -1
- package/artifacts/contracts/test/TestRoleId.sol/TestRoleId.json +2 -2
- package/artifacts/contracts/test/TestService.sol/TestService.dbg.json +1 -1
- package/artifacts/contracts/test/TestService.sol/TestService.json +2 -2
- 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 +2 -2
- 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/Blocknumber.sol/BlocknumberLib.json +2 -2
- package/artifacts/contracts/types/ChainId.sol/ChainIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ClaimId.sol/ClaimIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/DistributorType.sol/DistributorTypeLib.json +2 -2
- package/artifacts/contracts/types/Fee.sol/FeeLib.dbg.json +1 -1
- package/artifacts/contracts/types/Fee.sol/FeeLib.json +2 -2
- package/artifacts/contracts/types/Key32.sol/Key32Lib.dbg.json +1 -1
- package/artifacts/contracts/types/Key32.sol/Key32Lib.json +2 -2
- package/artifacts/contracts/types/NftId.sol/NftIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/NftId.sol/NftIdLib.json +17 -4
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.dbg.json +1 -1
- package/artifacts/contracts/types/NftIdSet.sol/LibNftIdSet.json +2 -2
- package/artifacts/contracts/types/NumberId.sol/NumberIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
- package/artifacts/contracts/types/PayoutId.sol/PayoutIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/Referral.sol/ReferralLib.dbg.json +1 -1
- package/artifacts/contracts/types/Referral.sol/ReferralLib.json +23 -4
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +2 -2
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +2 -2
- package/artifacts/contracts/types/Seconds.sol/SecondsLib.dbg.json +1 -1
- package/artifacts/contracts/types/StateId.sol/StateIdLib.dbg.json +1 -1
- package/artifacts/contracts/types/StateId.sol/StateIdLib.json +2 -2
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.dbg.json +1 -1
- package/artifacts/contracts/types/Timestamp.sol/TimestampLib.json +2 -2
- package/artifacts/contracts/types/UFixed.sol/MathLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/MathLib.json +2 -2
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.dbg.json +1 -1
- package/artifacts/contracts/types/UFixed.sol/UFixedLib.json +2 -2
- package/artifacts/contracts/types/Version.sol/VersionLib.dbg.json +1 -1
- package/artifacts/contracts/types/Version.sol/VersionLib.json +2 -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/Component.sol +20 -0
- package/contracts/components/Distribution.sol +0 -13
- package/contracts/components/IComponent.sol +6 -0
- package/contracts/components/IDistributionComponent.sol +0 -8
- package/contracts/components/IPoolComponent.sol +5 -43
- package/contracts/components/Pool.sol +38 -117
- package/contracts/components/Product.sol +4 -0
- package/contracts/instance/BundleManager.sol +6 -4
- package/contracts/instance/IInstance.sol +3 -2
- package/contracts/instance/IInstanceService.sol +2 -1
- package/contracts/instance/Instance.sol +8 -4
- package/contracts/instance/InstanceReader.sol +4 -3
- package/contracts/instance/InstanceService.sol +5 -6
- package/contracts/instance/base/KeyValueStore.sol +5 -2
- package/contracts/instance/base/Lifecycle.sol +11 -2
- package/contracts/instance/module/IComponents.sol +35 -0
- package/contracts/instance/module/ISetup.sol +4 -17
- package/contracts/instance/service/ApplicationService.sol +6 -5
- package/contracts/instance/service/BundleService.sol +72 -35
- package/contracts/instance/service/DistributionService.sol +75 -19
- package/contracts/instance/service/IBundleService.sol +16 -9
- package/contracts/instance/service/IDistributionService.sol +13 -1
- package/contracts/instance/service/IPolicyService.sol +2 -0
- package/contracts/instance/service/IPoolService.sol +17 -2
- package/contracts/instance/service/PolicyService.sol +46 -45
- package/contracts/instance/service/PoolService.sol +72 -18
- package/contracts/registry/ChainNft.sol +4 -0
- package/contracts/registry/Registry.sol +10 -12
- package/contracts/shared/TokenHandler.sol +11 -5
- package/contracts/types/Blocknumber.sol +1 -0
- package/contracts/types/Fee.sol +1 -0
- package/contracts/types/NftId.sol +8 -0
- package/contracts/types/ObjectType.sol +1 -0
- package/contracts/types/Referral.sol +4 -0
- package/contracts/types/StateId.sol +1 -0
- package/contracts/types/Timestamp.sol +1 -0
- package/contracts/types/UFixed.sol +1 -0
- package/contracts/types/Version.sol +1 -0
- package/package.json +1 -1
@@ -3,6 +3,38 @@
|
|
3
3
|
"contractName": "IBundleService",
|
4
4
|
"sourceName": "contracts/instance/service/IBundleService.sol",
|
5
5
|
"abi": [
|
6
|
+
{
|
7
|
+
"inputs": [
|
8
|
+
{
|
9
|
+
"internalType": "NftId",
|
10
|
+
"name": "bundleNftId",
|
11
|
+
"type": "uint96"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"internalType": "StateId",
|
15
|
+
"name": "state",
|
16
|
+
"type": "uint8"
|
17
|
+
}
|
18
|
+
],
|
19
|
+
"name": "ErrorBundleServiceBundleNotOpen",
|
20
|
+
"type": "error"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"inputs": [
|
24
|
+
{
|
25
|
+
"internalType": "NftId",
|
26
|
+
"name": "bundleNftId",
|
27
|
+
"type": "uint96"
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"internalType": "uint256",
|
31
|
+
"name": "openPoliciesCount",
|
32
|
+
"type": "uint256"
|
33
|
+
}
|
34
|
+
],
|
35
|
+
"name": "ErrorBundleServiceBundleWithOpenPolicies",
|
36
|
+
"type": "error"
|
37
|
+
},
|
6
38
|
{
|
7
39
|
"inputs": [
|
8
40
|
{
|
@@ -21,7 +53,7 @@
|
|
21
53
|
"type": "uint256"
|
22
54
|
}
|
23
55
|
],
|
24
|
-
"name": "
|
56
|
+
"name": "ErrorBundleServiceInsufficientAllowance",
|
25
57
|
"type": "error"
|
26
58
|
},
|
27
59
|
{
|
@@ -84,6 +116,58 @@
|
|
84
116
|
"name": "ErrorNotRegistry",
|
85
117
|
"type": "error"
|
86
118
|
},
|
119
|
+
{
|
120
|
+
"anonymous": false,
|
121
|
+
"inputs": [
|
122
|
+
{
|
123
|
+
"indexed": false,
|
124
|
+
"internalType": "NftId",
|
125
|
+
"name": "bundleNftId",
|
126
|
+
"type": "uint96"
|
127
|
+
}
|
128
|
+
],
|
129
|
+
"name": "LogBundleServiceBundleActivated",
|
130
|
+
"type": "event"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"anonymous": false,
|
134
|
+
"inputs": [
|
135
|
+
{
|
136
|
+
"indexed": false,
|
137
|
+
"internalType": "NftId",
|
138
|
+
"name": "bundleNftId",
|
139
|
+
"type": "uint96"
|
140
|
+
}
|
141
|
+
],
|
142
|
+
"name": "LogBundleServiceBundleClosed",
|
143
|
+
"type": "event"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"anonymous": false,
|
147
|
+
"inputs": [
|
148
|
+
{
|
149
|
+
"indexed": false,
|
150
|
+
"internalType": "NftId",
|
151
|
+
"name": "bundleNftId",
|
152
|
+
"type": "uint96"
|
153
|
+
}
|
154
|
+
],
|
155
|
+
"name": "LogBundleServiceBundleLocked",
|
156
|
+
"type": "event"
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"inputs": [
|
160
|
+
{
|
161
|
+
"internalType": "NftId",
|
162
|
+
"name": "bundleNftId",
|
163
|
+
"type": "uint96"
|
164
|
+
}
|
165
|
+
],
|
166
|
+
"name": "close",
|
167
|
+
"outputs": [],
|
168
|
+
"stateMutability": "nonpayable",
|
169
|
+
"type": "function"
|
170
|
+
},
|
87
171
|
{
|
88
172
|
"inputs": [
|
89
173
|
{
|
@@ -152,7 +236,7 @@
|
|
152
236
|
"type": "bytes"
|
153
237
|
}
|
154
238
|
],
|
155
|
-
"name": "
|
239
|
+
"name": "create",
|
156
240
|
"outputs": [
|
157
241
|
{
|
158
242
|
"internalType": "NftId",
|
@@ -360,7 +444,7 @@
|
|
360
444
|
"type": "uint96"
|
361
445
|
}
|
362
446
|
],
|
363
|
-
"name": "
|
447
|
+
"name": "lock",
|
364
448
|
"outputs": [],
|
365
449
|
"stateMutability": "nonpayable",
|
366
450
|
"type": "function"
|
@@ -488,7 +572,7 @@
|
|
488
572
|
"type": "tuple"
|
489
573
|
}
|
490
574
|
],
|
491
|
-
"name": "
|
575
|
+
"name": "setFee",
|
492
576
|
"outputs": [],
|
493
577
|
"stateMutability": "nonpayable",
|
494
578
|
"type": "function"
|
@@ -520,94 +604,7 @@
|
|
520
604
|
"type": "uint96"
|
521
605
|
}
|
522
606
|
],
|
523
|
-
"name": "
|
524
|
-
"outputs": [],
|
525
|
-
"stateMutability": "nonpayable",
|
526
|
-
"type": "function"
|
527
|
-
},
|
528
|
-
{
|
529
|
-
"inputs": [
|
530
|
-
{
|
531
|
-
"internalType": "NftId",
|
532
|
-
"name": "instanceNftId",
|
533
|
-
"type": "uint96"
|
534
|
-
},
|
535
|
-
{
|
536
|
-
"internalType": "NftId",
|
537
|
-
"name": "bundleNftId",
|
538
|
-
"type": "uint96"
|
539
|
-
},
|
540
|
-
{
|
541
|
-
"components": [
|
542
|
-
{
|
543
|
-
"internalType": "NftId",
|
544
|
-
"name": "poolNftId",
|
545
|
-
"type": "uint96"
|
546
|
-
},
|
547
|
-
{
|
548
|
-
"components": [
|
549
|
-
{
|
550
|
-
"internalType": "UFixed",
|
551
|
-
"name": "fractionalFee",
|
552
|
-
"type": "uint256"
|
553
|
-
},
|
554
|
-
{
|
555
|
-
"internalType": "uint256",
|
556
|
-
"name": "fixedFee",
|
557
|
-
"type": "uint256"
|
558
|
-
}
|
559
|
-
],
|
560
|
-
"internalType": "struct Fee",
|
561
|
-
"name": "fee",
|
562
|
-
"type": "tuple"
|
563
|
-
},
|
564
|
-
{
|
565
|
-
"internalType": "bytes",
|
566
|
-
"name": "filter",
|
567
|
-
"type": "bytes"
|
568
|
-
},
|
569
|
-
{
|
570
|
-
"internalType": "uint256",
|
571
|
-
"name": "capitalAmount",
|
572
|
-
"type": "uint256"
|
573
|
-
},
|
574
|
-
{
|
575
|
-
"internalType": "uint256",
|
576
|
-
"name": "lockedAmount",
|
577
|
-
"type": "uint256"
|
578
|
-
},
|
579
|
-
{
|
580
|
-
"internalType": "uint256",
|
581
|
-
"name": "balanceAmount",
|
582
|
-
"type": "uint256"
|
583
|
-
},
|
584
|
-
{
|
585
|
-
"internalType": "Seconds",
|
586
|
-
"name": "lifetime",
|
587
|
-
"type": "uint40"
|
588
|
-
},
|
589
|
-
{
|
590
|
-
"internalType": "Timestamp",
|
591
|
-
"name": "expiredAt",
|
592
|
-
"type": "uint40"
|
593
|
-
},
|
594
|
-
{
|
595
|
-
"internalType": "Timestamp",
|
596
|
-
"name": "closedAt",
|
597
|
-
"type": "uint40"
|
598
|
-
}
|
599
|
-
],
|
600
|
-
"internalType": "struct IBundle.BundleInfo",
|
601
|
-
"name": "bundleInfo",
|
602
|
-
"type": "tuple"
|
603
|
-
},
|
604
|
-
{
|
605
|
-
"internalType": "StateId",
|
606
|
-
"name": "state",
|
607
|
-
"type": "uint8"
|
608
|
-
}
|
609
|
-
],
|
610
|
-
"name": "updateBundle",
|
607
|
+
"name": "unlock",
|
611
608
|
"outputs": [],
|
612
609
|
"stateMutability": "nonpayable",
|
613
610
|
"type": "function"
|
package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json
CHANGED
@@ -89,6 +89,58 @@
|
|
89
89
|
"name": "ErrorIDistributionServiceExpiryTooLong",
|
90
90
|
"type": "error"
|
91
91
|
},
|
92
|
+
{
|
93
|
+
"inputs": [
|
94
|
+
{
|
95
|
+
"internalType": "uint256",
|
96
|
+
"name": "distributionFeeFixAmount",
|
97
|
+
"type": "uint256"
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"internalType": "uint256",
|
101
|
+
"name": "distributionFeeVarAmount",
|
102
|
+
"type": "uint256"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"internalType": "uint256",
|
106
|
+
"name": "distributionOwnerFeeFixAmount",
|
107
|
+
"type": "uint256"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"internalType": "uint256",
|
111
|
+
"name": "distributionOwnerFeeVarAmount",
|
112
|
+
"type": "uint256"
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"internalType": "uint256",
|
116
|
+
"name": "commissionAmount",
|
117
|
+
"type": "uint256"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"internalType": "uint256",
|
121
|
+
"name": "discountAmount",
|
122
|
+
"type": "uint256"
|
123
|
+
}
|
124
|
+
],
|
125
|
+
"name": "ErrorIDistributionServiceFeeCalculationMismatch",
|
126
|
+
"type": "error"
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"inputs": [
|
130
|
+
{
|
131
|
+
"internalType": "uint256",
|
132
|
+
"name": "transferredDistributionFeeAmount",
|
133
|
+
"type": "uint256"
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"internalType": "uint256",
|
137
|
+
"name": "expectedDistributionFeeAmount",
|
138
|
+
"type": "uint256"
|
139
|
+
}
|
140
|
+
],
|
141
|
+
"name": "ErrorIDistributionServiceInvalidFeeTransferred",
|
142
|
+
"type": "error"
|
143
|
+
},
|
92
144
|
{
|
93
145
|
"inputs": [
|
94
146
|
{
|
@@ -170,6 +222,22 @@
|
|
170
222
|
"name": "ErrorIDistributionServiceParentNftIdNotInstance",
|
171
223
|
"type": "error"
|
172
224
|
},
|
225
|
+
{
|
226
|
+
"inputs": [
|
227
|
+
{
|
228
|
+
"internalType": "NftId",
|
229
|
+
"name": "distributionNftId",
|
230
|
+
"type": "uint96"
|
231
|
+
},
|
232
|
+
{
|
233
|
+
"internalType": "ReferralId",
|
234
|
+
"name": "referralId",
|
235
|
+
"type": "bytes8"
|
236
|
+
}
|
237
|
+
],
|
238
|
+
"name": "ErrorIDistributionServiceReferralInvalid",
|
239
|
+
"type": "error"
|
240
|
+
},
|
173
241
|
{
|
174
242
|
"inputs": [
|
175
243
|
{
|
@@ -713,14 +781,101 @@
|
|
713
781
|
},
|
714
782
|
{
|
715
783
|
"inputs": [
|
784
|
+
{
|
785
|
+
"internalType": "NftId",
|
786
|
+
"name": "distributionNftId",
|
787
|
+
"type": "uint96"
|
788
|
+
},
|
716
789
|
{
|
717
790
|
"internalType": "ReferralId",
|
718
791
|
"name": "referralId",
|
719
792
|
"type": "bytes8"
|
720
793
|
},
|
794
|
+
{
|
795
|
+
"components": [
|
796
|
+
{
|
797
|
+
"internalType": "uint256",
|
798
|
+
"name": "netPremiumAmount",
|
799
|
+
"type": "uint256"
|
800
|
+
},
|
801
|
+
{
|
802
|
+
"internalType": "uint256",
|
803
|
+
"name": "fullPremiumAmount",
|
804
|
+
"type": "uint256"
|
805
|
+
},
|
806
|
+
{
|
807
|
+
"internalType": "uint256",
|
808
|
+
"name": "premiumAmount",
|
809
|
+
"type": "uint256"
|
810
|
+
},
|
811
|
+
{
|
812
|
+
"internalType": "uint256",
|
813
|
+
"name": "productFeeFixAmount",
|
814
|
+
"type": "uint256"
|
815
|
+
},
|
816
|
+
{
|
817
|
+
"internalType": "uint256",
|
818
|
+
"name": "poolFeeFixAmount",
|
819
|
+
"type": "uint256"
|
820
|
+
},
|
821
|
+
{
|
822
|
+
"internalType": "uint256",
|
823
|
+
"name": "bundleFeeFixAmount",
|
824
|
+
"type": "uint256"
|
825
|
+
},
|
826
|
+
{
|
827
|
+
"internalType": "uint256",
|
828
|
+
"name": "distributionFeeFixAmount",
|
829
|
+
"type": "uint256"
|
830
|
+
},
|
831
|
+
{
|
832
|
+
"internalType": "uint256",
|
833
|
+
"name": "productFeeVarAmount",
|
834
|
+
"type": "uint256"
|
835
|
+
},
|
836
|
+
{
|
837
|
+
"internalType": "uint256",
|
838
|
+
"name": "poolFeeVarAmount",
|
839
|
+
"type": "uint256"
|
840
|
+
},
|
841
|
+
{
|
842
|
+
"internalType": "uint256",
|
843
|
+
"name": "bundleFeeVarAmount",
|
844
|
+
"type": "uint256"
|
845
|
+
},
|
846
|
+
{
|
847
|
+
"internalType": "uint256",
|
848
|
+
"name": "distributionFeeVarAmount",
|
849
|
+
"type": "uint256"
|
850
|
+
},
|
851
|
+
{
|
852
|
+
"internalType": "uint256",
|
853
|
+
"name": "distributionOwnerFeeFixAmount",
|
854
|
+
"type": "uint256"
|
855
|
+
},
|
856
|
+
{
|
857
|
+
"internalType": "uint256",
|
858
|
+
"name": "distributionOwnerFeeVarAmount",
|
859
|
+
"type": "uint256"
|
860
|
+
},
|
861
|
+
{
|
862
|
+
"internalType": "uint256",
|
863
|
+
"name": "commissionAmount",
|
864
|
+
"type": "uint256"
|
865
|
+
},
|
866
|
+
{
|
867
|
+
"internalType": "uint256",
|
868
|
+
"name": "discountAmount",
|
869
|
+
"type": "uint256"
|
870
|
+
}
|
871
|
+
],
|
872
|
+
"internalType": "struct IPolicy.Premium",
|
873
|
+
"name": "premium",
|
874
|
+
"type": "tuple"
|
875
|
+
},
|
721
876
|
{
|
722
877
|
"internalType": "uint256",
|
723
|
-
"name": "
|
878
|
+
"name": "transferredDistributionFeeAmount",
|
724
879
|
"type": "uint256"
|
725
880
|
}
|
726
881
|
],
|
@@ -110,6 +110,27 @@
|
|
110
110
|
"name": "ErrorIPolicyServicePremiumAlreadyPaid",
|
111
111
|
"type": "error"
|
112
112
|
},
|
113
|
+
{
|
114
|
+
"inputs": [
|
115
|
+
{
|
116
|
+
"internalType": "NftId",
|
117
|
+
"name": "policyNftId",
|
118
|
+
"type": "uint96"
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"internalType": "uint256",
|
122
|
+
"name": "premiumAmount",
|
123
|
+
"type": "uint256"
|
124
|
+
},
|
125
|
+
{
|
126
|
+
"internalType": "uint256",
|
127
|
+
"name": "recalculatedPremiumAmount",
|
128
|
+
"type": "uint256"
|
129
|
+
}
|
130
|
+
],
|
131
|
+
"name": "ErrorIPolicyServicePremiumMismatch",
|
132
|
+
"type": "error"
|
133
|
+
},
|
113
134
|
{
|
114
135
|
"inputs": [
|
115
136
|
{
|
@@ -63,6 +63,61 @@
|
|
63
63
|
"name": "ErrorNotRegistry",
|
64
64
|
"type": "error"
|
65
65
|
},
|
66
|
+
{
|
67
|
+
"inputs": [
|
68
|
+
{
|
69
|
+
"internalType": "NftId",
|
70
|
+
"name": "poolNftId",
|
71
|
+
"type": "uint96"
|
72
|
+
}
|
73
|
+
],
|
74
|
+
"name": "ErrorPoolServiceBundleOwnerRoleAlreadySet",
|
75
|
+
"type": "error"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"anonymous": false,
|
79
|
+
"inputs": [
|
80
|
+
{
|
81
|
+
"indexed": false,
|
82
|
+
"internalType": "NftId",
|
83
|
+
"name": "poolNftId",
|
84
|
+
"type": "uint96"
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"indexed": false,
|
88
|
+
"internalType": "RoleId",
|
89
|
+
"name": "bundleOwnerRole",
|
90
|
+
"type": "uint64"
|
91
|
+
}
|
92
|
+
],
|
93
|
+
"name": "LogPoolServiceBundleOwnerRoleSet",
|
94
|
+
"type": "event"
|
95
|
+
},
|
96
|
+
{
|
97
|
+
"anonymous": false,
|
98
|
+
"inputs": [
|
99
|
+
{
|
100
|
+
"indexed": false,
|
101
|
+
"internalType": "NftId",
|
102
|
+
"name": "poolNftId",
|
103
|
+
"type": "uint96"
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"indexed": false,
|
107
|
+
"internalType": "uint256",
|
108
|
+
"name": "previousMaxCapitalAmount",
|
109
|
+
"type": "uint256"
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"indexed": false,
|
113
|
+
"internalType": "uint256",
|
114
|
+
"name": "currentMaxCapitalAmount",
|
115
|
+
"type": "uint256"
|
116
|
+
}
|
117
|
+
],
|
118
|
+
"name": "LogPoolServiceMaxCapitalAmountUpdated",
|
119
|
+
"type": "event"
|
120
|
+
},
|
66
121
|
{
|
67
122
|
"inputs": [],
|
68
123
|
"name": "getDomain",
|
@@ -248,6 +303,19 @@
|
|
248
303
|
"stateMutability": "nonpayable",
|
249
304
|
"type": "function"
|
250
305
|
},
|
306
|
+
{
|
307
|
+
"inputs": [
|
308
|
+
{
|
309
|
+
"internalType": "RoleId",
|
310
|
+
"name": "bundleOwnerRole",
|
311
|
+
"type": "uint64"
|
312
|
+
}
|
313
|
+
],
|
314
|
+
"name": "setBundleOwnerRole",
|
315
|
+
"outputs": [],
|
316
|
+
"stateMutability": "nonpayable",
|
317
|
+
"type": "function"
|
318
|
+
},
|
251
319
|
{
|
252
320
|
"inputs": [
|
253
321
|
{
|
@@ -307,6 +375,19 @@
|
|
307
375
|
"stateMutability": "nonpayable",
|
308
376
|
"type": "function"
|
309
377
|
},
|
378
|
+
{
|
379
|
+
"inputs": [
|
380
|
+
{
|
381
|
+
"internalType": "uint256",
|
382
|
+
"name": "maxCapitalAmount",
|
383
|
+
"type": "uint256"
|
384
|
+
}
|
385
|
+
],
|
386
|
+
"name": "setMaxCapitalAmount",
|
387
|
+
"outputs": [],
|
388
|
+
"stateMutability": "nonpayable",
|
389
|
+
"type": "function"
|
390
|
+
},
|
310
391
|
{
|
311
392
|
"inputs": [
|
312
393
|
{
|