@ensuro/cash-flow-lender 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/build/build-info.json +1 -0
- package/build/contracts/CashFlowLender.sol/CashFlowLender.json +2109 -0
- package/build/contracts/dependencies/AccessManagedProxy.sol/AccessManagedProxy.json +105 -0
- package/build/contracts/dependencies/IPolicyPool.sol/IPolicyPool.json +24 -0
- package/contracts/CashFlowLender.sol +861 -0
- package/contracts/dependencies/AccessManagedProxy.sol +32 -0
- package/contracts/dependencies/IPolicyPool.sol +15 -0
- package/package.json +30 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "AccessManagedProxy",
|
|
4
|
+
"sourceName": "contracts/dependencies/AccessManagedProxy.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "address",
|
|
10
|
+
"name": "implementation",
|
|
11
|
+
"type": "address"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "bytes",
|
|
15
|
+
"name": "_data",
|
|
16
|
+
"type": "bytes"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "contract IAccessManager",
|
|
20
|
+
"name": "manager",
|
|
21
|
+
"type": "address"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"stateMutability": "payable",
|
|
25
|
+
"type": "constructor"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"inputs": [
|
|
29
|
+
{
|
|
30
|
+
"internalType": "address",
|
|
31
|
+
"name": "caller",
|
|
32
|
+
"type": "address"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"name": "AccessManagedUnauthorized",
|
|
36
|
+
"type": "error"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"inputs": [
|
|
40
|
+
{
|
|
41
|
+
"internalType": "address",
|
|
42
|
+
"name": "target",
|
|
43
|
+
"type": "address"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"name": "AddressEmptyCode",
|
|
47
|
+
"type": "error"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"inputs": [
|
|
51
|
+
{
|
|
52
|
+
"internalType": "address",
|
|
53
|
+
"name": "implementation",
|
|
54
|
+
"type": "address"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"name": "ERC1967InvalidImplementation",
|
|
58
|
+
"type": "error"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"inputs": [],
|
|
62
|
+
"name": "ERC1967NonPayable",
|
|
63
|
+
"type": "error"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"inputs": [],
|
|
67
|
+
"name": "FailedCall",
|
|
68
|
+
"type": "error"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"anonymous": false,
|
|
72
|
+
"inputs": [
|
|
73
|
+
{
|
|
74
|
+
"indexed": true,
|
|
75
|
+
"internalType": "address",
|
|
76
|
+
"name": "implementation",
|
|
77
|
+
"type": "address"
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"name": "Upgraded",
|
|
81
|
+
"type": "event"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"stateMutability": "payable",
|
|
85
|
+
"type": "fallback"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"inputs": [],
|
|
89
|
+
"name": "ACCESS_MANAGER",
|
|
90
|
+
"outputs": [
|
|
91
|
+
{
|
|
92
|
+
"internalType": "contract IAccessManager",
|
|
93
|
+
"name": "",
|
|
94
|
+
"type": "address"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"stateMutability": "view",
|
|
98
|
+
"type": "function"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"bytecode": "0x60a060405260405161062138038061062183398101604081905261002291610274565b828261002e8282610044565b50506001600160a01b03166080525061035d9050565b61004d826100a2565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561009657610091828261011d565b505050565b61009e610190565b5050565b806001600160a01b03163b5f036100dc57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f5f846001600160a01b0316846040516101399190610347565b5f60405180830381855af49150503d805f8114610171576040519150601f19603f3d011682016040523d82523d5f602084013e610176565b606091505b5090925090506101878583836101b1565b95945050505050565b34156101af5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101c6576101c182610210565b610209565b81511580156101dd57506001600160a01b0384163b155b1561020657604051639996b31560e01b81526001600160a01b03851660048201526024016100d3565b50805b9392505050565b8051156102205780518082602001fd5b60405163d6bda27560e01b815260040160405180910390fd5b50565b6001600160a01b0381168114610239575f5ffd5b634e487b7160e01b5f52604160045260245ffd5b805161026f8161023c565b919050565b5f5f5f60608486031215610286575f5ffd5b83516102918161023c565b60208501519093506001600160401b038111156102ac575f5ffd5b8401601f810186136102bc575f5ffd5b80516001600160401b038111156102d5576102d5610250565b604051601f8201601f19908116603f011681016001600160401b038111828210171561030357610303610250565b60405281815282820160200188101561031a575f5ffd5b8160208401602083015e5f6020838301015280945050505061033e60408501610264565b90509250925092565b5f82518060208501845e5f920191825250919050565b6080516102a761037a5f395f81816038015260ca01526102a75ff3fe60806040526004361061001d575f3560e01c80633a7b7a3914610027575b610025610076565b005b348015610032575f5ffd5b5061005a7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b610086610081610088565b6100bf565b565b5f6100ba7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b5f6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663b700961333306100fe60048636816101ce565b610107916101f5565b60405160e085901b6001600160e01b031990811682526001600160a01b0394851660048301529290931660248401521660448201526064016040805180830381865afa158015610159573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061017d919061022d565b509050806101a35760405162d1953b60e31b815233600482015260240160405180910390fd5b6101ac826101b0565b5050565b365f5f375f5f365f845af43d5f5f3e8080156101ca573d5ff35b3d5ffd5b5f5f858511156101dc575f5ffd5b838611156101e8575f5ffd5b5050820193919092039150565b80356001600160e01b03198116906004841015610226576001600160e01b0319600485900360031b81901b82161691505b5092915050565b5f5f6040838503121561023e575f5ffd5b8251801515811461024d575f5ffd5b602084015190925063ffffffff81168114610266575f5ffd5b80915050925092905056fea2646970667358221220c76a0ca8dfbc8e72ead932afdee81b32ea1886ce86103017e3430c4df913184864736f6c634300081c0033",
|
|
102
|
+
"deployedBytecode": "0x60806040526004361061001d575f3560e01c80633a7b7a3914610027575b610025610076565b005b348015610032575f5ffd5b5061005a7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b610086610081610088565b6100bf565b565b5f6100ba7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b5f6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663b700961333306100fe60048636816101ce565b610107916101f5565b60405160e085901b6001600160e01b031990811682526001600160a01b0394851660048301529290931660248401521660448201526064016040805180830381865afa158015610159573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061017d919061022d565b509050806101a35760405162d1953b60e31b815233600482015260240160405180910390fd5b6101ac826101b0565b5050565b365f5f375f5f365f845af43d5f5f3e8080156101ca573d5ff35b3d5ffd5b5f5f858511156101dc575f5ffd5b838611156101e8575f5ffd5b5050820193919092039150565b80356001600160e01b03198116906004841015610226576001600160e01b0319600485900360031b81901b82161691505b5092915050565b5f5f6040838503121561023e575f5ffd5b8251801515811461024d575f5ffd5b602084015190925063ffffffff81168114610266575f5ffd5b80915050925092905056fea2646970667358221220c76a0ca8dfbc8e72ead932afdee81b32ea1886ce86103017e3430c4df913184864736f6c634300081c0033",
|
|
103
|
+
"linkReferences": {},
|
|
104
|
+
"deployedLinkReferences": {}
|
|
105
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "IPolicyPool",
|
|
4
|
+
"sourceName": "contracts/dependencies/IPolicyPool.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [],
|
|
8
|
+
"name": "currency",
|
|
9
|
+
"outputs": [
|
|
10
|
+
{
|
|
11
|
+
"internalType": "contract IERC20Metadata",
|
|
12
|
+
"name": "",
|
|
13
|
+
"type": "address"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"stateMutability": "view",
|
|
17
|
+
"type": "function"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"bytecode": "0x",
|
|
21
|
+
"deployedBytecode": "0x",
|
|
22
|
+
"linkReferences": {},
|
|
23
|
+
"deployedLinkReferences": {}
|
|
24
|
+
}
|