@juicedollar/jusd 1.0.5 → 1.1.0

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.js CHANGED
@@ -45,7 +45,7 @@ module.exports = __toCommonJS(exports_exports);
45
45
  // exports/address.config.ts
46
46
  var import_viem = require("viem");
47
47
  var ADDRESS = {
48
- 62831: {
48
+ 4114: {
49
49
  // Citrea Mainnet - TODO: Add deployed contract addresses
50
50
  juiceDollar: import_viem.zeroAddress,
51
51
  equity: import_viem.zeroAddress,
@@ -54,21 +54,29 @@ var ADDRESS = {
54
54
  savingsVaultJUSD: import_viem.zeroAddress,
55
55
  mintingHubGateway: import_viem.zeroAddress,
56
56
  bridgeStartUSD: import_viem.zeroAddress,
57
+ bridgeUSDC: import_viem.zeroAddress,
58
+ bridgeUSDT: import_viem.zeroAddress,
59
+ bridgeCTUSD: import_viem.zeroAddress,
57
60
  startUSD: import_viem.zeroAddress,
61
+ USDC: "0xE045e6c36cF77FAA2CfB54466D71A3aEF7bbE839",
62
+ USDT: "0x9f3096Bac87e7F03DC09b0B416eB0DF837304dc4",
63
+ CTUSD: "0x8D82c4E3c936C7B5724A382a9c5a4E6Eb7aB6d5D",
58
64
  roller: import_viem.zeroAddress,
59
- positionFactoryV2: import_viem.zeroAddress
65
+ positionFactoryV2: import_viem.zeroAddress,
66
+ genesisPosition: import_viem.zeroAddress
60
67
  },
61
68
  5115: {
62
- juiceDollar: "0xFdB0a83d94CD65151148a131167Eb499Cb85d015",
63
- equity: "0x7b2A560bf72B0Dd2EAbE3271F829C2597c8420d5",
64
- frontendGateway: "0x3EB394f950abf90aC78127C0f4c78545E0eD3DFe",
65
- savingsGateway: "0xbfE44EE0471D0cF4759B97A458240f26c2D340Ca",
66
- savingsVaultJUSD: "0x9580498224551E3f2e3A04330a684BF025111C53",
67
- mintingHubGateway: "0x372368ca530B4d55622c24E28F0347e26caDc64A",
68
- bridgeStartUSD: "0x25F8599Be1D25501212b20bD72DF1caA97b496b1",
69
- startUSD: "0xDFa3153E1eDa84F966BD01bc4C6D9A4FF36AcAeA",
70
- roller: "0x09d24251654e5B89d5fcd35d087f0CB4163471aC",
71
- positionFactoryV2: "0xB22a0701237a226d17aE0C4FE8263Edf5Be5f20d"
69
+ juiceDollar: "0x6a850a548fdd050e8961223ec8FfCDfacEa57E39",
70
+ equity: "0x7fa131991c8A7d8C21b11391C977Fc7c4c8e0D5E",
71
+ frontendGateway: "0xd824b7d36594Fc3088B1D91a79F34931AA2a15D0",
72
+ savingsGateway: "0x54430781b33581CE2b0DBD837CA66113BeEEFD8e",
73
+ savingsVaultJUSD: "0x802a29bD29f02c8C477Af5362f9ba88FAe39Cc7B",
74
+ mintingHubGateway: "0x5fC684074fBaAE37Eb68d3e48D85f485CE5060F8",
75
+ bridgeStartUSD: "0x9ba2264bE7695044f59B9ca863E69aC38B3c913d",
76
+ startUSD: "0x8398Da4c32eaE51B9840DA230095BB29F4179590",
77
+ roller: "0x8A50329559Ae3F2BaA1fC8BC59Fcd52958c61caC",
78
+ positionFactoryV2: "0x2990c3219ED2763685D4420f5513feEa8991a7ee",
79
+ genesisPosition: "0x236375455eBDF941a83Ecda3eECaf2288B6A0f40"
72
80
  }
73
81
  };
74
82
 
@@ -3679,6 +3687,11 @@ var MintingHubGatewayABI = [
3679
3687
  name: "ChallengeTimeTooShort",
3680
3688
  type: "error"
3681
3689
  },
3690
+ {
3691
+ inputs: [],
3692
+ name: "EmptyMessage",
3693
+ type: "error"
3694
+ },
3682
3695
  {
3683
3696
  inputs: [],
3684
3697
  name: "IncompatibleCollateral",
@@ -3725,6 +3738,22 @@ var MintingHubGatewayABI = [
3725
3738
  name: "LeaveNoDust",
3726
3739
  type: "error"
3727
3740
  },
3741
+ {
3742
+ inputs: [
3743
+ {
3744
+ internalType: "uint256",
3745
+ name: "length",
3746
+ type: "uint256"
3747
+ },
3748
+ {
3749
+ internalType: "uint256",
3750
+ name: "maxLength",
3751
+ type: "uint256"
3752
+ }
3753
+ ],
3754
+ name: "MessageTooLong",
3755
+ type: "error"
3756
+ },
3728
3757
  {
3729
3758
  inputs: [],
3730
3759
  name: "NativeOnlyForWCBTC",
@@ -3863,6 +3892,31 @@ var MintingHubGatewayABI = [
3863
3892
  name: "ForcedSale",
3864
3893
  type: "event"
3865
3894
  },
3895
+ {
3896
+ anonymous: false,
3897
+ inputs: [
3898
+ {
3899
+ indexed: true,
3900
+ internalType: "address",
3901
+ name: "position",
3902
+ type: "address"
3903
+ },
3904
+ {
3905
+ indexed: true,
3906
+ internalType: "address",
3907
+ name: "denier",
3908
+ type: "address"
3909
+ },
3910
+ {
3911
+ indexed: false,
3912
+ internalType: "string",
3913
+ name: "message",
3914
+ type: "string"
3915
+ }
3916
+ ],
3917
+ name: "PositionDeniedByGovernance",
3918
+ type: "event"
3919
+ },
3866
3920
  {
3867
3921
  anonymous: false,
3868
3922
  inputs: [
@@ -3894,6 +3948,37 @@ var MintingHubGatewayABI = [
3894
3948
  name: "PositionOpened",
3895
3949
  type: "event"
3896
3950
  },
3951
+ {
3952
+ anonymous: false,
3953
+ inputs: [
3954
+ {
3955
+ indexed: true,
3956
+ internalType: "address",
3957
+ name: "position",
3958
+ type: "address"
3959
+ },
3960
+ {
3961
+ indexed: false,
3962
+ internalType: "uint256",
3963
+ name: "collateral",
3964
+ type: "uint256"
3965
+ },
3966
+ {
3967
+ indexed: false,
3968
+ internalType: "uint256",
3969
+ name: "price",
3970
+ type: "uint256"
3971
+ },
3972
+ {
3973
+ indexed: false,
3974
+ internalType: "uint256",
3975
+ name: "principal",
3976
+ type: "uint256"
3977
+ }
3978
+ ],
3979
+ name: "PositionUpdate",
3980
+ type: "event"
3981
+ },
3897
3982
  {
3898
3983
  anonymous: false,
3899
3984
  inputs: [
@@ -4283,6 +4368,47 @@ var MintingHubGatewayABI = [
4283
4368
  stateMutability: "payable",
4284
4369
  type: "function"
4285
4370
  },
4371
+ {
4372
+ inputs: [
4373
+ {
4374
+ internalType: "address",
4375
+ name: "denier",
4376
+ type: "address"
4377
+ },
4378
+ {
4379
+ internalType: "string",
4380
+ name: "message",
4381
+ type: "string"
4382
+ }
4383
+ ],
4384
+ name: "emitPositionDenied",
4385
+ outputs: [],
4386
+ stateMutability: "nonpayable",
4387
+ type: "function"
4388
+ },
4389
+ {
4390
+ inputs: [
4391
+ {
4392
+ internalType: "uint256",
4393
+ name: "_collateral",
4394
+ type: "uint256"
4395
+ },
4396
+ {
4397
+ internalType: "uint256",
4398
+ name: "_price",
4399
+ type: "uint256"
4400
+ },
4401
+ {
4402
+ internalType: "uint256",
4403
+ name: "_principal",
4404
+ type: "uint256"
4405
+ }
4406
+ ],
4407
+ name: "emitPositionUpdate",
4408
+ outputs: [],
4409
+ stateMutability: "nonpayable",
4410
+ type: "function"
4411
+ },
4286
4412
  {
4287
4413
  inputs: [
4288
4414
  {
@@ -5343,6 +5469,11 @@ var SavingsVaultJUSDABI = [
5343
5469
  name: "SafeERC20FailedOperation",
5344
5470
  type: "error"
5345
5471
  },
5472
+ {
5473
+ inputs: [],
5474
+ name: "ZeroShares",
5475
+ type: "error"
5476
+ },
5346
5477
  {
5347
5478
  anonymous: false,
5348
5479
  inputs: [
@@ -6487,6 +6618,11 @@ var PositionV2ABI = [
6487
6618
  name: "Closed",
6488
6619
  type: "error"
6489
6620
  },
6621
+ {
6622
+ inputs: [],
6623
+ name: "EmptyMessage",
6624
+ type: "error"
6625
+ },
6490
6626
  {
6491
6627
  inputs: [
6492
6628
  {
@@ -6550,6 +6686,22 @@ var PositionV2ABI = [
6550
6686
  name: "LimitExceeded",
6551
6687
  type: "error"
6552
6688
  },
6689
+ {
6690
+ inputs: [
6691
+ {
6692
+ internalType: "uint256",
6693
+ name: "length",
6694
+ type: "uint256"
6695
+ },
6696
+ {
6697
+ internalType: "uint256",
6698
+ name: "maxLength",
6699
+ type: "uint256"
6700
+ }
6701
+ ],
6702
+ name: "MessageTooLong",
6703
+ type: "error"
6704
+ },
6553
6705
  {
6554
6706
  inputs: [],
6555
6707
  name: "NativeTransferFailed",
@@ -9581,6 +9733,11 @@ var StablecoinBridgeABI = [
9581
9733
  stateMutability: "nonpayable",
9582
9734
  type: "constructor"
9583
9735
  },
9736
+ {
9737
+ inputs: [],
9738
+ name: "AlreadyStopped",
9739
+ type: "error"
9740
+ },
9584
9741
  {
9585
9742
  inputs: [
9586
9743
  {
@@ -9613,6 +9770,16 @@ var StablecoinBridgeABI = [
9613
9770
  name: "Limit",
9614
9771
  type: "error"
9615
9772
  },
9773
+ {
9774
+ inputs: [],
9775
+ name: "NoGovernance",
9776
+ type: "error"
9777
+ },
9778
+ {
9779
+ inputs: [],
9780
+ name: "NotQualified",
9781
+ type: "error"
9782
+ },
9616
9783
  {
9617
9784
  inputs: [
9618
9785
  {
@@ -9624,6 +9791,11 @@ var StablecoinBridgeABI = [
9624
9791
  name: "SafeERC20FailedOperation",
9625
9792
  type: "error"
9626
9793
  },
9794
+ {
9795
+ inputs: [],
9796
+ name: "Stopped",
9797
+ type: "error"
9798
+ },
9627
9799
  {
9628
9800
  inputs: [
9629
9801
  {
@@ -9635,6 +9807,25 @@ var StablecoinBridgeABI = [
9635
9807
  name: "UnsupportedToken",
9636
9808
  type: "error"
9637
9809
  },
9810
+ {
9811
+ anonymous: false,
9812
+ inputs: [
9813
+ {
9814
+ indexed: true,
9815
+ internalType: "address",
9816
+ name: "caller",
9817
+ type: "address"
9818
+ },
9819
+ {
9820
+ indexed: false,
9821
+ internalType: "string",
9822
+ name: "message",
9823
+ type: "string"
9824
+ }
9825
+ ],
9826
+ name: "EmergencyStopped",
9827
+ type: "event"
9828
+ },
9638
9829
  {
9639
9830
  inputs: [],
9640
9831
  name: "JUSD",
@@ -9679,6 +9870,24 @@ var StablecoinBridgeABI = [
9679
9870
  stateMutability: "nonpayable",
9680
9871
  type: "function"
9681
9872
  },
9873
+ {
9874
+ inputs: [
9875
+ {
9876
+ internalType: "address[]",
9877
+ name: "_helpers",
9878
+ type: "address[]"
9879
+ },
9880
+ {
9881
+ internalType: "string",
9882
+ name: "_message",
9883
+ type: "string"
9884
+ }
9885
+ ],
9886
+ name: "emergencyStop",
9887
+ outputs: [],
9888
+ stateMutability: "nonpayable",
9889
+ type: "function"
9890
+ },
9682
9891
  {
9683
9892
  inputs: [],
9684
9893
  name: "horizon",
@@ -9749,6 +9958,19 @@ var StablecoinBridgeABI = [
9749
9958
  stateMutability: "view",
9750
9959
  type: "function"
9751
9960
  },
9961
+ {
9962
+ inputs: [],
9963
+ name: "stopped",
9964
+ outputs: [
9965
+ {
9966
+ internalType: "bool",
9967
+ name: "",
9968
+ type: "bool"
9969
+ }
9970
+ ],
9971
+ stateMutability: "view",
9972
+ type: "function"
9973
+ },
9752
9974
  {
9753
9975
  inputs: [],
9754
9976
  name: "usd",
@@ -9802,6 +10024,11 @@ var MintingHubV2ABI = [
9802
10024
  name: "ChallengeTimeTooShort",
9803
10025
  type: "error"
9804
10026
  },
10027
+ {
10028
+ inputs: [],
10029
+ name: "EmptyMessage",
10030
+ type: "error"
10031
+ },
9805
10032
  {
9806
10033
  inputs: [],
9807
10034
  name: "IncompatibleCollateral",
@@ -9848,6 +10075,22 @@ var MintingHubV2ABI = [
9848
10075
  name: "LeaveNoDust",
9849
10076
  type: "error"
9850
10077
  },
10078
+ {
10079
+ inputs: [
10080
+ {
10081
+ internalType: "uint256",
10082
+ name: "length",
10083
+ type: "uint256"
10084
+ },
10085
+ {
10086
+ internalType: "uint256",
10087
+ name: "maxLength",
10088
+ type: "uint256"
10089
+ }
10090
+ ],
10091
+ name: "MessageTooLong",
10092
+ type: "error"
10093
+ },
9851
10094
  {
9852
10095
  inputs: [],
9853
10096
  name: "NativeOnlyForWCBTC",
@@ -9986,6 +10229,31 @@ var MintingHubV2ABI = [
9986
10229
  name: "ForcedSale",
9987
10230
  type: "event"
9988
10231
  },
10232
+ {
10233
+ anonymous: false,
10234
+ inputs: [
10235
+ {
10236
+ indexed: true,
10237
+ internalType: "address",
10238
+ name: "position",
10239
+ type: "address"
10240
+ },
10241
+ {
10242
+ indexed: true,
10243
+ internalType: "address",
10244
+ name: "denier",
10245
+ type: "address"
10246
+ },
10247
+ {
10248
+ indexed: false,
10249
+ internalType: "string",
10250
+ name: "message",
10251
+ type: "string"
10252
+ }
10253
+ ],
10254
+ name: "PositionDeniedByGovernance",
10255
+ type: "event"
10256
+ },
9989
10257
  {
9990
10258
  anonymous: false,
9991
10259
  inputs: [
@@ -10017,6 +10285,37 @@ var MintingHubV2ABI = [
10017
10285
  name: "PositionOpened",
10018
10286
  type: "event"
10019
10287
  },
10288
+ {
10289
+ anonymous: false,
10290
+ inputs: [
10291
+ {
10292
+ indexed: true,
10293
+ internalType: "address",
10294
+ name: "position",
10295
+ type: "address"
10296
+ },
10297
+ {
10298
+ indexed: false,
10299
+ internalType: "uint256",
10300
+ name: "collateral",
10301
+ type: "uint256"
10302
+ },
10303
+ {
10304
+ indexed: false,
10305
+ internalType: "uint256",
10306
+ name: "price",
10307
+ type: "uint256"
10308
+ },
10309
+ {
10310
+ indexed: false,
10311
+ internalType: "uint256",
10312
+ name: "principal",
10313
+ type: "uint256"
10314
+ }
10315
+ ],
10316
+ name: "PositionUpdate",
10317
+ type: "event"
10318
+ },
10020
10319
  {
10021
10320
  anonymous: false,
10022
10321
  inputs: [
@@ -10344,6 +10643,47 @@ var MintingHubV2ABI = [
10344
10643
  stateMutability: "payable",
10345
10644
  type: "function"
10346
10645
  },
10646
+ {
10647
+ inputs: [
10648
+ {
10649
+ internalType: "address",
10650
+ name: "denier",
10651
+ type: "address"
10652
+ },
10653
+ {
10654
+ internalType: "string",
10655
+ name: "message",
10656
+ type: "string"
10657
+ }
10658
+ ],
10659
+ name: "emitPositionDenied",
10660
+ outputs: [],
10661
+ stateMutability: "nonpayable",
10662
+ type: "function"
10663
+ },
10664
+ {
10665
+ inputs: [
10666
+ {
10667
+ internalType: "uint256",
10668
+ name: "_collateral",
10669
+ type: "uint256"
10670
+ },
10671
+ {
10672
+ internalType: "uint256",
10673
+ name: "_price",
10674
+ type: "uint256"
10675
+ },
10676
+ {
10677
+ internalType: "uint256",
10678
+ name: "_principal",
10679
+ type: "uint256"
10680
+ }
10681
+ ],
10682
+ name: "emitPositionUpdate",
10683
+ outputs: [],
10684
+ stateMutability: "nonpayable",
10685
+ type: "function"
10686
+ },
10347
10687
  {
10348
10688
  inputs: [
10349
10689
  {