@gvnrdao/dh-sdk 0.0.254 → 0.0.256
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/constants/chunks/contract-abis.d.ts +1 -1
- package/dist/deployments.js +70 -70
- package/dist/deployments.mjs +70 -70
- package/dist/index.js +119 -112
- package/dist/index.mjs +119 -112
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3675,51 +3675,51 @@ var init_deployment_addresses = __esm({
|
|
|
3675
3675
|
},
|
|
3676
3676
|
upgraded: {
|
|
3677
3677
|
PositionManager: {
|
|
3678
|
-
previousImplementation: "
|
|
3679
|
-
newImplementation: "
|
|
3680
|
-
upgradedAt: "2026-05-
|
|
3678
|
+
previousImplementation: "0x10D220f7724Ceca26a25248DC8F609962343f97e",
|
|
3679
|
+
newImplementation: "0x70f0Ef61703d97D58b81738B1C39aA0679FE28Ce",
|
|
3680
|
+
upgradedAt: "2026-05-17T20:00:12.958Z",
|
|
3681
3681
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
3682
3682
|
reason: "Shared upgrade script: PositionManager implementation update"
|
|
3683
3683
|
},
|
|
3684
3684
|
LoanOperationsManagerModule: {
|
|
3685
|
-
previousImplementation: "
|
|
3686
|
-
newImplementation: "
|
|
3687
|
-
upgradedAt: "2026-05-
|
|
3685
|
+
previousImplementation: "0x291B412c573a4F52410f09D7Ba82eead17D9a674",
|
|
3686
|
+
newImplementation: "0x9DA8d69d7BcF9Fa3ba5734580e8C32618aB52D36",
|
|
3687
|
+
upgradedAt: "2026-05-17T20:02:12.883Z",
|
|
3688
3688
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
3689
|
-
reason: "Shared upgrade script: LoanOperationsManagerModule
|
|
3689
|
+
reason: "Shared upgrade script: LoanOperationsManagerModule implementation update"
|
|
3690
3690
|
},
|
|
3691
3691
|
UCDController: {
|
|
3692
|
-
previousImplementation: "
|
|
3693
|
-
newImplementation: "
|
|
3694
|
-
upgradedAt: "2026-05-
|
|
3692
|
+
previousImplementation: "0x397dE5069270d90c1A62679e0496029D856Cb0ff",
|
|
3693
|
+
newImplementation: "0x30d0458bE846f4C5D231242eB5a9e9Db68e7232F",
|
|
3694
|
+
upgradedAt: "2026-05-17T18:41:48.528Z",
|
|
3695
3695
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
3696
3696
|
reason: "Shared upgrade script: UCDController implementation update"
|
|
3697
3697
|
},
|
|
3698
3698
|
TermManagerModule: {
|
|
3699
|
-
previousImplementation: "
|
|
3700
|
-
newImplementation: "
|
|
3701
|
-
upgradedAt: "2026-05-
|
|
3699
|
+
previousImplementation: "0x309CE239A87ffFB31d4C720804e9908E482d4f10",
|
|
3700
|
+
newImplementation: "0x358d6A7A864853beAA3E157fEB83dCEb1628E8eB",
|
|
3701
|
+
upgradedAt: "2026-05-17T15:35:37.627Z",
|
|
3702
3702
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
3703
3703
|
reason: "Shared upgrade script: TermManagerModule implementation update"
|
|
3704
3704
|
},
|
|
3705
3705
|
CircuitBreakerModule: {
|
|
3706
|
-
previousImplementation: "
|
|
3707
|
-
newImplementation: "
|
|
3708
|
-
upgradedAt: "2026-05-
|
|
3706
|
+
previousImplementation: "0xA5b11b895fB5a49731ab81BF9FC807b9029c8C98",
|
|
3707
|
+
newImplementation: "0xF6277dEF72D51312CC99616B5380f34Eb7603D75",
|
|
3708
|
+
upgradedAt: "2026-05-17T19:22:13.051Z",
|
|
3709
3709
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
3710
3710
|
reason: "Shared upgrade script: CircuitBreakerModule implementation update"
|
|
3711
3711
|
},
|
|
3712
3712
|
AdminModule: {
|
|
3713
|
-
previousImplementation: "
|
|
3714
|
-
newImplementation: "
|
|
3715
|
-
upgradedAt: "2026-05-
|
|
3713
|
+
previousImplementation: "0x6ec85cb3F377d8D778F7830eA69C578C75cD7488",
|
|
3714
|
+
newImplementation: "0xF94A1801Fcc416e621Ae83B8030D1fE08b2DeB41",
|
|
3715
|
+
upgradedAt: "2026-05-17T19:24:24.939Z",
|
|
3716
3716
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
3717
3717
|
reason: "Shared upgrade script: AdminModule implementation update"
|
|
3718
3718
|
},
|
|
3719
3719
|
PositionManagerViews: {
|
|
3720
|
-
previousImplementation: "
|
|
3721
|
-
newImplementation: "
|
|
3722
|
-
upgradedAt: "2026-05-
|
|
3720
|
+
previousImplementation: "0x4fB9438bf7c5D01030F8848d5086a7F750EaF6fD",
|
|
3721
|
+
newImplementation: "0x1EB2B1d058006ACd9033E01e846D73eDE686b620",
|
|
3722
|
+
upgradedAt: "2026-05-17T19:57:25.453Z",
|
|
3723
3723
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
3724
3724
|
reason: "Shared upgrade script: PositionManagerViews implementation update"
|
|
3725
3725
|
},
|
|
@@ -3731,72 +3731,72 @@ var init_deployment_addresses = __esm({
|
|
|
3731
3731
|
reason: "Add setPositionExpiry() for expiry-liquidation E2E testing"
|
|
3732
3732
|
},
|
|
3733
3733
|
UCDToken: {
|
|
3734
|
-
previousImplementation: "
|
|
3735
|
-
newImplementation: "
|
|
3736
|
-
upgradedAt: "2026-05-
|
|
3734
|
+
previousImplementation: "0x65c23B6fB5331ACeeC2d82328c6de7dB6b62bB65",
|
|
3735
|
+
newImplementation: "0xC587a2cb7e828A44d8C6190eDA6c47b08BA07115",
|
|
3736
|
+
upgradedAt: "2026-05-17T15:30:48.963Z",
|
|
3737
3737
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
3738
3738
|
reason: "Shared upgrade script: UCDToken implementation update"
|
|
3739
3739
|
},
|
|
3740
3740
|
PositionManagerCoreModule: {
|
|
3741
|
-
previousImplementation: "
|
|
3742
|
-
newImplementation: "
|
|
3743
|
-
upgradedAt: "2026-05-
|
|
3741
|
+
previousImplementation: "0xBf62F7568B6847C08E943548dC727fCAFaa1e6Df",
|
|
3742
|
+
newImplementation: "0xD023E83fdcb7BafCA74E40Cd0D1fca154Faf84DB",
|
|
3743
|
+
upgradedAt: "2026-05-17T18:54:12.882Z",
|
|
3744
3744
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
3745
3745
|
reason: "Shared upgrade script: PositionManagerCoreModule implementation update"
|
|
3746
3746
|
},
|
|
3747
3747
|
CollateralManagerModule: {
|
|
3748
|
-
previousImplementation: "
|
|
3749
|
-
newImplementation: "
|
|
3750
|
-
upgradedAt: "2026-05-
|
|
3748
|
+
previousImplementation: "0x428982fCC9A0455c56881B8e21C96B220CC1506B",
|
|
3749
|
+
newImplementation: "0x124e61aBff60CC70c4B81ab3019A8A7D35B412d4",
|
|
3750
|
+
upgradedAt: "2026-05-17T19:17:01.129Z",
|
|
3751
3751
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
3752
3752
|
reason: "Shared upgrade script: CollateralManagerModule implementation update"
|
|
3753
3753
|
},
|
|
3754
3754
|
LiquidationManagerModule: {
|
|
3755
|
-
previousImplementation: "
|
|
3756
|
-
newImplementation: "
|
|
3757
|
-
upgradedAt: "2026-05-
|
|
3755
|
+
previousImplementation: "0x52e2231f26E8410881BF929e881d295175e078Be",
|
|
3756
|
+
newImplementation: "0x0d6e44D514C75D4f11bfa07eb7de16B6C6811D00",
|
|
3757
|
+
upgradedAt: "2026-05-17T19:19:12.446Z",
|
|
3758
3758
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
3759
3759
|
reason: "Shared upgrade script: LiquidationManagerModule implementation update"
|
|
3760
3760
|
},
|
|
3761
3761
|
BTCSpendAuthorizer: {
|
|
3762
|
-
previousImplementation: "
|
|
3763
|
-
newImplementation: "
|
|
3764
|
-
upgradedAt: "2026-05-
|
|
3762
|
+
previousImplementation: "0x4c0dc0Da80B7c51fE1719Ffd28c82c083e74A9D3",
|
|
3763
|
+
newImplementation: "0x8775a520cAA18c03Cc3f51ee254cAB830960f80E",
|
|
3764
|
+
upgradedAt: "2026-05-17T19:54:27.975Z",
|
|
3765
3765
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
3766
3766
|
reason: "Shared upgrade script: BTCSpendAuthorizer implementation update"
|
|
3767
3767
|
},
|
|
3768
3768
|
SimplePSMV2: {
|
|
3769
|
-
previousImplementation: "
|
|
3770
|
-
newImplementation: "
|
|
3771
|
-
upgradedAt: "2026-05-
|
|
3769
|
+
previousImplementation: "0x7589F066bFbdb8149f02a11759D60c822D6CBcAB",
|
|
3770
|
+
newImplementation: "0x12Fa503C05700a54E41659B3EE456D2F8D024C50",
|
|
3771
|
+
upgradedAt: "2026-05-17T20:04:13.030Z",
|
|
3772
3772
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
3773
3773
|
reason: "Shared upgrade script: SimplePSMV2 implementation update"
|
|
3774
3774
|
},
|
|
3775
3775
|
UpgradeValidator: {
|
|
3776
|
-
previousImplementation: "
|
|
3777
|
-
newImplementation: "
|
|
3778
|
-
upgradedAt: "2026-05-
|
|
3776
|
+
previousImplementation: "0x535c9d66F9CFa4f2337cF6074BFc8fdcBBb9cFC4",
|
|
3777
|
+
newImplementation: "0x2Dd375041Be067E7d12bAB2106911Ce209EbD12f",
|
|
3778
|
+
upgradedAt: "2026-05-17T15:58:37.805Z",
|
|
3779
3779
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
3780
3780
|
reason: "Shared upgrade script: UpgradeValidator implementation update"
|
|
3781
3781
|
},
|
|
3782
3782
|
LITActionValidator: {
|
|
3783
|
-
previousImplementation: "
|
|
3784
|
-
newImplementation: "
|
|
3785
|
-
upgradedAt: "2026-
|
|
3783
|
+
previousImplementation: "0x7D2a754AaF41E135c626553000139d5039095E29",
|
|
3784
|
+
newImplementation: "0xc71935a9B7A54e9D1FD266ab4D216644974A154d",
|
|
3785
|
+
upgradedAt: "2026-05-17T18:39:24.784Z",
|
|
3786
3786
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
3787
|
-
reason: "
|
|
3787
|
+
reason: "C-1: 2.1.0 \u2192 2.2.0 \u2014 adds liquidationManager storage + onlyLiquidationManager gate on transferPKPOwnership (H-6), whenNotPaused on transferPKPOwnership (M-5), and initializeV3 reinitializer wired atomically via AdminModule timelock."
|
|
3788
3788
|
},
|
|
3789
3789
|
ContractVersionRegistry: {
|
|
3790
|
-
previousImplementation: "
|
|
3791
|
-
newImplementation: "
|
|
3792
|
-
upgradedAt: "2026-05-
|
|
3790
|
+
previousImplementation: "0x2cDba7a3440399Ef276fa18edAE7D90168382D09",
|
|
3791
|
+
newImplementation: "0x327Ced106C2804283994F0C0e2436E4B76AA7dAD",
|
|
3792
|
+
upgradedAt: "2026-05-17T15:26:25.349Z",
|
|
3793
3793
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
3794
3794
|
reason: "Shared upgrade script: ContractVersionRegistry implementation update"
|
|
3795
3795
|
},
|
|
3796
3796
|
PositionDelegateRegistry: {
|
|
3797
|
-
previousImplementation: "
|
|
3798
|
-
newImplementation: "
|
|
3799
|
-
upgradedAt: "2026-05-
|
|
3797
|
+
previousImplementation: "0xAE227De03D5aeDC870d6e096D9C6652E001a92aF",
|
|
3798
|
+
newImplementation: "0x301fa9AA527016D033e151b982C64cD8670a39E3",
|
|
3799
|
+
upgradedAt: "2026-05-17T16:00:25.211Z",
|
|
3800
3800
|
upgradedBy: "0xF20986F02420EF443AE9BE5092FB8A4975cF3aA6",
|
|
3801
3801
|
reason: "Shared upgrade script: PositionDelegateRegistry implementation update"
|
|
3802
3802
|
},
|
|
@@ -3881,36 +3881,36 @@ var init_deployment_addresses = __esm({
|
|
|
3881
3881
|
POSITION_MANAGER_VIEWS: "0x3b970E41a0668508B4B2ACb83653b2A402F745AE",
|
|
3882
3882
|
CIRCUIT_BREAKER_MODULE: "0x3D0B2cAE481821E57BA9CC3807bCC0d0D7F18bd8",
|
|
3883
3883
|
ADMIN_MODULE: "0xAcd1f07915b17CA3727e7fE89BdF618A1545a1ed",
|
|
3884
|
-
UCD_CONTROLLER_IMPL: "
|
|
3885
|
-
LOAN_OPERATIONS_MANAGER_MODULE_IMPL: "
|
|
3886
|
-
TERM_MANAGER_MODULE_IMPL: "
|
|
3887
|
-
CIRCUIT_BREAKER_MODULE_IMPL: "
|
|
3888
|
-
ADMIN_MODULE_IMPL: "
|
|
3889
|
-
POSITION_MANAGER_VIEWS_IMPL: "
|
|
3890
|
-
POSITION_MANAGER_IMPL: "
|
|
3884
|
+
UCD_CONTROLLER_IMPL: "0x30d0458bE846f4C5D231242eB5a9e9Db68e7232F",
|
|
3885
|
+
LOAN_OPERATIONS_MANAGER_MODULE_IMPL: "0x9DA8d69d7BcF9Fa3ba5734580e8C32618aB52D36",
|
|
3886
|
+
TERM_MANAGER_MODULE_IMPL: "0x358d6A7A864853beAA3E157fEB83dCEb1628E8eB",
|
|
3887
|
+
CIRCUIT_BREAKER_MODULE_IMPL: "0xF6277dEF72D51312CC99616B5380f34Eb7603D75",
|
|
3888
|
+
ADMIN_MODULE_IMPL: "0xF94A1801Fcc416e621Ae83B8030D1fE08b2DeB41",
|
|
3889
|
+
POSITION_MANAGER_VIEWS_IMPL: "0x1EB2B1d058006ACd9033E01e846D73eDE686b620",
|
|
3890
|
+
POSITION_MANAGER_IMPL: "0x70f0Ef61703d97D58b81738B1C39aA0679FE28Ce",
|
|
3891
3891
|
SIMPLE_PSM_V2: "0x19EcF7BA26e054fd4Ff06009A03070103dbBB058",
|
|
3892
|
-
SIMPLE_PSM_V2_IMPL: "
|
|
3893
|
-
UCD_TOKEN_IMPL: "
|
|
3892
|
+
SIMPLE_PSM_V2_IMPL: "0x12Fa503C05700a54E41659B3EE456D2F8D024C50",
|
|
3893
|
+
UCD_TOKEN_IMPL: "0xC587a2cb7e828A44d8C6190eDA6c47b08BA07115",
|
|
3894
3894
|
POSITION_MANAGER_CORE_MODULE: "0xfFAA39a08887FeFB697eBC8691A8630CbCC33391",
|
|
3895
|
-
POSITION_MANAGER_CORE_MODULE_IMPL: "
|
|
3895
|
+
POSITION_MANAGER_CORE_MODULE_IMPL: "0xD023E83fdcb7BafCA74E40Cd0D1fca154Faf84DB",
|
|
3896
3896
|
COLLATERAL_MANAGER_MODULE: "0x967E92c976Fc0fa8268D37D4d6B7245d912aA7dB",
|
|
3897
|
-
COLLATERAL_MANAGER_MODULE_IMPL: "
|
|
3897
|
+
COLLATERAL_MANAGER_MODULE_IMPL: "0x124e61aBff60CC70c4B81ab3019A8A7D35B412d4",
|
|
3898
3898
|
LIQUIDATION_MANAGER_MODULE: "0xC4AB00f39e7ceD812F5C67058C9fa44e15d40e76",
|
|
3899
|
-
LIQUIDATION_MANAGER_MODULE_IMPL: "
|
|
3899
|
+
LIQUIDATION_MANAGER_MODULE_IMPL: "0x0d6e44D514C75D4f11bfa07eb7de16B6C6811D00",
|
|
3900
3900
|
BTC_SPEND_AUTHORIZER: "0xd7E9Eb5eE53f1d9ee55Dc162bBC7486bE437B6bD",
|
|
3901
|
-
BTC_SPEND_AUTHORIZER_IMPL: "
|
|
3901
|
+
BTC_SPEND_AUTHORIZER_IMPL: "0x8775a520cAA18c03Cc3f51ee254cAB830960f80E",
|
|
3902
3902
|
UPGRADE_VALIDATOR: "0x592e650edD9bA26ecc407989fdd6F9cdcDeC27A6",
|
|
3903
|
-
UPGRADE_VALIDATOR_IMPL: "
|
|
3903
|
+
UPGRADE_VALIDATOR_IMPL: "0x2Dd375041Be067E7d12bAB2106911Ce209EbD12f",
|
|
3904
3904
|
BITCOIN_PROVIDER_REGISTRY: "0xbfA0c48B070D0a9A9CD27469AeacFD2d4261cEE2",
|
|
3905
3905
|
BITCOIN_PROVIDER_REGISTRY_IMPL: "0x225309A4ae6D146ba93A3278A7b40224FfC81448",
|
|
3906
3906
|
LIT_ACTION_VALIDATOR: "0x54eECd7C90F8A8fac27749Ba30BbE8AFBAccc856",
|
|
3907
|
-
LIT_ACTION_VALIDATOR_IMPL: "
|
|
3907
|
+
LIT_ACTION_VALIDATOR_IMPL: "0xc71935a9B7A54e9D1FD266ab4D216644974A154d",
|
|
3908
3908
|
CONTRACT_VERSION_REGISTRY: "0x97E43AA6aFF2C0cf659d3aE501658D2Ef6777522",
|
|
3909
|
-
CONTRACT_VERSION_REGISTRY_IMPL: "
|
|
3909
|
+
CONTRACT_VERSION_REGISTRY_IMPL: "0x327Ced106C2804283994F0C0e2436E4B76AA7dAD",
|
|
3910
3910
|
MOCK_USDC_TOKEN: "0x96409A98e0D322d6566b7F44a0fAbD1BD4ce2AEc",
|
|
3911
3911
|
MOCK_USDT_TOKEN: "0xF8b7fB38b17a310960E47805Be9adba0b0e0394D",
|
|
3912
3912
|
POSITION_DELEGATE_REGISTRY: "0x482369De283622E7b05731875ec137d4E3D208F9",
|
|
3913
|
-
POSITION_DELEGATE_REGISTRY_IMPL: "
|
|
3913
|
+
POSITION_DELEGATE_REGISTRY_IMPL: "0x301fa9AA527016D033e151b982C64cD8670a39E3",
|
|
3914
3914
|
AGENT_MODULE: "0xefb8C29C1e7e92ed7d81a52dbedaed74e37fe380",
|
|
3915
3915
|
FEE_RECIPIENT_REGISTRY: "0x95795F8403DDb629E8527B2934C4e71f5fC0C374",
|
|
3916
3916
|
FEE_RECIPIENT_REGISTRY_IMPL: "0xd08513a7cB2dd354B26cDDf549616F12054c34c9",
|
|
@@ -31370,30 +31370,30 @@ var require_pkg_src = __commonJS({
|
|
|
31370
31370
|
}
|
|
31371
31371
|
},
|
|
31372
31372
|
btcTransactionSigner: {
|
|
31373
|
-
cid: "
|
|
31373
|
+
cid: "QmVXZ17E8gnpjzhyYZmkWiYUbkw8e5iXQvkhFoXdbzosUS",
|
|
31374
31374
|
authorizedCidHex: cidToHex(
|
|
31375
|
-
"
|
|
31375
|
+
"QmVXZ17E8gnpjzhyYZmkWiYUbkw8e5iXQvkhFoXdbzosUS"
|
|
31376
31376
|
),
|
|
31377
31377
|
name: "Btc Transaction Signer",
|
|
31378
31378
|
description: "Production Btc Transaction Signer",
|
|
31379
31379
|
version: "1.0.0",
|
|
31380
31380
|
deployed: true,
|
|
31381
|
-
deployedAt:
|
|
31382
|
-
size:
|
|
31383
|
-
hash: "
|
|
31381
|
+
deployedAt: 1779030344609,
|
|
31382
|
+
size: 27837,
|
|
31383
|
+
hash: "c39e858e92e796a95b8ad8e36fed7a14bb987a31894f645b32cb9a82e8b01921"
|
|
31384
31384
|
},
|
|
31385
31385
|
ucdMintValidator: {
|
|
31386
|
-
cid: "
|
|
31386
|
+
cid: "QmYax1YNGsULXbUUeooPBHXXi4gfkBvyy8NvdNrPqE3EbY",
|
|
31387
31387
|
authorizedCidHex: cidToHex(
|
|
31388
|
-
"
|
|
31388
|
+
"QmYax1YNGsULXbUUeooPBHXXi4gfkBvyy8NvdNrPqE3EbY"
|
|
31389
31389
|
),
|
|
31390
31390
|
name: "Ucd Mint Validator",
|
|
31391
31391
|
description: "Production Ucd Mint Validator",
|
|
31392
31392
|
version: "1.0.0",
|
|
31393
31393
|
deployed: true,
|
|
31394
|
-
deployedAt:
|
|
31395
|
-
size:
|
|
31396
|
-
hash: "
|
|
31394
|
+
deployedAt: 1779030353537,
|
|
31395
|
+
size: 67008,
|
|
31396
|
+
hash: "a9877e4b3cf53ec5e8b8847dd306e93d485bde8f320a24003b1d00512189b2a0",
|
|
31397
31397
|
validatorWalletAddress: "0x36f3dd61c4c08a56d29ed2fd6d5f111b67b6a7a1",
|
|
31398
31398
|
pkp: {
|
|
31399
31399
|
publicKey: "0x041ab17cd91fc5c0b761eea6092d032807561b621b82c488826776e04a9158d61ba64d809a4729f0501289d980732cb06d8dfd06999dd9c8efd2f495dad78b31bb",
|
|
@@ -31401,17 +31401,17 @@ var require_pkg_src = __commonJS({
|
|
|
31401
31401
|
}
|
|
31402
31402
|
},
|
|
31403
31403
|
processPaymentValidator: {
|
|
31404
|
-
cid: "
|
|
31404
|
+
cid: "QmQkYidKVwbE2Brt1ZgUV5JmonUj21TGVRF9C24TBhLhCP",
|
|
31405
31405
|
authorizedCidHex: cidToHex(
|
|
31406
|
-
"
|
|
31406
|
+
"QmQkYidKVwbE2Brt1ZgUV5JmonUj21TGVRF9C24TBhLhCP"
|
|
31407
31407
|
),
|
|
31408
31408
|
name: "Process Payment Validator",
|
|
31409
31409
|
description: "Production Process Payment Validator",
|
|
31410
31410
|
version: "1.0.0",
|
|
31411
31411
|
deployed: true,
|
|
31412
|
-
deployedAt:
|
|
31413
|
-
size:
|
|
31414
|
-
hash: "
|
|
31412
|
+
deployedAt: 1779030360481,
|
|
31413
|
+
size: 62963,
|
|
31414
|
+
hash: "c7bb36da46ef78e5f756d85a76123f53759e94b484e73c7a38fc88de797fc1e3",
|
|
31415
31415
|
validatorWalletAddress: "0xc2ed5a59bd81eb4d1a19a0147b86ab69aa4c28ba",
|
|
31416
31416
|
pkp: {
|
|
31417
31417
|
publicKey: "0x04cfccb9b6c7addc79469c0e9fafebef4c70801302c62cdb26b610723a9b8527d23f98a40158c7340d83fd0e62d02b5ec74c12f7a86d98e8c6973b4811110f19ad",
|
|
@@ -31419,17 +31419,17 @@ var require_pkg_src = __commonJS({
|
|
|
31419
31419
|
}
|
|
31420
31420
|
},
|
|
31421
31421
|
extendPositionValidator: {
|
|
31422
|
-
cid: "
|
|
31422
|
+
cid: "QmdSydNAFg6uFgJii7ycEXsVVdPVK9wwkfYE4tb6sKA3b6",
|
|
31423
31423
|
authorizedCidHex: cidToHex(
|
|
31424
|
-
"
|
|
31424
|
+
"QmdSydNAFg6uFgJii7ycEXsVVdPVK9wwkfYE4tb6sKA3b6"
|
|
31425
31425
|
),
|
|
31426
31426
|
name: "Extend Position Validator",
|
|
31427
31427
|
description: "Production Extend Position Validator",
|
|
31428
31428
|
version: "1.0.0",
|
|
31429
31429
|
deployed: true,
|
|
31430
|
-
deployedAt:
|
|
31431
|
-
size:
|
|
31432
|
-
hash: "
|
|
31430
|
+
deployedAt: 1779030367397,
|
|
31431
|
+
size: 62172,
|
|
31432
|
+
hash: "fe3b945671e0c155e4f6d960faa5b4ef093df300e4a32319cea2ff32cd71c434",
|
|
31433
31433
|
validatorWalletAddress: "0xb3f4271c475887a86a2f21446f0968c30cc74c97",
|
|
31434
31434
|
pkp: {
|
|
31435
31435
|
publicKey: "0x04e52338f6a0c3362800f1a94c4c8f08be5030dde0fa217388c53d1c1a4790f4443c9f2886b2d2d8f4b75a9a156e9b028011b1a1cf7648da0e556aa980ec692836",
|
|
@@ -31437,17 +31437,17 @@ var require_pkg_src = __commonJS({
|
|
|
31437
31437
|
}
|
|
31438
31438
|
},
|
|
31439
31439
|
btcWithdrawal: {
|
|
31440
|
-
cid: "
|
|
31440
|
+
cid: "QmZZuKGL2aHtiaLcyxNceVg1fTm7H6RyMG3JpbRNEzcpW8",
|
|
31441
31441
|
authorizedCidHex: cidToHex(
|
|
31442
|
-
"
|
|
31442
|
+
"QmZZuKGL2aHtiaLcyxNceVg1fTm7H6RyMG3JpbRNEzcpW8"
|
|
31443
31443
|
),
|
|
31444
31444
|
name: "Btc Withdrawal",
|
|
31445
31445
|
description: "Production Btc Withdrawal",
|
|
31446
31446
|
version: "1.0.0",
|
|
31447
31447
|
deployed: true,
|
|
31448
|
-
deployedAt:
|
|
31449
|
-
size:
|
|
31450
|
-
hash: "
|
|
31448
|
+
deployedAt: 1779030374336,
|
|
31449
|
+
size: 73808,
|
|
31450
|
+
hash: "033e698b572f62f49bc34be94f4355957e3fe46d98001744805b44e74655b9ac",
|
|
31451
31451
|
validatorWalletAddress: "0xbb137fbda353199e9419b698c57a742124d4987d",
|
|
31452
31452
|
pkp: {
|
|
31453
31453
|
publicKey: "0x043616787c5432415c24378c4ef48de2bcd6bb7b575b837e3cff09171802662da7105d79586c7659677a0ecbaddac4cce06cb2a11f69a16fa0c4d7002ac7d51a4d",
|
|
@@ -31455,17 +31455,17 @@ var require_pkg_src = __commonJS({
|
|
|
31455
31455
|
}
|
|
31456
31456
|
},
|
|
31457
31457
|
liquidationValidator: {
|
|
31458
|
-
cid: "
|
|
31458
|
+
cid: "QmRq9FV1dhqgxCVLYa3LfuPDAs8vBvQAcnCtY8NGsVNJfG",
|
|
31459
31459
|
authorizedCidHex: cidToHex(
|
|
31460
|
-
"
|
|
31460
|
+
"QmRq9FV1dhqgxCVLYa3LfuPDAs8vBvQAcnCtY8NGsVNJfG"
|
|
31461
31461
|
),
|
|
31462
31462
|
name: "Liquidation Validator",
|
|
31463
31463
|
description: "Production Liquidation Validator",
|
|
31464
31464
|
version: "1.0.0",
|
|
31465
31465
|
deployed: true,
|
|
31466
|
-
deployedAt:
|
|
31467
|
-
size:
|
|
31468
|
-
hash: "
|
|
31466
|
+
deployedAt: 1779030381480,
|
|
31467
|
+
size: 54874,
|
|
31468
|
+
hash: "ce6d12425d3828abc002bdb3bcca36af642fd1c84a00ee1f2c9c4f57778c4af4",
|
|
31469
31469
|
validatorWalletAddress: "0x1542f863ee0340f6a067573e80ae66dd9b3838fa",
|
|
31470
31470
|
pkp: {
|
|
31471
31471
|
publicKey: "0x041a241de58976c13e3d7ca5a18e494f7330151e3818706135d50176e78ffb673e58b11f0b67a87c73fade6c6b27d6e7a7377ea9f4c10bf31880f1d725f18cc6f8",
|
|
@@ -31491,17 +31491,17 @@ var require_pkg_src = __commonJS({
|
|
|
31491
31491
|
}
|
|
31492
31492
|
},
|
|
31493
31493
|
loanVaultBtcBalance: {
|
|
31494
|
-
cid: "
|
|
31494
|
+
cid: "QmXwEPuyxW9brUi2EwhdV11zM7cf1ggtxLxWPsomppQByk",
|
|
31495
31495
|
authorizedCidHex: cidToHex(
|
|
31496
|
-
"
|
|
31496
|
+
"QmXwEPuyxW9brUi2EwhdV11zM7cf1ggtxLxWPsomppQByk"
|
|
31497
31497
|
),
|
|
31498
31498
|
name: "Loan Vault Btc Balance",
|
|
31499
31499
|
description: "Production Loan Vault Btc Balance",
|
|
31500
31500
|
version: "1.0.0",
|
|
31501
31501
|
deployed: true,
|
|
31502
|
-
deployedAt:
|
|
31503
|
-
size:
|
|
31504
|
-
hash: "
|
|
31502
|
+
deployedAt: 1779030388270,
|
|
31503
|
+
size: 44649,
|
|
31504
|
+
hash: "41cd78901cfdff6bdb6040ccaa2c27798d633507b8df7ace7c27b9ef390dc629",
|
|
31505
31505
|
validatorWalletAddress: "0x47feea74c8739d24b44faa67217f2f99970e15e7",
|
|
31506
31506
|
pkp: {
|
|
31507
31507
|
publicKey: "0x043616787c5432415c24378c4ef48de2bcd6bb7b575b837e3cff09171802662da7105d79586c7659677a0ecbaddac4cce06cb2a11f69a16fa0c4d7002ac7d51a4d",
|
|
@@ -31509,17 +31509,17 @@ var require_pkg_src = __commonJS({
|
|
|
31509
31509
|
}
|
|
31510
31510
|
},
|
|
31511
31511
|
adminLiquidationValidator: {
|
|
31512
|
-
cid: "
|
|
31512
|
+
cid: "Qmb1P9mbThaw39UjHQhgWF3b5QfbLpDLibDjYcyUEJDdHH",
|
|
31513
31513
|
authorizedCidHex: cidToHex(
|
|
31514
|
-
"
|
|
31514
|
+
"Qmb1P9mbThaw39UjHQhgWF3b5QfbLpDLibDjYcyUEJDdHH"
|
|
31515
31515
|
),
|
|
31516
31516
|
name: "Admin Liquidation Validator",
|
|
31517
31517
|
description: "Production Admin Liquidation Validator",
|
|
31518
31518
|
version: "1.0.0",
|
|
31519
31519
|
deployed: true,
|
|
31520
|
-
deployedAt:
|
|
31521
|
-
size:
|
|
31522
|
-
hash: "
|
|
31520
|
+
deployedAt: 1779030395440,
|
|
31521
|
+
size: 51581,
|
|
31522
|
+
hash: "f094270339baa232a5b7caedd9538ec5a68e7735d632c30dfb8de73faa4b30b5",
|
|
31523
31523
|
validatorWalletAddress: "0x2a83b78842d75358877deb8854ccc5bbbaa5012e",
|
|
31524
31524
|
pkp: {
|
|
31525
31525
|
publicKey: "0x04ee4316afb8538280ede6c56def9cbe791f18f96ccba97768b28e2966d9c46a9493a6b81f4571495c3ce56c2d0b33fe8cf63726cd12d395832ea54162b5c67801",
|
|
@@ -32707,6 +32707,8 @@ ${errorReport}`);
|
|
|
32707
32707
|
// expiryAt before last renewal; 0 if never renewed
|
|
32708
32708
|
totalTerm: positionState.totalTerm,
|
|
32709
32709
|
// total accumulated loan months; 0 before first renewal
|
|
32710
|
+
lastRenewedAt: positionState.lastRenewedAt,
|
|
32711
|
+
// timestamp of most recent renewal; createdAt at origination; 0 for pre-H-5 positions
|
|
32710
32712
|
// Bitcoin state
|
|
32711
32713
|
totalBTCSats: balanceResult.totalBalance,
|
|
32712
32714
|
totalUTXOs: balanceResult.totalUTXOs,
|
|
@@ -32811,6 +32813,8 @@ ${errorReport}`);
|
|
|
32811
32813
|
// expiryAt before last renewal; 0 if never renewed
|
|
32812
32814
|
totalTerm: positionState.totalTerm,
|
|
32813
32815
|
// total accumulated loan months; 0 before first renewal
|
|
32816
|
+
lastRenewedAt: positionState.lastRenewedAt,
|
|
32817
|
+
// timestamp of most recent renewal; createdAt at origination; 0 for pre-H-5 positions
|
|
32814
32818
|
// Bitcoin state
|
|
32815
32819
|
totalBTCSats: balanceResult.totalBalance,
|
|
32816
32820
|
totalUTXOs: balanceResult.totalUTXOs,
|
|
@@ -32929,7 +32933,8 @@ ${errorReport}`);
|
|
|
32929
32933
|
type: "uint8"
|
|
32930
32934
|
},
|
|
32931
32935
|
{ internalType: "uint40", name: "previousExpiryAt", type: "uint40" },
|
|
32932
|
-
{ internalType: "uint16", name: "totalTerm", type: "uint16" }
|
|
32936
|
+
{ internalType: "uint16", name: "totalTerm", type: "uint16" },
|
|
32937
|
+
{ internalType: "uint40", name: "lastRenewedAt", type: "uint40" }
|
|
32933
32938
|
],
|
|
32934
32939
|
internalType: "struct IPositionManagerCore.Position",
|
|
32935
32940
|
name: "",
|
|
@@ -32963,6 +32968,7 @@ ${errorReport}`);
|
|
|
32963
32968
|
const selectedTermMonths = Number(position.selectedTerm);
|
|
32964
32969
|
const totalTermMonths = Number(position.totalTerm);
|
|
32965
32970
|
const previousExpiryAt = Number(position.previousExpiryAt);
|
|
32971
|
+
const lastRenewedAt = Number(position.lastRenewedAt);
|
|
32966
32972
|
const termStartTimestamp = calculateTermStartFromExpiry(
|
|
32967
32973
|
expiryAt,
|
|
32968
32974
|
selectedTermMonths
|
|
@@ -32981,7 +32987,8 @@ ${errorReport}`);
|
|
|
32981
32987
|
status: statusNum,
|
|
32982
32988
|
expiryAt,
|
|
32983
32989
|
previousExpiryAt,
|
|
32984
|
-
totalTerm: totalTermMonths
|
|
32990
|
+
totalTerm: totalTermMonths,
|
|
32991
|
+
lastRenewedAt
|
|
32985
32992
|
};
|
|
32986
32993
|
}
|
|
32987
32994
|
/**
|