@etherisc/gif-next 0.0.2-d3ee0cc-268 → 0.0.2-d408403-475
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +38 -11
- package/artifacts/contracts/components/BaseComponent.sol/BaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/Distribution.sol/Distribution.dbg.json +4 -0
- package/artifacts/contracts/components/Distribution.sol/Distribution.json +405 -0
- package/artifacts/contracts/components/IBaseComponent.sol/IBaseComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.dbg.json +4 -0
- package/artifacts/contracts/components/IDistributionComponent.sol/IDistributionComponent.json +340 -0
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IPoolComponent.sol/IPoolComponent.json +131 -0
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.dbg.json +1 -1
- package/artifacts/contracts/components/IProductComponent.sol/IProductComponent.json +109 -18
- package/artifacts/contracts/components/Pool.sol/Pool.dbg.json +1 -1
- package/artifacts/contracts/components/Pool.sol/Pool.json +194 -3
- package/artifacts/contracts/components/Product.sol/Product.dbg.json +1 -1
- package/artifacts/contracts/components/Product.sol/Product.json +160 -21
- 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/Dummy.sol/LifeCycleModule.json +2 -2
- 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 +592 -451
- 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 +735 -506
- package/artifacts/contracts/instance/base/ComponentServiceBase.sol/ComponentServiceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IInstanceBase.sol/IInstanceBase.json +50 -0
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/IKeyValueStore.sol/IKeyValueStore.json +49 -0
- 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/InstanceBase.sol/InstanceBase.dbg.json +1 -1
- package/artifacts/contracts/instance/base/InstanceBase.sol/InstanceBase.json +50 -0
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.dbg.json +1 -1
- package/artifacts/contracts/instance/base/KeyValueStore.sol/KeyValueStore.json +41 -23
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.dbg.json +1 -1
- package/artifacts/contracts/instance/base/Lifecycle.sol/Lifecycle.json +4 -4
- 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/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/BundleModule.sol/BundleModule.json +55 -54
- 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/bundle/IBundle.sol/IBundleModule.json +56 -55
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/component/ComponentModule.sol/ComponentModule.json +22 -93
- 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/component/IComponent.sol/IComponentModule.json +22 -93
- package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/distribution/DistributionModule.sol/DistributionModule.json +10 -0
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistribution.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{compensation/ICompensation.sol/ICompensation.json → distribution/IDistribution.sol/IDistribution.json} +2 -2
- package/artifacts/contracts/instance/module/distribution/IDistribution.sol/IDistributionModule.dbg.json +4 -0
- package/artifacts/contracts/instance/module/{compensation/ICompensation.sol/ICompensationModule.json → distribution/IDistribution.sol/IDistributionModule.json} +2 -2
- 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/IPolicy.sol/IPolicyModule.json +61 -38
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/policy/PolicyModule.sol/PolicyModule.json +61 -38
- 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 +0 -5
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/pool/PoolModule.sol/PoolModule.json +0 -5
- 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/IRisk.sol/IRiskModule.json +104 -1
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.dbg.json +1 -1
- package/artifacts/contracts/instance/module/risk/RiskModule.sol/RiskModule.json +126 -5
- 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 +209 -231
- 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 +209 -231
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ComponentOwnerService.sol/ComponentOwnerService.json +55 -15
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/DistributionService.sol/DistributionService.json +420 -0
- package/artifacts/contracts/instance/service/IComponentOwnerService.sol/IComponentOwnerService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.dbg.json +4 -0
- package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json +325 -0
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IPoolService.sol/IPoolService.json +64 -0
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/IProductService.sol/IProductService.json +160 -7
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/PoolService.sol/PoolService.json +84 -12
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.dbg.json +1 -1
- package/artifacts/contracts/instance/service/ProductService.sol/ProductService.json +216 -31
- package/artifacts/contracts/registry/ChainNft.sol/ChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IChainNft.sol/IChainNft.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistry.sol/IRegistry.dbg.json +1 -1
- package/artifacts/contracts/registry/IRegistryLinked.sol/IRegistryLinked.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.dbg.json +1 -1
- package/artifacts/contracts/registry/Registry.sol/Registry.json +2 -2
- package/artifacts/contracts/shared/ERC165.sol/ERC165.dbg.json +1 -1
- 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/IVersionable.sol/IVersionable.dbg.json +1 -1
- package/artifacts/contracts/shared/Registerable.sol/Registerable.dbg.json +1 -1
- package/artifacts/contracts/shared/Versionable.sol/Versionable.dbg.json +1 -1
- package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.dbg.json +4 -0
- package/artifacts/contracts/test/TestDistribution.sol/TestDistribution.json +405 -0
- 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/TestPool.sol/TestPool.dbg.json +1 -1
- package/artifacts/contracts/test/TestPool.sol/TestPool.json +194 -3
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.dbg.json +1 -1
- package/artifacts/contracts/test/TestProduct.sol/TestProduct.json +209 -27
- 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 +38 -4
- 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/TestVersionable.sol/TestVersionable.dbg.json +1 -1
- 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/Fee.sol/FeeLib.json +50 -11
- 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 +2 -2
- 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/ObjectType.sol/ObjectTypeLib.dbg.json +1 -1
- package/artifacts/contracts/types/ObjectType.sol/ObjectTypeLib.json +2 -2
- package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/ReferralId.sol/ReferralIdLib.json +99 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RiskId.sol/RiskIdLib.json +86 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.dbg.json +4 -0
- package/artifacts/contracts/types/RoleId.sol/RoleIdLib.json +30 -0
- 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/VersionPartLib.dbg.json +1 -1
- package/contracts/components/BaseComponent.sol +7 -1
- package/contracts/components/Distribution.sol +132 -0
- package/contracts/components/IDistributionComponent.sol +48 -0
- package/contracts/components/IPoolComponent.sol +14 -0
- package/contracts/components/IProductComponent.sol +24 -5
- package/contracts/components/Pool.sol +64 -3
- package/contracts/components/Product.sol +123 -13
- package/contracts/instance/IInstance.sol +7 -6
- package/contracts/instance/Instance.sol +12 -6
- package/contracts/instance/base/IInstanceBase.sol +8 -0
- package/contracts/instance/base/IKeyValueStore.sol +4 -3
- package/contracts/instance/base/InstanceBase.sol +13 -2
- package/contracts/instance/base/KeyValueStore.sol +12 -7
- package/contracts/instance/base/Lifecycle.sol +15 -10
- package/contracts/instance/base/ModuleBase.sol +22 -17
- package/contracts/instance/module/access/Access.sol +6 -6
- package/contracts/instance/module/bundle/BundleModule.sol +10 -12
- package/contracts/instance/module/bundle/IBundle.sol +6 -11
- package/contracts/instance/module/component/ComponentModule.sol +29 -54
- package/contracts/instance/module/component/IComponent.sol +5 -30
- package/contracts/instance/module/distribution/DistributionModule.sol +17 -0
- package/contracts/instance/module/distribution/IDistribution.sol +10 -0
- package/contracts/instance/module/policy/IPolicy.sol +12 -9
- package/contracts/instance/module/policy/PolicyModule.sol +35 -20
- package/contracts/instance/module/pool/IPoolModule.sol +0 -1
- package/contracts/instance/module/pool/PoolModule.sol +12 -9
- package/contracts/instance/module/risk/IRisk.sol +18 -2
- package/contracts/instance/module/risk/RiskModule.sol +56 -2
- package/contracts/instance/module/treasury/ITreasury.sol +29 -50
- package/contracts/instance/module/treasury/TreasuryModule.sol +71 -85
- package/contracts/instance/service/ComponentOwnerService.sol +29 -42
- package/contracts/instance/service/DistributionService.sol +59 -0
- package/contracts/instance/service/IDistributionService.sol +12 -0
- package/contracts/instance/service/IPoolService.sol +7 -0
- package/contracts/instance/service/IProductService.sol +56 -7
- package/contracts/instance/service/PoolService.sol +30 -4
- package/contracts/instance/service/ProductService.sol +230 -75
- package/contracts/registry/Registry.sol +3 -2
- package/contracts/test/TestDistribution.sol +21 -0
- package/contracts/test/TestPool.sol +5 -2
- package/contracts/test/TestProduct.sol +35 -7
- package/contracts/test/TestRoleId.sol +2 -2
- package/contracts/types/Fee.sol +8 -3
- package/contracts/types/ObjectType.sol +24 -8
- package/contracts/types/ReferralId.sol +48 -0
- package/contracts/types/RiskId.sol +43 -0
- package/contracts/types/RoleId.sol +12 -10
- package/package.json +1 -1
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.dbg.json +0 -4
- package/artifacts/contracts/instance/module/compensation/CompensationModule.sol/CompensationModule.json +0 -10
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensation.dbg.json +0 -4
- package/artifacts/contracts/instance/module/compensation/ICompensation.sol/ICompensationModule.dbg.json +0 -4
- package/contracts/instance/module/compensation/CompensationModule.sol +0 -8
- package/contracts/instance/module/compensation/ICompensation.sol +0 -10
package/artifacts/contracts/instance/service/IDistributionService.sol/IDistributionService.json
ADDED
@@ -0,0 +1,325 @@
|
|
1
|
+
{
|
2
|
+
"_format": "hh-sol-artifact-1",
|
3
|
+
"contractName": "IDistributionService",
|
4
|
+
"sourceName": "contracts/instance/service/IDistributionService.sol",
|
5
|
+
"abi": [
|
6
|
+
{
|
7
|
+
"anonymous": false,
|
8
|
+
"inputs": [
|
9
|
+
{
|
10
|
+
"indexed": false,
|
11
|
+
"internalType": "Version",
|
12
|
+
"name": "version",
|
13
|
+
"type": "uint24"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"indexed": false,
|
17
|
+
"internalType": "address",
|
18
|
+
"name": "implementation",
|
19
|
+
"type": "address"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"indexed": false,
|
23
|
+
"internalType": "address",
|
24
|
+
"name": "activatedBy",
|
25
|
+
"type": "address"
|
26
|
+
}
|
27
|
+
],
|
28
|
+
"name": "LogVersionableActivated",
|
29
|
+
"type": "event"
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"inputs": [
|
33
|
+
{
|
34
|
+
"internalType": "address",
|
35
|
+
"name": "implementation",
|
36
|
+
"type": "address"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"internalType": "address",
|
40
|
+
"name": "activatedBy",
|
41
|
+
"type": "address"
|
42
|
+
}
|
43
|
+
],
|
44
|
+
"name": "activate",
|
45
|
+
"outputs": [],
|
46
|
+
"stateMutability": "nonpayable",
|
47
|
+
"type": "function"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"inputs": [],
|
51
|
+
"name": "getData",
|
52
|
+
"outputs": [
|
53
|
+
{
|
54
|
+
"internalType": "bytes",
|
55
|
+
"name": "data",
|
56
|
+
"type": "bytes"
|
57
|
+
}
|
58
|
+
],
|
59
|
+
"stateMutability": "view",
|
60
|
+
"type": "function"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"inputs": [],
|
64
|
+
"name": "getMajorVersion",
|
65
|
+
"outputs": [
|
66
|
+
{
|
67
|
+
"internalType": "VersionPart",
|
68
|
+
"name": "majorVersion",
|
69
|
+
"type": "uint8"
|
70
|
+
}
|
71
|
+
],
|
72
|
+
"stateMutability": "view",
|
73
|
+
"type": "function"
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"inputs": [],
|
77
|
+
"name": "getName",
|
78
|
+
"outputs": [
|
79
|
+
{
|
80
|
+
"internalType": "string",
|
81
|
+
"name": "name",
|
82
|
+
"type": "string"
|
83
|
+
}
|
84
|
+
],
|
85
|
+
"stateMutability": "pure",
|
86
|
+
"type": "function"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"inputs": [],
|
90
|
+
"name": "getNftId",
|
91
|
+
"outputs": [
|
92
|
+
{
|
93
|
+
"internalType": "NftId",
|
94
|
+
"name": "nftId",
|
95
|
+
"type": "uint96"
|
96
|
+
}
|
97
|
+
],
|
98
|
+
"stateMutability": "view",
|
99
|
+
"type": "function"
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"inputs": [],
|
103
|
+
"name": "getOwner",
|
104
|
+
"outputs": [
|
105
|
+
{
|
106
|
+
"internalType": "address",
|
107
|
+
"name": "owner",
|
108
|
+
"type": "address"
|
109
|
+
}
|
110
|
+
],
|
111
|
+
"stateMutability": "view",
|
112
|
+
"type": "function"
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"inputs": [],
|
116
|
+
"name": "getParentNftId",
|
117
|
+
"outputs": [
|
118
|
+
{
|
119
|
+
"internalType": "NftId",
|
120
|
+
"name": "nftId",
|
121
|
+
"type": "uint96"
|
122
|
+
}
|
123
|
+
],
|
124
|
+
"stateMutability": "view",
|
125
|
+
"type": "function"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"inputs": [],
|
129
|
+
"name": "getRegistry",
|
130
|
+
"outputs": [
|
131
|
+
{
|
132
|
+
"internalType": "contract IRegistry",
|
133
|
+
"name": "registry",
|
134
|
+
"type": "address"
|
135
|
+
}
|
136
|
+
],
|
137
|
+
"stateMutability": "view",
|
138
|
+
"type": "function"
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"inputs": [],
|
142
|
+
"name": "getType",
|
143
|
+
"outputs": [
|
144
|
+
{
|
145
|
+
"internalType": "ObjectType",
|
146
|
+
"name": "objectType",
|
147
|
+
"type": "uint8"
|
148
|
+
}
|
149
|
+
],
|
150
|
+
"stateMutability": "pure",
|
151
|
+
"type": "function"
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"inputs": [],
|
155
|
+
"name": "getVersion",
|
156
|
+
"outputs": [
|
157
|
+
{
|
158
|
+
"internalType": "Version",
|
159
|
+
"name": "",
|
160
|
+
"type": "uint24"
|
161
|
+
}
|
162
|
+
],
|
163
|
+
"stateMutability": "pure",
|
164
|
+
"type": "function"
|
165
|
+
},
|
166
|
+
{
|
167
|
+
"inputs": [
|
168
|
+
{
|
169
|
+
"internalType": "uint256",
|
170
|
+
"name": "index",
|
171
|
+
"type": "uint256"
|
172
|
+
}
|
173
|
+
],
|
174
|
+
"name": "getVersion",
|
175
|
+
"outputs": [
|
176
|
+
{
|
177
|
+
"internalType": "Version",
|
178
|
+
"name": "version",
|
179
|
+
"type": "uint24"
|
180
|
+
}
|
181
|
+
],
|
182
|
+
"stateMutability": "view",
|
183
|
+
"type": "function"
|
184
|
+
},
|
185
|
+
{
|
186
|
+
"inputs": [],
|
187
|
+
"name": "getVersionCount",
|
188
|
+
"outputs": [
|
189
|
+
{
|
190
|
+
"internalType": "uint256",
|
191
|
+
"name": "numberOfVersions",
|
192
|
+
"type": "uint256"
|
193
|
+
}
|
194
|
+
],
|
195
|
+
"stateMutability": "view",
|
196
|
+
"type": "function"
|
197
|
+
},
|
198
|
+
{
|
199
|
+
"inputs": [
|
200
|
+
{
|
201
|
+
"internalType": "Version",
|
202
|
+
"name": "version",
|
203
|
+
"type": "uint24"
|
204
|
+
}
|
205
|
+
],
|
206
|
+
"name": "getVersionInfo",
|
207
|
+
"outputs": [
|
208
|
+
{
|
209
|
+
"components": [
|
210
|
+
{
|
211
|
+
"internalType": "Version",
|
212
|
+
"name": "version",
|
213
|
+
"type": "uint24"
|
214
|
+
},
|
215
|
+
{
|
216
|
+
"internalType": "address",
|
217
|
+
"name": "implementation",
|
218
|
+
"type": "address"
|
219
|
+
},
|
220
|
+
{
|
221
|
+
"internalType": "address",
|
222
|
+
"name": "activatedBy",
|
223
|
+
"type": "address"
|
224
|
+
},
|
225
|
+
{
|
226
|
+
"internalType": "Timestamp",
|
227
|
+
"name": "activatedAt",
|
228
|
+
"type": "uint40"
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"internalType": "Blocknumber",
|
232
|
+
"name": "activatedIn",
|
233
|
+
"type": "uint32"
|
234
|
+
}
|
235
|
+
],
|
236
|
+
"internalType": "struct IVersionable.VersionInfo",
|
237
|
+
"name": "versionInfo",
|
238
|
+
"type": "tuple"
|
239
|
+
}
|
240
|
+
],
|
241
|
+
"stateMutability": "view",
|
242
|
+
"type": "function"
|
243
|
+
},
|
244
|
+
{
|
245
|
+
"inputs": [
|
246
|
+
{
|
247
|
+
"internalType": "Version",
|
248
|
+
"name": "version",
|
249
|
+
"type": "uint24"
|
250
|
+
}
|
251
|
+
],
|
252
|
+
"name": "isActivated",
|
253
|
+
"outputs": [
|
254
|
+
{
|
255
|
+
"internalType": "bool",
|
256
|
+
"name": "",
|
257
|
+
"type": "bool"
|
258
|
+
}
|
259
|
+
],
|
260
|
+
"stateMutability": "view",
|
261
|
+
"type": "function"
|
262
|
+
},
|
263
|
+
{
|
264
|
+
"inputs": [],
|
265
|
+
"name": "register",
|
266
|
+
"outputs": [
|
267
|
+
{
|
268
|
+
"internalType": "NftId",
|
269
|
+
"name": "nftId",
|
270
|
+
"type": "uint96"
|
271
|
+
}
|
272
|
+
],
|
273
|
+
"stateMutability": "nonpayable",
|
274
|
+
"type": "function"
|
275
|
+
},
|
276
|
+
{
|
277
|
+
"inputs": [
|
278
|
+
{
|
279
|
+
"components": [
|
280
|
+
{
|
281
|
+
"internalType": "UFixed",
|
282
|
+
"name": "fractionalFee",
|
283
|
+
"type": "uint256"
|
284
|
+
},
|
285
|
+
{
|
286
|
+
"internalType": "uint256",
|
287
|
+
"name": "fixedFee",
|
288
|
+
"type": "uint256"
|
289
|
+
}
|
290
|
+
],
|
291
|
+
"internalType": "struct Fee",
|
292
|
+
"name": "distributionFee",
|
293
|
+
"type": "tuple"
|
294
|
+
}
|
295
|
+
],
|
296
|
+
"name": "setFees",
|
297
|
+
"outputs": [],
|
298
|
+
"stateMutability": "nonpayable",
|
299
|
+
"type": "function"
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"inputs": [
|
303
|
+
{
|
304
|
+
"internalType": "bytes4",
|
305
|
+
"name": "interfaceId",
|
306
|
+
"type": "bytes4"
|
307
|
+
}
|
308
|
+
],
|
309
|
+
"name": "supportsInterface",
|
310
|
+
"outputs": [
|
311
|
+
{
|
312
|
+
"internalType": "bool",
|
313
|
+
"name": "",
|
314
|
+
"type": "bool"
|
315
|
+
}
|
316
|
+
],
|
317
|
+
"stateMutability": "view",
|
318
|
+
"type": "function"
|
319
|
+
}
|
320
|
+
],
|
321
|
+
"bytecode": "0x",
|
322
|
+
"deployedBytecode": "0x",
|
323
|
+
"linkReferences": {},
|
324
|
+
"deployedLinkReferences": {}
|
325
|
+
}
|
@@ -53,6 +53,23 @@
|
|
53
53
|
"name": "owner",
|
54
54
|
"type": "address"
|
55
55
|
},
|
56
|
+
{
|
57
|
+
"components": [
|
58
|
+
{
|
59
|
+
"internalType": "UFixed",
|
60
|
+
"name": "fractionalFee",
|
61
|
+
"type": "uint256"
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"internalType": "uint256",
|
65
|
+
"name": "fixedFee",
|
66
|
+
"type": "uint256"
|
67
|
+
}
|
68
|
+
],
|
69
|
+
"internalType": "struct Fee",
|
70
|
+
"name": "fee",
|
71
|
+
"type": "tuple"
|
72
|
+
},
|
56
73
|
{
|
57
74
|
"internalType": "uint256",
|
58
75
|
"name": "amount",
|
@@ -309,6 +326,53 @@
|
|
309
326
|
},
|
310
327
|
{
|
311
328
|
"inputs": [
|
329
|
+
{
|
330
|
+
"internalType": "NftId",
|
331
|
+
"name": "bundleNftId",
|
332
|
+
"type": "uint96"
|
333
|
+
},
|
334
|
+
{
|
335
|
+
"components": [
|
336
|
+
{
|
337
|
+
"internalType": "UFixed",
|
338
|
+
"name": "fractionalFee",
|
339
|
+
"type": "uint256"
|
340
|
+
},
|
341
|
+
{
|
342
|
+
"internalType": "uint256",
|
343
|
+
"name": "fixedFee",
|
344
|
+
"type": "uint256"
|
345
|
+
}
|
346
|
+
],
|
347
|
+
"internalType": "struct Fee",
|
348
|
+
"name": "fee",
|
349
|
+
"type": "tuple"
|
350
|
+
}
|
351
|
+
],
|
352
|
+
"name": "setBundleFee",
|
353
|
+
"outputs": [],
|
354
|
+
"stateMutability": "nonpayable",
|
355
|
+
"type": "function"
|
356
|
+
},
|
357
|
+
{
|
358
|
+
"inputs": [
|
359
|
+
{
|
360
|
+
"components": [
|
361
|
+
{
|
362
|
+
"internalType": "UFixed",
|
363
|
+
"name": "fractionalFee",
|
364
|
+
"type": "uint256"
|
365
|
+
},
|
366
|
+
{
|
367
|
+
"internalType": "uint256",
|
368
|
+
"name": "fixedFee",
|
369
|
+
"type": "uint256"
|
370
|
+
}
|
371
|
+
],
|
372
|
+
"internalType": "struct Fee",
|
373
|
+
"name": "poolFee",
|
374
|
+
"type": "tuple"
|
375
|
+
},
|
312
376
|
{
|
313
377
|
"components": [
|
314
378
|
{
|
@@ -32,7 +32,7 @@
|
|
32
32
|
"inputs": [
|
33
33
|
{
|
34
34
|
"internalType": "NftId",
|
35
|
-
"name": "
|
35
|
+
"name": "policyNftId",
|
36
36
|
"type": "uint96"
|
37
37
|
},
|
38
38
|
{
|
@@ -64,6 +64,70 @@
|
|
64
64
|
"stateMutability": "nonpayable",
|
65
65
|
"type": "function"
|
66
66
|
},
|
67
|
+
{
|
68
|
+
"inputs": [
|
69
|
+
{
|
70
|
+
"internalType": "RiskId",
|
71
|
+
"name": "riskId",
|
72
|
+
"type": "bytes8"
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"internalType": "uint256",
|
76
|
+
"name": "sumInsuredAmount",
|
77
|
+
"type": "uint256"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"internalType": "uint256",
|
81
|
+
"name": "lifetime",
|
82
|
+
"type": "uint256"
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"internalType": "bytes",
|
86
|
+
"name": "applicationData",
|
87
|
+
"type": "bytes"
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"internalType": "NftId",
|
91
|
+
"name": "bundleNftId",
|
92
|
+
"type": "uint96"
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"internalType": "ReferralId",
|
96
|
+
"name": "referralId",
|
97
|
+
"type": "bytes8"
|
98
|
+
}
|
99
|
+
],
|
100
|
+
"name": "calculatePremium",
|
101
|
+
"outputs": [
|
102
|
+
{
|
103
|
+
"internalType": "uint256",
|
104
|
+
"name": "premiumAmount",
|
105
|
+
"type": "uint256"
|
106
|
+
},
|
107
|
+
{
|
108
|
+
"internalType": "uint256",
|
109
|
+
"name": "productFeeAmount",
|
110
|
+
"type": "uint256"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"internalType": "uint256",
|
114
|
+
"name": "poolFeeAmount",
|
115
|
+
"type": "uint256"
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"internalType": "uint256",
|
119
|
+
"name": "bundleFeeAmount",
|
120
|
+
"type": "uint256"
|
121
|
+
},
|
122
|
+
{
|
123
|
+
"internalType": "uint256",
|
124
|
+
"name": "distributionFeeAmount",
|
125
|
+
"type": "uint256"
|
126
|
+
}
|
127
|
+
],
|
128
|
+
"stateMutability": "view",
|
129
|
+
"type": "function"
|
130
|
+
},
|
67
131
|
{
|
68
132
|
"inputs": [
|
69
133
|
{
|
@@ -105,7 +169,7 @@
|
|
105
169
|
"inputs": [
|
106
170
|
{
|
107
171
|
"internalType": "NftId",
|
108
|
-
"name": "
|
172
|
+
"name": "policyNftId",
|
109
173
|
"type": "uint96"
|
110
174
|
},
|
111
175
|
{
|
@@ -127,13 +191,13 @@
|
|
127
191
|
"type": "address"
|
128
192
|
},
|
129
193
|
{
|
130
|
-
"internalType": "
|
131
|
-
"name": "
|
132
|
-
"type": "
|
194
|
+
"internalType": "RiskId",
|
195
|
+
"name": "riskId",
|
196
|
+
"type": "bytes8"
|
133
197
|
},
|
134
198
|
{
|
135
199
|
"internalType": "uint256",
|
136
|
-
"name": "
|
200
|
+
"name": "sumInsuredAmount",
|
137
201
|
"type": "uint256"
|
138
202
|
},
|
139
203
|
{
|
@@ -141,10 +205,20 @@
|
|
141
205
|
"name": "lifetime",
|
142
206
|
"type": "uint256"
|
143
207
|
},
|
208
|
+
{
|
209
|
+
"internalType": "bytes",
|
210
|
+
"name": "applicationData",
|
211
|
+
"type": "bytes"
|
212
|
+
},
|
144
213
|
{
|
145
214
|
"internalType": "NftId",
|
146
215
|
"name": "bundleNftId",
|
147
216
|
"type": "uint96"
|
217
|
+
},
|
218
|
+
{
|
219
|
+
"internalType": "ReferralId",
|
220
|
+
"name": "referralId",
|
221
|
+
"type": "bytes8"
|
148
222
|
}
|
149
223
|
],
|
150
224
|
"name": "createApplication",
|
@@ -158,6 +232,24 @@
|
|
158
232
|
"stateMutability": "nonpayable",
|
159
233
|
"type": "function"
|
160
234
|
},
|
235
|
+
{
|
236
|
+
"inputs": [
|
237
|
+
{
|
238
|
+
"internalType": "RiskId",
|
239
|
+
"name": "riskId",
|
240
|
+
"type": "bytes8"
|
241
|
+
},
|
242
|
+
{
|
243
|
+
"internalType": "bytes",
|
244
|
+
"name": "data",
|
245
|
+
"type": "bytes"
|
246
|
+
}
|
247
|
+
],
|
248
|
+
"name": "createRisk",
|
249
|
+
"outputs": [],
|
250
|
+
"stateMutability": "nonpayable",
|
251
|
+
"type": "function"
|
252
|
+
},
|
161
253
|
{
|
162
254
|
"inputs": [],
|
163
255
|
"name": "getData",
|
@@ -385,6 +477,19 @@
|
|
385
477
|
"stateMutability": "nonpayable",
|
386
478
|
"type": "function"
|
387
479
|
},
|
480
|
+
{
|
481
|
+
"inputs": [
|
482
|
+
{
|
483
|
+
"internalType": "NftId",
|
484
|
+
"name": "policyNftId",
|
485
|
+
"type": "uint96"
|
486
|
+
}
|
487
|
+
],
|
488
|
+
"name": "revoke",
|
489
|
+
"outputs": [],
|
490
|
+
"stateMutability": "nonpayable",
|
491
|
+
"type": "function"
|
492
|
+
},
|
388
493
|
{
|
389
494
|
"inputs": [
|
390
495
|
{
|
@@ -401,7 +506,7 @@
|
|
401
506
|
}
|
402
507
|
],
|
403
508
|
"internalType": "struct Fee",
|
404
|
-
"name": "
|
509
|
+
"name": "productFee",
|
405
510
|
"type": "tuple"
|
406
511
|
},
|
407
512
|
{
|
@@ -427,6 +532,36 @@
|
|
427
532
|
"stateMutability": "nonpayable",
|
428
533
|
"type": "function"
|
429
534
|
},
|
535
|
+
{
|
536
|
+
"inputs": [
|
537
|
+
{
|
538
|
+
"internalType": "RiskId",
|
539
|
+
"name": "riskId",
|
540
|
+
"type": "bytes8"
|
541
|
+
},
|
542
|
+
{
|
543
|
+
"components": [
|
544
|
+
{
|
545
|
+
"internalType": "NftId",
|
546
|
+
"name": "productNftId",
|
547
|
+
"type": "uint96"
|
548
|
+
},
|
549
|
+
{
|
550
|
+
"internalType": "bytes",
|
551
|
+
"name": "data",
|
552
|
+
"type": "bytes"
|
553
|
+
}
|
554
|
+
],
|
555
|
+
"internalType": "struct IRisk.RiskInfo",
|
556
|
+
"name": "data",
|
557
|
+
"type": "tuple"
|
558
|
+
}
|
559
|
+
],
|
560
|
+
"name": "setRiskInfo",
|
561
|
+
"outputs": [],
|
562
|
+
"stateMutability": "nonpayable",
|
563
|
+
"type": "function"
|
564
|
+
},
|
430
565
|
{
|
431
566
|
"inputs": [
|
432
567
|
{
|
@@ -468,6 +603,24 @@
|
|
468
603
|
"outputs": [],
|
469
604
|
"stateMutability": "nonpayable",
|
470
605
|
"type": "function"
|
606
|
+
},
|
607
|
+
{
|
608
|
+
"inputs": [
|
609
|
+
{
|
610
|
+
"internalType": "RiskId",
|
611
|
+
"name": "riskId",
|
612
|
+
"type": "bytes8"
|
613
|
+
},
|
614
|
+
{
|
615
|
+
"internalType": "StateId",
|
616
|
+
"name": "state",
|
617
|
+
"type": "uint8"
|
618
|
+
}
|
619
|
+
],
|
620
|
+
"name": "updateRiskState",
|
621
|
+
"outputs": [],
|
622
|
+
"stateMutability": "nonpayable",
|
623
|
+
"type": "function"
|
471
624
|
}
|
472
625
|
],
|
473
626
|
"bytecode": "0x",
|