@juicedollar/jusd 1.0.4 → 1.0.6

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.d.ts CHANGED
@@ -11,6 +11,7 @@ interface ChainAddress {
11
11
  startUSD: Address;
12
12
  roller: Address;
13
13
  positionFactoryV2: Address;
14
+ genesisPosition: Address;
14
15
  }
15
16
  declare const ADDRESS: Record<number, ChainAddress>;
16
17
 
@@ -2827,6 +2828,10 @@ declare const MintingHubGatewayABI: readonly [{
2827
2828
  readonly inputs: readonly [];
2828
2829
  readonly name: "NativeOnlyForWCBTC";
2829
2830
  readonly type: "error";
2831
+ }, {
2832
+ readonly inputs: readonly [];
2833
+ readonly name: "NativeTransferFailed";
2834
+ readonly type: "error";
2830
2835
  }, {
2831
2836
  readonly inputs: readonly [];
2832
2837
  readonly name: "UnexpectedPrice";
@@ -3073,6 +3078,46 @@ declare const MintingHubGatewayABI: readonly [{
3073
3078
  readonly outputs: readonly [];
3074
3079
  readonly stateMutability: "nonpayable";
3075
3080
  readonly type: "function";
3081
+ }, {
3082
+ readonly inputs: readonly [{
3083
+ readonly internalType: "uint32";
3084
+ readonly name: "_challengeNumber";
3085
+ readonly type: "uint32";
3086
+ }, {
3087
+ readonly internalType: "uint256";
3088
+ readonly name: "size";
3089
+ readonly type: "uint256";
3090
+ }, {
3091
+ readonly internalType: "bool";
3092
+ readonly name: "postponeCollateralReturn";
3093
+ readonly type: "bool";
3094
+ }, {
3095
+ readonly internalType: "bool";
3096
+ readonly name: "returnCollateralAsNative";
3097
+ readonly type: "bool";
3098
+ }];
3099
+ readonly name: "bid";
3100
+ readonly outputs: readonly [];
3101
+ readonly stateMutability: "nonpayable";
3102
+ readonly type: "function";
3103
+ }, {
3104
+ readonly inputs: readonly [{
3105
+ readonly internalType: "contract IPosition";
3106
+ readonly name: "pos";
3107
+ readonly type: "address";
3108
+ }, {
3109
+ readonly internalType: "uint256";
3110
+ readonly name: "upToAmount";
3111
+ readonly type: "uint256";
3112
+ }];
3113
+ readonly name: "buyExpiredCollateral";
3114
+ readonly outputs: readonly [{
3115
+ readonly internalType: "uint256";
3116
+ readonly name: "";
3117
+ readonly type: "uint256";
3118
+ }];
3119
+ readonly stateMutability: "nonpayable";
3120
+ readonly type: "function";
3076
3121
  }, {
3077
3122
  readonly inputs: readonly [{
3078
3123
  readonly internalType: "contract IPosition";
@@ -3082,6 +3127,10 @@ declare const MintingHubGatewayABI: readonly [{
3082
3127
  readonly internalType: "uint256";
3083
3128
  readonly name: "upToAmount";
3084
3129
  readonly type: "uint256";
3130
+ }, {
3131
+ readonly internalType: "bool";
3132
+ readonly name: "receiveAsNative";
3133
+ readonly type: "bool";
3085
3134
  }];
3086
3135
  readonly name: "buyExpiredCollateral";
3087
3136
  readonly outputs: readonly [{
@@ -3111,7 +3160,7 @@ declare const MintingHubGatewayABI: readonly [{
3111
3160
  readonly name: "";
3112
3161
  readonly type: "uint256";
3113
3162
  }];
3114
- readonly stateMutability: "nonpayable";
3163
+ readonly stateMutability: "payable";
3115
3164
  readonly type: "function";
3116
3165
  }, {
3117
3166
  readonly inputs: readonly [{
@@ -3371,6 +3420,24 @@ declare const MintingHubGatewayABI: readonly [{
3371
3420
  }];
3372
3421
  readonly stateMutability: "view";
3373
3422
  readonly type: "function";
3423
+ }, {
3424
+ readonly inputs: readonly [{
3425
+ readonly internalType: "address";
3426
+ readonly name: "collateral";
3427
+ readonly type: "address";
3428
+ }, {
3429
+ readonly internalType: "address";
3430
+ readonly name: "target";
3431
+ readonly type: "address";
3432
+ }, {
3433
+ readonly internalType: "bool";
3434
+ readonly name: "asNative";
3435
+ readonly type: "bool";
3436
+ }];
3437
+ readonly name: "returnPostponedCollateral";
3438
+ readonly outputs: readonly [];
3439
+ readonly stateMutability: "nonpayable";
3440
+ readonly type: "function";
3374
3441
  }, {
3375
3442
  readonly inputs: readonly [{
3376
3443
  readonly internalType: "address";
@@ -3399,6 +3466,9 @@ declare const MintingHubGatewayABI: readonly [{
3399
3466
  }];
3400
3467
  readonly stateMutability: "view";
3401
3468
  readonly type: "function";
3469
+ }, {
3470
+ readonly stateMutability: "payable";
3471
+ readonly type: "receive";
3402
3472
  }];
3403
3473
 
3404
3474
  declare const SavingsGatewayABI: readonly [{
@@ -7734,6 +7804,10 @@ declare const MintingHubV2ABI: readonly [{
7734
7804
  readonly inputs: readonly [];
7735
7805
  readonly name: "NativeOnlyForWCBTC";
7736
7806
  readonly type: "error";
7807
+ }, {
7808
+ readonly inputs: readonly [];
7809
+ readonly name: "NativeTransferFailed";
7810
+ readonly type: "error";
7737
7811
  }, {
7738
7812
  readonly inputs: readonly [];
7739
7813
  readonly name: "UnexpectedPrice";
@@ -7970,6 +8044,46 @@ declare const MintingHubV2ABI: readonly [{
7970
8044
  readonly outputs: readonly [];
7971
8045
  readonly stateMutability: "nonpayable";
7972
8046
  readonly type: "function";
8047
+ }, {
8048
+ readonly inputs: readonly [{
8049
+ readonly internalType: "uint32";
8050
+ readonly name: "_challengeNumber";
8051
+ readonly type: "uint32";
8052
+ }, {
8053
+ readonly internalType: "uint256";
8054
+ readonly name: "size";
8055
+ readonly type: "uint256";
8056
+ }, {
8057
+ readonly internalType: "bool";
8058
+ readonly name: "postponeCollateralReturn";
8059
+ readonly type: "bool";
8060
+ }, {
8061
+ readonly internalType: "bool";
8062
+ readonly name: "returnCollateralAsNative";
8063
+ readonly type: "bool";
8064
+ }];
8065
+ readonly name: "bid";
8066
+ readonly outputs: readonly [];
8067
+ readonly stateMutability: "nonpayable";
8068
+ readonly type: "function";
8069
+ }, {
8070
+ readonly inputs: readonly [{
8071
+ readonly internalType: "contract IPosition";
8072
+ readonly name: "pos";
8073
+ readonly type: "address";
8074
+ }, {
8075
+ readonly internalType: "uint256";
8076
+ readonly name: "upToAmount";
8077
+ readonly type: "uint256";
8078
+ }];
8079
+ readonly name: "buyExpiredCollateral";
8080
+ readonly outputs: readonly [{
8081
+ readonly internalType: "uint256";
8082
+ readonly name: "";
8083
+ readonly type: "uint256";
8084
+ }];
8085
+ readonly stateMutability: "nonpayable";
8086
+ readonly type: "function";
7973
8087
  }, {
7974
8088
  readonly inputs: readonly [{
7975
8089
  readonly internalType: "contract IPosition";
@@ -7979,6 +8093,10 @@ declare const MintingHubV2ABI: readonly [{
7979
8093
  readonly internalType: "uint256";
7980
8094
  readonly name: "upToAmount";
7981
8095
  readonly type: "uint256";
8096
+ }, {
8097
+ readonly internalType: "bool";
8098
+ readonly name: "receiveAsNative";
8099
+ readonly type: "bool";
7982
8100
  }];
7983
8101
  readonly name: "buyExpiredCollateral";
7984
8102
  readonly outputs: readonly [{
@@ -8008,7 +8126,7 @@ declare const MintingHubV2ABI: readonly [{
8008
8126
  readonly name: "";
8009
8127
  readonly type: "uint256";
8010
8128
  }];
8011
- readonly stateMutability: "nonpayable";
8129
+ readonly stateMutability: "payable";
8012
8130
  readonly type: "function";
8013
8131
  }, {
8014
8132
  readonly inputs: readonly [{
@@ -8166,6 +8284,24 @@ declare const MintingHubV2ABI: readonly [{
8166
8284
  }];
8167
8285
  readonly stateMutability: "view";
8168
8286
  readonly type: "function";
8287
+ }, {
8288
+ readonly inputs: readonly [{
8289
+ readonly internalType: "address";
8290
+ readonly name: "collateral";
8291
+ readonly type: "address";
8292
+ }, {
8293
+ readonly internalType: "address";
8294
+ readonly name: "target";
8295
+ readonly type: "address";
8296
+ }, {
8297
+ readonly internalType: "bool";
8298
+ readonly name: "asNative";
8299
+ readonly type: "bool";
8300
+ }];
8301
+ readonly name: "returnPostponedCollateral";
8302
+ readonly outputs: readonly [];
8303
+ readonly stateMutability: "nonpayable";
8304
+ readonly type: "function";
8169
8305
  }, {
8170
8306
  readonly inputs: readonly [{
8171
8307
  readonly internalType: "address";
@@ -8194,6 +8330,9 @@ declare const MintingHubV2ABI: readonly [{
8194
8330
  }];
8195
8331
  readonly stateMutability: "view";
8196
8332
  readonly type: "function";
8333
+ }, {
8334
+ readonly stateMutability: "payable";
8335
+ readonly type: "receive";
8197
8336
  }];
8198
8337
 
8199
8338
  declare const SavingsABI: readonly [{
package/dist/index.js CHANGED
@@ -56,19 +56,21 @@ var ADDRESS = {
56
56
  bridgeStartUSD: import_viem.zeroAddress,
57
57
  startUSD: import_viem.zeroAddress,
58
58
  roller: import_viem.zeroAddress,
59
- positionFactoryV2: import_viem.zeroAddress
59
+ positionFactoryV2: import_viem.zeroAddress,
60
+ genesisPosition: import_viem.zeroAddress
60
61
  },
61
62
  5115: {
62
- juiceDollar: "0x2742bb39221434bbfcac81959C8367fDE5d83ce9",
63
- equity: "0xD6B9d4600C45eC4388e45A474C1C153828B7C018",
64
- frontendGateway: "0x52C2d93DAC83Da412D93D035b017486DecCE782A",
65
- savingsGateway: "0x2e1697e7BaA6CE62B0c36B015B7a5BEC6157B99e",
66
- savingsVaultJUSD: "0x45DA5a722b591bBce0b87B192d846AB85EFA88d3",
67
- mintingHubGateway: "0x57c4aB0f9480AC52a58C820a58ad802B0D4c23EB",
68
- bridgeStartUSD: "0x8c5e5594c05205454BC09487ad53db4e4DB6564D",
69
- startUSD: "0xa37f823Bd1bae4379265A4fF9cD5a68f402dE2f5",
70
- roller: "0xB9B5f670A19E345fFb82D91e699a3f917E237f55",
71
- positionFactoryV2: "0x70dDC84C79B724b247C10BB9a11Bd98c08Ee3C1a"
63
+ juiceDollar: "0xFdB0a83d94CD65151148a131167Eb499Cb85d015",
64
+ equity: "0x7b2A560bf72B0Dd2EAbE3271F829C2597c8420d5",
65
+ frontendGateway: "0x3EB394f950abf90aC78127C0f4c78545E0eD3DFe",
66
+ savingsGateway: "0xbfE44EE0471D0cF4759B97A458240f26c2D340Ca",
67
+ savingsVaultJUSD: "0x9580498224551E3f2e3A04330a684BF025111C53",
68
+ mintingHubGateway: "0x372368ca530B4d55622c24E28F0347e26caDc64A",
69
+ bridgeStartUSD: "0x25F8599Be1D25501212b20bD72DF1caA97b496b1",
70
+ startUSD: "0xDFa3153E1eDa84F966BD01bc4C6D9A4FF36AcAeA",
71
+ roller: "0x09d24251654e5B89d5fcd35d087f0CB4163471aC",
72
+ positionFactoryV2: "0xB22a0701237a226d17aE0C4FE8263Edf5Be5f20d",
73
+ genesisPosition: "0xE2D4Ca089457ECfabF89F472568eac4e94b21d8C"
72
74
  }
73
75
  };
74
76
 
@@ -3730,6 +3732,11 @@ var MintingHubGatewayABI = [
3730
3732
  name: "NativeOnlyForWCBTC",
3731
3733
  type: "error"
3732
3734
  },
3735
+ {
3736
+ inputs: [],
3737
+ name: "NativeTransferFailed",
3738
+ type: "error"
3739
+ },
3733
3740
  {
3734
3741
  inputs: [],
3735
3742
  name: "UnexpectedPrice",
@@ -4041,6 +4048,58 @@ var MintingHubGatewayABI = [
4041
4048
  stateMutability: "nonpayable",
4042
4049
  type: "function"
4043
4050
  },
4051
+ {
4052
+ inputs: [
4053
+ {
4054
+ internalType: "uint32",
4055
+ name: "_challengeNumber",
4056
+ type: "uint32"
4057
+ },
4058
+ {
4059
+ internalType: "uint256",
4060
+ name: "size",
4061
+ type: "uint256"
4062
+ },
4063
+ {
4064
+ internalType: "bool",
4065
+ name: "postponeCollateralReturn",
4066
+ type: "bool"
4067
+ },
4068
+ {
4069
+ internalType: "bool",
4070
+ name: "returnCollateralAsNative",
4071
+ type: "bool"
4072
+ }
4073
+ ],
4074
+ name: "bid",
4075
+ outputs: [],
4076
+ stateMutability: "nonpayable",
4077
+ type: "function"
4078
+ },
4079
+ {
4080
+ inputs: [
4081
+ {
4082
+ internalType: "contract IPosition",
4083
+ name: "pos",
4084
+ type: "address"
4085
+ },
4086
+ {
4087
+ internalType: "uint256",
4088
+ name: "upToAmount",
4089
+ type: "uint256"
4090
+ }
4091
+ ],
4092
+ name: "buyExpiredCollateral",
4093
+ outputs: [
4094
+ {
4095
+ internalType: "uint256",
4096
+ name: "",
4097
+ type: "uint256"
4098
+ }
4099
+ ],
4100
+ stateMutability: "nonpayable",
4101
+ type: "function"
4102
+ },
4044
4103
  {
4045
4104
  inputs: [
4046
4105
  {
@@ -4052,6 +4111,11 @@ var MintingHubGatewayABI = [
4052
4111
  internalType: "uint256",
4053
4112
  name: "upToAmount",
4054
4113
  type: "uint256"
4114
+ },
4115
+ {
4116
+ internalType: "bool",
4117
+ name: "receiveAsNative",
4118
+ type: "bool"
4055
4119
  }
4056
4120
  ],
4057
4121
  name: "buyExpiredCollateral",
@@ -4091,7 +4155,7 @@ var MintingHubGatewayABI = [
4091
4155
  type: "uint256"
4092
4156
  }
4093
4157
  ],
4094
- stateMutability: "nonpayable",
4158
+ stateMutability: "payable",
4095
4159
  type: "function"
4096
4160
  },
4097
4161
  {
@@ -4429,6 +4493,29 @@ var MintingHubGatewayABI = [
4429
4493
  stateMutability: "view",
4430
4494
  type: "function"
4431
4495
  },
4496
+ {
4497
+ inputs: [
4498
+ {
4499
+ internalType: "address",
4500
+ name: "collateral",
4501
+ type: "address"
4502
+ },
4503
+ {
4504
+ internalType: "address",
4505
+ name: "target",
4506
+ type: "address"
4507
+ },
4508
+ {
4509
+ internalType: "bool",
4510
+ name: "asNative",
4511
+ type: "bool"
4512
+ }
4513
+ ],
4514
+ name: "returnPostponedCollateral",
4515
+ outputs: [],
4516
+ stateMutability: "nonpayable",
4517
+ type: "function"
4518
+ },
4432
4519
  {
4433
4520
  inputs: [
4434
4521
  {
@@ -4465,6 +4552,10 @@ var MintingHubGatewayABI = [
4465
4552
  ],
4466
4553
  stateMutability: "view",
4467
4554
  type: "function"
4555
+ },
4556
+ {
4557
+ stateMutability: "payable",
4558
+ type: "receive"
4468
4559
  }
4469
4560
  ];
4470
4561
 
@@ -9764,6 +9855,11 @@ var MintingHubV2ABI = [
9764
9855
  name: "NativeOnlyForWCBTC",
9765
9856
  type: "error"
9766
9857
  },
9858
+ {
9859
+ inputs: [],
9860
+ name: "NativeTransferFailed",
9861
+ type: "error"
9862
+ },
9767
9863
  {
9768
9864
  inputs: [],
9769
9865
  name: "UnexpectedPrice",
@@ -10062,6 +10158,58 @@ var MintingHubV2ABI = [
10062
10158
  stateMutability: "nonpayable",
10063
10159
  type: "function"
10064
10160
  },
10161
+ {
10162
+ inputs: [
10163
+ {
10164
+ internalType: "uint32",
10165
+ name: "_challengeNumber",
10166
+ type: "uint32"
10167
+ },
10168
+ {
10169
+ internalType: "uint256",
10170
+ name: "size",
10171
+ type: "uint256"
10172
+ },
10173
+ {
10174
+ internalType: "bool",
10175
+ name: "postponeCollateralReturn",
10176
+ type: "bool"
10177
+ },
10178
+ {
10179
+ internalType: "bool",
10180
+ name: "returnCollateralAsNative",
10181
+ type: "bool"
10182
+ }
10183
+ ],
10184
+ name: "bid",
10185
+ outputs: [],
10186
+ stateMutability: "nonpayable",
10187
+ type: "function"
10188
+ },
10189
+ {
10190
+ inputs: [
10191
+ {
10192
+ internalType: "contract IPosition",
10193
+ name: "pos",
10194
+ type: "address"
10195
+ },
10196
+ {
10197
+ internalType: "uint256",
10198
+ name: "upToAmount",
10199
+ type: "uint256"
10200
+ }
10201
+ ],
10202
+ name: "buyExpiredCollateral",
10203
+ outputs: [
10204
+ {
10205
+ internalType: "uint256",
10206
+ name: "",
10207
+ type: "uint256"
10208
+ }
10209
+ ],
10210
+ stateMutability: "nonpayable",
10211
+ type: "function"
10212
+ },
10065
10213
  {
10066
10214
  inputs: [
10067
10215
  {
@@ -10073,6 +10221,11 @@ var MintingHubV2ABI = [
10073
10221
  internalType: "uint256",
10074
10222
  name: "upToAmount",
10075
10223
  type: "uint256"
10224
+ },
10225
+ {
10226
+ internalType: "bool",
10227
+ name: "receiveAsNative",
10228
+ type: "bool"
10076
10229
  }
10077
10230
  ],
10078
10231
  name: "buyExpiredCollateral",
@@ -10112,7 +10265,7 @@ var MintingHubV2ABI = [
10112
10265
  type: "uint256"
10113
10266
  }
10114
10267
  ],
10115
- stateMutability: "nonpayable",
10268
+ stateMutability: "payable",
10116
10269
  type: "function"
10117
10270
  },
10118
10271
  {
@@ -10319,6 +10472,29 @@ var MintingHubV2ABI = [
10319
10472
  stateMutability: "view",
10320
10473
  type: "function"
10321
10474
  },
10475
+ {
10476
+ inputs: [
10477
+ {
10478
+ internalType: "address",
10479
+ name: "collateral",
10480
+ type: "address"
10481
+ },
10482
+ {
10483
+ internalType: "address",
10484
+ name: "target",
10485
+ type: "address"
10486
+ },
10487
+ {
10488
+ internalType: "bool",
10489
+ name: "asNative",
10490
+ type: "bool"
10491
+ }
10492
+ ],
10493
+ name: "returnPostponedCollateral",
10494
+ outputs: [],
10495
+ stateMutability: "nonpayable",
10496
+ type: "function"
10497
+ },
10322
10498
  {
10323
10499
  inputs: [
10324
10500
  {
@@ -10355,6 +10531,10 @@ var MintingHubV2ABI = [
10355
10531
  ],
10356
10532
  stateMutability: "view",
10357
10533
  type: "function"
10534
+ },
10535
+ {
10536
+ stateMutability: "payable",
10537
+ type: "receive"
10358
10538
  }
10359
10539
  ];
10360
10540