@juicedollar/jusd 1.0.6 → 1.1.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/README.md +0 -26
- package/contracts/MintingHubV2/MintingHub.sol +80 -16
- package/contracts/MintingHubV2/Position.sol +80 -24
- package/contracts/MintingHubV2/interface/IMintingHub.sol +24 -2
- package/contracts/SavingsVaultJUSD.sol +14 -21
- package/contracts/StablecoinBridge.sol +49 -4
- package/contracts/interface/IReserve.sol +2 -0
- package/contracts/test/PositionExpirationTest.sol +2 -2
- package/contracts/test/PositionRollingTest.sol +2 -2
- package/dist/index.d.mts +269 -0
- package/dist/index.d.ts +269 -0
- package/dist/index.js +362 -23
- package/dist/index.mjs +362 -23
- package/exports/abis/MintingHubV2/PositionV2.ts +21 -0
- package/exports/abis/core/MintingHubGateway.ts +118 -0
- package/exports/abis/core/SavingsVaultJUSD.ts +5 -0
- package/exports/abis/utils/MintingHubV2.ts +118 -0
- package/exports/abis/utils/StablecoinBridge.ts +70 -0
- package/exports/address.config.ts +40 -26
- package/exports/index.ts +0 -3
- package/package.json +9 -5
package/dist/index.mjs
CHANGED
|
@@ -1,32 +1,39 @@
|
|
|
1
1
|
// exports/address.config.ts
|
|
2
2
|
import { zeroAddress } from "viem";
|
|
3
3
|
var ADDRESS = {
|
|
4
|
-
|
|
5
|
-
// Citrea Mainnet
|
|
6
|
-
juiceDollar:
|
|
7
|
-
equity:
|
|
8
|
-
frontendGateway:
|
|
9
|
-
savingsGateway:
|
|
10
|
-
savingsVaultJUSD:
|
|
11
|
-
mintingHubGateway:
|
|
12
|
-
bridgeStartUSD:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
4114: {
|
|
5
|
+
// Citrea Mainnet
|
|
6
|
+
juiceDollar: "0x0987D3720D38847ac6dBB9D025B9dE892a3CA35C",
|
|
7
|
+
equity: "0x2A36f2b204B46Fd82653cd06d00c7fF757C99ae4",
|
|
8
|
+
frontendGateway: "0x3090a89A1fF5DC99117BE655599e5491A0BaBB92",
|
|
9
|
+
savingsGateway: "0x22FE239892eBC8805DA8f05eD3bc6aF75332b60b",
|
|
10
|
+
savingsVaultJUSD: "0x1b70ae756b1089cc5948e4f8a2AD498DF30E897d",
|
|
11
|
+
mintingHubGateway: "0x1a20B160bf546774246C7920939E6e7Ac0f88b8e",
|
|
12
|
+
bridgeStartUSD: "0x51ff8141D731676Fb21aE1E5D5A88c04511994dD",
|
|
13
|
+
bridgeUSDC: "0x920DB0aDf6fEe2D69401e9f68D60319177dCa20F",
|
|
14
|
+
bridgeUSDT: "0x5CC0e668F8BA61E111B6168E19d17d3C65040614",
|
|
15
|
+
bridgeCTUSD: "0x8D11020286aF9ecf7E5D7bD79699c391b224a0bd",
|
|
16
|
+
startUSD: "0xD41ab73aF9c7324b9c7c6e63dE1aeC666d98bc80",
|
|
17
|
+
USDC: "0xE045e6c36cF77FAA2CfB54466D71A3aEF7bbE839",
|
|
18
|
+
USDT: "0x9f3096Bac87e7F03DC09b0B416eB0DF837304dc4",
|
|
19
|
+
CTUSD: "0x8D82c4E3c936C7B5724A382a9c5a4E6Eb7aB6d5D",
|
|
20
|
+
roller: "0xC1b97398c06B9C6a49Fd9dCFAC8907700301e9Ac",
|
|
21
|
+
positionFactoryV2: "0x107eDf5f030d724bD0C73f88A300bEA09AE581e2",
|
|
16
22
|
genesisPosition: zeroAddress
|
|
23
|
+
// Not created - insufficient collateral
|
|
17
24
|
},
|
|
18
25
|
5115: {
|
|
19
|
-
juiceDollar: "
|
|
20
|
-
equity: "
|
|
21
|
-
frontendGateway: "
|
|
22
|
-
savingsGateway: "
|
|
23
|
-
savingsVaultJUSD: "
|
|
24
|
-
mintingHubGateway: "
|
|
25
|
-
bridgeStartUSD: "
|
|
26
|
-
startUSD: "
|
|
27
|
-
roller: "
|
|
28
|
-
positionFactoryV2: "
|
|
29
|
-
genesisPosition: "
|
|
26
|
+
juiceDollar: "0x6a850a548fdd050e8961223ec8FfCDfacEa57E39",
|
|
27
|
+
equity: "0x7fa131991c8A7d8C21b11391C977Fc7c4c8e0D5E",
|
|
28
|
+
frontendGateway: "0xd824b7d36594Fc3088B1D91a79F34931AA2a15D0",
|
|
29
|
+
savingsGateway: "0x54430781b33581CE2b0DBD837CA66113BeEEFD8e",
|
|
30
|
+
savingsVaultJUSD: "0x802a29bD29f02c8C477Af5362f9ba88FAe39Cc7B",
|
|
31
|
+
mintingHubGateway: "0x5fC684074fBaAE37Eb68d3e48D85f485CE5060F8",
|
|
32
|
+
bridgeStartUSD: "0x9ba2264bE7695044f59B9ca863E69aC38B3c913d",
|
|
33
|
+
startUSD: "0x8398Da4c32eaE51B9840DA230095BB29F4179590",
|
|
34
|
+
roller: "0x8A50329559Ae3F2BaA1fC8BC59Fcd52958c61caC",
|
|
35
|
+
positionFactoryV2: "0x2990c3219ED2763685D4420f5513feEa8991a7ee",
|
|
36
|
+
genesisPosition: "0x236375455eBDF941a83Ecda3eECaf2288B6A0f40"
|
|
30
37
|
}
|
|
31
38
|
};
|
|
32
39
|
|
|
@@ -3637,6 +3644,11 @@ var MintingHubGatewayABI = [
|
|
|
3637
3644
|
name: "ChallengeTimeTooShort",
|
|
3638
3645
|
type: "error"
|
|
3639
3646
|
},
|
|
3647
|
+
{
|
|
3648
|
+
inputs: [],
|
|
3649
|
+
name: "EmptyMessage",
|
|
3650
|
+
type: "error"
|
|
3651
|
+
},
|
|
3640
3652
|
{
|
|
3641
3653
|
inputs: [],
|
|
3642
3654
|
name: "IncompatibleCollateral",
|
|
@@ -3683,6 +3695,22 @@ var MintingHubGatewayABI = [
|
|
|
3683
3695
|
name: "LeaveNoDust",
|
|
3684
3696
|
type: "error"
|
|
3685
3697
|
},
|
|
3698
|
+
{
|
|
3699
|
+
inputs: [
|
|
3700
|
+
{
|
|
3701
|
+
internalType: "uint256",
|
|
3702
|
+
name: "length",
|
|
3703
|
+
type: "uint256"
|
|
3704
|
+
},
|
|
3705
|
+
{
|
|
3706
|
+
internalType: "uint256",
|
|
3707
|
+
name: "maxLength",
|
|
3708
|
+
type: "uint256"
|
|
3709
|
+
}
|
|
3710
|
+
],
|
|
3711
|
+
name: "MessageTooLong",
|
|
3712
|
+
type: "error"
|
|
3713
|
+
},
|
|
3686
3714
|
{
|
|
3687
3715
|
inputs: [],
|
|
3688
3716
|
name: "NativeOnlyForWCBTC",
|
|
@@ -3821,6 +3849,31 @@ var MintingHubGatewayABI = [
|
|
|
3821
3849
|
name: "ForcedSale",
|
|
3822
3850
|
type: "event"
|
|
3823
3851
|
},
|
|
3852
|
+
{
|
|
3853
|
+
anonymous: false,
|
|
3854
|
+
inputs: [
|
|
3855
|
+
{
|
|
3856
|
+
indexed: true,
|
|
3857
|
+
internalType: "address",
|
|
3858
|
+
name: "position",
|
|
3859
|
+
type: "address"
|
|
3860
|
+
},
|
|
3861
|
+
{
|
|
3862
|
+
indexed: true,
|
|
3863
|
+
internalType: "address",
|
|
3864
|
+
name: "denier",
|
|
3865
|
+
type: "address"
|
|
3866
|
+
},
|
|
3867
|
+
{
|
|
3868
|
+
indexed: false,
|
|
3869
|
+
internalType: "string",
|
|
3870
|
+
name: "message",
|
|
3871
|
+
type: "string"
|
|
3872
|
+
}
|
|
3873
|
+
],
|
|
3874
|
+
name: "PositionDeniedByGovernance",
|
|
3875
|
+
type: "event"
|
|
3876
|
+
},
|
|
3824
3877
|
{
|
|
3825
3878
|
anonymous: false,
|
|
3826
3879
|
inputs: [
|
|
@@ -3852,6 +3905,37 @@ var MintingHubGatewayABI = [
|
|
|
3852
3905
|
name: "PositionOpened",
|
|
3853
3906
|
type: "event"
|
|
3854
3907
|
},
|
|
3908
|
+
{
|
|
3909
|
+
anonymous: false,
|
|
3910
|
+
inputs: [
|
|
3911
|
+
{
|
|
3912
|
+
indexed: true,
|
|
3913
|
+
internalType: "address",
|
|
3914
|
+
name: "position",
|
|
3915
|
+
type: "address"
|
|
3916
|
+
},
|
|
3917
|
+
{
|
|
3918
|
+
indexed: false,
|
|
3919
|
+
internalType: "uint256",
|
|
3920
|
+
name: "collateral",
|
|
3921
|
+
type: "uint256"
|
|
3922
|
+
},
|
|
3923
|
+
{
|
|
3924
|
+
indexed: false,
|
|
3925
|
+
internalType: "uint256",
|
|
3926
|
+
name: "price",
|
|
3927
|
+
type: "uint256"
|
|
3928
|
+
},
|
|
3929
|
+
{
|
|
3930
|
+
indexed: false,
|
|
3931
|
+
internalType: "uint256",
|
|
3932
|
+
name: "principal",
|
|
3933
|
+
type: "uint256"
|
|
3934
|
+
}
|
|
3935
|
+
],
|
|
3936
|
+
name: "PositionUpdate",
|
|
3937
|
+
type: "event"
|
|
3938
|
+
},
|
|
3855
3939
|
{
|
|
3856
3940
|
anonymous: false,
|
|
3857
3941
|
inputs: [
|
|
@@ -4241,6 +4325,47 @@ var MintingHubGatewayABI = [
|
|
|
4241
4325
|
stateMutability: "payable",
|
|
4242
4326
|
type: "function"
|
|
4243
4327
|
},
|
|
4328
|
+
{
|
|
4329
|
+
inputs: [
|
|
4330
|
+
{
|
|
4331
|
+
internalType: "address",
|
|
4332
|
+
name: "denier",
|
|
4333
|
+
type: "address"
|
|
4334
|
+
},
|
|
4335
|
+
{
|
|
4336
|
+
internalType: "string",
|
|
4337
|
+
name: "message",
|
|
4338
|
+
type: "string"
|
|
4339
|
+
}
|
|
4340
|
+
],
|
|
4341
|
+
name: "emitPositionDenied",
|
|
4342
|
+
outputs: [],
|
|
4343
|
+
stateMutability: "nonpayable",
|
|
4344
|
+
type: "function"
|
|
4345
|
+
},
|
|
4346
|
+
{
|
|
4347
|
+
inputs: [
|
|
4348
|
+
{
|
|
4349
|
+
internalType: "uint256",
|
|
4350
|
+
name: "_collateral",
|
|
4351
|
+
type: "uint256"
|
|
4352
|
+
},
|
|
4353
|
+
{
|
|
4354
|
+
internalType: "uint256",
|
|
4355
|
+
name: "_price",
|
|
4356
|
+
type: "uint256"
|
|
4357
|
+
},
|
|
4358
|
+
{
|
|
4359
|
+
internalType: "uint256",
|
|
4360
|
+
name: "_principal",
|
|
4361
|
+
type: "uint256"
|
|
4362
|
+
}
|
|
4363
|
+
],
|
|
4364
|
+
name: "emitPositionUpdate",
|
|
4365
|
+
outputs: [],
|
|
4366
|
+
stateMutability: "nonpayable",
|
|
4367
|
+
type: "function"
|
|
4368
|
+
},
|
|
4244
4369
|
{
|
|
4245
4370
|
inputs: [
|
|
4246
4371
|
{
|
|
@@ -5301,6 +5426,11 @@ var SavingsVaultJUSDABI = [
|
|
|
5301
5426
|
name: "SafeERC20FailedOperation",
|
|
5302
5427
|
type: "error"
|
|
5303
5428
|
},
|
|
5429
|
+
{
|
|
5430
|
+
inputs: [],
|
|
5431
|
+
name: "ZeroShares",
|
|
5432
|
+
type: "error"
|
|
5433
|
+
},
|
|
5304
5434
|
{
|
|
5305
5435
|
anonymous: false,
|
|
5306
5436
|
inputs: [
|
|
@@ -6445,6 +6575,11 @@ var PositionV2ABI = [
|
|
|
6445
6575
|
name: "Closed",
|
|
6446
6576
|
type: "error"
|
|
6447
6577
|
},
|
|
6578
|
+
{
|
|
6579
|
+
inputs: [],
|
|
6580
|
+
name: "EmptyMessage",
|
|
6581
|
+
type: "error"
|
|
6582
|
+
},
|
|
6448
6583
|
{
|
|
6449
6584
|
inputs: [
|
|
6450
6585
|
{
|
|
@@ -6508,6 +6643,22 @@ var PositionV2ABI = [
|
|
|
6508
6643
|
name: "LimitExceeded",
|
|
6509
6644
|
type: "error"
|
|
6510
6645
|
},
|
|
6646
|
+
{
|
|
6647
|
+
inputs: [
|
|
6648
|
+
{
|
|
6649
|
+
internalType: "uint256",
|
|
6650
|
+
name: "length",
|
|
6651
|
+
type: "uint256"
|
|
6652
|
+
},
|
|
6653
|
+
{
|
|
6654
|
+
internalType: "uint256",
|
|
6655
|
+
name: "maxLength",
|
|
6656
|
+
type: "uint256"
|
|
6657
|
+
}
|
|
6658
|
+
],
|
|
6659
|
+
name: "MessageTooLong",
|
|
6660
|
+
type: "error"
|
|
6661
|
+
},
|
|
6511
6662
|
{
|
|
6512
6663
|
inputs: [],
|
|
6513
6664
|
name: "NativeTransferFailed",
|
|
@@ -9539,6 +9690,11 @@ var StablecoinBridgeABI = [
|
|
|
9539
9690
|
stateMutability: "nonpayable",
|
|
9540
9691
|
type: "constructor"
|
|
9541
9692
|
},
|
|
9693
|
+
{
|
|
9694
|
+
inputs: [],
|
|
9695
|
+
name: "AlreadyStopped",
|
|
9696
|
+
type: "error"
|
|
9697
|
+
},
|
|
9542
9698
|
{
|
|
9543
9699
|
inputs: [
|
|
9544
9700
|
{
|
|
@@ -9571,6 +9727,16 @@ var StablecoinBridgeABI = [
|
|
|
9571
9727
|
name: "Limit",
|
|
9572
9728
|
type: "error"
|
|
9573
9729
|
},
|
|
9730
|
+
{
|
|
9731
|
+
inputs: [],
|
|
9732
|
+
name: "NoGovernance",
|
|
9733
|
+
type: "error"
|
|
9734
|
+
},
|
|
9735
|
+
{
|
|
9736
|
+
inputs: [],
|
|
9737
|
+
name: "NotQualified",
|
|
9738
|
+
type: "error"
|
|
9739
|
+
},
|
|
9574
9740
|
{
|
|
9575
9741
|
inputs: [
|
|
9576
9742
|
{
|
|
@@ -9582,6 +9748,11 @@ var StablecoinBridgeABI = [
|
|
|
9582
9748
|
name: "SafeERC20FailedOperation",
|
|
9583
9749
|
type: "error"
|
|
9584
9750
|
},
|
|
9751
|
+
{
|
|
9752
|
+
inputs: [],
|
|
9753
|
+
name: "Stopped",
|
|
9754
|
+
type: "error"
|
|
9755
|
+
},
|
|
9585
9756
|
{
|
|
9586
9757
|
inputs: [
|
|
9587
9758
|
{
|
|
@@ -9593,6 +9764,25 @@ var StablecoinBridgeABI = [
|
|
|
9593
9764
|
name: "UnsupportedToken",
|
|
9594
9765
|
type: "error"
|
|
9595
9766
|
},
|
|
9767
|
+
{
|
|
9768
|
+
anonymous: false,
|
|
9769
|
+
inputs: [
|
|
9770
|
+
{
|
|
9771
|
+
indexed: true,
|
|
9772
|
+
internalType: "address",
|
|
9773
|
+
name: "caller",
|
|
9774
|
+
type: "address"
|
|
9775
|
+
},
|
|
9776
|
+
{
|
|
9777
|
+
indexed: false,
|
|
9778
|
+
internalType: "string",
|
|
9779
|
+
name: "message",
|
|
9780
|
+
type: "string"
|
|
9781
|
+
}
|
|
9782
|
+
],
|
|
9783
|
+
name: "EmergencyStopped",
|
|
9784
|
+
type: "event"
|
|
9785
|
+
},
|
|
9596
9786
|
{
|
|
9597
9787
|
inputs: [],
|
|
9598
9788
|
name: "JUSD",
|
|
@@ -9637,6 +9827,24 @@ var StablecoinBridgeABI = [
|
|
|
9637
9827
|
stateMutability: "nonpayable",
|
|
9638
9828
|
type: "function"
|
|
9639
9829
|
},
|
|
9830
|
+
{
|
|
9831
|
+
inputs: [
|
|
9832
|
+
{
|
|
9833
|
+
internalType: "address[]",
|
|
9834
|
+
name: "_helpers",
|
|
9835
|
+
type: "address[]"
|
|
9836
|
+
},
|
|
9837
|
+
{
|
|
9838
|
+
internalType: "string",
|
|
9839
|
+
name: "_message",
|
|
9840
|
+
type: "string"
|
|
9841
|
+
}
|
|
9842
|
+
],
|
|
9843
|
+
name: "emergencyStop",
|
|
9844
|
+
outputs: [],
|
|
9845
|
+
stateMutability: "nonpayable",
|
|
9846
|
+
type: "function"
|
|
9847
|
+
},
|
|
9640
9848
|
{
|
|
9641
9849
|
inputs: [],
|
|
9642
9850
|
name: "horizon",
|
|
@@ -9707,6 +9915,19 @@ var StablecoinBridgeABI = [
|
|
|
9707
9915
|
stateMutability: "view",
|
|
9708
9916
|
type: "function"
|
|
9709
9917
|
},
|
|
9918
|
+
{
|
|
9919
|
+
inputs: [],
|
|
9920
|
+
name: "stopped",
|
|
9921
|
+
outputs: [
|
|
9922
|
+
{
|
|
9923
|
+
internalType: "bool",
|
|
9924
|
+
name: "",
|
|
9925
|
+
type: "bool"
|
|
9926
|
+
}
|
|
9927
|
+
],
|
|
9928
|
+
stateMutability: "view",
|
|
9929
|
+
type: "function"
|
|
9930
|
+
},
|
|
9710
9931
|
{
|
|
9711
9932
|
inputs: [],
|
|
9712
9933
|
name: "usd",
|
|
@@ -9760,6 +9981,11 @@ var MintingHubV2ABI = [
|
|
|
9760
9981
|
name: "ChallengeTimeTooShort",
|
|
9761
9982
|
type: "error"
|
|
9762
9983
|
},
|
|
9984
|
+
{
|
|
9985
|
+
inputs: [],
|
|
9986
|
+
name: "EmptyMessage",
|
|
9987
|
+
type: "error"
|
|
9988
|
+
},
|
|
9763
9989
|
{
|
|
9764
9990
|
inputs: [],
|
|
9765
9991
|
name: "IncompatibleCollateral",
|
|
@@ -9806,6 +10032,22 @@ var MintingHubV2ABI = [
|
|
|
9806
10032
|
name: "LeaveNoDust",
|
|
9807
10033
|
type: "error"
|
|
9808
10034
|
},
|
|
10035
|
+
{
|
|
10036
|
+
inputs: [
|
|
10037
|
+
{
|
|
10038
|
+
internalType: "uint256",
|
|
10039
|
+
name: "length",
|
|
10040
|
+
type: "uint256"
|
|
10041
|
+
},
|
|
10042
|
+
{
|
|
10043
|
+
internalType: "uint256",
|
|
10044
|
+
name: "maxLength",
|
|
10045
|
+
type: "uint256"
|
|
10046
|
+
}
|
|
10047
|
+
],
|
|
10048
|
+
name: "MessageTooLong",
|
|
10049
|
+
type: "error"
|
|
10050
|
+
},
|
|
9809
10051
|
{
|
|
9810
10052
|
inputs: [],
|
|
9811
10053
|
name: "NativeOnlyForWCBTC",
|
|
@@ -9944,6 +10186,31 @@ var MintingHubV2ABI = [
|
|
|
9944
10186
|
name: "ForcedSale",
|
|
9945
10187
|
type: "event"
|
|
9946
10188
|
},
|
|
10189
|
+
{
|
|
10190
|
+
anonymous: false,
|
|
10191
|
+
inputs: [
|
|
10192
|
+
{
|
|
10193
|
+
indexed: true,
|
|
10194
|
+
internalType: "address",
|
|
10195
|
+
name: "position",
|
|
10196
|
+
type: "address"
|
|
10197
|
+
},
|
|
10198
|
+
{
|
|
10199
|
+
indexed: true,
|
|
10200
|
+
internalType: "address",
|
|
10201
|
+
name: "denier",
|
|
10202
|
+
type: "address"
|
|
10203
|
+
},
|
|
10204
|
+
{
|
|
10205
|
+
indexed: false,
|
|
10206
|
+
internalType: "string",
|
|
10207
|
+
name: "message",
|
|
10208
|
+
type: "string"
|
|
10209
|
+
}
|
|
10210
|
+
],
|
|
10211
|
+
name: "PositionDeniedByGovernance",
|
|
10212
|
+
type: "event"
|
|
10213
|
+
},
|
|
9947
10214
|
{
|
|
9948
10215
|
anonymous: false,
|
|
9949
10216
|
inputs: [
|
|
@@ -9975,6 +10242,37 @@ var MintingHubV2ABI = [
|
|
|
9975
10242
|
name: "PositionOpened",
|
|
9976
10243
|
type: "event"
|
|
9977
10244
|
},
|
|
10245
|
+
{
|
|
10246
|
+
anonymous: false,
|
|
10247
|
+
inputs: [
|
|
10248
|
+
{
|
|
10249
|
+
indexed: true,
|
|
10250
|
+
internalType: "address",
|
|
10251
|
+
name: "position",
|
|
10252
|
+
type: "address"
|
|
10253
|
+
},
|
|
10254
|
+
{
|
|
10255
|
+
indexed: false,
|
|
10256
|
+
internalType: "uint256",
|
|
10257
|
+
name: "collateral",
|
|
10258
|
+
type: "uint256"
|
|
10259
|
+
},
|
|
10260
|
+
{
|
|
10261
|
+
indexed: false,
|
|
10262
|
+
internalType: "uint256",
|
|
10263
|
+
name: "price",
|
|
10264
|
+
type: "uint256"
|
|
10265
|
+
},
|
|
10266
|
+
{
|
|
10267
|
+
indexed: false,
|
|
10268
|
+
internalType: "uint256",
|
|
10269
|
+
name: "principal",
|
|
10270
|
+
type: "uint256"
|
|
10271
|
+
}
|
|
10272
|
+
],
|
|
10273
|
+
name: "PositionUpdate",
|
|
10274
|
+
type: "event"
|
|
10275
|
+
},
|
|
9978
10276
|
{
|
|
9979
10277
|
anonymous: false,
|
|
9980
10278
|
inputs: [
|
|
@@ -10302,6 +10600,47 @@ var MintingHubV2ABI = [
|
|
|
10302
10600
|
stateMutability: "payable",
|
|
10303
10601
|
type: "function"
|
|
10304
10602
|
},
|
|
10603
|
+
{
|
|
10604
|
+
inputs: [
|
|
10605
|
+
{
|
|
10606
|
+
internalType: "address",
|
|
10607
|
+
name: "denier",
|
|
10608
|
+
type: "address"
|
|
10609
|
+
},
|
|
10610
|
+
{
|
|
10611
|
+
internalType: "string",
|
|
10612
|
+
name: "message",
|
|
10613
|
+
type: "string"
|
|
10614
|
+
}
|
|
10615
|
+
],
|
|
10616
|
+
name: "emitPositionDenied",
|
|
10617
|
+
outputs: [],
|
|
10618
|
+
stateMutability: "nonpayable",
|
|
10619
|
+
type: "function"
|
|
10620
|
+
},
|
|
10621
|
+
{
|
|
10622
|
+
inputs: [
|
|
10623
|
+
{
|
|
10624
|
+
internalType: "uint256",
|
|
10625
|
+
name: "_collateral",
|
|
10626
|
+
type: "uint256"
|
|
10627
|
+
},
|
|
10628
|
+
{
|
|
10629
|
+
internalType: "uint256",
|
|
10630
|
+
name: "_price",
|
|
10631
|
+
type: "uint256"
|
|
10632
|
+
},
|
|
10633
|
+
{
|
|
10634
|
+
internalType: "uint256",
|
|
10635
|
+
name: "_principal",
|
|
10636
|
+
type: "uint256"
|
|
10637
|
+
}
|
|
10638
|
+
],
|
|
10639
|
+
name: "emitPositionUpdate",
|
|
10640
|
+
outputs: [],
|
|
10641
|
+
stateMutability: "nonpayable",
|
|
10642
|
+
type: "function"
|
|
10643
|
+
},
|
|
10305
10644
|
{
|
|
10306
10645
|
inputs: [
|
|
10307
10646
|
{
|
|
@@ -95,6 +95,11 @@ export const PositionV2ABI = [
|
|
|
95
95
|
name: 'Closed',
|
|
96
96
|
type: 'error',
|
|
97
97
|
},
|
|
98
|
+
{
|
|
99
|
+
inputs: [],
|
|
100
|
+
name: 'EmptyMessage',
|
|
101
|
+
type: 'error',
|
|
102
|
+
},
|
|
98
103
|
{
|
|
99
104
|
inputs: [
|
|
100
105
|
{
|
|
@@ -158,6 +163,22 @@ export const PositionV2ABI = [
|
|
|
158
163
|
name: 'LimitExceeded',
|
|
159
164
|
type: 'error',
|
|
160
165
|
},
|
|
166
|
+
{
|
|
167
|
+
inputs: [
|
|
168
|
+
{
|
|
169
|
+
internalType: 'uint256',
|
|
170
|
+
name: 'length',
|
|
171
|
+
type: 'uint256',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
internalType: 'uint256',
|
|
175
|
+
name: 'maxLength',
|
|
176
|
+
type: 'uint256',
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
name: 'MessageTooLong',
|
|
180
|
+
type: 'error',
|
|
181
|
+
},
|
|
161
182
|
{
|
|
162
183
|
inputs: [],
|
|
163
184
|
name: 'NativeTransferFailed',
|
|
@@ -40,6 +40,11 @@ export const MintingHubGatewayABI = [
|
|
|
40
40
|
name: 'ChallengeTimeTooShort',
|
|
41
41
|
type: 'error',
|
|
42
42
|
},
|
|
43
|
+
{
|
|
44
|
+
inputs: [],
|
|
45
|
+
name: 'EmptyMessage',
|
|
46
|
+
type: 'error',
|
|
47
|
+
},
|
|
43
48
|
{
|
|
44
49
|
inputs: [],
|
|
45
50
|
name: 'IncompatibleCollateral',
|
|
@@ -86,6 +91,22 @@ export const MintingHubGatewayABI = [
|
|
|
86
91
|
name: 'LeaveNoDust',
|
|
87
92
|
type: 'error',
|
|
88
93
|
},
|
|
94
|
+
{
|
|
95
|
+
inputs: [
|
|
96
|
+
{
|
|
97
|
+
internalType: 'uint256',
|
|
98
|
+
name: 'length',
|
|
99
|
+
type: 'uint256',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
internalType: 'uint256',
|
|
103
|
+
name: 'maxLength',
|
|
104
|
+
type: 'uint256',
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
name: 'MessageTooLong',
|
|
108
|
+
type: 'error',
|
|
109
|
+
},
|
|
89
110
|
{
|
|
90
111
|
inputs: [],
|
|
91
112
|
name: 'NativeOnlyForWCBTC',
|
|
@@ -224,6 +245,31 @@ export const MintingHubGatewayABI = [
|
|
|
224
245
|
name: 'ForcedSale',
|
|
225
246
|
type: 'event',
|
|
226
247
|
},
|
|
248
|
+
{
|
|
249
|
+
anonymous: false,
|
|
250
|
+
inputs: [
|
|
251
|
+
{
|
|
252
|
+
indexed: true,
|
|
253
|
+
internalType: 'address',
|
|
254
|
+
name: 'position',
|
|
255
|
+
type: 'address',
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
indexed: true,
|
|
259
|
+
internalType: 'address',
|
|
260
|
+
name: 'denier',
|
|
261
|
+
type: 'address',
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
indexed: false,
|
|
265
|
+
internalType: 'string',
|
|
266
|
+
name: 'message',
|
|
267
|
+
type: 'string',
|
|
268
|
+
},
|
|
269
|
+
],
|
|
270
|
+
name: 'PositionDeniedByGovernance',
|
|
271
|
+
type: 'event',
|
|
272
|
+
},
|
|
227
273
|
{
|
|
228
274
|
anonymous: false,
|
|
229
275
|
inputs: [
|
|
@@ -255,6 +301,37 @@ export const MintingHubGatewayABI = [
|
|
|
255
301
|
name: 'PositionOpened',
|
|
256
302
|
type: 'event',
|
|
257
303
|
},
|
|
304
|
+
{
|
|
305
|
+
anonymous: false,
|
|
306
|
+
inputs: [
|
|
307
|
+
{
|
|
308
|
+
indexed: true,
|
|
309
|
+
internalType: 'address',
|
|
310
|
+
name: 'position',
|
|
311
|
+
type: 'address',
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
indexed: false,
|
|
315
|
+
internalType: 'uint256',
|
|
316
|
+
name: 'collateral',
|
|
317
|
+
type: 'uint256',
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
indexed: false,
|
|
321
|
+
internalType: 'uint256',
|
|
322
|
+
name: 'price',
|
|
323
|
+
type: 'uint256',
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
indexed: false,
|
|
327
|
+
internalType: 'uint256',
|
|
328
|
+
name: 'principal',
|
|
329
|
+
type: 'uint256',
|
|
330
|
+
},
|
|
331
|
+
],
|
|
332
|
+
name: 'PositionUpdate',
|
|
333
|
+
type: 'event',
|
|
334
|
+
},
|
|
258
335
|
{
|
|
259
336
|
anonymous: false,
|
|
260
337
|
inputs: [
|
|
@@ -644,6 +721,47 @@ export const MintingHubGatewayABI = [
|
|
|
644
721
|
stateMutability: 'payable',
|
|
645
722
|
type: 'function',
|
|
646
723
|
},
|
|
724
|
+
{
|
|
725
|
+
inputs: [
|
|
726
|
+
{
|
|
727
|
+
internalType: 'address',
|
|
728
|
+
name: 'denier',
|
|
729
|
+
type: 'address',
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
internalType: 'string',
|
|
733
|
+
name: 'message',
|
|
734
|
+
type: 'string',
|
|
735
|
+
},
|
|
736
|
+
],
|
|
737
|
+
name: 'emitPositionDenied',
|
|
738
|
+
outputs: [],
|
|
739
|
+
stateMutability: 'nonpayable',
|
|
740
|
+
type: 'function',
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
inputs: [
|
|
744
|
+
{
|
|
745
|
+
internalType: 'uint256',
|
|
746
|
+
name: '_collateral',
|
|
747
|
+
type: 'uint256',
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
internalType: 'uint256',
|
|
751
|
+
name: '_price',
|
|
752
|
+
type: 'uint256',
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
internalType: 'uint256',
|
|
756
|
+
name: '_principal',
|
|
757
|
+
type: 'uint256',
|
|
758
|
+
},
|
|
759
|
+
],
|
|
760
|
+
name: 'emitPositionUpdate',
|
|
761
|
+
outputs: [],
|
|
762
|
+
stateMutability: 'nonpayable',
|
|
763
|
+
type: 'function',
|
|
764
|
+
},
|
|
647
765
|
{
|
|
648
766
|
inputs: [
|
|
649
767
|
{
|