@juicedollar/jusd 1.0.2 → 1.0.3
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/contracts/MintingHubV2/MintingHub.sol +47 -17
- package/contracts/MintingHubV2/Position.sol +94 -24
- package/contracts/MintingHubV2/PositionFactory.sol +2 -2
- package/contracts/MintingHubV2/PositionRoller.sol +2 -1
- package/contracts/MintingHubV2/interface/IMintingHub.sol +1 -1
- package/contracts/MintingHubV2/interface/IPosition.sol +5 -3
- package/contracts/gateway/MintingHubGateway.sol +13 -18
- package/contracts/gateway/interface/IMintingHubGateway.sol +2 -2
- package/contracts/interface/IWrappedNative.sol +10 -0
- package/contracts/test/PositionExpirationTest.sol +3 -3
- package/contracts/test/ReentrantAttacker.sol +74 -0
- package/contracts/test/RejectNative.sol +17 -0
- package/dist/index.d.mts +151 -480
- package/dist/index.d.ts +151 -480
- package/dist/index.js +218 -645
- package/dist/index.mjs +218 -644
- package/exports/abis/MintingHubV2/PositionV2.ts +68 -26
- package/exports/abis/core/MintingHubGateway.ts +40 -75
- package/exports/abis/utils/MintingHubV2.ts +35 -36
- package/exports/address.config.ts +10 -13
- package/exports/index.ts +0 -1
- package/package.json +1 -1
- package/contracts/gateway/CoinLendingGateway.sol +0 -223
- package/contracts/gateway/interface/ICoinLendingGateway.sol +0 -73
- package/exports/abis/core/CoinLendingGateway.ts +0 -427
package/dist/index.js
CHANGED
|
@@ -21,7 +21,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var exports_exports = {};
|
|
22
22
|
__export(exports_exports, {
|
|
23
23
|
ADDRESS: () => ADDRESS,
|
|
24
|
-
CoinLendingGatewayABI: () => CoinLendingGatewayABI,
|
|
25
24
|
ERC20ABI: () => ERC20ABI,
|
|
26
25
|
ERC20PermitLightABI: () => ERC20PermitLightABI,
|
|
27
26
|
EquityABI: () => EquityABI,
|
|
@@ -54,24 +53,22 @@ var ADDRESS = {
|
|
|
54
53
|
savingsGateway: import_viem.zeroAddress,
|
|
55
54
|
savingsVaultJUSD: import_viem.zeroAddress,
|
|
56
55
|
mintingHubGateway: import_viem.zeroAddress,
|
|
57
|
-
coinLendingGateway: import_viem.zeroAddress,
|
|
58
56
|
bridgeStartUSD: import_viem.zeroAddress,
|
|
59
57
|
startUSD: import_viem.zeroAddress,
|
|
60
58
|
roller: import_viem.zeroAddress,
|
|
61
59
|
positionFactoryV2: import_viem.zeroAddress
|
|
62
60
|
},
|
|
63
61
|
5115: {
|
|
64
|
-
juiceDollar: "
|
|
65
|
-
equity: "
|
|
66
|
-
frontendGateway: "
|
|
67
|
-
savingsGateway: "
|
|
68
|
-
savingsVaultJUSD: "
|
|
69
|
-
mintingHubGateway: "
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
positionFactoryV2: "0x171dAe92afc8AC3D581178163a1F993533a94c4B"
|
|
62
|
+
juiceDollar: "0x0D511a9C1662924dd8f9c12D2Bd72B0264E48583",
|
|
63
|
+
equity: "0x8FF9be291A44CA3E7b45361bf6bbE1aCd0135c06",
|
|
64
|
+
frontendGateway: "0x6721aC661e52C6BA092debb6cc33Ee58F1a4D10A",
|
|
65
|
+
savingsGateway: "0xC638D446072416Aa1760A73748D291Af9f3925cB",
|
|
66
|
+
savingsVaultJUSD: "0x4bD31350f611b469bA7fCC2c5945aAEBefD7A191",
|
|
67
|
+
mintingHubGateway: "0x44B0727688F1839c2BF7b74686F04Cba0CfE89D6",
|
|
68
|
+
bridgeStartUSD: "0x8d149f42C8F73F9fC90e2CbED8eE0644e8837623",
|
|
69
|
+
startUSD: "0xf65BF14763699C08F9ff11e9Dc6706DdEB69b5b9",
|
|
70
|
+
roller: "0xD09CeBBac7cA43430A505CA7A78123D83d53Af39",
|
|
71
|
+
positionFactoryV2: "0xD6673d8Fc25094579Ae23802957e9084860F5d1a"
|
|
75
72
|
}
|
|
76
73
|
};
|
|
77
74
|
|
|
@@ -3667,6 +3664,11 @@ var MintingHubGatewayABI = [
|
|
|
3667
3664
|
internalType: "address",
|
|
3668
3665
|
name: "_gateway",
|
|
3669
3666
|
type: "address"
|
|
3667
|
+
},
|
|
3668
|
+
{
|
|
3669
|
+
internalType: "address",
|
|
3670
|
+
name: "_wcbtc",
|
|
3671
|
+
type: "address"
|
|
3670
3672
|
}
|
|
3671
3673
|
],
|
|
3672
3674
|
stateMutability: "nonpayable",
|
|
@@ -3723,11 +3725,21 @@ var MintingHubGatewayABI = [
|
|
|
3723
3725
|
name: "LeaveNoDust",
|
|
3724
3726
|
type: "error"
|
|
3725
3727
|
},
|
|
3728
|
+
{
|
|
3729
|
+
inputs: [],
|
|
3730
|
+
name: "NativeOnlyForWCBTC",
|
|
3731
|
+
type: "error"
|
|
3732
|
+
},
|
|
3726
3733
|
{
|
|
3727
3734
|
inputs: [],
|
|
3728
3735
|
name: "UnexpectedPrice",
|
|
3729
3736
|
type: "error"
|
|
3730
3737
|
},
|
|
3738
|
+
{
|
|
3739
|
+
inputs: [],
|
|
3740
|
+
name: "ValueMismatch",
|
|
3741
|
+
type: "error"
|
|
3742
|
+
},
|
|
3731
3743
|
{
|
|
3732
3744
|
anonymous: false,
|
|
3733
3745
|
inputs: [
|
|
@@ -3993,6 +4005,19 @@ var MintingHubGatewayABI = [
|
|
|
3993
4005
|
stateMutability: "view",
|
|
3994
4006
|
type: "function"
|
|
3995
4007
|
},
|
|
4008
|
+
{
|
|
4009
|
+
inputs: [],
|
|
4010
|
+
name: "WCBTC",
|
|
4011
|
+
outputs: [
|
|
4012
|
+
{
|
|
4013
|
+
internalType: "address",
|
|
4014
|
+
name: "",
|
|
4015
|
+
type: "address"
|
|
4016
|
+
}
|
|
4017
|
+
],
|
|
4018
|
+
stateMutability: "view",
|
|
4019
|
+
type: "function"
|
|
4020
|
+
},
|
|
3996
4021
|
{
|
|
3997
4022
|
inputs: [
|
|
3998
4023
|
{
|
|
@@ -4107,38 +4132,9 @@ var MintingHubGatewayABI = [
|
|
|
4107
4132
|
inputs: [
|
|
4108
4133
|
{
|
|
4109
4134
|
internalType: "address",
|
|
4110
|
-
name: "
|
|
4135
|
+
name: "owner",
|
|
4111
4136
|
type: "address"
|
|
4112
4137
|
},
|
|
4113
|
-
{
|
|
4114
|
-
internalType: "uint256",
|
|
4115
|
-
name: "_initialCollateral",
|
|
4116
|
-
type: "uint256"
|
|
4117
|
-
},
|
|
4118
|
-
{
|
|
4119
|
-
internalType: "uint256",
|
|
4120
|
-
name: "_initialMint",
|
|
4121
|
-
type: "uint256"
|
|
4122
|
-
},
|
|
4123
|
-
{
|
|
4124
|
-
internalType: "uint40",
|
|
4125
|
-
name: "expiration",
|
|
4126
|
-
type: "uint40"
|
|
4127
|
-
}
|
|
4128
|
-
],
|
|
4129
|
-
name: "clone",
|
|
4130
|
-
outputs: [
|
|
4131
|
-
{
|
|
4132
|
-
internalType: "address",
|
|
4133
|
-
name: "",
|
|
4134
|
-
type: "address"
|
|
4135
|
-
}
|
|
4136
|
-
],
|
|
4137
|
-
stateMutability: "nonpayable",
|
|
4138
|
-
type: "function"
|
|
4139
|
-
},
|
|
4140
|
-
{
|
|
4141
|
-
inputs: [
|
|
4142
4138
|
{
|
|
4143
4139
|
internalType: "address",
|
|
4144
4140
|
name: "parent",
|
|
@@ -4160,9 +4156,9 @@ var MintingHubGatewayABI = [
|
|
|
4160
4156
|
type: "uint40"
|
|
4161
4157
|
},
|
|
4162
4158
|
{
|
|
4163
|
-
internalType: "
|
|
4164
|
-
name: "
|
|
4165
|
-
type: "
|
|
4159
|
+
internalType: "uint256",
|
|
4160
|
+
name: "_liqPrice",
|
|
4161
|
+
type: "uint256"
|
|
4166
4162
|
}
|
|
4167
4163
|
],
|
|
4168
4164
|
name: "clone",
|
|
@@ -4173,7 +4169,7 @@ var MintingHubGatewayABI = [
|
|
|
4173
4169
|
type: "address"
|
|
4174
4170
|
}
|
|
4175
4171
|
],
|
|
4176
|
-
stateMutability: "
|
|
4172
|
+
stateMutability: "payable",
|
|
4177
4173
|
type: "function"
|
|
4178
4174
|
},
|
|
4179
4175
|
{
|
|
@@ -4203,49 +4199,15 @@ var MintingHubGatewayABI = [
|
|
|
4203
4199
|
name: "expiration",
|
|
4204
4200
|
type: "uint40"
|
|
4205
4201
|
},
|
|
4206
|
-
{
|
|
4207
|
-
internalType: "bytes32",
|
|
4208
|
-
name: "frontendCode",
|
|
4209
|
-
type: "bytes32"
|
|
4210
|
-
}
|
|
4211
|
-
],
|
|
4212
|
-
name: "clone",
|
|
4213
|
-
outputs: [
|
|
4214
|
-
{
|
|
4215
|
-
internalType: "address",
|
|
4216
|
-
name: "",
|
|
4217
|
-
type: "address"
|
|
4218
|
-
}
|
|
4219
|
-
],
|
|
4220
|
-
stateMutability: "nonpayable",
|
|
4221
|
-
type: "function"
|
|
4222
|
-
},
|
|
4223
|
-
{
|
|
4224
|
-
inputs: [
|
|
4225
|
-
{
|
|
4226
|
-
internalType: "address",
|
|
4227
|
-
name: "owner",
|
|
4228
|
-
type: "address"
|
|
4229
|
-
},
|
|
4230
|
-
{
|
|
4231
|
-
internalType: "address",
|
|
4232
|
-
name: "parent",
|
|
4233
|
-
type: "address"
|
|
4234
|
-
},
|
|
4235
|
-
{
|
|
4236
|
-
internalType: "uint256",
|
|
4237
|
-
name: "_initialCollateral",
|
|
4238
|
-
type: "uint256"
|
|
4239
|
-
},
|
|
4240
4202
|
{
|
|
4241
4203
|
internalType: "uint256",
|
|
4242
|
-
name: "
|
|
4204
|
+
name: "_liqPrice",
|
|
4243
4205
|
type: "uint256"
|
|
4244
4206
|
},
|
|
4245
4207
|
{
|
|
4246
|
-
internalType: "
|
|
4247
|
-
name: "
|
|
4248
|
-
type: "
|
|
4208
|
+
internalType: "bytes32",
|
|
4209
|
+
name: "frontendCode",
|
|
4210
|
+
type: "bytes32"
|
|
4249
4211
|
}
|
|
4250
4212
|
],
|
|
4251
4213
|
name: "clone",
|
|
@@ -4256,7 +4218,7 @@ var MintingHubGatewayABI = [
|
|
|
4256
4218
|
type: "address"
|
|
4257
4219
|
}
|
|
4258
4220
|
],
|
|
4259
|
-
stateMutability: "
|
|
4221
|
+
stateMutability: "payable",
|
|
4260
4222
|
type: "function"
|
|
4261
4223
|
},
|
|
4262
4224
|
{
|
|
@@ -4352,7 +4314,7 @@ var MintingHubGatewayABI = [
|
|
|
4352
4314
|
type: "address"
|
|
4353
4315
|
}
|
|
4354
4316
|
],
|
|
4355
|
-
stateMutability: "
|
|
4317
|
+
stateMutability: "payable",
|
|
4356
4318
|
type: "function"
|
|
4357
4319
|
},
|
|
4358
4320
|
{
|
|
@@ -4421,7 +4383,7 @@ var MintingHubGatewayABI = [
|
|
|
4421
4383
|
type: "address"
|
|
4422
4384
|
}
|
|
4423
4385
|
],
|
|
4424
|
-
stateMutability: "
|
|
4386
|
+
stateMutability: "payable",
|
|
4425
4387
|
type: "function"
|
|
4426
4388
|
},
|
|
4427
4389
|
{
|
|
@@ -5868,468 +5830,12 @@ var SavingsVaultJUSDABI = [
|
|
|
5868
5830
|
},
|
|
5869
5831
|
{
|
|
5870
5832
|
inputs: [],
|
|
5871
|
-
name: "totalAssets",
|
|
5872
|
-
outputs: [
|
|
5873
|
-
{
|
|
5874
|
-
internalType: "uint256",
|
|
5875
|
-
name: "",
|
|
5876
|
-
type: "uint256"
|
|
5877
|
-
}
|
|
5878
|
-
],
|
|
5879
|
-
stateMutability: "view",
|
|
5880
|
-
type: "function"
|
|
5881
|
-
},
|
|
5882
|
-
{
|
|
5883
|
-
inputs: [],
|
|
5884
|
-
name: "totalClaimed",
|
|
5885
|
-
outputs: [
|
|
5886
|
-
{
|
|
5887
|
-
internalType: "uint256",
|
|
5888
|
-
name: "",
|
|
5889
|
-
type: "uint256"
|
|
5890
|
-
}
|
|
5891
|
-
],
|
|
5892
|
-
stateMutability: "view",
|
|
5893
|
-
type: "function"
|
|
5894
|
-
},
|
|
5895
|
-
{
|
|
5896
|
-
inputs: [],
|
|
5897
|
-
name: "totalSupply",
|
|
5898
|
-
outputs: [
|
|
5899
|
-
{
|
|
5900
|
-
internalType: "uint256",
|
|
5901
|
-
name: "",
|
|
5902
|
-
type: "uint256"
|
|
5903
|
-
}
|
|
5904
|
-
],
|
|
5905
|
-
stateMutability: "view",
|
|
5906
|
-
type: "function"
|
|
5907
|
-
},
|
|
5908
|
-
{
|
|
5909
|
-
inputs: [
|
|
5910
|
-
{
|
|
5911
|
-
internalType: "address",
|
|
5912
|
-
name: "to",
|
|
5913
|
-
type: "address"
|
|
5914
|
-
},
|
|
5915
|
-
{
|
|
5916
|
-
internalType: "uint256",
|
|
5917
|
-
name: "value",
|
|
5918
|
-
type: "uint256"
|
|
5919
|
-
}
|
|
5920
|
-
],
|
|
5921
|
-
name: "transfer",
|
|
5922
|
-
outputs: [
|
|
5923
|
-
{
|
|
5924
|
-
internalType: "bool",
|
|
5925
|
-
name: "",
|
|
5926
|
-
type: "bool"
|
|
5927
|
-
}
|
|
5928
|
-
],
|
|
5929
|
-
stateMutability: "nonpayable",
|
|
5930
|
-
type: "function"
|
|
5931
|
-
},
|
|
5932
|
-
{
|
|
5933
|
-
inputs: [
|
|
5934
|
-
{
|
|
5935
|
-
internalType: "address",
|
|
5936
|
-
name: "from",
|
|
5937
|
-
type: "address"
|
|
5938
|
-
},
|
|
5939
|
-
{
|
|
5940
|
-
internalType: "address",
|
|
5941
|
-
name: "to",
|
|
5942
|
-
type: "address"
|
|
5943
|
-
},
|
|
5944
|
-
{
|
|
5945
|
-
internalType: "uint256",
|
|
5946
|
-
name: "value",
|
|
5947
|
-
type: "uint256"
|
|
5948
|
-
}
|
|
5949
|
-
],
|
|
5950
|
-
name: "transferFrom",
|
|
5951
|
-
outputs: [
|
|
5952
|
-
{
|
|
5953
|
-
internalType: "bool",
|
|
5954
|
-
name: "",
|
|
5955
|
-
type: "bool"
|
|
5956
|
-
}
|
|
5957
|
-
],
|
|
5958
|
-
stateMutability: "nonpayable",
|
|
5959
|
-
type: "function"
|
|
5960
|
-
},
|
|
5961
|
-
{
|
|
5962
|
-
inputs: [
|
|
5963
|
-
{
|
|
5964
|
-
internalType: "uint256",
|
|
5965
|
-
name: "assets",
|
|
5966
|
-
type: "uint256"
|
|
5967
|
-
},
|
|
5968
|
-
{
|
|
5969
|
-
internalType: "address",
|
|
5970
|
-
name: "receiver",
|
|
5971
|
-
type: "address"
|
|
5972
|
-
},
|
|
5973
|
-
{
|
|
5974
|
-
internalType: "address",
|
|
5975
|
-
name: "owner",
|
|
5976
|
-
type: "address"
|
|
5977
|
-
}
|
|
5978
|
-
],
|
|
5979
|
-
name: "withdraw",
|
|
5980
|
-
outputs: [
|
|
5981
|
-
{
|
|
5982
|
-
internalType: "uint256",
|
|
5983
|
-
name: "",
|
|
5984
|
-
type: "uint256"
|
|
5985
|
-
}
|
|
5986
|
-
],
|
|
5987
|
-
stateMutability: "nonpayable",
|
|
5988
|
-
type: "function"
|
|
5989
|
-
}
|
|
5990
|
-
];
|
|
5991
|
-
|
|
5992
|
-
// exports/abis/core/CoinLendingGateway.ts
|
|
5993
|
-
var CoinLendingGatewayABI = [
|
|
5994
|
-
{
|
|
5995
|
-
inputs: [
|
|
5996
|
-
{
|
|
5997
|
-
internalType: "address",
|
|
5998
|
-
name: "_mintingHub",
|
|
5999
|
-
type: "address"
|
|
6000
|
-
},
|
|
6001
|
-
{
|
|
6002
|
-
internalType: "address",
|
|
6003
|
-
name: "_wcbtc",
|
|
6004
|
-
type: "address"
|
|
6005
|
-
},
|
|
6006
|
-
{
|
|
6007
|
-
internalType: "address",
|
|
6008
|
-
name: "_jusd",
|
|
6009
|
-
type: "address"
|
|
6010
|
-
}
|
|
6011
|
-
],
|
|
6012
|
-
stateMutability: "nonpayable",
|
|
6013
|
-
type: "constructor"
|
|
6014
|
-
},
|
|
6015
|
-
{
|
|
6016
|
-
inputs: [],
|
|
6017
|
-
name: "DirectCBTCNotAccepted",
|
|
6018
|
-
type: "error"
|
|
6019
|
-
},
|
|
6020
|
-
{
|
|
6021
|
-
inputs: [],
|
|
6022
|
-
name: "EnforcedPause",
|
|
6023
|
-
type: "error"
|
|
6024
|
-
},
|
|
6025
|
-
{
|
|
6026
|
-
inputs: [],
|
|
6027
|
-
name: "ExpectedPause",
|
|
6028
|
-
type: "error"
|
|
6029
|
-
},
|
|
6030
|
-
{
|
|
6031
|
-
inputs: [],
|
|
6032
|
-
name: "InsufficientCoin",
|
|
6033
|
-
type: "error"
|
|
6034
|
-
},
|
|
6035
|
-
{
|
|
6036
|
-
inputs: [],
|
|
6037
|
-
name: "InvalidPosition",
|
|
6038
|
-
type: "error"
|
|
6039
|
-
},
|
|
6040
|
-
{
|
|
6041
|
-
inputs: [
|
|
6042
|
-
{
|
|
6043
|
-
internalType: "address",
|
|
6044
|
-
name: "owner",
|
|
6045
|
-
type: "address"
|
|
6046
|
-
}
|
|
6047
|
-
],
|
|
6048
|
-
name: "OwnableInvalidOwner",
|
|
6049
|
-
type: "error"
|
|
6050
|
-
},
|
|
6051
|
-
{
|
|
6052
|
-
inputs: [
|
|
6053
|
-
{
|
|
6054
|
-
internalType: "address",
|
|
6055
|
-
name: "account",
|
|
6056
|
-
type: "address"
|
|
6057
|
-
}
|
|
6058
|
-
],
|
|
6059
|
-
name: "OwnableUnauthorizedAccount",
|
|
6060
|
-
type: "error"
|
|
6061
|
-
},
|
|
6062
|
-
{
|
|
6063
|
-
inputs: [],
|
|
6064
|
-
name: "PriceAdjustmentFailed",
|
|
6065
|
-
type: "error"
|
|
6066
|
-
},
|
|
6067
|
-
{
|
|
6068
|
-
inputs: [],
|
|
6069
|
-
name: "ReentrancyGuardReentrantCall",
|
|
6070
|
-
type: "error"
|
|
6071
|
-
},
|
|
6072
|
-
{
|
|
6073
|
-
inputs: [],
|
|
6074
|
-
name: "TransferFailed",
|
|
6075
|
-
type: "error"
|
|
6076
|
-
},
|
|
6077
|
-
{
|
|
6078
|
-
anonymous: false,
|
|
6079
|
-
inputs: [
|
|
6080
|
-
{
|
|
6081
|
-
indexed: true,
|
|
6082
|
-
internalType: "address",
|
|
6083
|
-
name: "to",
|
|
6084
|
-
type: "address"
|
|
6085
|
-
},
|
|
6086
|
-
{
|
|
6087
|
-
indexed: false,
|
|
6088
|
-
internalType: "uint256",
|
|
6089
|
-
name: "amount",
|
|
6090
|
-
type: "uint256"
|
|
6091
|
-
}
|
|
6092
|
-
],
|
|
6093
|
-
name: "CoinRescued",
|
|
6094
|
-
type: "event"
|
|
6095
|
-
},
|
|
6096
|
-
{
|
|
6097
|
-
anonymous: false,
|
|
6098
|
-
inputs: [
|
|
6099
|
-
{
|
|
6100
|
-
indexed: true,
|
|
6101
|
-
internalType: "address",
|
|
6102
|
-
name: "previousOwner",
|
|
6103
|
-
type: "address"
|
|
6104
|
-
},
|
|
6105
|
-
{
|
|
6106
|
-
indexed: true,
|
|
6107
|
-
internalType: "address",
|
|
6108
|
-
name: "newOwner",
|
|
6109
|
-
type: "address"
|
|
6110
|
-
}
|
|
6111
|
-
],
|
|
6112
|
-
name: "OwnershipTransferred",
|
|
6113
|
-
type: "event"
|
|
6114
|
-
},
|
|
6115
|
-
{
|
|
6116
|
-
anonymous: false,
|
|
6117
|
-
inputs: [
|
|
6118
|
-
{
|
|
6119
|
-
indexed: false,
|
|
6120
|
-
internalType: "address",
|
|
6121
|
-
name: "account",
|
|
6122
|
-
type: "address"
|
|
6123
|
-
}
|
|
6124
|
-
],
|
|
6125
|
-
name: "Paused",
|
|
6126
|
-
type: "event"
|
|
6127
|
-
},
|
|
6128
|
-
{
|
|
6129
|
-
anonymous: false,
|
|
6130
|
-
inputs: [
|
|
6131
|
-
{
|
|
6132
|
-
indexed: true,
|
|
6133
|
-
internalType: "address",
|
|
6134
|
-
name: "owner",
|
|
6135
|
-
type: "address"
|
|
6136
|
-
},
|
|
6137
|
-
{
|
|
6138
|
-
indexed: true,
|
|
6139
|
-
internalType: "address",
|
|
6140
|
-
name: "position",
|
|
6141
|
-
type: "address"
|
|
6142
|
-
},
|
|
6143
|
-
{
|
|
6144
|
-
indexed: false,
|
|
6145
|
-
internalType: "uint256",
|
|
6146
|
-
name: "coinAmount",
|
|
6147
|
-
type: "uint256"
|
|
6148
|
-
},
|
|
6149
|
-
{
|
|
6150
|
-
indexed: false,
|
|
6151
|
-
internalType: "uint256",
|
|
6152
|
-
name: "mintAmount",
|
|
6153
|
-
type: "uint256"
|
|
6154
|
-
},
|
|
6155
|
-
{
|
|
6156
|
-
indexed: false,
|
|
6157
|
-
internalType: "uint256",
|
|
6158
|
-
name: "liquidationPrice",
|
|
6159
|
-
type: "uint256"
|
|
6160
|
-
}
|
|
6161
|
-
],
|
|
6162
|
-
name: "PositionCreatedWithCoin",
|
|
6163
|
-
type: "event"
|
|
6164
|
-
},
|
|
6165
|
-
{
|
|
6166
|
-
anonymous: false,
|
|
6167
|
-
inputs: [
|
|
6168
|
-
{
|
|
6169
|
-
indexed: true,
|
|
6170
|
-
internalType: "address",
|
|
6171
|
-
name: "token",
|
|
6172
|
-
type: "address"
|
|
6173
|
-
},
|
|
6174
|
-
{
|
|
6175
|
-
indexed: true,
|
|
6176
|
-
internalType: "address",
|
|
6177
|
-
name: "to",
|
|
6178
|
-
type: "address"
|
|
6179
|
-
},
|
|
6180
|
-
{
|
|
6181
|
-
indexed: false,
|
|
6182
|
-
internalType: "uint256",
|
|
6183
|
-
name: "amount",
|
|
6184
|
-
type: "uint256"
|
|
6185
|
-
}
|
|
6186
|
-
],
|
|
6187
|
-
name: "TokenRescued",
|
|
6188
|
-
type: "event"
|
|
6189
|
-
},
|
|
6190
|
-
{
|
|
6191
|
-
anonymous: false,
|
|
6192
|
-
inputs: [
|
|
6193
|
-
{
|
|
6194
|
-
indexed: false,
|
|
6195
|
-
internalType: "address",
|
|
6196
|
-
name: "account",
|
|
6197
|
-
type: "address"
|
|
6198
|
-
}
|
|
6199
|
-
],
|
|
6200
|
-
name: "Unpaused",
|
|
6201
|
-
type: "event"
|
|
6202
|
-
},
|
|
6203
|
-
{
|
|
6204
|
-
inputs: [],
|
|
6205
|
-
name: "JUSD",
|
|
6206
|
-
outputs: [
|
|
6207
|
-
{
|
|
6208
|
-
internalType: "contract IJuiceDollar",
|
|
6209
|
-
name: "",
|
|
6210
|
-
type: "address"
|
|
6211
|
-
}
|
|
6212
|
-
],
|
|
6213
|
-
stateMutability: "view",
|
|
6214
|
-
type: "function"
|
|
6215
|
-
},
|
|
6216
|
-
{
|
|
6217
|
-
inputs: [],
|
|
6218
|
-
name: "MINTING_HUB",
|
|
6219
|
-
outputs: [
|
|
6220
|
-
{
|
|
6221
|
-
internalType: "contract IMintingHubGateway",
|
|
6222
|
-
name: "",
|
|
6223
|
-
type: "address"
|
|
6224
|
-
}
|
|
6225
|
-
],
|
|
6226
|
-
stateMutability: "view",
|
|
6227
|
-
type: "function"
|
|
6228
|
-
},
|
|
6229
|
-
{
|
|
6230
|
-
inputs: [],
|
|
6231
|
-
name: "WCBTC",
|
|
6232
|
-
outputs: [
|
|
6233
|
-
{
|
|
6234
|
-
internalType: "contract IWrappedCBTC",
|
|
6235
|
-
name: "",
|
|
6236
|
-
type: "address"
|
|
6237
|
-
}
|
|
6238
|
-
],
|
|
6239
|
-
stateMutability: "view",
|
|
6240
|
-
type: "function"
|
|
6241
|
-
},
|
|
6242
|
-
{
|
|
6243
|
-
inputs: [
|
|
6244
|
-
{
|
|
6245
|
-
internalType: "address",
|
|
6246
|
-
name: "parent",
|
|
6247
|
-
type: "address"
|
|
6248
|
-
},
|
|
6249
|
-
{
|
|
6250
|
-
internalType: "uint256",
|
|
6251
|
-
name: "initialMint",
|
|
6252
|
-
type: "uint256"
|
|
6253
|
-
},
|
|
6254
|
-
{
|
|
6255
|
-
internalType: "uint40",
|
|
6256
|
-
name: "expiration",
|
|
6257
|
-
type: "uint40"
|
|
6258
|
-
},
|
|
6259
|
-
{
|
|
6260
|
-
internalType: "bytes32",
|
|
6261
|
-
name: "frontendCode",
|
|
6262
|
-
type: "bytes32"
|
|
6263
|
-
},
|
|
6264
|
-
{
|
|
6265
|
-
internalType: "uint256",
|
|
6266
|
-
name: "liquidationPrice",
|
|
6267
|
-
type: "uint256"
|
|
6268
|
-
}
|
|
6269
|
-
],
|
|
6270
|
-
name: "lendWithCoin",
|
|
6271
|
-
outputs: [
|
|
6272
|
-
{
|
|
6273
|
-
internalType: "address",
|
|
6274
|
-
name: "position",
|
|
6275
|
-
type: "address"
|
|
6276
|
-
}
|
|
6277
|
-
],
|
|
6278
|
-
stateMutability: "payable",
|
|
6279
|
-
type: "function"
|
|
6280
|
-
},
|
|
6281
|
-
{
|
|
6282
|
-
inputs: [
|
|
6283
|
-
{
|
|
6284
|
-
internalType: "address",
|
|
6285
|
-
name: "owner",
|
|
6286
|
-
type: "address"
|
|
6287
|
-
},
|
|
6288
|
-
{
|
|
6289
|
-
internalType: "address",
|
|
6290
|
-
name: "parent",
|
|
6291
|
-
type: "address"
|
|
6292
|
-
},
|
|
6293
|
-
{
|
|
6294
|
-
internalType: "uint256",
|
|
6295
|
-
name: "initialMint",
|
|
6296
|
-
type: "uint256"
|
|
6297
|
-
},
|
|
6298
|
-
{
|
|
6299
|
-
internalType: "uint40",
|
|
6300
|
-
name: "expiration",
|
|
6301
|
-
type: "uint40"
|
|
6302
|
-
},
|
|
6303
|
-
{
|
|
6304
|
-
internalType: "bytes32",
|
|
6305
|
-
name: "frontendCode",
|
|
6306
|
-
type: "bytes32"
|
|
6307
|
-
},
|
|
6308
|
-
{
|
|
6309
|
-
internalType: "uint256",
|
|
6310
|
-
name: "liquidationPrice",
|
|
6311
|
-
type: "uint256"
|
|
6312
|
-
}
|
|
6313
|
-
],
|
|
6314
|
-
name: "lendWithCoinFor",
|
|
6315
|
-
outputs: [
|
|
6316
|
-
{
|
|
6317
|
-
internalType: "address",
|
|
6318
|
-
name: "position",
|
|
6319
|
-
type: "address"
|
|
6320
|
-
}
|
|
6321
|
-
],
|
|
6322
|
-
stateMutability: "payable",
|
|
6323
|
-
type: "function"
|
|
6324
|
-
},
|
|
6325
|
-
{
|
|
6326
|
-
inputs: [],
|
|
6327
|
-
name: "owner",
|
|
5833
|
+
name: "totalAssets",
|
|
6328
5834
|
outputs: [
|
|
6329
5835
|
{
|
|
6330
|
-
internalType: "
|
|
5836
|
+
internalType: "uint256",
|
|
6331
5837
|
name: "",
|
|
6332
|
-
type: "
|
|
5838
|
+
type: "uint256"
|
|
6333
5839
|
}
|
|
6334
5840
|
],
|
|
6335
5841
|
stateMutability: "view",
|
|
@@ -6337,19 +5843,12 @@ var CoinLendingGatewayABI = [
|
|
|
6337
5843
|
},
|
|
6338
5844
|
{
|
|
6339
5845
|
inputs: [],
|
|
6340
|
-
name: "
|
|
6341
|
-
outputs: [],
|
|
6342
|
-
stateMutability: "nonpayable",
|
|
6343
|
-
type: "function"
|
|
6344
|
-
},
|
|
6345
|
-
{
|
|
6346
|
-
inputs: [],
|
|
6347
|
-
name: "paused",
|
|
5846
|
+
name: "totalClaimed",
|
|
6348
5847
|
outputs: [
|
|
6349
5848
|
{
|
|
6350
|
-
internalType: "
|
|
5849
|
+
internalType: "uint256",
|
|
6351
5850
|
name: "",
|
|
6352
|
-
type: "
|
|
5851
|
+
type: "uint256"
|
|
6353
5852
|
}
|
|
6354
5853
|
],
|
|
6355
5854
|
stateMutability: "view",
|
|
@@ -6357,15 +5856,38 @@ var CoinLendingGatewayABI = [
|
|
|
6357
5856
|
},
|
|
6358
5857
|
{
|
|
6359
5858
|
inputs: [],
|
|
6360
|
-
name: "
|
|
6361
|
-
outputs: [
|
|
6362
|
-
|
|
5859
|
+
name: "totalSupply",
|
|
5860
|
+
outputs: [
|
|
5861
|
+
{
|
|
5862
|
+
internalType: "uint256",
|
|
5863
|
+
name: "",
|
|
5864
|
+
type: "uint256"
|
|
5865
|
+
}
|
|
5866
|
+
],
|
|
5867
|
+
stateMutability: "view",
|
|
6363
5868
|
type: "function"
|
|
6364
5869
|
},
|
|
6365
5870
|
{
|
|
6366
|
-
inputs: [
|
|
6367
|
-
|
|
6368
|
-
|
|
5871
|
+
inputs: [
|
|
5872
|
+
{
|
|
5873
|
+
internalType: "address",
|
|
5874
|
+
name: "to",
|
|
5875
|
+
type: "address"
|
|
5876
|
+
},
|
|
5877
|
+
{
|
|
5878
|
+
internalType: "uint256",
|
|
5879
|
+
name: "value",
|
|
5880
|
+
type: "uint256"
|
|
5881
|
+
}
|
|
5882
|
+
],
|
|
5883
|
+
name: "transfer",
|
|
5884
|
+
outputs: [
|
|
5885
|
+
{
|
|
5886
|
+
internalType: "bool",
|
|
5887
|
+
name: "",
|
|
5888
|
+
type: "bool"
|
|
5889
|
+
}
|
|
5890
|
+
],
|
|
6369
5891
|
stateMutability: "nonpayable",
|
|
6370
5892
|
type: "function"
|
|
6371
5893
|
},
|
|
@@ -6373,7 +5895,7 @@ var CoinLendingGatewayABI = [
|
|
|
6373
5895
|
inputs: [
|
|
6374
5896
|
{
|
|
6375
5897
|
internalType: "address",
|
|
6376
|
-
name: "
|
|
5898
|
+
name: "from",
|
|
6377
5899
|
type: "address"
|
|
6378
5900
|
},
|
|
6379
5901
|
{
|
|
@@ -6383,38 +5905,49 @@ var CoinLendingGatewayABI = [
|
|
|
6383
5905
|
},
|
|
6384
5906
|
{
|
|
6385
5907
|
internalType: "uint256",
|
|
6386
|
-
name: "
|
|
5908
|
+
name: "value",
|
|
6387
5909
|
type: "uint256"
|
|
6388
5910
|
}
|
|
6389
5911
|
],
|
|
6390
|
-
name: "
|
|
6391
|
-
outputs: [
|
|
5912
|
+
name: "transferFrom",
|
|
5913
|
+
outputs: [
|
|
5914
|
+
{
|
|
5915
|
+
internalType: "bool",
|
|
5916
|
+
name: "",
|
|
5917
|
+
type: "bool"
|
|
5918
|
+
}
|
|
5919
|
+
],
|
|
6392
5920
|
stateMutability: "nonpayable",
|
|
6393
5921
|
type: "function"
|
|
6394
5922
|
},
|
|
6395
5923
|
{
|
|
6396
5924
|
inputs: [
|
|
5925
|
+
{
|
|
5926
|
+
internalType: "uint256",
|
|
5927
|
+
name: "assets",
|
|
5928
|
+
type: "uint256"
|
|
5929
|
+
},
|
|
6397
5930
|
{
|
|
6398
5931
|
internalType: "address",
|
|
6399
|
-
name: "
|
|
5932
|
+
name: "receiver",
|
|
5933
|
+
type: "address"
|
|
5934
|
+
},
|
|
5935
|
+
{
|
|
5936
|
+
internalType: "address",
|
|
5937
|
+
name: "owner",
|
|
6400
5938
|
type: "address"
|
|
6401
5939
|
}
|
|
6402
5940
|
],
|
|
6403
|
-
name: "
|
|
6404
|
-
outputs: [
|
|
6405
|
-
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
outputs: [],
|
|
5941
|
+
name: "withdraw",
|
|
5942
|
+
outputs: [
|
|
5943
|
+
{
|
|
5944
|
+
internalType: "uint256",
|
|
5945
|
+
name: "",
|
|
5946
|
+
type: "uint256"
|
|
5947
|
+
}
|
|
5948
|
+
],
|
|
6412
5949
|
stateMutability: "nonpayable",
|
|
6413
5950
|
type: "function"
|
|
6414
|
-
},
|
|
6415
|
-
{
|
|
6416
|
-
stateMutability: "payable",
|
|
6417
|
-
type: "receive"
|
|
6418
5951
|
}
|
|
6419
5952
|
];
|
|
6420
5953
|
|
|
@@ -6773,6 +6306,11 @@ var PositionV2ABI = [
|
|
|
6773
6306
|
name: "AlreadyInitialized",
|
|
6774
6307
|
type: "error"
|
|
6775
6308
|
},
|
|
6309
|
+
{
|
|
6310
|
+
inputs: [],
|
|
6311
|
+
name: "CannotRescueCollateral",
|
|
6312
|
+
type: "error"
|
|
6313
|
+
},
|
|
6776
6314
|
{
|
|
6777
6315
|
inputs: [],
|
|
6778
6316
|
name: "ChallengeTooSmall",
|
|
@@ -6851,6 +6389,11 @@ var PositionV2ABI = [
|
|
|
6851
6389
|
name: "LimitExceeded",
|
|
6852
6390
|
type: "error"
|
|
6853
6391
|
},
|
|
6392
|
+
{
|
|
6393
|
+
inputs: [],
|
|
6394
|
+
name: "NativeTransferFailed",
|
|
6395
|
+
type: "error"
|
|
6396
|
+
},
|
|
6854
6397
|
{
|
|
6855
6398
|
inputs: [],
|
|
6856
6399
|
name: "NotHub",
|
|
@@ -6994,37 +6537,27 @@ var PositionV2ABI = [
|
|
|
6994
6537
|
internalType: "uint256",
|
|
6995
6538
|
name: "newPrice",
|
|
6996
6539
|
type: "uint256"
|
|
6540
|
+
},
|
|
6541
|
+
{
|
|
6542
|
+
internalType: "bool",
|
|
6543
|
+
name: "withdrawAsNative",
|
|
6544
|
+
type: "bool"
|
|
6997
6545
|
}
|
|
6998
6546
|
],
|
|
6999
6547
|
name: "adjust",
|
|
7000
6548
|
outputs: [],
|
|
7001
|
-
stateMutability: "
|
|
6549
|
+
stateMutability: "payable",
|
|
7002
6550
|
type: "function"
|
|
7003
6551
|
},
|
|
7004
6552
|
{
|
|
7005
6553
|
inputs: [
|
|
7006
|
-
{
|
|
7007
|
-
internalType: "uint256",
|
|
7008
|
-
name: "newPrincipal",
|
|
7009
|
-
type: "uint256"
|
|
7010
|
-
},
|
|
7011
|
-
{
|
|
7012
|
-
internalType: "uint256",
|
|
7013
|
-
name: "newCollateral",
|
|
7014
|
-
type: "uint256"
|
|
7015
|
-
},
|
|
7016
6554
|
{
|
|
7017
6555
|
internalType: "uint256",
|
|
7018
6556
|
name: "newPrice",
|
|
7019
6557
|
type: "uint256"
|
|
7020
|
-
},
|
|
7021
|
-
{
|
|
7022
|
-
internalType: "address",
|
|
7023
|
-
name: "referencePosition",
|
|
7024
|
-
type: "address"
|
|
7025
6558
|
}
|
|
7026
6559
|
],
|
|
7027
|
-
name: "
|
|
6560
|
+
name: "adjustPrice",
|
|
7028
6561
|
outputs: [],
|
|
7029
6562
|
stateMutability: "nonpayable",
|
|
7030
6563
|
type: "function"
|
|
@@ -7035,15 +6568,30 @@ var PositionV2ABI = [
|
|
|
7035
6568
|
internalType: "uint256",
|
|
7036
6569
|
name: "newPrice",
|
|
7037
6570
|
type: "uint256"
|
|
6571
|
+
},
|
|
6572
|
+
{
|
|
6573
|
+
internalType: "address",
|
|
6574
|
+
name: "referencePosition",
|
|
6575
|
+
type: "address"
|
|
7038
6576
|
}
|
|
7039
6577
|
],
|
|
7040
|
-
name: "
|
|
6578
|
+
name: "adjustPriceWithReference",
|
|
7041
6579
|
outputs: [],
|
|
7042
6580
|
stateMutability: "nonpayable",
|
|
7043
6581
|
type: "function"
|
|
7044
6582
|
},
|
|
7045
6583
|
{
|
|
7046
6584
|
inputs: [
|
|
6585
|
+
{
|
|
6586
|
+
internalType: "uint256",
|
|
6587
|
+
name: "newPrincipal",
|
|
6588
|
+
type: "uint256"
|
|
6589
|
+
},
|
|
6590
|
+
{
|
|
6591
|
+
internalType: "uint256",
|
|
6592
|
+
name: "newCollateral",
|
|
6593
|
+
type: "uint256"
|
|
6594
|
+
},
|
|
7047
6595
|
{
|
|
7048
6596
|
internalType: "uint256",
|
|
7049
6597
|
name: "newPrice",
|
|
@@ -7053,11 +6601,16 @@ var PositionV2ABI = [
|
|
|
7053
6601
|
internalType: "address",
|
|
7054
6602
|
name: "referencePosition",
|
|
7055
6603
|
type: "address"
|
|
6604
|
+
},
|
|
6605
|
+
{
|
|
6606
|
+
internalType: "bool",
|
|
6607
|
+
name: "withdrawAsNative",
|
|
6608
|
+
type: "bool"
|
|
7056
6609
|
}
|
|
7057
6610
|
],
|
|
7058
|
-
name: "
|
|
6611
|
+
name: "adjustWithReference",
|
|
7059
6612
|
outputs: [],
|
|
7060
|
-
stateMutability: "
|
|
6613
|
+
stateMutability: "payable",
|
|
7061
6614
|
type: "function"
|
|
7062
6615
|
},
|
|
7063
6616
|
{
|
|
@@ -7645,6 +7198,29 @@ var PositionV2ABI = [
|
|
|
7645
7198
|
stateMutability: "nonpayable",
|
|
7646
7199
|
type: "function"
|
|
7647
7200
|
},
|
|
7201
|
+
{
|
|
7202
|
+
inputs: [
|
|
7203
|
+
{
|
|
7204
|
+
internalType: "address",
|
|
7205
|
+
name: "token",
|
|
7206
|
+
type: "address"
|
|
7207
|
+
},
|
|
7208
|
+
{
|
|
7209
|
+
internalType: "address",
|
|
7210
|
+
name: "target",
|
|
7211
|
+
type: "address"
|
|
7212
|
+
},
|
|
7213
|
+
{
|
|
7214
|
+
internalType: "uint256",
|
|
7215
|
+
name: "amount",
|
|
7216
|
+
type: "uint256"
|
|
7217
|
+
}
|
|
7218
|
+
],
|
|
7219
|
+
name: "rescueToken",
|
|
7220
|
+
outputs: [],
|
|
7221
|
+
stateMutability: "nonpayable",
|
|
7222
|
+
type: "function"
|
|
7223
|
+
},
|
|
7648
7224
|
{
|
|
7649
7225
|
inputs: [],
|
|
7650
7226
|
name: "reserveContribution",
|
|
@@ -7730,11 +7306,6 @@ var PositionV2ABI = [
|
|
|
7730
7306
|
},
|
|
7731
7307
|
{
|
|
7732
7308
|
inputs: [
|
|
7733
|
-
{
|
|
7734
|
-
internalType: "address",
|
|
7735
|
-
name: "token",
|
|
7736
|
-
type: "address"
|
|
7737
|
-
},
|
|
7738
7309
|
{
|
|
7739
7310
|
internalType: "address",
|
|
7740
7311
|
name: "target",
|
|
@@ -7746,7 +7317,7 @@ var PositionV2ABI = [
|
|
|
7746
7317
|
type: "uint256"
|
|
7747
7318
|
}
|
|
7748
7319
|
],
|
|
7749
|
-
name: "
|
|
7320
|
+
name: "withdrawCollateral",
|
|
7750
7321
|
outputs: [],
|
|
7751
7322
|
stateMutability: "nonpayable",
|
|
7752
7323
|
type: "function"
|
|
@@ -7764,10 +7335,14 @@ var PositionV2ABI = [
|
|
|
7764
7335
|
type: "uint256"
|
|
7765
7336
|
}
|
|
7766
7337
|
],
|
|
7767
|
-
name: "
|
|
7338
|
+
name: "withdrawCollateralAsNative",
|
|
7768
7339
|
outputs: [],
|
|
7769
7340
|
stateMutability: "nonpayable",
|
|
7770
7341
|
type: "function"
|
|
7342
|
+
},
|
|
7343
|
+
{
|
|
7344
|
+
stateMutability: "payable",
|
|
7345
|
+
type: "receive"
|
|
7771
7346
|
}
|
|
7772
7347
|
];
|
|
7773
7348
|
|
|
@@ -10051,6 +9626,11 @@ var MintingHubV2ABI = [
|
|
|
10051
9626
|
internalType: "address",
|
|
10052
9627
|
name: "_factory",
|
|
10053
9628
|
type: "address"
|
|
9629
|
+
},
|
|
9630
|
+
{
|
|
9631
|
+
internalType: "address",
|
|
9632
|
+
name: "_wcbtc",
|
|
9633
|
+
type: "address"
|
|
10054
9634
|
}
|
|
10055
9635
|
],
|
|
10056
9636
|
stateMutability: "nonpayable",
|
|
@@ -10107,11 +9687,21 @@ var MintingHubV2ABI = [
|
|
|
10107
9687
|
name: "LeaveNoDust",
|
|
10108
9688
|
type: "error"
|
|
10109
9689
|
},
|
|
9690
|
+
{
|
|
9691
|
+
inputs: [],
|
|
9692
|
+
name: "NativeOnlyForWCBTC",
|
|
9693
|
+
type: "error"
|
|
9694
|
+
},
|
|
10110
9695
|
{
|
|
10111
9696
|
inputs: [],
|
|
10112
9697
|
name: "UnexpectedPrice",
|
|
10113
9698
|
type: "error"
|
|
10114
9699
|
},
|
|
9700
|
+
{
|
|
9701
|
+
inputs: [],
|
|
9702
|
+
name: "ValueMismatch",
|
|
9703
|
+
type: "error"
|
|
9704
|
+
},
|
|
10115
9705
|
{
|
|
10116
9706
|
anonymous: false,
|
|
10117
9707
|
inputs: [
|
|
@@ -10364,6 +9954,19 @@ var MintingHubV2ABI = [
|
|
|
10364
9954
|
stateMutability: "view",
|
|
10365
9955
|
type: "function"
|
|
10366
9956
|
},
|
|
9957
|
+
{
|
|
9958
|
+
inputs: [],
|
|
9959
|
+
name: "WCBTC",
|
|
9960
|
+
outputs: [
|
|
9961
|
+
{
|
|
9962
|
+
internalType: "address",
|
|
9963
|
+
name: "",
|
|
9964
|
+
type: "address"
|
|
9965
|
+
}
|
|
9966
|
+
],
|
|
9967
|
+
stateMutability: "view",
|
|
9968
|
+
type: "function"
|
|
9969
|
+
},
|
|
10367
9970
|
{
|
|
10368
9971
|
inputs: [
|
|
10369
9972
|
{
|
|
@@ -10474,40 +10077,6 @@ var MintingHubV2ABI = [
|
|
|
10474
10077
|
stateMutability: "view",
|
|
10475
10078
|
type: "function"
|
|
10476
10079
|
},
|
|
10477
|
-
{
|
|
10478
|
-
inputs: [
|
|
10479
|
-
{
|
|
10480
|
-
internalType: "address",
|
|
10481
|
-
name: "parent",
|
|
10482
|
-
type: "address"
|
|
10483
|
-
},
|
|
10484
|
-
{
|
|
10485
|
-
internalType: "uint256",
|
|
10486
|
-
name: "_initialCollateral",
|
|
10487
|
-
type: "uint256"
|
|
10488
|
-
},
|
|
10489
|
-
{
|
|
10490
|
-
internalType: "uint256",
|
|
10491
|
-
name: "_initialMint",
|
|
10492
|
-
type: "uint256"
|
|
10493
|
-
},
|
|
10494
|
-
{
|
|
10495
|
-
internalType: "uint40",
|
|
10496
|
-
name: "expiration",
|
|
10497
|
-
type: "uint40"
|
|
10498
|
-
}
|
|
10499
|
-
],
|
|
10500
|
-
name: "clone",
|
|
10501
|
-
outputs: [
|
|
10502
|
-
{
|
|
10503
|
-
internalType: "address",
|
|
10504
|
-
name: "",
|
|
10505
|
-
type: "address"
|
|
10506
|
-
}
|
|
10507
|
-
],
|
|
10508
|
-
stateMutability: "nonpayable",
|
|
10509
|
-
type: "function"
|
|
10510
|
-
},
|
|
10511
10080
|
{
|
|
10512
10081
|
inputs: [
|
|
10513
10082
|
{
|
|
@@ -10534,6 +10103,11 @@ var MintingHubV2ABI = [
|
|
|
10534
10103
|
internalType: "uint40",
|
|
10535
10104
|
name: "expiration",
|
|
10536
10105
|
type: "uint40"
|
|
10106
|
+
},
|
|
10107
|
+
{
|
|
10108
|
+
internalType: "uint256",
|
|
10109
|
+
name: "_liqPrice",
|
|
10110
|
+
type: "uint256"
|
|
10537
10111
|
}
|
|
10538
10112
|
],
|
|
10539
10113
|
name: "clone",
|
|
@@ -10544,7 +10118,7 @@ var MintingHubV2ABI = [
|
|
|
10544
10118
|
type: "address"
|
|
10545
10119
|
}
|
|
10546
10120
|
],
|
|
10547
|
-
stateMutability: "
|
|
10121
|
+
stateMutability: "payable",
|
|
10548
10122
|
type: "function"
|
|
10549
10123
|
},
|
|
10550
10124
|
{
|
|
@@ -10627,7 +10201,7 @@ var MintingHubV2ABI = [
|
|
|
10627
10201
|
type: "address"
|
|
10628
10202
|
}
|
|
10629
10203
|
],
|
|
10630
|
-
stateMutability: "
|
|
10204
|
+
stateMutability: "payable",
|
|
10631
10205
|
type: "function"
|
|
10632
10206
|
},
|
|
10633
10207
|
{
|
|
@@ -11169,7 +10743,6 @@ var SavingsABI = [
|
|
|
11169
10743
|
// Annotate the CommonJS export names for ESM import in node:
|
|
11170
10744
|
0 && (module.exports = {
|
|
11171
10745
|
ADDRESS,
|
|
11172
|
-
CoinLendingGatewayABI,
|
|
11173
10746
|
ERC20ABI,
|
|
11174
10747
|
ERC20PermitLightABI,
|
|
11175
10748
|
EquityABI,
|