@wireio/stake 0.1.3 → 0.2.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/lib/stake.browser.js +15333 -4964
- package/lib/stake.browser.js.map +1 -1
- package/lib/stake.d.ts +4880 -112
- package/lib/stake.js +15636 -5116
- package/lib/stake.js.map +1 -1
- package/lib/stake.m.js +15333 -4964
- package/lib/stake.m.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/DepositManager.sol/DepositManager.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/DepositManager.sol/DepositManager.json +26 -65
- package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IAccounting.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IAccounting.json +24 -20
- package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IDepositContract.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IDepositManager.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IRewardsERC20.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IStakingModule.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IStakingModule.json +0 -20
- package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IValidatorBalanceVerifier.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IWithdrawalRecord.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/LiqEthCommon.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/LiqEthCommon.json +2 -2
- package/src/assets/ethereum/ABI/liqEth/RewardsERC20.sol/RewardsERC20.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/RewardsERC20Pausable.sol/RewardsERC20Pausable.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/BeaconRoots.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/SSZ.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/ValidatorBalanceVerifier.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/Yield.sol/BeaconRoots.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/Yield.sol/BeaconRoots.json +2 -2
- package/src/assets/ethereum/ABI/liqEth/Yield.sol/SSZ.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/Yield.sol/SSZ.json +2 -2
- package/src/assets/ethereum/ABI/liqEth/Yield.sol/YieldOracle.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/Yield.sol/YieldOracle.json +2 -2
- package/src/assets/ethereum/ABI/liqEth/accounting.sol/Accounting.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/accounting.sol/Accounting.json +31 -109
- package/src/assets/ethereum/ABI/liqEth/liqEth.sol/LiqEthToken.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/liqEth.sol/LiqEthToken.json +2 -25
- package/src/assets/ethereum/ABI/liqEth/stakingModule.sol/StakingModule.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/stakingModule.sol/StakingModule.json +30 -72
- package/src/assets/ethereum/ABI/liqEth/withdrawalQueue.sol/WithdrawalQueue.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/withdrawalQueue.sol/WithdrawalQueue.json +2 -2
- package/src/assets/ethereum/ABI/liqEth/withdrawalVault.sol/Uint64BE.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/withdrawalVault.sol/Uint64BE.json +2 -2
- package/src/assets/ethereum/ABI/liqEth/withdrawalVault.sol/WithdrawalVault.dbg.json +1 -1
- package/src/assets/ethereum/ABI/liqEth/withdrawalVault.sol/WithdrawalVault.json +2 -2
- package/src/assets/ethereum/ABI/outpost/BAR.sol/BAR.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/BAR.sol/BAR.json +1856 -0
- package/src/assets/ethereum/ABI/outpost/Depositor.sol/Depositor.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/Depositor.sol/Depositor.json +1753 -0
- package/src/assets/ethereum/ABI/outpost/EthUsdPriceConsumer.sol/AggregatorV3Interface.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/EthUsdPriceConsumer.sol/AggregatorV3Interface.json +122 -0
- package/src/assets/ethereum/ABI/outpost/EthUsdPriceConsumer.sol/EthUsdPriceConsumer.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/EthUsdPriceConsumer.sol/EthUsdPriceConsumer.json +601 -0
- package/src/assets/ethereum/ABI/outpost/OPP.sol/OPP.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OPP.sol/OPP.json +930 -0
- package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPP.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPP.json +88 -0
- package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPPEndpoint.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPPEndpoint.json +29 -0
- package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPPInbound.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPPInbound.json +194 -0
- package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPPReceiver.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPPReceiver.json +29 -0
- package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPPSender.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/IOPPSender.json +36 -0
- package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/OPPCommon.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OPPCommon.sol/OPPCommon.json +199 -0
- package/src/assets/ethereum/ABI/outpost/OPPEndpoint.sol/OPPEndpoint.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OPPEndpoint.sol/OPPEndpoint.json +273 -0
- package/src/assets/ethereum/ABI/outpost/OPPEndpointManaged.sol/OPPEndpointManaged.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OPPEndpointManaged.sol/OPPEndpointManaged.json +394 -0
- package/src/assets/ethereum/ABI/outpost/OPPEndpointOwnable.sol/OPPEndpointOwnable.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OPPEndpointOwnable.sol/OPPEndpointOwnable.json +378 -0
- package/src/assets/ethereum/ABI/outpost/OPPErrors.sol/OPPErrors.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OPPErrors.sol/OPPErrors.json +224 -0
- package/src/assets/ethereum/ABI/outpost/OPPInbound.sol/OPPInbound.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OPPInbound.sol/OPPInbound.json +1010 -0
- package/src/assets/ethereum/ABI/outpost/OPPReceiver.sol/OPPReceiver.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OPPReceiver.sol/OPPReceiver.json +291 -0
- package/src/assets/ethereum/ABI/outpost/OPPSender.sol/OPPSender.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OPPSender.sol/OPPSender.json +298 -0
- package/src/assets/ethereum/ABI/outpost/OutpostErrors.sol/OutpostErrors.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OutpostErrors.sol/OutpostErrors.json +473 -0
- package/src/assets/ethereum/ABI/outpost/OutpostManaged.sol/OutpostManaged.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OutpostManaged.sol/OutpostManaged.json +229 -0
- package/src/assets/ethereum/ABI/outpost/OutpostManager.sol/OutpostManager.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OutpostManager.sol/OutpostManager.json +730 -0
- package/src/assets/ethereum/ABI/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OutpostManagerAuthority.sol/OutpostManagerAuthority.json +1432 -0
- package/src/assets/ethereum/ABI/outpost/OutpostManagerCommon.sol/IOutpostManager.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OutpostManagerCommon.sol/IOutpostManager.json +130 -0
- package/src/assets/ethereum/ABI/outpost/OutpostManagerCommon.sol/IOutpostUpgradeable.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OutpostManagerCommon.sol/IOutpostUpgradeable.json +29 -0
- package/src/assets/ethereum/ABI/outpost/OutpostManagerCommon.sol/OutpostManagerCommon.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OutpostManagerCommon.sol/OutpostManagerCommon.json +141 -0
- package/src/assets/ethereum/ABI/outpost/OutpostOwnable.sol/OutpostOwnable.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/OutpostOwnable.sol/OutpostOwnable.json +213 -0
- package/src/assets/ethereum/ABI/outpost/Pool.sol/Pool.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/Pool.sol/Pool.json +921 -0
- package/src/assets/ethereum/ABI/outpost/ReceiptNFT.sol/ReceiptNFT.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/ReceiptNFT.sol/ReceiptNFT.json +2020 -0
- package/src/assets/ethereum/ABI/outpost/Warrant.sol/Warrant.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/Warrant.sol/Warrant.json +1650 -0
- package/src/assets/ethereum/ABI/outpost/interfaces/IWarrant.sol/IWarrant.dbg.json +4 -0
- package/src/assets/ethereum/ABI/{liqEth/LiqEthCommon.sol/ILiqEthMint.json → outpost/interfaces/IWarrant.sol/IWarrant.json} +6 -12
- package/src/assets/ethereum/ABI/outpost/token/ERC721EthEquivalentVotesUpgradeable.sol/ERC721EthEquivalentVotesUpgradeable.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/token/ERC721EthEquivalentVotesUpgradeable.sol/ERC721EthEquivalentVotesUpgradeable.json +858 -0
- package/src/assets/ethereum/ABI/outpost/token/IERC721EthEquivalent.sol/IERC721EthEquivalent.dbg.json +4 -0
- package/src/assets/ethereum/ABI/outpost/token/IERC721EthEquivalent.sol/IERC721EthEquivalent.json +30 -0
- package/src/assets/solana/idl/liqsol_core.json +1369 -1129
- package/src/assets/solana/idl/liqsol_token.json +1 -1
- package/src/assets/solana/idl/validator_leaderboard.json +1 -1
- package/src/assets/solana/types/liqsol_core.ts +1369 -1129
- package/src/assets/solana/types/liqsol_token.ts +1 -1
- package/src/assets/solana/types/validator_leaderboard.ts +1 -1
- package/src/index.ts +2 -1
- package/src/networks/ethereum/clients/deposit.client.ts +82 -0
- package/src/networks/ethereum/clients/stake.client.ts +215 -0
- package/src/networks/ethereum/contract.ts +82 -23
- package/src/networks/ethereum/ethereum.ts +148 -69
- package/src/networks/ethereum/types.ts +74 -7
- package/src/networks/solana/clients/deposit.client.ts +7 -11
- package/src/networks/solana/clients/distribution.client.ts +1 -3
- package/src/networks/solana/clients/outpost.client.ts +474 -0
- package/src/networks/solana/constants.ts +90 -52
- package/src/networks/solana/solana.ts +155 -128
- package/src/networks/solana/types.ts +95 -8
- package/src/networks/solana/utils.ts +111 -94
- package/src/staker/types.ts +7 -5
- package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/ILiqEthBurn.dbg.json +0 -4
- package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/ILiqEthBurn.json +0 -24
- package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/ILiqEthMint.dbg.json +0 -4
- package/src/assets/ethereum/ABI/liqEth/liqEthBurn.sol/LiqEthBurn.dbg.json +0 -4
- package/src/assets/ethereum/ABI/liqEth/liqEthBurn.sol/LiqEthBurn.json +0 -391
- package/src/assets/ethereum/ABI/liqEth/liqEthMint.sol/LiqEthMint.dbg.json +0 -4
- package/src/assets/ethereum/ABI/liqEth/liqEthMint.sol/LiqEthMint.json +0 -402
|
@@ -0,0 +1,601 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "EthUsdPriceConsumer",
|
|
4
|
+
"sourceName": "contracts/outpost/EthUsdPriceConsumer.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "address",
|
|
10
|
+
"name": "_aggregator",
|
|
11
|
+
"type": "address"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"stateMutability": "nonpayable",
|
|
15
|
+
"type": "constructor"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"inputs": [
|
|
19
|
+
{
|
|
20
|
+
"internalType": "address",
|
|
21
|
+
"name": "actor",
|
|
22
|
+
"type": "address"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"name": "WIRE_ActorAlreadyBonded",
|
|
26
|
+
"type": "error"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"inputs": [
|
|
30
|
+
{
|
|
31
|
+
"internalType": "address",
|
|
32
|
+
"name": "actor",
|
|
33
|
+
"type": "address"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"name": "WIRE_ActorNotBonded",
|
|
37
|
+
"type": "error"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"inputs": [
|
|
41
|
+
{
|
|
42
|
+
"internalType": "uint32",
|
|
43
|
+
"name": "tokenType",
|
|
44
|
+
"type": "uint32"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"internalType": "bytes32",
|
|
48
|
+
"name": "bondLevelId",
|
|
49
|
+
"type": "bytes32"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"name": "WIRE_BadBondLevel",
|
|
53
|
+
"type": "error"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"inputs": [
|
|
57
|
+
{
|
|
58
|
+
"internalType": "string",
|
|
59
|
+
"name": "name",
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"internalType": "address",
|
|
64
|
+
"name": "provided",
|
|
65
|
+
"type": "address"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"name": "WIRE_BadContractAddress",
|
|
69
|
+
"type": "error"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"inputs": [
|
|
73
|
+
{
|
|
74
|
+
"internalType": "uint256",
|
|
75
|
+
"name": "bps",
|
|
76
|
+
"type": "uint256"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"internalType": "uint256",
|
|
80
|
+
"name": "maxBps",
|
|
81
|
+
"type": "uint256"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"name": "WIRE_BasisPointsTooHigh",
|
|
85
|
+
"type": "error"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"inputs": [
|
|
89
|
+
{
|
|
90
|
+
"internalType": "address",
|
|
91
|
+
"name": "actor",
|
|
92
|
+
"type": "address"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"internalType": "uint256",
|
|
96
|
+
"name": "cooldownEnd",
|
|
97
|
+
"type": "uint256"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"name": "WIRE_BondInCooldown",
|
|
101
|
+
"type": "error"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"inputs": [
|
|
105
|
+
{
|
|
106
|
+
"internalType": "address",
|
|
107
|
+
"name": "actor",
|
|
108
|
+
"type": "address"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"internalType": "uint256",
|
|
112
|
+
"name": "warmupEnd",
|
|
113
|
+
"type": "uint256"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"name": "WIRE_BondInWarmup",
|
|
117
|
+
"type": "error"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"inputs": [
|
|
121
|
+
{
|
|
122
|
+
"internalType": "uint256",
|
|
123
|
+
"name": "required",
|
|
124
|
+
"type": "uint256"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"internalType": "uint256",
|
|
128
|
+
"name": "provided",
|
|
129
|
+
"type": "uint256"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"name": "WIRE_BondInsufficientEth",
|
|
133
|
+
"type": "error"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"inputs": [
|
|
137
|
+
{
|
|
138
|
+
"internalType": "uint256",
|
|
139
|
+
"name": "required",
|
|
140
|
+
"type": "uint256"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"internalType": "uint256",
|
|
144
|
+
"name": "provided",
|
|
145
|
+
"type": "uint256"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"name": "WIRE_BondInsufficientEthEquivalent",
|
|
149
|
+
"type": "error"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"inputs": [
|
|
153
|
+
{
|
|
154
|
+
"internalType": "uint256",
|
|
155
|
+
"name": "value",
|
|
156
|
+
"type": "uint256"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"internalType": "uint256",
|
|
160
|
+
"name": "minValue",
|
|
161
|
+
"type": "uint256"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"name": "WIRE_BondLevelCooldownTooShort",
|
|
165
|
+
"type": "error"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"inputs": [
|
|
169
|
+
{
|
|
170
|
+
"internalType": "uint32",
|
|
171
|
+
"name": "tokenType",
|
|
172
|
+
"type": "uint32"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"internalType": "bytes32",
|
|
176
|
+
"name": "bondLevelId",
|
|
177
|
+
"type": "bytes32"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"name": "WIRE_BondLevelExists",
|
|
181
|
+
"type": "error"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"inputs": [
|
|
185
|
+
{
|
|
186
|
+
"internalType": "uint32",
|
|
187
|
+
"name": "tokenType",
|
|
188
|
+
"type": "uint32"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"internalType": "bytes32",
|
|
192
|
+
"name": "bondLevelId",
|
|
193
|
+
"type": "bytes32"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"name": "WIRE_BondLevelHasNoRoles",
|
|
197
|
+
"type": "error"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"inputs": [
|
|
201
|
+
{
|
|
202
|
+
"internalType": "uint32",
|
|
203
|
+
"name": "tokenType",
|
|
204
|
+
"type": "uint32"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"internalType": "bytes32",
|
|
208
|
+
"name": "bondLevelId",
|
|
209
|
+
"type": "bytes32"
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"name": "WIRE_BondLevelNoAmount",
|
|
213
|
+
"type": "error"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"inputs": [
|
|
217
|
+
{
|
|
218
|
+
"internalType": "uint32",
|
|
219
|
+
"name": "tokenType",
|
|
220
|
+
"type": "uint32"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"internalType": "bytes32",
|
|
224
|
+
"name": "bondLevelId",
|
|
225
|
+
"type": "bytes32"
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
"name": "WIRE_BondLevelNoEthEquivalent",
|
|
229
|
+
"type": "error"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"inputs": [
|
|
233
|
+
{
|
|
234
|
+
"internalType": "uint32",
|
|
235
|
+
"name": "tokenType",
|
|
236
|
+
"type": "uint32"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"internalType": "bytes32",
|
|
240
|
+
"name": "bondLevelId",
|
|
241
|
+
"type": "bytes32"
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"name": "WIRE_BondLevelNoTokenContract",
|
|
245
|
+
"type": "error"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"inputs": [
|
|
249
|
+
{
|
|
250
|
+
"internalType": "uint32",
|
|
251
|
+
"name": "tokenType",
|
|
252
|
+
"type": "uint32"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"internalType": "bytes32",
|
|
256
|
+
"name": "bondLevelId",
|
|
257
|
+
"type": "bytes32"
|
|
258
|
+
}
|
|
259
|
+
],
|
|
260
|
+
"name": "WIRE_BondLevelNoTokenId",
|
|
261
|
+
"type": "error"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"inputs": [
|
|
265
|
+
{
|
|
266
|
+
"internalType": "uint256",
|
|
267
|
+
"name": "value",
|
|
268
|
+
"type": "uint256"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"internalType": "uint256",
|
|
272
|
+
"name": "minValue",
|
|
273
|
+
"type": "uint256"
|
|
274
|
+
}
|
|
275
|
+
],
|
|
276
|
+
"name": "WIRE_BondLevelWarmupTooShort",
|
|
277
|
+
"type": "error"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"inputs": [
|
|
281
|
+
{
|
|
282
|
+
"internalType": "address",
|
|
283
|
+
"name": "actor",
|
|
284
|
+
"type": "address"
|
|
285
|
+
}
|
|
286
|
+
],
|
|
287
|
+
"name": "WIRE_BondNotUnbonding",
|
|
288
|
+
"type": "error"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"inputs": [
|
|
292
|
+
{
|
|
293
|
+
"internalType": "address",
|
|
294
|
+
"name": "to",
|
|
295
|
+
"type": "address"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"internalType": "uint256",
|
|
299
|
+
"name": "amount",
|
|
300
|
+
"type": "uint256"
|
|
301
|
+
}
|
|
302
|
+
],
|
|
303
|
+
"name": "WIRE_EthSendFailed",
|
|
304
|
+
"type": "error"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"inputs": [],
|
|
308
|
+
"name": "WIRE_GoLiveInProgress",
|
|
309
|
+
"type": "error"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"inputs": [
|
|
313
|
+
{
|
|
314
|
+
"internalType": "uint256",
|
|
315
|
+
"name": "required",
|
|
316
|
+
"type": "uint256"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"internalType": "uint256",
|
|
320
|
+
"name": "available",
|
|
321
|
+
"type": "uint256"
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
"name": "WIRE_InsufficientEthBalance",
|
|
325
|
+
"type": "error"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"inputs": [],
|
|
329
|
+
"name": "WIRE_InvalidPrice",
|
|
330
|
+
"type": "error"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"inputs": [
|
|
334
|
+
{
|
|
335
|
+
"internalType": "address",
|
|
336
|
+
"name": "from",
|
|
337
|
+
"type": "address"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"internalType": "address",
|
|
341
|
+
"name": "to",
|
|
342
|
+
"type": "address"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"internalType": "uint256",
|
|
346
|
+
"name": "amount",
|
|
347
|
+
"type": "uint256"
|
|
348
|
+
}
|
|
349
|
+
],
|
|
350
|
+
"name": "WIRE_LiqEthTransferFailed",
|
|
351
|
+
"type": "error"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"inputs": [],
|
|
355
|
+
"name": "WIRE_NoPricesRecorded",
|
|
356
|
+
"type": "error"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"inputs": [],
|
|
360
|
+
"name": "WIRE_NoYield",
|
|
361
|
+
"type": "error"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"inputs": [
|
|
365
|
+
{
|
|
366
|
+
"internalType": "address",
|
|
367
|
+
"name": "actor",
|
|
368
|
+
"type": "address"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"internalType": "address",
|
|
372
|
+
"name": "owner",
|
|
373
|
+
"type": "address"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"internalType": "address",
|
|
377
|
+
"name": "caller",
|
|
378
|
+
"type": "address"
|
|
379
|
+
}
|
|
380
|
+
],
|
|
381
|
+
"name": "WIRE_NotBondOwner",
|
|
382
|
+
"type": "error"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"inputs": [
|
|
386
|
+
{
|
|
387
|
+
"internalType": "uint256",
|
|
388
|
+
"name": "receiptId",
|
|
389
|
+
"type": "uint256"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"internalType": "address",
|
|
393
|
+
"name": "owner",
|
|
394
|
+
"type": "address"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"internalType": "address",
|
|
398
|
+
"name": "caller",
|
|
399
|
+
"type": "address"
|
|
400
|
+
}
|
|
401
|
+
],
|
|
402
|
+
"name": "WIRE_NotReceiptOwner",
|
|
403
|
+
"type": "error"
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"inputs": [
|
|
407
|
+
{
|
|
408
|
+
"internalType": "uint256",
|
|
409
|
+
"name": "price",
|
|
410
|
+
"type": "uint256"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"internalType": "uint256",
|
|
414
|
+
"name": "minPrice",
|
|
415
|
+
"type": "uint256"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"internalType": "uint256",
|
|
419
|
+
"name": "maxPrice",
|
|
420
|
+
"type": "uint256"
|
|
421
|
+
}
|
|
422
|
+
],
|
|
423
|
+
"name": "WIRE_PriceOutOfBounds",
|
|
424
|
+
"type": "error"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"inputs": [
|
|
428
|
+
{
|
|
429
|
+
"internalType": "uint256",
|
|
430
|
+
"name": "receiptId",
|
|
431
|
+
"type": "uint256"
|
|
432
|
+
}
|
|
433
|
+
],
|
|
434
|
+
"name": "WIRE_ReceiptNotWithdrawable",
|
|
435
|
+
"type": "error"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"inputs": [],
|
|
439
|
+
"name": "WIRE_RefundingInProgress",
|
|
440
|
+
"type": "error"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"inputs": [],
|
|
444
|
+
"name": "WIRE_RefundingOnly",
|
|
445
|
+
"type": "error"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"inputs": [
|
|
449
|
+
{
|
|
450
|
+
"internalType": "uint256",
|
|
451
|
+
"name": "updatedAt",
|
|
452
|
+
"type": "uint256"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"internalType": "uint256",
|
|
456
|
+
"name": "maxStaleness",
|
|
457
|
+
"type": "uint256"
|
|
458
|
+
}
|
|
459
|
+
],
|
|
460
|
+
"name": "WIRE_StalePrice",
|
|
461
|
+
"type": "error"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"inputs": [
|
|
465
|
+
{
|
|
466
|
+
"internalType": "string",
|
|
467
|
+
"name": "reason",
|
|
468
|
+
"type": "string"
|
|
469
|
+
}
|
|
470
|
+
],
|
|
471
|
+
"name": "WIRE_UnexpectedError",
|
|
472
|
+
"type": "error"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"inputs": [],
|
|
476
|
+
"name": "WIRE_ZeroAmount",
|
|
477
|
+
"type": "error"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"inputs": [],
|
|
481
|
+
"name": "MAX_PRICE",
|
|
482
|
+
"outputs": [
|
|
483
|
+
{
|
|
484
|
+
"internalType": "uint256",
|
|
485
|
+
"name": "",
|
|
486
|
+
"type": "uint256"
|
|
487
|
+
}
|
|
488
|
+
],
|
|
489
|
+
"stateMutability": "view",
|
|
490
|
+
"type": "function"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"inputs": [],
|
|
494
|
+
"name": "MAX_STALENESS",
|
|
495
|
+
"outputs": [
|
|
496
|
+
{
|
|
497
|
+
"internalType": "uint256",
|
|
498
|
+
"name": "",
|
|
499
|
+
"type": "uint256"
|
|
500
|
+
}
|
|
501
|
+
],
|
|
502
|
+
"stateMutability": "view",
|
|
503
|
+
"type": "function"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"inputs": [],
|
|
507
|
+
"name": "MIN_PRICE",
|
|
508
|
+
"outputs": [
|
|
509
|
+
{
|
|
510
|
+
"internalType": "uint256",
|
|
511
|
+
"name": "",
|
|
512
|
+
"type": "uint256"
|
|
513
|
+
}
|
|
514
|
+
],
|
|
515
|
+
"stateMutability": "view",
|
|
516
|
+
"type": "function"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"inputs": [],
|
|
520
|
+
"name": "getLatestPrice",
|
|
521
|
+
"outputs": [
|
|
522
|
+
{
|
|
523
|
+
"internalType": "uint256",
|
|
524
|
+
"name": "",
|
|
525
|
+
"type": "uint256"
|
|
526
|
+
}
|
|
527
|
+
],
|
|
528
|
+
"stateMutability": "view",
|
|
529
|
+
"type": "function"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"inputs": [],
|
|
533
|
+
"name": "getPrice18Decimals",
|
|
534
|
+
"outputs": [
|
|
535
|
+
{
|
|
536
|
+
"internalType": "uint256",
|
|
537
|
+
"name": "",
|
|
538
|
+
"type": "uint256"
|
|
539
|
+
}
|
|
540
|
+
],
|
|
541
|
+
"stateMutability": "view",
|
|
542
|
+
"type": "function"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"inputs": [],
|
|
546
|
+
"name": "getSmoothedPrice",
|
|
547
|
+
"outputs": [
|
|
548
|
+
{
|
|
549
|
+
"internalType": "uint256",
|
|
550
|
+
"name": "",
|
|
551
|
+
"type": "uint256"
|
|
552
|
+
}
|
|
553
|
+
],
|
|
554
|
+
"stateMutability": "view",
|
|
555
|
+
"type": "function"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"inputs": [
|
|
559
|
+
{
|
|
560
|
+
"internalType": "uint256",
|
|
561
|
+
"name": "",
|
|
562
|
+
"type": "uint256"
|
|
563
|
+
}
|
|
564
|
+
],
|
|
565
|
+
"name": "recentPrices",
|
|
566
|
+
"outputs": [
|
|
567
|
+
{
|
|
568
|
+
"internalType": "uint256",
|
|
569
|
+
"name": "",
|
|
570
|
+
"type": "uint256"
|
|
571
|
+
}
|
|
572
|
+
],
|
|
573
|
+
"stateMutability": "view",
|
|
574
|
+
"type": "function"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"inputs": [],
|
|
578
|
+
"name": "recordPrice",
|
|
579
|
+
"outputs": [],
|
|
580
|
+
"stateMutability": "nonpayable",
|
|
581
|
+
"type": "function"
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"inputs": [],
|
|
585
|
+
"name": "windowSize",
|
|
586
|
+
"outputs": [
|
|
587
|
+
{
|
|
588
|
+
"internalType": "uint256",
|
|
589
|
+
"name": "",
|
|
590
|
+
"type": "uint256"
|
|
591
|
+
}
|
|
592
|
+
],
|
|
593
|
+
"stateMutability": "view",
|
|
594
|
+
"type": "function"
|
|
595
|
+
}
|
|
596
|
+
],
|
|
597
|
+
"bytecode": "0x60803460b357601f61070a38819003918201601f19168301916001600160401b0383118484101760b85780849260209460405283398101031260b357516001600160a01b0381169081900360b35760056001558015607a57600080546001600160a01b03191691909117905560405161063b90816100cf8239f35b60849060405190632215fb1f60e11b825260406004830152600a60448301526920b3b3b932b3b0ba37b960b11b60648301526024820152fd5b600080fd5b634e487b7160e01b600052604160045260246000fdfe608060408181526004918236101561001657600080fd5b600092833560e01c91826301c11d96146103f35750816333022ec51461030057816351ce6567146101c45781637ba996d5146101845781638a14117a146101655781638e15f47314610141578163ad9f20a614610121578163b5087c16146100a7575063caca95a41461008857600080fd5b346100a357816003193601126100a35760209051610e108152f35b5080fd5b8383346100a357816003193601126100a3576002549081156101125782805b8382106100da575050602093505191048152f35b90936100e585610413565b90549060031b1c81018091116100ff5793600101906100c6565b634e487b7160e01b825260118652602482fd5b516305bd3d7960e51b81528390fd5b5050346100a357816003193601126100a357602090516402540be4008152f35b5050346100a357816003193601126100a35760209061015e6104b4565b9051908152f35b5050346100a357816003193601126100a3576020906001549051908152f35b9050346101c05760203660031901126101c05735916002548310156101bd57506101af602092610413565b91905490519160031b1c8152f35b80fd5b8280fd5b8390346100a357816003193601126100a3576101de6104b4565b600290815490680100000000000000008210156102ed576102239061020a600193600181018655610413565b90919082549060031b91821b91600019901b1916179055565b815460015410610231578380f35b6001815b61027e575b5050805491821561026b57506000199182019161025683610413565b909182549160031b1b19169055558180808380f35b634e487b7160e01b845260319052602483fd5b82548110156102e85761029081610413565b905460001983018381116102d5578493919284936102b06102ce93610413565b91909260031b1c9082549060031b91821b91600019901b1916179055565b0190610235565b634e487b7160e01b885260118752602488fd5b61023a565b634e487b7160e01b855260418452602485fd5b8383346100a357816003193601126100a35761031a6104b4565b8254825163313ce56760e01b8152919391906020908290879082906001600160a01b03165afa80156103e95782906103ac575b60ff91501660120360ff81116103995760ff16604d811161039957600a0a92838102938185041490151715610386576020838351908152f35b634e487b7160e01b815260118452602490fd5b634e487b7160e01b825260118552602482fd5b506020813d6020116103e1575b816103c660209383610460565b810103126100a3575160ff811681036100a35760ff9061034d565b3d91506103b9565b83513d84823e3d90fd5b8490346100a357816003193601126100a357806501d1a94a200060209252f35b60025481101561044a5760026000527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0190600090565b634e487b7160e01b600052603260045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761048257604052565b634e487b7160e01b600052604160045260246000fd5b519069ffffffffffffffffffff821682036104af57565b600080fd5b60008054604051633fabe5a360e21b8152919060a090839060049082906001600160a01b03165afa9081156105f957809281926105a3575b5080831315610591578142039042821161057d5750610e108091101561055f5750506402540be4008082108015610550575b610526575090565b60649250604051916367df7a0f60e11b8352600483015260248201526501d1a94a20006044820152fd5b506501d1a94a2000821161051e565b60449250604051916317c9d07f60e31b835260048301526024820152fd5b634e487b7160e01b81526011600452602490fd5b6040516392bef32f60e01b8152600490fd5b9250905060a0823d60a0116105f1575b816105c060a09383610460565b810103126101bd576105d182610498565b5060208201516105e8608060608501519401610498565b509190386104ec565b3d91506105b3565b604051903d90823e3d90fdfea264697066735822122025867fb15a90e6ce92a5824191475a559c6f43afeaf8f149cd6be7038f18a62b64736f6c63430008190033",
|
|
598
|
+
"deployedBytecode": "0x608060408181526004918236101561001657600080fd5b600092833560e01c91826301c11d96146103f35750816333022ec51461030057816351ce6567146101c45781637ba996d5146101845781638a14117a146101655781638e15f47314610141578163ad9f20a614610121578163b5087c16146100a7575063caca95a41461008857600080fd5b346100a357816003193601126100a35760209051610e108152f35b5080fd5b8383346100a357816003193601126100a3576002549081156101125782805b8382106100da575050602093505191048152f35b90936100e585610413565b90549060031b1c81018091116100ff5793600101906100c6565b634e487b7160e01b825260118652602482fd5b516305bd3d7960e51b81528390fd5b5050346100a357816003193601126100a357602090516402540be4008152f35b5050346100a357816003193601126100a35760209061015e6104b4565b9051908152f35b5050346100a357816003193601126100a3576020906001549051908152f35b9050346101c05760203660031901126101c05735916002548310156101bd57506101af602092610413565b91905490519160031b1c8152f35b80fd5b8280fd5b8390346100a357816003193601126100a3576101de6104b4565b600290815490680100000000000000008210156102ed576102239061020a600193600181018655610413565b90919082549060031b91821b91600019901b1916179055565b815460015410610231578380f35b6001815b61027e575b5050805491821561026b57506000199182019161025683610413565b909182549160031b1b19169055558180808380f35b634e487b7160e01b845260319052602483fd5b82548110156102e85761029081610413565b905460001983018381116102d5578493919284936102b06102ce93610413565b91909260031b1c9082549060031b91821b91600019901b1916179055565b0190610235565b634e487b7160e01b885260118752602488fd5b61023a565b634e487b7160e01b855260418452602485fd5b8383346100a357816003193601126100a35761031a6104b4565b8254825163313ce56760e01b8152919391906020908290879082906001600160a01b03165afa80156103e95782906103ac575b60ff91501660120360ff81116103995760ff16604d811161039957600a0a92838102938185041490151715610386576020838351908152f35b634e487b7160e01b815260118452602490fd5b634e487b7160e01b825260118552602482fd5b506020813d6020116103e1575b816103c660209383610460565b810103126100a3575160ff811681036100a35760ff9061034d565b3d91506103b9565b83513d84823e3d90fd5b8490346100a357816003193601126100a357806501d1a94a200060209252f35b60025481101561044a5760026000527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0190600090565b634e487b7160e01b600052603260045260246000fd5b90601f8019910116810190811067ffffffffffffffff82111761048257604052565b634e487b7160e01b600052604160045260246000fd5b519069ffffffffffffffffffff821682036104af57565b600080fd5b60008054604051633fabe5a360e21b8152919060a090839060049082906001600160a01b03165afa9081156105f957809281926105a3575b5080831315610591578142039042821161057d5750610e108091101561055f5750506402540be4008082108015610550575b610526575090565b60649250604051916367df7a0f60e11b8352600483015260248201526501d1a94a20006044820152fd5b506501d1a94a2000821161051e565b60449250604051916317c9d07f60e31b835260048301526024820152fd5b634e487b7160e01b81526011600452602490fd5b6040516392bef32f60e01b8152600490fd5b9250905060a0823d60a0116105f1575b816105c060a09383610460565b810103126101bd576105d182610498565b5060208201516105e8608060608501519401610498565b509190386104ec565b3d91506105b3565b604051903d90823e3d90fdfea264697066735822122025867fb15a90e6ce92a5824191475a559c6f43afeaf8f149cd6be7038f18a62b64736f6c63430008190033",
|
|
599
|
+
"linkReferences": {},
|
|
600
|
+
"deployedLinkReferences": {}
|
|
601
|
+
}
|