@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/dist/index.mjs CHANGED
@@ -9,24 +9,22 @@ var ADDRESS = {
9
9
  savingsGateway: zeroAddress,
10
10
  savingsVaultJUSD: zeroAddress,
11
11
  mintingHubGateway: zeroAddress,
12
- coinLendingGateway: zeroAddress,
13
12
  bridgeStartUSD: zeroAddress,
14
13
  startUSD: zeroAddress,
15
14
  roller: zeroAddress,
16
15
  positionFactoryV2: zeroAddress
17
16
  },
18
17
  5115: {
19
- juiceDollar: "0x258e525B6F9f62195478fe94d14AE20178AB2545",
20
- equity: "0xDd965FCdcb4022414204B9BDc5dF949c2761e7Cc",
21
- frontendGateway: "0xA9DAD130a5744Bc6DBD7151e184352BFfc57BC87",
22
- savingsGateway: "0x71335aa01FB04C234B7CfA72361d7CdC355fE097",
23
- savingsVaultJUSD: "0xA049fc273034D44515A81A564c8F43400B3f77B3",
24
- mintingHubGateway: "0xF2D5F2F3fA1d048284a9d669805478F8ad677e5a",
25
- coinLendingGateway: "0x16c530290662Dc04Dba3040e5e6EBD8e7D3bfe03",
26
- bridgeStartUSD: "0x568965b5f8Fa9e6EE56b670e684F85b277545EFE",
27
- startUSD: "0xD4A183699d0AbCf774b1ea23CDfC0B4b1d5cB30f",
28
- roller: "0x2017C636AA98c7BAAAa68b48195d31Ef5869e37C",
29
- positionFactoryV2: "0x171dAe92afc8AC3D581178163a1F993533a94c4B"
18
+ juiceDollar: "0x0D511a9C1662924dd8f9c12D2Bd72B0264E48583",
19
+ equity: "0x8FF9be291A44CA3E7b45361bf6bbE1aCd0135c06",
20
+ frontendGateway: "0x6721aC661e52C6BA092debb6cc33Ee58F1a4D10A",
21
+ savingsGateway: "0xC638D446072416Aa1760A73748D291Af9f3925cB",
22
+ savingsVaultJUSD: "0x4bD31350f611b469bA7fCC2c5945aAEBefD7A191",
23
+ mintingHubGateway: "0x44B0727688F1839c2BF7b74686F04Cba0CfE89D6",
24
+ bridgeStartUSD: "0x8d149f42C8F73F9fC90e2CbED8eE0644e8837623",
25
+ startUSD: "0xf65BF14763699C08F9ff11e9Dc6706DdEB69b5b9",
26
+ roller: "0xD09CeBBac7cA43430A505CA7A78123D83d53Af39",
27
+ positionFactoryV2: "0xD6673d8Fc25094579Ae23802957e9084860F5d1a"
30
28
  }
31
29
  };
32
30
 
@@ -3622,6 +3620,11 @@ var MintingHubGatewayABI = [
3622
3620
  internalType: "address",
3623
3621
  name: "_gateway",
3624
3622
  type: "address"
3623
+ },
3624
+ {
3625
+ internalType: "address",
3626
+ name: "_wcbtc",
3627
+ type: "address"
3625
3628
  }
3626
3629
  ],
3627
3630
  stateMutability: "nonpayable",
@@ -3678,11 +3681,21 @@ var MintingHubGatewayABI = [
3678
3681
  name: "LeaveNoDust",
3679
3682
  type: "error"
3680
3683
  },
3684
+ {
3685
+ inputs: [],
3686
+ name: "NativeOnlyForWCBTC",
3687
+ type: "error"
3688
+ },
3681
3689
  {
3682
3690
  inputs: [],
3683
3691
  name: "UnexpectedPrice",
3684
3692
  type: "error"
3685
3693
  },
3694
+ {
3695
+ inputs: [],
3696
+ name: "ValueMismatch",
3697
+ type: "error"
3698
+ },
3686
3699
  {
3687
3700
  anonymous: false,
3688
3701
  inputs: [
@@ -3948,6 +3961,19 @@ var MintingHubGatewayABI = [
3948
3961
  stateMutability: "view",
3949
3962
  type: "function"
3950
3963
  },
3964
+ {
3965
+ inputs: [],
3966
+ name: "WCBTC",
3967
+ outputs: [
3968
+ {
3969
+ internalType: "address",
3970
+ name: "",
3971
+ type: "address"
3972
+ }
3973
+ ],
3974
+ stateMutability: "view",
3975
+ type: "function"
3976
+ },
3951
3977
  {
3952
3978
  inputs: [
3953
3979
  {
@@ -4062,38 +4088,9 @@ var MintingHubGatewayABI = [
4062
4088
  inputs: [
4063
4089
  {
4064
4090
  internalType: "address",
4065
- name: "parent",
4091
+ name: "owner",
4066
4092
  type: "address"
4067
4093
  },
4068
- {
4069
- internalType: "uint256",
4070
- name: "_initialCollateral",
4071
- type: "uint256"
4072
- },
4073
- {
4074
- internalType: "uint256",
4075
- name: "_initialMint",
4076
- type: "uint256"
4077
- },
4078
- {
4079
- internalType: "uint40",
4080
- name: "expiration",
4081
- type: "uint40"
4082
- }
4083
- ],
4084
- name: "clone",
4085
- outputs: [
4086
- {
4087
- internalType: "address",
4088
- name: "",
4089
- type: "address"
4090
- }
4091
- ],
4092
- stateMutability: "nonpayable",
4093
- type: "function"
4094
- },
4095
- {
4096
- inputs: [
4097
4094
  {
4098
4095
  internalType: "address",
4099
4096
  name: "parent",
@@ -4115,9 +4112,9 @@ var MintingHubGatewayABI = [
4115
4112
  type: "uint40"
4116
4113
  },
4117
4114
  {
4118
- internalType: "bytes32",
4119
- name: "frontendCode",
4120
- type: "bytes32"
4115
+ internalType: "uint256",
4116
+ name: "_liqPrice",
4117
+ type: "uint256"
4121
4118
  }
4122
4119
  ],
4123
4120
  name: "clone",
@@ -4128,7 +4125,7 @@ var MintingHubGatewayABI = [
4128
4125
  type: "address"
4129
4126
  }
4130
4127
  ],
4131
- stateMutability: "nonpayable",
4128
+ stateMutability: "payable",
4132
4129
  type: "function"
4133
4130
  },
4134
4131
  {
@@ -4158,49 +4155,15 @@ var MintingHubGatewayABI = [
4158
4155
  name: "expiration",
4159
4156
  type: "uint40"
4160
4157
  },
4161
- {
4162
- internalType: "bytes32",
4163
- name: "frontendCode",
4164
- type: "bytes32"
4165
- }
4166
- ],
4167
- name: "clone",
4168
- outputs: [
4169
- {
4170
- internalType: "address",
4171
- name: "",
4172
- type: "address"
4173
- }
4174
- ],
4175
- stateMutability: "nonpayable",
4176
- type: "function"
4177
- },
4178
- {
4179
- inputs: [
4180
- {
4181
- internalType: "address",
4182
- name: "owner",
4183
- type: "address"
4184
- },
4185
- {
4186
- internalType: "address",
4187
- name: "parent",
4188
- type: "address"
4189
- },
4190
- {
4191
- internalType: "uint256",
4192
- name: "_initialCollateral",
4193
- type: "uint256"
4194
- },
4195
4158
  {
4196
4159
  internalType: "uint256",
4197
- name: "_initialMint",
4160
+ name: "_liqPrice",
4198
4161
  type: "uint256"
4199
4162
  },
4200
4163
  {
4201
- internalType: "uint40",
4202
- name: "expiration",
4203
- type: "uint40"
4164
+ internalType: "bytes32",
4165
+ name: "frontendCode",
4166
+ type: "bytes32"
4204
4167
  }
4205
4168
  ],
4206
4169
  name: "clone",
@@ -4211,7 +4174,7 @@ var MintingHubGatewayABI = [
4211
4174
  type: "address"
4212
4175
  }
4213
4176
  ],
4214
- stateMutability: "nonpayable",
4177
+ stateMutability: "payable",
4215
4178
  type: "function"
4216
4179
  },
4217
4180
  {
@@ -4307,7 +4270,7 @@ var MintingHubGatewayABI = [
4307
4270
  type: "address"
4308
4271
  }
4309
4272
  ],
4310
- stateMutability: "nonpayable",
4273
+ stateMutability: "payable",
4311
4274
  type: "function"
4312
4275
  },
4313
4276
  {
@@ -4376,7 +4339,7 @@ var MintingHubGatewayABI = [
4376
4339
  type: "address"
4377
4340
  }
4378
4341
  ],
4379
- stateMutability: "nonpayable",
4342
+ stateMutability: "payable",
4380
4343
  type: "function"
4381
4344
  },
4382
4345
  {
@@ -5823,468 +5786,12 @@ var SavingsVaultJUSDABI = [
5823
5786
  },
5824
5787
  {
5825
5788
  inputs: [],
5826
- name: "totalAssets",
5827
- outputs: [
5828
- {
5829
- internalType: "uint256",
5830
- name: "",
5831
- type: "uint256"
5832
- }
5833
- ],
5834
- stateMutability: "view",
5835
- type: "function"
5836
- },
5837
- {
5838
- inputs: [],
5839
- name: "totalClaimed",
5840
- outputs: [
5841
- {
5842
- internalType: "uint256",
5843
- name: "",
5844
- type: "uint256"
5845
- }
5846
- ],
5847
- stateMutability: "view",
5848
- type: "function"
5849
- },
5850
- {
5851
- inputs: [],
5852
- name: "totalSupply",
5853
- outputs: [
5854
- {
5855
- internalType: "uint256",
5856
- name: "",
5857
- type: "uint256"
5858
- }
5859
- ],
5860
- stateMutability: "view",
5861
- type: "function"
5862
- },
5863
- {
5864
- inputs: [
5865
- {
5866
- internalType: "address",
5867
- name: "to",
5868
- type: "address"
5869
- },
5870
- {
5871
- internalType: "uint256",
5872
- name: "value",
5873
- type: "uint256"
5874
- }
5875
- ],
5876
- name: "transfer",
5877
- outputs: [
5878
- {
5879
- internalType: "bool",
5880
- name: "",
5881
- type: "bool"
5882
- }
5883
- ],
5884
- stateMutability: "nonpayable",
5885
- type: "function"
5886
- },
5887
- {
5888
- inputs: [
5889
- {
5890
- internalType: "address",
5891
- name: "from",
5892
- type: "address"
5893
- },
5894
- {
5895
- internalType: "address",
5896
- name: "to",
5897
- type: "address"
5898
- },
5899
- {
5900
- internalType: "uint256",
5901
- name: "value",
5902
- type: "uint256"
5903
- }
5904
- ],
5905
- name: "transferFrom",
5906
- outputs: [
5907
- {
5908
- internalType: "bool",
5909
- name: "",
5910
- type: "bool"
5911
- }
5912
- ],
5913
- stateMutability: "nonpayable",
5914
- type: "function"
5915
- },
5916
- {
5917
- inputs: [
5918
- {
5919
- internalType: "uint256",
5920
- name: "assets",
5921
- type: "uint256"
5922
- },
5923
- {
5924
- internalType: "address",
5925
- name: "receiver",
5926
- type: "address"
5927
- },
5928
- {
5929
- internalType: "address",
5930
- name: "owner",
5931
- type: "address"
5932
- }
5933
- ],
5934
- name: "withdraw",
5935
- outputs: [
5936
- {
5937
- internalType: "uint256",
5938
- name: "",
5939
- type: "uint256"
5940
- }
5941
- ],
5942
- stateMutability: "nonpayable",
5943
- type: "function"
5944
- }
5945
- ];
5946
-
5947
- // exports/abis/core/CoinLendingGateway.ts
5948
- var CoinLendingGatewayABI = [
5949
- {
5950
- inputs: [
5951
- {
5952
- internalType: "address",
5953
- name: "_mintingHub",
5954
- type: "address"
5955
- },
5956
- {
5957
- internalType: "address",
5958
- name: "_wcbtc",
5959
- type: "address"
5960
- },
5961
- {
5962
- internalType: "address",
5963
- name: "_jusd",
5964
- type: "address"
5965
- }
5966
- ],
5967
- stateMutability: "nonpayable",
5968
- type: "constructor"
5969
- },
5970
- {
5971
- inputs: [],
5972
- name: "DirectCBTCNotAccepted",
5973
- type: "error"
5974
- },
5975
- {
5976
- inputs: [],
5977
- name: "EnforcedPause",
5978
- type: "error"
5979
- },
5980
- {
5981
- inputs: [],
5982
- name: "ExpectedPause",
5983
- type: "error"
5984
- },
5985
- {
5986
- inputs: [],
5987
- name: "InsufficientCoin",
5988
- type: "error"
5989
- },
5990
- {
5991
- inputs: [],
5992
- name: "InvalidPosition",
5993
- type: "error"
5994
- },
5995
- {
5996
- inputs: [
5997
- {
5998
- internalType: "address",
5999
- name: "owner",
6000
- type: "address"
6001
- }
6002
- ],
6003
- name: "OwnableInvalidOwner",
6004
- type: "error"
6005
- },
6006
- {
6007
- inputs: [
6008
- {
6009
- internalType: "address",
6010
- name: "account",
6011
- type: "address"
6012
- }
6013
- ],
6014
- name: "OwnableUnauthorizedAccount",
6015
- type: "error"
6016
- },
6017
- {
6018
- inputs: [],
6019
- name: "PriceAdjustmentFailed",
6020
- type: "error"
6021
- },
6022
- {
6023
- inputs: [],
6024
- name: "ReentrancyGuardReentrantCall",
6025
- type: "error"
6026
- },
6027
- {
6028
- inputs: [],
6029
- name: "TransferFailed",
6030
- type: "error"
6031
- },
6032
- {
6033
- anonymous: false,
6034
- inputs: [
6035
- {
6036
- indexed: true,
6037
- internalType: "address",
6038
- name: "to",
6039
- type: "address"
6040
- },
6041
- {
6042
- indexed: false,
6043
- internalType: "uint256",
6044
- name: "amount",
6045
- type: "uint256"
6046
- }
6047
- ],
6048
- name: "CoinRescued",
6049
- type: "event"
6050
- },
6051
- {
6052
- anonymous: false,
6053
- inputs: [
6054
- {
6055
- indexed: true,
6056
- internalType: "address",
6057
- name: "previousOwner",
6058
- type: "address"
6059
- },
6060
- {
6061
- indexed: true,
6062
- internalType: "address",
6063
- name: "newOwner",
6064
- type: "address"
6065
- }
6066
- ],
6067
- name: "OwnershipTransferred",
6068
- type: "event"
6069
- },
6070
- {
6071
- anonymous: false,
6072
- inputs: [
6073
- {
6074
- indexed: false,
6075
- internalType: "address",
6076
- name: "account",
6077
- type: "address"
6078
- }
6079
- ],
6080
- name: "Paused",
6081
- type: "event"
6082
- },
6083
- {
6084
- anonymous: false,
6085
- inputs: [
6086
- {
6087
- indexed: true,
6088
- internalType: "address",
6089
- name: "owner",
6090
- type: "address"
6091
- },
6092
- {
6093
- indexed: true,
6094
- internalType: "address",
6095
- name: "position",
6096
- type: "address"
6097
- },
6098
- {
6099
- indexed: false,
6100
- internalType: "uint256",
6101
- name: "coinAmount",
6102
- type: "uint256"
6103
- },
6104
- {
6105
- indexed: false,
6106
- internalType: "uint256",
6107
- name: "mintAmount",
6108
- type: "uint256"
6109
- },
6110
- {
6111
- indexed: false,
6112
- internalType: "uint256",
6113
- name: "liquidationPrice",
6114
- type: "uint256"
6115
- }
6116
- ],
6117
- name: "PositionCreatedWithCoin",
6118
- type: "event"
6119
- },
6120
- {
6121
- anonymous: false,
6122
- inputs: [
6123
- {
6124
- indexed: true,
6125
- internalType: "address",
6126
- name: "token",
6127
- type: "address"
6128
- },
6129
- {
6130
- indexed: true,
6131
- internalType: "address",
6132
- name: "to",
6133
- type: "address"
6134
- },
6135
- {
6136
- indexed: false,
6137
- internalType: "uint256",
6138
- name: "amount",
6139
- type: "uint256"
6140
- }
6141
- ],
6142
- name: "TokenRescued",
6143
- type: "event"
6144
- },
6145
- {
6146
- anonymous: false,
6147
- inputs: [
6148
- {
6149
- indexed: false,
6150
- internalType: "address",
6151
- name: "account",
6152
- type: "address"
6153
- }
6154
- ],
6155
- name: "Unpaused",
6156
- type: "event"
6157
- },
6158
- {
6159
- inputs: [],
6160
- name: "JUSD",
6161
- outputs: [
6162
- {
6163
- internalType: "contract IJuiceDollar",
6164
- name: "",
6165
- type: "address"
6166
- }
6167
- ],
6168
- stateMutability: "view",
6169
- type: "function"
6170
- },
6171
- {
6172
- inputs: [],
6173
- name: "MINTING_HUB",
6174
- outputs: [
6175
- {
6176
- internalType: "contract IMintingHubGateway",
6177
- name: "",
6178
- type: "address"
6179
- }
6180
- ],
6181
- stateMutability: "view",
6182
- type: "function"
6183
- },
6184
- {
6185
- inputs: [],
6186
- name: "WCBTC",
6187
- outputs: [
6188
- {
6189
- internalType: "contract IWrappedCBTC",
6190
- name: "",
6191
- type: "address"
6192
- }
6193
- ],
6194
- stateMutability: "view",
6195
- type: "function"
6196
- },
6197
- {
6198
- inputs: [
6199
- {
6200
- internalType: "address",
6201
- name: "parent",
6202
- type: "address"
6203
- },
6204
- {
6205
- internalType: "uint256",
6206
- name: "initialMint",
6207
- type: "uint256"
6208
- },
6209
- {
6210
- internalType: "uint40",
6211
- name: "expiration",
6212
- type: "uint40"
6213
- },
6214
- {
6215
- internalType: "bytes32",
6216
- name: "frontendCode",
6217
- type: "bytes32"
6218
- },
6219
- {
6220
- internalType: "uint256",
6221
- name: "liquidationPrice",
6222
- type: "uint256"
6223
- }
6224
- ],
6225
- name: "lendWithCoin",
6226
- outputs: [
6227
- {
6228
- internalType: "address",
6229
- name: "position",
6230
- type: "address"
6231
- }
6232
- ],
6233
- stateMutability: "payable",
6234
- type: "function"
6235
- },
6236
- {
6237
- inputs: [
6238
- {
6239
- internalType: "address",
6240
- name: "owner",
6241
- type: "address"
6242
- },
6243
- {
6244
- internalType: "address",
6245
- name: "parent",
6246
- type: "address"
6247
- },
6248
- {
6249
- internalType: "uint256",
6250
- name: "initialMint",
6251
- type: "uint256"
6252
- },
6253
- {
6254
- internalType: "uint40",
6255
- name: "expiration",
6256
- type: "uint40"
6257
- },
6258
- {
6259
- internalType: "bytes32",
6260
- name: "frontendCode",
6261
- type: "bytes32"
6262
- },
6263
- {
6264
- internalType: "uint256",
6265
- name: "liquidationPrice",
6266
- type: "uint256"
6267
- }
6268
- ],
6269
- name: "lendWithCoinFor",
6270
- outputs: [
6271
- {
6272
- internalType: "address",
6273
- name: "position",
6274
- type: "address"
6275
- }
6276
- ],
6277
- stateMutability: "payable",
6278
- type: "function"
6279
- },
6280
- {
6281
- inputs: [],
6282
- name: "owner",
5789
+ name: "totalAssets",
6283
5790
  outputs: [
6284
5791
  {
6285
- internalType: "address",
5792
+ internalType: "uint256",
6286
5793
  name: "",
6287
- type: "address"
5794
+ type: "uint256"
6288
5795
  }
6289
5796
  ],
6290
5797
  stateMutability: "view",
@@ -6292,19 +5799,12 @@ var CoinLendingGatewayABI = [
6292
5799
  },
6293
5800
  {
6294
5801
  inputs: [],
6295
- name: "pause",
6296
- outputs: [],
6297
- stateMutability: "nonpayable",
6298
- type: "function"
6299
- },
6300
- {
6301
- inputs: [],
6302
- name: "paused",
5802
+ name: "totalClaimed",
6303
5803
  outputs: [
6304
5804
  {
6305
- internalType: "bool",
5805
+ internalType: "uint256",
6306
5806
  name: "",
6307
- type: "bool"
5807
+ type: "uint256"
6308
5808
  }
6309
5809
  ],
6310
5810
  stateMutability: "view",
@@ -6312,15 +5812,38 @@ var CoinLendingGatewayABI = [
6312
5812
  },
6313
5813
  {
6314
5814
  inputs: [],
6315
- name: "renounceOwnership",
6316
- outputs: [],
6317
- stateMutability: "nonpayable",
5815
+ name: "totalSupply",
5816
+ outputs: [
5817
+ {
5818
+ internalType: "uint256",
5819
+ name: "",
5820
+ type: "uint256"
5821
+ }
5822
+ ],
5823
+ stateMutability: "view",
6318
5824
  type: "function"
6319
5825
  },
6320
5826
  {
6321
- inputs: [],
6322
- name: "rescueCoin",
6323
- outputs: [],
5827
+ inputs: [
5828
+ {
5829
+ internalType: "address",
5830
+ name: "to",
5831
+ type: "address"
5832
+ },
5833
+ {
5834
+ internalType: "uint256",
5835
+ name: "value",
5836
+ type: "uint256"
5837
+ }
5838
+ ],
5839
+ name: "transfer",
5840
+ outputs: [
5841
+ {
5842
+ internalType: "bool",
5843
+ name: "",
5844
+ type: "bool"
5845
+ }
5846
+ ],
6324
5847
  stateMutability: "nonpayable",
6325
5848
  type: "function"
6326
5849
  },
@@ -6328,7 +5851,7 @@ var CoinLendingGatewayABI = [
6328
5851
  inputs: [
6329
5852
  {
6330
5853
  internalType: "address",
6331
- name: "token",
5854
+ name: "from",
6332
5855
  type: "address"
6333
5856
  },
6334
5857
  {
@@ -6338,38 +5861,49 @@ var CoinLendingGatewayABI = [
6338
5861
  },
6339
5862
  {
6340
5863
  internalType: "uint256",
6341
- name: "amount",
5864
+ name: "value",
6342
5865
  type: "uint256"
6343
5866
  }
6344
5867
  ],
6345
- name: "rescueToken",
6346
- outputs: [],
5868
+ name: "transferFrom",
5869
+ outputs: [
5870
+ {
5871
+ internalType: "bool",
5872
+ name: "",
5873
+ type: "bool"
5874
+ }
5875
+ ],
6347
5876
  stateMutability: "nonpayable",
6348
5877
  type: "function"
6349
5878
  },
6350
5879
  {
6351
5880
  inputs: [
5881
+ {
5882
+ internalType: "uint256",
5883
+ name: "assets",
5884
+ type: "uint256"
5885
+ },
6352
5886
  {
6353
5887
  internalType: "address",
6354
- name: "newOwner",
5888
+ name: "receiver",
5889
+ type: "address"
5890
+ },
5891
+ {
5892
+ internalType: "address",
5893
+ name: "owner",
6355
5894
  type: "address"
6356
5895
  }
6357
5896
  ],
6358
- name: "transferOwnership",
6359
- outputs: [],
6360
- stateMutability: "nonpayable",
6361
- type: "function"
6362
- },
6363
- {
6364
- inputs: [],
6365
- name: "unpause",
6366
- outputs: [],
5897
+ name: "withdraw",
5898
+ outputs: [
5899
+ {
5900
+ internalType: "uint256",
5901
+ name: "",
5902
+ type: "uint256"
5903
+ }
5904
+ ],
6367
5905
  stateMutability: "nonpayable",
6368
5906
  type: "function"
6369
- },
6370
- {
6371
- stateMutability: "payable",
6372
- type: "receive"
6373
5907
  }
6374
5908
  ];
6375
5909
 
@@ -6728,6 +6262,11 @@ var PositionV2ABI = [
6728
6262
  name: "AlreadyInitialized",
6729
6263
  type: "error"
6730
6264
  },
6265
+ {
6266
+ inputs: [],
6267
+ name: "CannotRescueCollateral",
6268
+ type: "error"
6269
+ },
6731
6270
  {
6732
6271
  inputs: [],
6733
6272
  name: "ChallengeTooSmall",
@@ -6806,6 +6345,11 @@ var PositionV2ABI = [
6806
6345
  name: "LimitExceeded",
6807
6346
  type: "error"
6808
6347
  },
6348
+ {
6349
+ inputs: [],
6350
+ name: "NativeTransferFailed",
6351
+ type: "error"
6352
+ },
6809
6353
  {
6810
6354
  inputs: [],
6811
6355
  name: "NotHub",
@@ -6949,37 +6493,27 @@ var PositionV2ABI = [
6949
6493
  internalType: "uint256",
6950
6494
  name: "newPrice",
6951
6495
  type: "uint256"
6496
+ },
6497
+ {
6498
+ internalType: "bool",
6499
+ name: "withdrawAsNative",
6500
+ type: "bool"
6952
6501
  }
6953
6502
  ],
6954
6503
  name: "adjust",
6955
6504
  outputs: [],
6956
- stateMutability: "nonpayable",
6505
+ stateMutability: "payable",
6957
6506
  type: "function"
6958
6507
  },
6959
6508
  {
6960
6509
  inputs: [
6961
- {
6962
- internalType: "uint256",
6963
- name: "newPrincipal",
6964
- type: "uint256"
6965
- },
6966
- {
6967
- internalType: "uint256",
6968
- name: "newCollateral",
6969
- type: "uint256"
6970
- },
6971
6510
  {
6972
6511
  internalType: "uint256",
6973
6512
  name: "newPrice",
6974
6513
  type: "uint256"
6975
- },
6976
- {
6977
- internalType: "address",
6978
- name: "referencePosition",
6979
- type: "address"
6980
6514
  }
6981
6515
  ],
6982
- name: "adjust",
6516
+ name: "adjustPrice",
6983
6517
  outputs: [],
6984
6518
  stateMutability: "nonpayable",
6985
6519
  type: "function"
@@ -6990,15 +6524,30 @@ var PositionV2ABI = [
6990
6524
  internalType: "uint256",
6991
6525
  name: "newPrice",
6992
6526
  type: "uint256"
6527
+ },
6528
+ {
6529
+ internalType: "address",
6530
+ name: "referencePosition",
6531
+ type: "address"
6993
6532
  }
6994
6533
  ],
6995
- name: "adjustPrice",
6534
+ name: "adjustPriceWithReference",
6996
6535
  outputs: [],
6997
6536
  stateMutability: "nonpayable",
6998
6537
  type: "function"
6999
6538
  },
7000
6539
  {
7001
6540
  inputs: [
6541
+ {
6542
+ internalType: "uint256",
6543
+ name: "newPrincipal",
6544
+ type: "uint256"
6545
+ },
6546
+ {
6547
+ internalType: "uint256",
6548
+ name: "newCollateral",
6549
+ type: "uint256"
6550
+ },
7002
6551
  {
7003
6552
  internalType: "uint256",
7004
6553
  name: "newPrice",
@@ -7008,11 +6557,16 @@ var PositionV2ABI = [
7008
6557
  internalType: "address",
7009
6558
  name: "referencePosition",
7010
6559
  type: "address"
6560
+ },
6561
+ {
6562
+ internalType: "bool",
6563
+ name: "withdrawAsNative",
6564
+ type: "bool"
7011
6565
  }
7012
6566
  ],
7013
- name: "adjustPriceWithReference",
6567
+ name: "adjustWithReference",
7014
6568
  outputs: [],
7015
- stateMutability: "nonpayable",
6569
+ stateMutability: "payable",
7016
6570
  type: "function"
7017
6571
  },
7018
6572
  {
@@ -7600,6 +7154,29 @@ var PositionV2ABI = [
7600
7154
  stateMutability: "nonpayable",
7601
7155
  type: "function"
7602
7156
  },
7157
+ {
7158
+ inputs: [
7159
+ {
7160
+ internalType: "address",
7161
+ name: "token",
7162
+ type: "address"
7163
+ },
7164
+ {
7165
+ internalType: "address",
7166
+ name: "target",
7167
+ type: "address"
7168
+ },
7169
+ {
7170
+ internalType: "uint256",
7171
+ name: "amount",
7172
+ type: "uint256"
7173
+ }
7174
+ ],
7175
+ name: "rescueToken",
7176
+ outputs: [],
7177
+ stateMutability: "nonpayable",
7178
+ type: "function"
7179
+ },
7603
7180
  {
7604
7181
  inputs: [],
7605
7182
  name: "reserveContribution",
@@ -7685,11 +7262,6 @@ var PositionV2ABI = [
7685
7262
  },
7686
7263
  {
7687
7264
  inputs: [
7688
- {
7689
- internalType: "address",
7690
- name: "token",
7691
- type: "address"
7692
- },
7693
7265
  {
7694
7266
  internalType: "address",
7695
7267
  name: "target",
@@ -7701,7 +7273,7 @@ var PositionV2ABI = [
7701
7273
  type: "uint256"
7702
7274
  }
7703
7275
  ],
7704
- name: "withdraw",
7276
+ name: "withdrawCollateral",
7705
7277
  outputs: [],
7706
7278
  stateMutability: "nonpayable",
7707
7279
  type: "function"
@@ -7719,10 +7291,14 @@ var PositionV2ABI = [
7719
7291
  type: "uint256"
7720
7292
  }
7721
7293
  ],
7722
- name: "withdrawCollateral",
7294
+ name: "withdrawCollateralAsNative",
7723
7295
  outputs: [],
7724
7296
  stateMutability: "nonpayable",
7725
7297
  type: "function"
7298
+ },
7299
+ {
7300
+ stateMutability: "payable",
7301
+ type: "receive"
7726
7302
  }
7727
7303
  ];
7728
7304
 
@@ -10006,6 +9582,11 @@ var MintingHubV2ABI = [
10006
9582
  internalType: "address",
10007
9583
  name: "_factory",
10008
9584
  type: "address"
9585
+ },
9586
+ {
9587
+ internalType: "address",
9588
+ name: "_wcbtc",
9589
+ type: "address"
10009
9590
  }
10010
9591
  ],
10011
9592
  stateMutability: "nonpayable",
@@ -10062,11 +9643,21 @@ var MintingHubV2ABI = [
10062
9643
  name: "LeaveNoDust",
10063
9644
  type: "error"
10064
9645
  },
9646
+ {
9647
+ inputs: [],
9648
+ name: "NativeOnlyForWCBTC",
9649
+ type: "error"
9650
+ },
10065
9651
  {
10066
9652
  inputs: [],
10067
9653
  name: "UnexpectedPrice",
10068
9654
  type: "error"
10069
9655
  },
9656
+ {
9657
+ inputs: [],
9658
+ name: "ValueMismatch",
9659
+ type: "error"
9660
+ },
10070
9661
  {
10071
9662
  anonymous: false,
10072
9663
  inputs: [
@@ -10319,6 +9910,19 @@ var MintingHubV2ABI = [
10319
9910
  stateMutability: "view",
10320
9911
  type: "function"
10321
9912
  },
9913
+ {
9914
+ inputs: [],
9915
+ name: "WCBTC",
9916
+ outputs: [
9917
+ {
9918
+ internalType: "address",
9919
+ name: "",
9920
+ type: "address"
9921
+ }
9922
+ ],
9923
+ stateMutability: "view",
9924
+ type: "function"
9925
+ },
10322
9926
  {
10323
9927
  inputs: [
10324
9928
  {
@@ -10429,40 +10033,6 @@ var MintingHubV2ABI = [
10429
10033
  stateMutability: "view",
10430
10034
  type: "function"
10431
10035
  },
10432
- {
10433
- inputs: [
10434
- {
10435
- internalType: "address",
10436
- name: "parent",
10437
- type: "address"
10438
- },
10439
- {
10440
- internalType: "uint256",
10441
- name: "_initialCollateral",
10442
- type: "uint256"
10443
- },
10444
- {
10445
- internalType: "uint256",
10446
- name: "_initialMint",
10447
- type: "uint256"
10448
- },
10449
- {
10450
- internalType: "uint40",
10451
- name: "expiration",
10452
- type: "uint40"
10453
- }
10454
- ],
10455
- name: "clone",
10456
- outputs: [
10457
- {
10458
- internalType: "address",
10459
- name: "",
10460
- type: "address"
10461
- }
10462
- ],
10463
- stateMutability: "nonpayable",
10464
- type: "function"
10465
- },
10466
10036
  {
10467
10037
  inputs: [
10468
10038
  {
@@ -10489,6 +10059,11 @@ var MintingHubV2ABI = [
10489
10059
  internalType: "uint40",
10490
10060
  name: "expiration",
10491
10061
  type: "uint40"
10062
+ },
10063
+ {
10064
+ internalType: "uint256",
10065
+ name: "_liqPrice",
10066
+ type: "uint256"
10492
10067
  }
10493
10068
  ],
10494
10069
  name: "clone",
@@ -10499,7 +10074,7 @@ var MintingHubV2ABI = [
10499
10074
  type: "address"
10500
10075
  }
10501
10076
  ],
10502
- stateMutability: "nonpayable",
10077
+ stateMutability: "payable",
10503
10078
  type: "function"
10504
10079
  },
10505
10080
  {
@@ -10582,7 +10157,7 @@ var MintingHubV2ABI = [
10582
10157
  type: "address"
10583
10158
  }
10584
10159
  ],
10585
- stateMutability: "nonpayable",
10160
+ stateMutability: "payable",
10586
10161
  type: "function"
10587
10162
  },
10588
10163
  {
@@ -11123,7 +10698,6 @@ var SavingsABI = [
11123
10698
  ];
11124
10699
  export {
11125
10700
  ADDRESS,
11126
- CoinLendingGatewayABI,
11127
10701
  ERC20ABI,
11128
10702
  ERC20PermitLightABI,
11129
10703
  EquityABI,