@gvnrdao/dh-sdk 0.0.154 → 0.0.155
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/browser/dist/browser.js +5 -5
- package/browser/dist/browser.js.LICENSE.txt +2 -0
- package/dist/index.d.mts +270 -3404
- package/dist/index.d.ts +270 -3404
- package/dist/index.js +2202 -14117
- package/dist/index.mjs +2200 -14115
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ethers,
|
|
1
|
+
import { ethers, BigNumber, Wallet, providers } from 'ethers';
|
|
2
2
|
import { LitNetwork, LitOps } from '@gvnrdao/dh-lit-ops';
|
|
3
3
|
export { DiamondHandsLitActions, LitActionName } from '@gvnrdao/dh-lit-actions';
|
|
4
4
|
|
|
@@ -554,3322 +554,187 @@ interface PriceProviderConfig {
|
|
|
554
554
|
apiSecret?: string;
|
|
555
555
|
}
|
|
556
556
|
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
}
|
|
565
|
-
type __TypechainAOutputTuple<T> = T extends TypedContractEvent<infer _U, infer W> ? W : never;
|
|
566
|
-
type __TypechainOutputObject<T> = T extends TypedContractEvent<infer _U, infer _W, infer V> ? V : never;
|
|
567
|
-
interface TypedEventLog<TCEvent extends TypedContractEvent> extends Omit<EventLog$1, "args"> {
|
|
568
|
-
args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
|
|
569
|
-
}
|
|
570
|
-
interface TypedLogDescription<TCEvent extends TypedContractEvent> extends Omit<LogDescription, "args"> {
|
|
571
|
-
args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
|
|
572
|
-
}
|
|
573
|
-
type TypedListener<TCEvent extends TypedContractEvent> = (...listenerArg: [
|
|
574
|
-
...__TypechainAOutputTuple<TCEvent>,
|
|
575
|
-
TypedEventLog<TCEvent>,
|
|
576
|
-
...undefined[]
|
|
577
|
-
]) => void;
|
|
578
|
-
type StateMutability = "nonpayable" | "payable" | "view";
|
|
579
|
-
type BaseOverrides = Omit<TransactionRequest, "to" | "data">;
|
|
580
|
-
type NonPayableOverrides = Omit<BaseOverrides, "value" | "blockTag" | "enableCcipRead">;
|
|
581
|
-
type PayableOverrides = Omit<BaseOverrides, "blockTag" | "enableCcipRead">;
|
|
582
|
-
type ViewOverrides = Omit<TransactionRequest, "to" | "data">;
|
|
583
|
-
type Overrides<S extends StateMutability> = S extends "nonpayable" ? NonPayableOverrides : S extends "payable" ? PayableOverrides : ViewOverrides;
|
|
584
|
-
type PostfixOverrides<A extends Array<any>, S extends StateMutability> = A | [...A, Overrides<S>];
|
|
585
|
-
type ContractMethodArgs<A extends Array<any>, S extends StateMutability> = PostfixOverrides<{
|
|
586
|
-
[I in keyof A]-?: A[I] | Typed;
|
|
587
|
-
}, S>;
|
|
588
|
-
type DefaultReturnType<R> = R extends Array<any> ? R[0] : R;
|
|
589
|
-
interface TypedContractMethod<A extends Array<any> = Array<any>, R = any, S extends StateMutability = "payable"> {
|
|
590
|
-
(...args: ContractMethodArgs<A, S>): S extends "view" ? Promise<DefaultReturnType<R>> : Promise<ContractTransactionResponse>;
|
|
591
|
-
name: string;
|
|
592
|
-
fragment: FunctionFragment;
|
|
593
|
-
getFragment(...args: ContractMethodArgs<A, S>): FunctionFragment;
|
|
594
|
-
populateTransaction(...args: ContractMethodArgs<A, S>): Promise<ContractTransaction>;
|
|
595
|
-
staticCall(...args: ContractMethodArgs<A, "view">): Promise<DefaultReturnType<R>>;
|
|
596
|
-
send(...args: ContractMethodArgs<A, S>): Promise<ContractTransactionResponse>;
|
|
597
|
-
estimateGas(...args: ContractMethodArgs<A, S>): Promise<bigint>;
|
|
598
|
-
staticCallResult(...args: ContractMethodArgs<A, "view">): Promise<R>;
|
|
599
|
-
}
|
|
557
|
+
/**
|
|
558
|
+
* Smart Contract Type Interfaces
|
|
559
|
+
*
|
|
560
|
+
* These interfaces define the TypeScript types for smart contracts used in the SDK.
|
|
561
|
+
* They are independent definitions - NOT imported from the contracts package.
|
|
562
|
+
* Based on Solidity interfaces from contracts/src/interfaces/
|
|
563
|
+
*/
|
|
600
564
|
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
selectedTerm: BigNumberish;
|
|
611
|
-
expiryAt: BigNumberish;
|
|
612
|
-
status: BigNumberish;
|
|
613
|
-
};
|
|
614
|
-
type PositionStructOutput = [
|
|
615
|
-
positionId: string,
|
|
616
|
-
pkpId: string,
|
|
617
|
-
ucdDebt: bigint,
|
|
618
|
-
vaultAddress: string,
|
|
619
|
-
borrower: string,
|
|
620
|
-
createdAt: bigint,
|
|
621
|
-
lastUpdated: bigint,
|
|
622
|
-
selectedTerm: bigint,
|
|
623
|
-
expiryAt: bigint,
|
|
624
|
-
status: bigint
|
|
625
|
-
] & {
|
|
626
|
-
positionId: string;
|
|
627
|
-
pkpId: string;
|
|
628
|
-
ucdDebt: bigint;
|
|
629
|
-
vaultAddress: string;
|
|
630
|
-
borrower: string;
|
|
631
|
-
createdAt: bigint;
|
|
632
|
-
lastUpdated: bigint;
|
|
633
|
-
selectedTerm: bigint;
|
|
634
|
-
expiryAt: bigint;
|
|
635
|
-
status: bigint;
|
|
636
|
-
};
|
|
637
|
-
}
|
|
638
|
-
declare namespace IPositionManager {
|
|
639
|
-
type PositionStruct = {
|
|
640
|
-
positionId: BytesLike;
|
|
641
|
-
pkpId: BytesLike;
|
|
642
|
-
ucdDebt: BigNumberish;
|
|
643
|
-
borrower: AddressLike;
|
|
644
|
-
createdAt: BigNumberish;
|
|
645
|
-
lastUpdated: BigNumberish;
|
|
646
|
-
selectedTerm: BigNumberish;
|
|
647
|
-
expiryAt: BigNumberish;
|
|
648
|
-
status: BigNumberish;
|
|
649
|
-
};
|
|
650
|
-
type PositionStructOutput = [
|
|
651
|
-
positionId: string,
|
|
652
|
-
pkpId: string,
|
|
653
|
-
ucdDebt: bigint,
|
|
654
|
-
borrower: string,
|
|
655
|
-
createdAt: bigint,
|
|
656
|
-
lastUpdated: bigint,
|
|
657
|
-
selectedTerm: bigint,
|
|
658
|
-
expiryAt: bigint,
|
|
659
|
-
status: bigint
|
|
660
|
-
] & {
|
|
661
|
-
positionId: string;
|
|
662
|
-
pkpId: string;
|
|
663
|
-
ucdDebt: bigint;
|
|
664
|
-
borrower: string;
|
|
665
|
-
createdAt: bigint;
|
|
666
|
-
lastUpdated: bigint;
|
|
667
|
-
selectedTerm: bigint;
|
|
668
|
-
expiryAt: bigint;
|
|
669
|
-
status: bigint;
|
|
670
|
-
};
|
|
671
|
-
}
|
|
672
|
-
declare namespace ICollateralManager {
|
|
673
|
-
type WithdrawalParamsStruct = {
|
|
674
|
-
positionId: BytesLike;
|
|
675
|
-
actionHash: BytesLike;
|
|
676
|
-
authorizedSpendsHash: BytesLike;
|
|
677
|
-
ucdDebtHash: BytesLike;
|
|
678
|
-
contractBundleHash: BytesLike;
|
|
679
|
-
withdrawalAddress: string;
|
|
680
|
-
totalDeduction: BigNumberish;
|
|
681
|
-
newCollateral: BigNumberish;
|
|
682
|
-
quantumTimestamp: BigNumberish;
|
|
683
|
-
btcPrice: BigNumberish;
|
|
684
|
-
utxoTxid: string;
|
|
685
|
-
utxoVout: BigNumberish;
|
|
686
|
-
};
|
|
687
|
-
type WithdrawalParamsStructOutput = [
|
|
688
|
-
positionId: string,
|
|
689
|
-
actionHash: string,
|
|
690
|
-
authorizedSpendsHash: string,
|
|
691
|
-
ucdDebtHash: string,
|
|
692
|
-
contractBundleHash: string,
|
|
693
|
-
withdrawalAddress: string,
|
|
694
|
-
totalDeduction: bigint,
|
|
695
|
-
newCollateral: bigint,
|
|
696
|
-
quantumTimestamp: bigint,
|
|
697
|
-
btcPrice: bigint,
|
|
698
|
-
utxoTxid: string,
|
|
699
|
-
utxoVout: bigint
|
|
700
|
-
] & {
|
|
701
|
-
positionId: string;
|
|
702
|
-
actionHash: string;
|
|
703
|
-
authorizedSpendsHash: string;
|
|
704
|
-
ucdDebtHash: string;
|
|
705
|
-
contractBundleHash: string;
|
|
706
|
-
withdrawalAddress: string;
|
|
707
|
-
totalDeduction: bigint;
|
|
708
|
-
newCollateral: bigint;
|
|
709
|
-
quantumTimestamp: bigint;
|
|
710
|
-
btcPrice: bigint;
|
|
711
|
-
utxoTxid: string;
|
|
712
|
-
utxoVout: bigint;
|
|
713
|
-
};
|
|
714
|
-
}
|
|
715
|
-
interface PositionManagerInterface extends Interface {
|
|
716
|
-
getFunction(nameOrSignature: "ADMIN_ROLE" | "COMMUNITY_FEE_DISTRIBUTOR_ROLE" | "COMMUNITY_MINTER_ROLE" | "DEFAULT_ADMIN_ROLE" | "EMERGENCY_PAUSE_ROLE" | "LIQUIDATOR_ROLE" | "ORACLE_UPDATER_ROLE" | "UPGRADE_INTERFACE_VERSION" | "VERSION" | "_performExtensionValidation" | "admin" | "authorizationRegistry" | "circuitBreaker" | "clearExtensionPending" | "collateral" | "commitLiquidation" | "communityManager" | "computeMintMessageHash" | "core" | "createPosition" | "extendPosition" | "getExpiredLoanLiquidationThreshold" | "getMintMessageHashParameters" | "getPositionById" | "getPositionByPkp" | "getRoleAdmin" | "grantRole" | "hasRole" | "initialize" | "isExpiredLoanLiquidatable" | "isExtensionPending" | "liquidatePosition" | "liquidation" | "loanOps" | "makePayment" | "mintUCD" | "paused" | "pkpValidationRegistry" | "proxiableUUID" | "renounceRole" | "revealAndLiquidate" | "revokeRole" | "setAuthorizationRegistry" | "setPKPValidationRegistry" | "supportsInterface" | "termManager" | "updateBalance" | "updateDebtFromLoanOps" | "updateModules" | "updatePositionStatusFromLoanOps" | "upgradeToAndCall" | "verifyAuthorization" | "views" | "withdrawBTC"): FunctionFragment;
|
|
717
|
-
getEvent(nameOrSignatureOrTopic: "BalanceConfirmed" | "ExtensionPendingCleared" | "Initialized" | "ModulesUpdatedBatch" | "PKPLogicValidated" | "PKPValidationRegistryUpdated" | "PartialPaymentMade" | "Paused" | "PositionClosed" | "PositionCreated" | "PositionLiquidated" | "PositionRenewed" | "PositionRepaid" | "PositionStatusUpdated" | "PositionUpdated" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "UCDMinted" | "Unpaused" | "Upgraded"): EventFragment;
|
|
718
|
-
encodeFunctionData(functionFragment: "ADMIN_ROLE", values?: undefined): string;
|
|
719
|
-
encodeFunctionData(functionFragment: "COMMUNITY_FEE_DISTRIBUTOR_ROLE", values?: undefined): string;
|
|
720
|
-
encodeFunctionData(functionFragment: "COMMUNITY_MINTER_ROLE", values?: undefined): string;
|
|
721
|
-
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
|
|
722
|
-
encodeFunctionData(functionFragment: "EMERGENCY_PAUSE_ROLE", values?: undefined): string;
|
|
723
|
-
encodeFunctionData(functionFragment: "LIQUIDATOR_ROLE", values?: undefined): string;
|
|
724
|
-
encodeFunctionData(functionFragment: "ORACLE_UPDATER_ROLE", values?: undefined): string;
|
|
725
|
-
encodeFunctionData(functionFragment: "UPGRADE_INTERFACE_VERSION", values?: undefined): string;
|
|
726
|
-
encodeFunctionData(functionFragment: "VERSION", values?: undefined): string;
|
|
727
|
-
encodeFunctionData(functionFragment: "_performExtensionValidation", values: [
|
|
728
|
-
IPositionManagerCore.PositionStruct,
|
|
729
|
-
BigNumberish,
|
|
730
|
-
BigNumberish,
|
|
731
|
-
BigNumberish
|
|
732
|
-
]): string;
|
|
733
|
-
encodeFunctionData(functionFragment: "admin", values?: undefined): string;
|
|
734
|
-
encodeFunctionData(functionFragment: "authorizationRegistry", values?: undefined): string;
|
|
735
|
-
encodeFunctionData(functionFragment: "circuitBreaker", values?: undefined): string;
|
|
736
|
-
encodeFunctionData(functionFragment: "clearExtensionPending", values: [BytesLike]): string;
|
|
737
|
-
encodeFunctionData(functionFragment: "collateral", values?: undefined): string;
|
|
738
|
-
encodeFunctionData(functionFragment: "commitLiquidation", values: [BytesLike, BigNumberish, BigNumberish, BytesLike]): string;
|
|
739
|
-
encodeFunctionData(functionFragment: "communityManager", values?: undefined): string;
|
|
740
|
-
encodeFunctionData(functionFragment: "computeMintMessageHash", values: [
|
|
741
|
-
BytesLike,
|
|
742
|
-
BytesLike,
|
|
743
|
-
BytesLike,
|
|
744
|
-
BytesLike,
|
|
745
|
-
BytesLike,
|
|
746
|
-
BigNumberish,
|
|
747
|
-
BigNumberish,
|
|
748
|
-
BigNumberish,
|
|
749
|
-
BigNumberish,
|
|
750
|
-
BigNumberish,
|
|
751
|
-
BigNumberish
|
|
752
|
-
]): string;
|
|
753
|
-
encodeFunctionData(functionFragment: "core", values?: undefined): string;
|
|
754
|
-
encodeFunctionData(functionFragment: "createPosition", values: [BytesLike, BytesLike, string, string, BigNumberish, BigNumberish]): string;
|
|
755
|
-
encodeFunctionData(functionFragment: "extendPosition", values: [
|
|
756
|
-
BytesLike,
|
|
757
|
-
BigNumberish,
|
|
758
|
-
BigNumberish,
|
|
759
|
-
BigNumberish,
|
|
760
|
-
BigNumberish,
|
|
761
|
-
BytesLike
|
|
762
|
-
]): string;
|
|
763
|
-
encodeFunctionData(functionFragment: "getExpiredLoanLiquidationThreshold", values: [BytesLike]): string;
|
|
764
|
-
encodeFunctionData(functionFragment: "getMintMessageHashParameters", values?: undefined): string;
|
|
765
|
-
encodeFunctionData(functionFragment: "getPositionById", values: [BytesLike]): string;
|
|
766
|
-
encodeFunctionData(functionFragment: "getPositionByPkp", values: [BytesLike]): string;
|
|
767
|
-
encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string;
|
|
768
|
-
encodeFunctionData(functionFragment: "grantRole", values: [BytesLike, AddressLike]): string;
|
|
769
|
-
encodeFunctionData(functionFragment: "hasRole", values: [BytesLike, AddressLike]): string;
|
|
770
|
-
encodeFunctionData(functionFragment: "initialize", values: [
|
|
771
|
-
AddressLike,
|
|
772
|
-
AddressLike,
|
|
773
|
-
AddressLike,
|
|
774
|
-
AddressLike,
|
|
775
|
-
AddressLike,
|
|
776
|
-
AddressLike,
|
|
777
|
-
AddressLike,
|
|
778
|
-
AddressLike,
|
|
779
|
-
AddressLike,
|
|
780
|
-
AddressLike
|
|
781
|
-
]): string;
|
|
782
|
-
encodeFunctionData(functionFragment: "isExpiredLoanLiquidatable", values: [BytesLike, BigNumberish, BigNumberish]): string;
|
|
783
|
-
encodeFunctionData(functionFragment: "isExtensionPending", values: [BytesLike]): string;
|
|
784
|
-
encodeFunctionData(functionFragment: "liquidatePosition", values: [BytesLike, BigNumberish, BigNumberish, BytesLike]): string;
|
|
785
|
-
encodeFunctionData(functionFragment: "liquidation", values?: undefined): string;
|
|
786
|
-
encodeFunctionData(functionFragment: "loanOps", values?: undefined): string;
|
|
787
|
-
encodeFunctionData(functionFragment: "makePayment", values: [BytesLike, BigNumberish, BigNumberish, BigNumberish, BytesLike]): string;
|
|
788
|
-
encodeFunctionData(functionFragment: "mintUCD", values: [
|
|
789
|
-
BytesLike,
|
|
790
|
-
BigNumberish,
|
|
791
|
-
BigNumberish,
|
|
792
|
-
BigNumberish,
|
|
793
|
-
BigNumberish,
|
|
794
|
-
BigNumberish,
|
|
795
|
-
BytesLike,
|
|
796
|
-
BytesLike,
|
|
797
|
-
BytesLike,
|
|
798
|
-
BigNumberish,
|
|
799
|
-
BytesLike
|
|
800
|
-
]): string;
|
|
801
|
-
encodeFunctionData(functionFragment: "paused", values?: undefined): string;
|
|
802
|
-
encodeFunctionData(functionFragment: "pkpValidationRegistry", values?: undefined): string;
|
|
803
|
-
encodeFunctionData(functionFragment: "proxiableUUID", values?: undefined): string;
|
|
804
|
-
encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
|
|
805
|
-
encodeFunctionData(functionFragment: "revealAndLiquidate", values: [BytesLike, BigNumberish, BigNumberish, BytesLike, BigNumberish]): string;
|
|
806
|
-
encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string;
|
|
807
|
-
encodeFunctionData(functionFragment: "setAuthorizationRegistry", values: [AddressLike]): string;
|
|
808
|
-
encodeFunctionData(functionFragment: "setPKPValidationRegistry", values: [AddressLike]): string;
|
|
809
|
-
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
810
|
-
encodeFunctionData(functionFragment: "termManager", values?: undefined): string;
|
|
811
|
-
encodeFunctionData(functionFragment: "updateBalance", values: [BytesLike, BigNumberish, BigNumberish, BigNumberish, BytesLike]): string;
|
|
812
|
-
encodeFunctionData(functionFragment: "updateDebtFromLoanOps", values: [BytesLike, BigNumberish, BigNumberish]): string;
|
|
813
|
-
encodeFunctionData(functionFragment: "updateModules", values: [
|
|
814
|
-
AddressLike,
|
|
815
|
-
AddressLike,
|
|
816
|
-
AddressLike,
|
|
817
|
-
AddressLike,
|
|
818
|
-
AddressLike,
|
|
819
|
-
AddressLike,
|
|
820
|
-
AddressLike
|
|
821
|
-
]): string;
|
|
822
|
-
encodeFunctionData(functionFragment: "updatePositionStatusFromLoanOps", values: [BytesLike, BigNumberish]): string;
|
|
823
|
-
encodeFunctionData(functionFragment: "upgradeToAndCall", values: [AddressLike, BytesLike]): string;
|
|
824
|
-
encodeFunctionData(functionFragment: "verifyAuthorization", values: [BytesLike, BytesLike, BytesLike]): string;
|
|
825
|
-
encodeFunctionData(functionFragment: "views", values?: undefined): string;
|
|
826
|
-
encodeFunctionData(functionFragment: "withdrawBTC", values: [ICollateralManager.WithdrawalParamsStruct, BytesLike]): string;
|
|
827
|
-
decodeFunctionResult(functionFragment: "ADMIN_ROLE", data: BytesLike): Result$2;
|
|
828
|
-
decodeFunctionResult(functionFragment: "COMMUNITY_FEE_DISTRIBUTOR_ROLE", data: BytesLike): Result$2;
|
|
829
|
-
decodeFunctionResult(functionFragment: "COMMUNITY_MINTER_ROLE", data: BytesLike): Result$2;
|
|
830
|
-
decodeFunctionResult(functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike): Result$2;
|
|
831
|
-
decodeFunctionResult(functionFragment: "EMERGENCY_PAUSE_ROLE", data: BytesLike): Result$2;
|
|
832
|
-
decodeFunctionResult(functionFragment: "LIQUIDATOR_ROLE", data: BytesLike): Result$2;
|
|
833
|
-
decodeFunctionResult(functionFragment: "ORACLE_UPDATER_ROLE", data: BytesLike): Result$2;
|
|
834
|
-
decodeFunctionResult(functionFragment: "UPGRADE_INTERFACE_VERSION", data: BytesLike): Result$2;
|
|
835
|
-
decodeFunctionResult(functionFragment: "VERSION", data: BytesLike): Result$2;
|
|
836
|
-
decodeFunctionResult(functionFragment: "_performExtensionValidation", data: BytesLike): Result$2;
|
|
837
|
-
decodeFunctionResult(functionFragment: "admin", data: BytesLike): Result$2;
|
|
838
|
-
decodeFunctionResult(functionFragment: "authorizationRegistry", data: BytesLike): Result$2;
|
|
839
|
-
decodeFunctionResult(functionFragment: "circuitBreaker", data: BytesLike): Result$2;
|
|
840
|
-
decodeFunctionResult(functionFragment: "clearExtensionPending", data: BytesLike): Result$2;
|
|
841
|
-
decodeFunctionResult(functionFragment: "collateral", data: BytesLike): Result$2;
|
|
842
|
-
decodeFunctionResult(functionFragment: "commitLiquidation", data: BytesLike): Result$2;
|
|
843
|
-
decodeFunctionResult(functionFragment: "communityManager", data: BytesLike): Result$2;
|
|
844
|
-
decodeFunctionResult(functionFragment: "computeMintMessageHash", data: BytesLike): Result$2;
|
|
845
|
-
decodeFunctionResult(functionFragment: "core", data: BytesLike): Result$2;
|
|
846
|
-
decodeFunctionResult(functionFragment: "createPosition", data: BytesLike): Result$2;
|
|
847
|
-
decodeFunctionResult(functionFragment: "extendPosition", data: BytesLike): Result$2;
|
|
848
|
-
decodeFunctionResult(functionFragment: "getExpiredLoanLiquidationThreshold", data: BytesLike): Result$2;
|
|
849
|
-
decodeFunctionResult(functionFragment: "getMintMessageHashParameters", data: BytesLike): Result$2;
|
|
850
|
-
decodeFunctionResult(functionFragment: "getPositionById", data: BytesLike): Result$2;
|
|
851
|
-
decodeFunctionResult(functionFragment: "getPositionByPkp", data: BytesLike): Result$2;
|
|
852
|
-
decodeFunctionResult(functionFragment: "getRoleAdmin", data: BytesLike): Result$2;
|
|
853
|
-
decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result$2;
|
|
854
|
-
decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result$2;
|
|
855
|
-
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result$2;
|
|
856
|
-
decodeFunctionResult(functionFragment: "isExpiredLoanLiquidatable", data: BytesLike): Result$2;
|
|
857
|
-
decodeFunctionResult(functionFragment: "isExtensionPending", data: BytesLike): Result$2;
|
|
858
|
-
decodeFunctionResult(functionFragment: "liquidatePosition", data: BytesLike): Result$2;
|
|
859
|
-
decodeFunctionResult(functionFragment: "liquidation", data: BytesLike): Result$2;
|
|
860
|
-
decodeFunctionResult(functionFragment: "loanOps", data: BytesLike): Result$2;
|
|
861
|
-
decodeFunctionResult(functionFragment: "makePayment", data: BytesLike): Result$2;
|
|
862
|
-
decodeFunctionResult(functionFragment: "mintUCD", data: BytesLike): Result$2;
|
|
863
|
-
decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result$2;
|
|
864
|
-
decodeFunctionResult(functionFragment: "pkpValidationRegistry", data: BytesLike): Result$2;
|
|
865
|
-
decodeFunctionResult(functionFragment: "proxiableUUID", data: BytesLike): Result$2;
|
|
866
|
-
decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result$2;
|
|
867
|
-
decodeFunctionResult(functionFragment: "revealAndLiquidate", data: BytesLike): Result$2;
|
|
868
|
-
decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result$2;
|
|
869
|
-
decodeFunctionResult(functionFragment: "setAuthorizationRegistry", data: BytesLike): Result$2;
|
|
870
|
-
decodeFunctionResult(functionFragment: "setPKPValidationRegistry", data: BytesLike): Result$2;
|
|
871
|
-
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result$2;
|
|
872
|
-
decodeFunctionResult(functionFragment: "termManager", data: BytesLike): Result$2;
|
|
873
|
-
decodeFunctionResult(functionFragment: "updateBalance", data: BytesLike): Result$2;
|
|
874
|
-
decodeFunctionResult(functionFragment: "updateDebtFromLoanOps", data: BytesLike): Result$2;
|
|
875
|
-
decodeFunctionResult(functionFragment: "updateModules", data: BytesLike): Result$2;
|
|
876
|
-
decodeFunctionResult(functionFragment: "updatePositionStatusFromLoanOps", data: BytesLike): Result$2;
|
|
877
|
-
decodeFunctionResult(functionFragment: "upgradeToAndCall", data: BytesLike): Result$2;
|
|
878
|
-
decodeFunctionResult(functionFragment: "verifyAuthorization", data: BytesLike): Result$2;
|
|
879
|
-
decodeFunctionResult(functionFragment: "views", data: BytesLike): Result$2;
|
|
880
|
-
decodeFunctionResult(functionFragment: "withdrawBTC", data: BytesLike): Result$2;
|
|
881
|
-
}
|
|
882
|
-
declare namespace BalanceConfirmedEvent {
|
|
883
|
-
type InputTuple = [
|
|
884
|
-
positionId: BytesLike,
|
|
885
|
-
collateralValue: BigNumberish,
|
|
886
|
-
quantumTimestamp: BigNumberish,
|
|
887
|
-
confirmedAt: BigNumberish
|
|
888
|
-
];
|
|
889
|
-
type OutputTuple = [
|
|
890
|
-
positionId: string,
|
|
891
|
-
collateralValue: bigint,
|
|
892
|
-
quantumTimestamp: bigint,
|
|
893
|
-
confirmedAt: bigint
|
|
894
|
-
];
|
|
895
|
-
interface OutputObject {
|
|
896
|
-
positionId: string;
|
|
897
|
-
collateralValue: bigint;
|
|
898
|
-
quantumTimestamp: bigint;
|
|
899
|
-
confirmedAt: bigint;
|
|
900
|
-
}
|
|
901
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
902
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
903
|
-
type Log = TypedEventLog<Event>;
|
|
904
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
905
|
-
}
|
|
906
|
-
declare namespace ExtensionPendingClearedEvent {
|
|
907
|
-
type InputTuple = [positionId: BytesLike, clearedBy: AddressLike];
|
|
908
|
-
type OutputTuple = [positionId: string, clearedBy: string];
|
|
909
|
-
interface OutputObject {
|
|
910
|
-
positionId: string;
|
|
911
|
-
clearedBy: string;
|
|
912
|
-
}
|
|
913
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
914
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
915
|
-
type Log = TypedEventLog<Event>;
|
|
916
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
917
|
-
}
|
|
918
|
-
declare namespace InitializedEvent$1 {
|
|
919
|
-
type InputTuple = [version: BigNumberish];
|
|
920
|
-
type OutputTuple = [version: bigint];
|
|
921
|
-
interface OutputObject {
|
|
922
|
-
version: bigint;
|
|
923
|
-
}
|
|
924
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
925
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
926
|
-
type Log = TypedEventLog<Event>;
|
|
927
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
928
|
-
}
|
|
929
|
-
declare namespace ModulesUpdatedBatchEvent {
|
|
930
|
-
type InputTuple = [updatedBy: AddressLike, moduleCount: BigNumberish];
|
|
931
|
-
type OutputTuple = [updatedBy: string, moduleCount: bigint];
|
|
932
|
-
interface OutputObject {
|
|
933
|
-
updatedBy: string;
|
|
934
|
-
moduleCount: bigint;
|
|
935
|
-
}
|
|
936
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
937
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
938
|
-
type Log = TypedEventLog<Event>;
|
|
939
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
940
|
-
}
|
|
941
|
-
declare namespace PKPLogicValidatedEvent {
|
|
942
|
-
type InputTuple = [pkpId: BytesLike, isValid: boolean];
|
|
943
|
-
type OutputTuple = [pkpId: string, isValid: boolean];
|
|
944
|
-
interface OutputObject {
|
|
945
|
-
pkpId: string;
|
|
946
|
-
isValid: boolean;
|
|
947
|
-
}
|
|
948
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
949
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
950
|
-
type Log = TypedEventLog<Event>;
|
|
951
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
952
|
-
}
|
|
953
|
-
declare namespace PKPValidationRegistryUpdatedEvent {
|
|
954
|
-
type InputTuple = [
|
|
955
|
-
oldRegistry: AddressLike,
|
|
956
|
-
newRegistry: AddressLike,
|
|
957
|
-
caller: AddressLike
|
|
958
|
-
];
|
|
959
|
-
type OutputTuple = [
|
|
960
|
-
oldRegistry: string,
|
|
961
|
-
newRegistry: string,
|
|
962
|
-
caller: string
|
|
963
|
-
];
|
|
964
|
-
interface OutputObject {
|
|
965
|
-
oldRegistry: string;
|
|
966
|
-
newRegistry: string;
|
|
967
|
-
caller: string;
|
|
968
|
-
}
|
|
969
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
970
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
971
|
-
type Log = TypedEventLog<Event>;
|
|
972
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
973
|
-
}
|
|
974
|
-
declare namespace PartialPaymentMadeEvent {
|
|
975
|
-
type InputTuple = [
|
|
976
|
-
positionId: BytesLike,
|
|
977
|
-
payer: AddressLike,
|
|
978
|
-
paymentAmount: BigNumberish,
|
|
979
|
-
remainingDebt: BigNumberish
|
|
980
|
-
];
|
|
981
|
-
type OutputTuple = [
|
|
982
|
-
positionId: string,
|
|
983
|
-
payer: string,
|
|
984
|
-
paymentAmount: bigint,
|
|
985
|
-
remainingDebt: bigint
|
|
986
|
-
];
|
|
987
|
-
interface OutputObject {
|
|
988
|
-
positionId: string;
|
|
989
|
-
payer: string;
|
|
990
|
-
paymentAmount: bigint;
|
|
991
|
-
remainingDebt: bigint;
|
|
992
|
-
}
|
|
993
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
994
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
995
|
-
type Log = TypedEventLog<Event>;
|
|
996
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
997
|
-
}
|
|
998
|
-
declare namespace PausedEvent$1 {
|
|
999
|
-
type InputTuple = [account: AddressLike];
|
|
1000
|
-
type OutputTuple = [account: string];
|
|
1001
|
-
interface OutputObject {
|
|
1002
|
-
account: string;
|
|
1003
|
-
}
|
|
1004
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1005
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1006
|
-
type Log = TypedEventLog<Event>;
|
|
1007
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1008
|
-
}
|
|
1009
|
-
declare namespace PositionClosedEvent {
|
|
1010
|
-
type InputTuple = [
|
|
1011
|
-
positionId: BytesLike,
|
|
1012
|
-
borrower: AddressLike,
|
|
1013
|
-
withdrawalAmount: BigNumberish,
|
|
1014
|
-
withdrawalAddress: string,
|
|
1015
|
-
timestamp: BigNumberish
|
|
1016
|
-
];
|
|
1017
|
-
type OutputTuple = [
|
|
1018
|
-
positionId: string,
|
|
1019
|
-
borrower: string,
|
|
1020
|
-
withdrawalAmount: bigint,
|
|
1021
|
-
withdrawalAddress: string,
|
|
1022
|
-
timestamp: bigint
|
|
1023
|
-
];
|
|
1024
|
-
interface OutputObject {
|
|
1025
|
-
positionId: string;
|
|
1026
|
-
borrower: string;
|
|
1027
|
-
withdrawalAmount: bigint;
|
|
1028
|
-
withdrawalAddress: string;
|
|
1029
|
-
timestamp: bigint;
|
|
1030
|
-
}
|
|
1031
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1032
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1033
|
-
type Log = TypedEventLog<Event>;
|
|
1034
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1035
|
-
}
|
|
1036
|
-
declare namespace PositionCreatedEvent {
|
|
1037
|
-
type InputTuple = [
|
|
1038
|
-
positionId: BytesLike,
|
|
1039
|
-
pkpId: BytesLike,
|
|
1040
|
-
borrower: AddressLike,
|
|
1041
|
-
requestedCollateralRatio: BigNumberish,
|
|
1042
|
-
selectedTerm: BigNumberish,
|
|
1043
|
-
expiryAt: BigNumberish
|
|
1044
|
-
];
|
|
1045
|
-
type OutputTuple = [
|
|
1046
|
-
positionId: string,
|
|
1047
|
-
pkpId: string,
|
|
1048
|
-
borrower: string,
|
|
1049
|
-
requestedCollateralRatio: bigint,
|
|
1050
|
-
selectedTerm: bigint,
|
|
1051
|
-
expiryAt: bigint
|
|
1052
|
-
];
|
|
1053
|
-
interface OutputObject {
|
|
565
|
+
/**
|
|
566
|
+
* Position Manager Contract Interface
|
|
567
|
+
* Based on contracts/src/interfaces/IPositionManager.sol
|
|
568
|
+
*/
|
|
569
|
+
interface PositionManager extends ethers.Contract {
|
|
570
|
+
createPosition(pkpId: string, validatorSignature: string, mainnetVaultAddress: string, regtestVaultAddress: string, selectedTermMonths: number | BigNumber, validatorVersion: number | BigNumber): Promise<ethers.ContractTransaction>;
|
|
571
|
+
mintUCD(positionId: string, mintAmount: BigNumber, mintFee: BigNumber, newDebt: BigNumber, newCollateral: BigNumber, btcPrice: BigNumber, authorizedSpendsHash: string, ucdDebtHash: string, contractHash: string, quantumTimestamp: BigNumber, mintValidatorSignature: string): Promise<ethers.ContractTransaction>;
|
|
572
|
+
liquidatePosition(positionId: string, btcPrice: BigNumber, quantumTimestamp: BigNumber, liquidationValidatorSignature: string): Promise<ethers.ContractTransaction>;
|
|
573
|
+
getPosition(positionId: string): Promise<{
|
|
1054
574
|
positionId: string;
|
|
1055
575
|
pkpId: string;
|
|
576
|
+
ucdDebt: BigNumber;
|
|
1056
577
|
borrower: string;
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1218
|
-
type Log = TypedEventLog<Event>;
|
|
1219
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1220
|
-
}
|
|
1221
|
-
declare namespace RoleRevokedEvent$1 {
|
|
1222
|
-
type InputTuple = [
|
|
1223
|
-
role: BytesLike,
|
|
1224
|
-
account: AddressLike,
|
|
1225
|
-
sender: AddressLike
|
|
1226
|
-
];
|
|
1227
|
-
type OutputTuple = [role: string, account: string, sender: string];
|
|
1228
|
-
interface OutputObject {
|
|
1229
|
-
role: string;
|
|
1230
|
-
account: string;
|
|
1231
|
-
sender: string;
|
|
1232
|
-
}
|
|
1233
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1234
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1235
|
-
type Log = TypedEventLog<Event>;
|
|
1236
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1237
|
-
}
|
|
1238
|
-
declare namespace UCDMintedEvent$1 {
|
|
1239
|
-
type InputTuple = [
|
|
1240
|
-
positionId: BytesLike,
|
|
1241
|
-
amount: BigNumberish,
|
|
1242
|
-
proof: BytesLike
|
|
1243
|
-
];
|
|
1244
|
-
type OutputTuple = [positionId: string, amount: bigint, proof: string];
|
|
1245
|
-
interface OutputObject {
|
|
1246
|
-
positionId: string;
|
|
1247
|
-
amount: bigint;
|
|
1248
|
-
proof: string;
|
|
1249
|
-
}
|
|
1250
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1251
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1252
|
-
type Log = TypedEventLog<Event>;
|
|
1253
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1254
|
-
}
|
|
1255
|
-
declare namespace UnpausedEvent$1 {
|
|
1256
|
-
type InputTuple = [account: AddressLike];
|
|
1257
|
-
type OutputTuple = [account: string];
|
|
1258
|
-
interface OutputObject {
|
|
1259
|
-
account: string;
|
|
1260
|
-
}
|
|
1261
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1262
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1263
|
-
type Log = TypedEventLog<Event>;
|
|
1264
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1265
|
-
}
|
|
1266
|
-
declare namespace UpgradedEvent$1 {
|
|
1267
|
-
type InputTuple = [implementation: AddressLike];
|
|
1268
|
-
type OutputTuple = [implementation: string];
|
|
1269
|
-
interface OutputObject {
|
|
1270
|
-
implementation: string;
|
|
1271
|
-
}
|
|
1272
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1273
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1274
|
-
type Log = TypedEventLog<Event>;
|
|
1275
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1276
|
-
}
|
|
1277
|
-
interface PositionManager extends BaseContract {
|
|
1278
|
-
connect(runner?: ContractRunner | null): PositionManager;
|
|
1279
|
-
waitForDeployment(): Promise<this>;
|
|
1280
|
-
interface: PositionManagerInterface;
|
|
1281
|
-
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
1282
|
-
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
1283
|
-
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
1284
|
-
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
1285
|
-
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
1286
|
-
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
1287
|
-
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
1288
|
-
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
1289
|
-
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
1290
|
-
ADMIN_ROLE: TypedContractMethod<[], [string], "view">;
|
|
1291
|
-
COMMUNITY_FEE_DISTRIBUTOR_ROLE: TypedContractMethod<[], [string], "view">;
|
|
1292
|
-
COMMUNITY_MINTER_ROLE: TypedContractMethod<[], [string], "view">;
|
|
1293
|
-
DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">;
|
|
1294
|
-
EMERGENCY_PAUSE_ROLE: TypedContractMethod<[], [string], "view">;
|
|
1295
|
-
LIQUIDATOR_ROLE: TypedContractMethod<[], [string], "view">;
|
|
1296
|
-
ORACLE_UPDATER_ROLE: TypedContractMethod<[], [string], "view">;
|
|
1297
|
-
UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">;
|
|
1298
|
-
VERSION: TypedContractMethod<[], [string], "view">;
|
|
1299
|
-
_performExtensionValidation: TypedContractMethod<[
|
|
1300
|
-
position: IPositionManagerCore.PositionStruct,
|
|
1301
|
-
selectedTerm: BigNumberish,
|
|
1302
|
-
btcPrice: BigNumberish,
|
|
1303
|
-
availableBTCBalance: BigNumberish
|
|
1304
|
-
], [
|
|
1305
|
-
[
|
|
1306
|
-
bigint,
|
|
1307
|
-
bigint,
|
|
1308
|
-
bigint,
|
|
1309
|
-
bigint
|
|
1310
|
-
] & {
|
|
1311
|
-
extensionFee: bigint;
|
|
1312
|
-
newTotalDebt: bigint;
|
|
1313
|
-
newCollateralRatio: bigint;
|
|
1314
|
-
newTotalTerm: bigint;
|
|
1315
|
-
}
|
|
1316
|
-
], "view">;
|
|
1317
|
-
admin: TypedContractMethod<[], [string], "view">;
|
|
1318
|
-
authorizationRegistry: TypedContractMethod<[], [string], "view">;
|
|
1319
|
-
circuitBreaker: TypedContractMethod<[], [string], "view">;
|
|
1320
|
-
clearExtensionPending: TypedContractMethod<[
|
|
1321
|
-
positionId: BytesLike
|
|
1322
|
-
], [
|
|
1323
|
-
void
|
|
1324
|
-
], "nonpayable">;
|
|
1325
|
-
collateral: TypedContractMethod<[], [string], "view">;
|
|
1326
|
-
commitLiquidation: TypedContractMethod<[
|
|
1327
|
-
positionId: BytesLike,
|
|
1328
|
-
quantumTimestamp: BigNumberish,
|
|
1329
|
-
btcPrice: BigNumberish,
|
|
1330
|
-
liquidationValidatorSignature: BytesLike
|
|
1331
|
-
], [
|
|
1332
|
-
void
|
|
1333
|
-
], "nonpayable">;
|
|
1334
|
-
communityManager: TypedContractMethod<[], [string], "view">;
|
|
1335
|
-
computeMintMessageHash: TypedContractMethod<[
|
|
1336
|
-
positionId: BytesLike,
|
|
1337
|
-
actionHash: BytesLike,
|
|
1338
|
-
authorizedSpendsHash: BytesLike,
|
|
1339
|
-
ucdDebtHash: BytesLike,
|
|
1340
|
-
contractHash: BytesLike,
|
|
1341
|
-
btcPrice: BigNumberish,
|
|
1342
|
-
mintAmount: BigNumberish,
|
|
1343
|
-
mintFee: BigNumberish,
|
|
1344
|
-
newCollateral: BigNumberish,
|
|
1345
|
-
newDebt: BigNumberish,
|
|
1346
|
-
quantumTimestamp: BigNumberish
|
|
1347
|
-
], [
|
|
1348
|
-
string
|
|
1349
|
-
], "view">;
|
|
1350
|
-
core: TypedContractMethod<[], [string], "view">;
|
|
1351
|
-
createPosition: TypedContractMethod<[
|
|
1352
|
-
pkpId: BytesLike,
|
|
1353
|
-
validatorSignature: BytesLike,
|
|
1354
|
-
mainnetVaultAddress: string,
|
|
1355
|
-
regtestVaultAddress: string,
|
|
1356
|
-
selectedTermMonths: BigNumberish,
|
|
1357
|
-
validatorVersion: BigNumberish
|
|
1358
|
-
], [
|
|
1359
|
-
string
|
|
1360
|
-
], "nonpayable">;
|
|
1361
|
-
extendPosition: TypedContractMethod<[
|
|
1362
|
-
positionId: BytesLike,
|
|
1363
|
-
selectedTerm: BigNumberish,
|
|
1364
|
-
quantumTimestamp: BigNumberish,
|
|
1365
|
-
btcPrice: BigNumberish,
|
|
1366
|
-
availableBTCBalance: BigNumberish,
|
|
1367
|
-
extensionValidatorSignature: BytesLike
|
|
1368
|
-
], [
|
|
1369
|
-
boolean
|
|
1370
|
-
], "nonpayable">;
|
|
1371
|
-
getExpiredLoanLiquidationThreshold: TypedContractMethod<[
|
|
1372
|
-
positionId: BytesLike
|
|
1373
|
-
], [
|
|
1374
|
-
bigint
|
|
1375
|
-
], "view">;
|
|
1376
|
-
getMintMessageHashParameters: TypedContractMethod<[], [string[]], "view">;
|
|
1377
|
-
getPositionById: TypedContractMethod<[
|
|
1378
|
-
positionId: BytesLike
|
|
1379
|
-
], [
|
|
1380
|
-
IPositionManager.PositionStructOutput
|
|
1381
|
-
], "view">;
|
|
1382
|
-
getPositionByPkp: TypedContractMethod<[pkpId: BytesLike], [string], "view">;
|
|
1383
|
-
getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
1384
|
-
grantRole: TypedContractMethod<[
|
|
1385
|
-
role: BytesLike,
|
|
1386
|
-
account: AddressLike
|
|
1387
|
-
], [
|
|
1388
|
-
void
|
|
1389
|
-
], "nonpayable">;
|
|
1390
|
-
hasRole: TypedContractMethod<[
|
|
1391
|
-
role: BytesLike,
|
|
1392
|
-
account: AddressLike
|
|
1393
|
-
], [
|
|
1394
|
-
boolean
|
|
1395
|
-
], "view">;
|
|
1396
|
-
initialize: TypedContractMethod<[
|
|
1397
|
-
_core: AddressLike,
|
|
1398
|
-
_loanOps: AddressLike,
|
|
1399
|
-
_collateral: AddressLike,
|
|
1400
|
-
_liquidation: AddressLike,
|
|
1401
|
-
_termManager: AddressLike,
|
|
1402
|
-
_communityManager: AddressLike,
|
|
1403
|
-
_circuitBreaker: AddressLike,
|
|
1404
|
-
_adminModule: AddressLike,
|
|
1405
|
-
_views: AddressLike,
|
|
1406
|
-
_admin: AddressLike
|
|
1407
|
-
], [
|
|
1408
|
-
void
|
|
1409
|
-
], "nonpayable">;
|
|
1410
|
-
isExpiredLoanLiquidatable: TypedContractMethod<[
|
|
1411
|
-
positionId: BytesLike,
|
|
1412
|
-
collateralValue: BigNumberish,
|
|
1413
|
-
debtAmount: BigNumberish
|
|
1414
|
-
], [
|
|
1415
|
-
boolean
|
|
1416
|
-
], "view">;
|
|
1417
|
-
isExtensionPending: TypedContractMethod<[
|
|
1418
|
-
positionId: BytesLike
|
|
1419
|
-
], [
|
|
1420
|
-
boolean
|
|
1421
|
-
], "view">;
|
|
1422
|
-
liquidatePosition: TypedContractMethod<[
|
|
1423
|
-
positionId: BytesLike,
|
|
1424
|
-
btcPrice: BigNumberish,
|
|
1425
|
-
quantumTimestamp: BigNumberish,
|
|
1426
|
-
liquidationValidatorSignature: BytesLike
|
|
1427
|
-
], [
|
|
1428
|
-
boolean
|
|
1429
|
-
], "nonpayable">;
|
|
1430
|
-
liquidation: TypedContractMethod<[], [string], "view">;
|
|
1431
|
-
loanOps: TypedContractMethod<[], [string], "view">;
|
|
1432
|
-
makePayment: TypedContractMethod<[
|
|
1433
|
-
positionId: BytesLike,
|
|
1434
|
-
paymentAmount: BigNumberish,
|
|
1435
|
-
quantumTimestamp: BigNumberish,
|
|
1436
|
-
btcPrice: BigNumberish,
|
|
1437
|
-
paymentValidatorSignature: BytesLike
|
|
1438
|
-
], [
|
|
1439
|
-
boolean
|
|
1440
|
-
], "nonpayable">;
|
|
1441
|
-
mintUCD: TypedContractMethod<[
|
|
1442
|
-
positionId: BytesLike,
|
|
1443
|
-
mintAmount: BigNumberish,
|
|
1444
|
-
mintFee: BigNumberish,
|
|
1445
|
-
newDebt: BigNumberish,
|
|
1446
|
-
newCollateral: BigNumberish,
|
|
1447
|
-
btcPrice: BigNumberish,
|
|
1448
|
-
authorizedSpendsHash: BytesLike,
|
|
1449
|
-
ucdDebtHash: BytesLike,
|
|
1450
|
-
contractHash: BytesLike,
|
|
1451
|
-
quantumTimestamp: BigNumberish,
|
|
1452
|
-
mintValidatorSignature: BytesLike
|
|
1453
|
-
], [
|
|
1454
|
-
boolean
|
|
1455
|
-
], "nonpayable">;
|
|
1456
|
-
paused: TypedContractMethod<[], [boolean], "view">;
|
|
1457
|
-
pkpValidationRegistry: TypedContractMethod<[], [string], "view">;
|
|
1458
|
-
proxiableUUID: TypedContractMethod<[], [string], "view">;
|
|
1459
|
-
renounceRole: TypedContractMethod<[
|
|
1460
|
-
role: BytesLike,
|
|
1461
|
-
callerConfirmation: AddressLike
|
|
1462
|
-
], [
|
|
1463
|
-
void
|
|
1464
|
-
], "nonpayable">;
|
|
1465
|
-
revealAndLiquidate: TypedContractMethod<[
|
|
1466
|
-
positionId: BytesLike,
|
|
1467
|
-
quantumTimestamp: BigNumberish,
|
|
1468
|
-
btcPrice: BigNumberish,
|
|
1469
|
-
liquidationValidatorSignature: BytesLike,
|
|
1470
|
-
deadline: BigNumberish
|
|
1471
|
-
], [
|
|
1472
|
-
boolean
|
|
1473
|
-
], "nonpayable">;
|
|
1474
|
-
revokeRole: TypedContractMethod<[
|
|
1475
|
-
role: BytesLike,
|
|
1476
|
-
account: AddressLike
|
|
1477
|
-
], [
|
|
1478
|
-
void
|
|
1479
|
-
], "nonpayable">;
|
|
1480
|
-
setAuthorizationRegistry: TypedContractMethod<[
|
|
1481
|
-
registry: AddressLike
|
|
1482
|
-
], [
|
|
1483
|
-
void
|
|
1484
|
-
], "nonpayable">;
|
|
1485
|
-
setPKPValidationRegistry: TypedContractMethod<[
|
|
1486
|
-
registry: AddressLike
|
|
1487
|
-
], [
|
|
1488
|
-
void
|
|
1489
|
-
], "nonpayable">;
|
|
1490
|
-
supportsInterface: TypedContractMethod<[
|
|
1491
|
-
interfaceId: BytesLike
|
|
1492
|
-
], [
|
|
1493
|
-
boolean
|
|
1494
|
-
], "view">;
|
|
1495
|
-
termManager: TypedContractMethod<[], [string], "view">;
|
|
1496
|
-
updateBalance: TypedContractMethod<[
|
|
1497
|
-
positionId: BytesLike,
|
|
1498
|
-
collateralValue: BigNumberish,
|
|
1499
|
-
btcPrice: BigNumberish,
|
|
1500
|
-
quantumTimestamp: BigNumberish,
|
|
1501
|
-
signature: BytesLike
|
|
1502
|
-
], [
|
|
1503
|
-
void
|
|
1504
|
-
], "nonpayable">;
|
|
1505
|
-
updateDebtFromLoanOps: TypedContractMethod<[
|
|
1506
|
-
positionId: BytesLike,
|
|
1507
|
-
newDebt: BigNumberish,
|
|
1508
|
-
termStartTimestamp: BigNumberish
|
|
1509
|
-
], [
|
|
1510
|
-
void
|
|
1511
|
-
], "nonpayable">;
|
|
1512
|
-
updateModules: TypedContractMethod<[
|
|
1513
|
-
_core: AddressLike,
|
|
1514
|
-
_loanOps: AddressLike,
|
|
1515
|
-
_collateral: AddressLike,
|
|
1516
|
-
_liquidation: AddressLike,
|
|
1517
|
-
_termManager: AddressLike,
|
|
1518
|
-
_communityManager: AddressLike,
|
|
1519
|
-
_circuitBreaker: AddressLike
|
|
1520
|
-
], [
|
|
1521
|
-
void
|
|
1522
|
-
], "nonpayable">;
|
|
1523
|
-
updatePositionStatusFromLoanOps: TypedContractMethod<[
|
|
1524
|
-
positionId: BytesLike,
|
|
1525
|
-
newStatus: BigNumberish
|
|
1526
|
-
], [
|
|
1527
|
-
void
|
|
1528
|
-
], "nonpayable">;
|
|
1529
|
-
upgradeToAndCall: TypedContractMethod<[
|
|
1530
|
-
newImplementation: AddressLike,
|
|
1531
|
-
data: BytesLike
|
|
1532
|
-
], [
|
|
1533
|
-
void
|
|
1534
|
-
], "payable">;
|
|
1535
|
-
verifyAuthorization: TypedContractMethod<[
|
|
1536
|
-
selector: BytesLike,
|
|
1537
|
-
messageHash: BytesLike,
|
|
1538
|
-
signature: BytesLike
|
|
1539
|
-
], [
|
|
1540
|
-
boolean
|
|
1541
|
-
], "view">;
|
|
1542
|
-
views: TypedContractMethod<[], [string], "view">;
|
|
1543
|
-
withdrawBTC: TypedContractMethod<[
|
|
1544
|
-
params: ICollateralManager.WithdrawalParamsStruct,
|
|
1545
|
-
withdrawalValidatorSignature: BytesLike
|
|
1546
|
-
], [
|
|
1547
|
-
boolean
|
|
1548
|
-
], "nonpayable">;
|
|
1549
|
-
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
1550
|
-
getFunction(nameOrSignature: "ADMIN_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
1551
|
-
getFunction(nameOrSignature: "COMMUNITY_FEE_DISTRIBUTOR_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
1552
|
-
getFunction(nameOrSignature: "COMMUNITY_MINTER_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
1553
|
-
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
1554
|
-
getFunction(nameOrSignature: "EMERGENCY_PAUSE_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
1555
|
-
getFunction(nameOrSignature: "LIQUIDATOR_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
1556
|
-
getFunction(nameOrSignature: "ORACLE_UPDATER_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
1557
|
-
getFunction(nameOrSignature: "UPGRADE_INTERFACE_VERSION"): TypedContractMethod<[], [string], "view">;
|
|
1558
|
-
getFunction(nameOrSignature: "VERSION"): TypedContractMethod<[], [string], "view">;
|
|
1559
|
-
getFunction(nameOrSignature: "_performExtensionValidation"): TypedContractMethod<[
|
|
1560
|
-
position: IPositionManagerCore.PositionStruct,
|
|
1561
|
-
selectedTerm: BigNumberish,
|
|
1562
|
-
btcPrice: BigNumberish,
|
|
1563
|
-
availableBTCBalance: BigNumberish
|
|
1564
|
-
], [
|
|
1565
|
-
[
|
|
1566
|
-
bigint,
|
|
1567
|
-
bigint,
|
|
1568
|
-
bigint,
|
|
1569
|
-
bigint
|
|
1570
|
-
] & {
|
|
1571
|
-
extensionFee: bigint;
|
|
1572
|
-
newTotalDebt: bigint;
|
|
1573
|
-
newCollateralRatio: bigint;
|
|
1574
|
-
newTotalTerm: bigint;
|
|
1575
|
-
}
|
|
1576
|
-
], "view">;
|
|
1577
|
-
getFunction(nameOrSignature: "admin"): TypedContractMethod<[], [string], "view">;
|
|
1578
|
-
getFunction(nameOrSignature: "authorizationRegistry"): TypedContractMethod<[], [string], "view">;
|
|
1579
|
-
getFunction(nameOrSignature: "circuitBreaker"): TypedContractMethod<[], [string], "view">;
|
|
1580
|
-
getFunction(nameOrSignature: "clearExtensionPending"): TypedContractMethod<[positionId: BytesLike], [void], "nonpayable">;
|
|
1581
|
-
getFunction(nameOrSignature: "collateral"): TypedContractMethod<[], [string], "view">;
|
|
1582
|
-
getFunction(nameOrSignature: "commitLiquidation"): TypedContractMethod<[
|
|
1583
|
-
positionId: BytesLike,
|
|
1584
|
-
quantumTimestamp: BigNumberish,
|
|
1585
|
-
btcPrice: BigNumberish,
|
|
1586
|
-
liquidationValidatorSignature: BytesLike
|
|
1587
|
-
], [
|
|
1588
|
-
void
|
|
1589
|
-
], "nonpayable">;
|
|
1590
|
-
getFunction(nameOrSignature: "communityManager"): TypedContractMethod<[], [string], "view">;
|
|
1591
|
-
getFunction(nameOrSignature: "computeMintMessageHash"): TypedContractMethod<[
|
|
1592
|
-
positionId: BytesLike,
|
|
1593
|
-
actionHash: BytesLike,
|
|
1594
|
-
authorizedSpendsHash: BytesLike,
|
|
1595
|
-
ucdDebtHash: BytesLike,
|
|
1596
|
-
contractHash: BytesLike,
|
|
1597
|
-
btcPrice: BigNumberish,
|
|
1598
|
-
mintAmount: BigNumberish,
|
|
1599
|
-
mintFee: BigNumberish,
|
|
1600
|
-
newCollateral: BigNumberish,
|
|
1601
|
-
newDebt: BigNumberish,
|
|
1602
|
-
quantumTimestamp: BigNumberish
|
|
1603
|
-
], [
|
|
1604
|
-
string
|
|
1605
|
-
], "view">;
|
|
1606
|
-
getFunction(nameOrSignature: "core"): TypedContractMethod<[], [string], "view">;
|
|
1607
|
-
getFunction(nameOrSignature: "createPosition"): TypedContractMethod<[
|
|
1608
|
-
pkpId: BytesLike,
|
|
1609
|
-
validatorSignature: BytesLike,
|
|
1610
|
-
mainnetVaultAddress: string,
|
|
1611
|
-
regtestVaultAddress: string,
|
|
1612
|
-
selectedTermMonths: BigNumberish,
|
|
1613
|
-
validatorVersion: BigNumberish
|
|
1614
|
-
], [
|
|
1615
|
-
string
|
|
1616
|
-
], "nonpayable">;
|
|
1617
|
-
getFunction(nameOrSignature: "extendPosition"): TypedContractMethod<[
|
|
1618
|
-
positionId: BytesLike,
|
|
1619
|
-
selectedTerm: BigNumberish,
|
|
1620
|
-
quantumTimestamp: BigNumberish,
|
|
1621
|
-
btcPrice: BigNumberish,
|
|
1622
|
-
availableBTCBalance: BigNumberish,
|
|
1623
|
-
extensionValidatorSignature: BytesLike
|
|
1624
|
-
], [
|
|
1625
|
-
boolean
|
|
1626
|
-
], "nonpayable">;
|
|
1627
|
-
getFunction(nameOrSignature: "getExpiredLoanLiquidationThreshold"): TypedContractMethod<[positionId: BytesLike], [bigint], "view">;
|
|
1628
|
-
getFunction(nameOrSignature: "getMintMessageHashParameters"): TypedContractMethod<[], [string[]], "view">;
|
|
1629
|
-
getFunction(nameOrSignature: "getPositionById"): TypedContractMethod<[
|
|
1630
|
-
positionId: BytesLike
|
|
1631
|
-
], [
|
|
1632
|
-
IPositionManager.PositionStructOutput
|
|
1633
|
-
], "view">;
|
|
1634
|
-
getFunction(nameOrSignature: "getPositionByPkp"): TypedContractMethod<[pkpId: BytesLike], [string], "view">;
|
|
1635
|
-
getFunction(nameOrSignature: "getRoleAdmin"): TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
1636
|
-
getFunction(nameOrSignature: "grantRole"): TypedContractMethod<[
|
|
1637
|
-
role: BytesLike,
|
|
1638
|
-
account: AddressLike
|
|
1639
|
-
], [
|
|
1640
|
-
void
|
|
1641
|
-
], "nonpayable">;
|
|
1642
|
-
getFunction(nameOrSignature: "hasRole"): TypedContractMethod<[
|
|
1643
|
-
role: BytesLike,
|
|
1644
|
-
account: AddressLike
|
|
1645
|
-
], [
|
|
1646
|
-
boolean
|
|
1647
|
-
], "view">;
|
|
1648
|
-
getFunction(nameOrSignature: "initialize"): TypedContractMethod<[
|
|
1649
|
-
_core: AddressLike,
|
|
1650
|
-
_loanOps: AddressLike,
|
|
1651
|
-
_collateral: AddressLike,
|
|
1652
|
-
_liquidation: AddressLike,
|
|
1653
|
-
_termManager: AddressLike,
|
|
1654
|
-
_communityManager: AddressLike,
|
|
1655
|
-
_circuitBreaker: AddressLike,
|
|
1656
|
-
_adminModule: AddressLike,
|
|
1657
|
-
_views: AddressLike,
|
|
1658
|
-
_admin: AddressLike
|
|
1659
|
-
], [
|
|
1660
|
-
void
|
|
1661
|
-
], "nonpayable">;
|
|
1662
|
-
getFunction(nameOrSignature: "isExpiredLoanLiquidatable"): TypedContractMethod<[
|
|
1663
|
-
positionId: BytesLike,
|
|
1664
|
-
collateralValue: BigNumberish,
|
|
1665
|
-
debtAmount: BigNumberish
|
|
1666
|
-
], [
|
|
1667
|
-
boolean
|
|
1668
|
-
], "view">;
|
|
1669
|
-
getFunction(nameOrSignature: "isExtensionPending"): TypedContractMethod<[positionId: BytesLike], [boolean], "view">;
|
|
1670
|
-
getFunction(nameOrSignature: "liquidatePosition"): TypedContractMethod<[
|
|
1671
|
-
positionId: BytesLike,
|
|
1672
|
-
btcPrice: BigNumberish,
|
|
1673
|
-
quantumTimestamp: BigNumberish,
|
|
1674
|
-
liquidationValidatorSignature: BytesLike
|
|
1675
|
-
], [
|
|
1676
|
-
boolean
|
|
1677
|
-
], "nonpayable">;
|
|
1678
|
-
getFunction(nameOrSignature: "liquidation"): TypedContractMethod<[], [string], "view">;
|
|
1679
|
-
getFunction(nameOrSignature: "loanOps"): TypedContractMethod<[], [string], "view">;
|
|
1680
|
-
getFunction(nameOrSignature: "makePayment"): TypedContractMethod<[
|
|
1681
|
-
positionId: BytesLike,
|
|
1682
|
-
paymentAmount: BigNumberish,
|
|
1683
|
-
quantumTimestamp: BigNumberish,
|
|
1684
|
-
btcPrice: BigNumberish,
|
|
1685
|
-
paymentValidatorSignature: BytesLike
|
|
1686
|
-
], [
|
|
1687
|
-
boolean
|
|
1688
|
-
], "nonpayable">;
|
|
1689
|
-
getFunction(nameOrSignature: "mintUCD"): TypedContractMethod<[
|
|
1690
|
-
positionId: BytesLike,
|
|
1691
|
-
mintAmount: BigNumberish,
|
|
1692
|
-
mintFee: BigNumberish,
|
|
1693
|
-
newDebt: BigNumberish,
|
|
1694
|
-
newCollateral: BigNumberish,
|
|
1695
|
-
btcPrice: BigNumberish,
|
|
1696
|
-
authorizedSpendsHash: BytesLike,
|
|
1697
|
-
ucdDebtHash: BytesLike,
|
|
1698
|
-
contractHash: BytesLike,
|
|
1699
|
-
quantumTimestamp: BigNumberish,
|
|
1700
|
-
mintValidatorSignature: BytesLike
|
|
1701
|
-
], [
|
|
1702
|
-
boolean
|
|
1703
|
-
], "nonpayable">;
|
|
1704
|
-
getFunction(nameOrSignature: "paused"): TypedContractMethod<[], [boolean], "view">;
|
|
1705
|
-
getFunction(nameOrSignature: "pkpValidationRegistry"): TypedContractMethod<[], [string], "view">;
|
|
1706
|
-
getFunction(nameOrSignature: "proxiableUUID"): TypedContractMethod<[], [string], "view">;
|
|
1707
|
-
getFunction(nameOrSignature: "renounceRole"): TypedContractMethod<[
|
|
1708
|
-
role: BytesLike,
|
|
1709
|
-
callerConfirmation: AddressLike
|
|
1710
|
-
], [
|
|
1711
|
-
void
|
|
1712
|
-
], "nonpayable">;
|
|
1713
|
-
getFunction(nameOrSignature: "revealAndLiquidate"): TypedContractMethod<[
|
|
1714
|
-
positionId: BytesLike,
|
|
1715
|
-
quantumTimestamp: BigNumberish,
|
|
1716
|
-
btcPrice: BigNumberish,
|
|
1717
|
-
liquidationValidatorSignature: BytesLike,
|
|
1718
|
-
deadline: BigNumberish
|
|
1719
|
-
], [
|
|
1720
|
-
boolean
|
|
1721
|
-
], "nonpayable">;
|
|
1722
|
-
getFunction(nameOrSignature: "revokeRole"): TypedContractMethod<[
|
|
1723
|
-
role: BytesLike,
|
|
1724
|
-
account: AddressLike
|
|
1725
|
-
], [
|
|
1726
|
-
void
|
|
1727
|
-
], "nonpayable">;
|
|
1728
|
-
getFunction(nameOrSignature: "setAuthorizationRegistry"): TypedContractMethod<[registry: AddressLike], [void], "nonpayable">;
|
|
1729
|
-
getFunction(nameOrSignature: "setPKPValidationRegistry"): TypedContractMethod<[registry: AddressLike], [void], "nonpayable">;
|
|
1730
|
-
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
1731
|
-
getFunction(nameOrSignature: "termManager"): TypedContractMethod<[], [string], "view">;
|
|
1732
|
-
getFunction(nameOrSignature: "updateBalance"): TypedContractMethod<[
|
|
1733
|
-
positionId: BytesLike,
|
|
1734
|
-
collateralValue: BigNumberish,
|
|
1735
|
-
btcPrice: BigNumberish,
|
|
1736
|
-
quantumTimestamp: BigNumberish,
|
|
1737
|
-
signature: BytesLike
|
|
1738
|
-
], [
|
|
1739
|
-
void
|
|
1740
|
-
], "nonpayable">;
|
|
1741
|
-
getFunction(nameOrSignature: "updateDebtFromLoanOps"): TypedContractMethod<[
|
|
1742
|
-
positionId: BytesLike,
|
|
1743
|
-
newDebt: BigNumberish,
|
|
1744
|
-
termStartTimestamp: BigNumberish
|
|
1745
|
-
], [
|
|
1746
|
-
void
|
|
1747
|
-
], "nonpayable">;
|
|
1748
|
-
getFunction(nameOrSignature: "updateModules"): TypedContractMethod<[
|
|
1749
|
-
_core: AddressLike,
|
|
1750
|
-
_loanOps: AddressLike,
|
|
1751
|
-
_collateral: AddressLike,
|
|
1752
|
-
_liquidation: AddressLike,
|
|
1753
|
-
_termManager: AddressLike,
|
|
1754
|
-
_communityManager: AddressLike,
|
|
1755
|
-
_circuitBreaker: AddressLike
|
|
1756
|
-
], [
|
|
1757
|
-
void
|
|
1758
|
-
], "nonpayable">;
|
|
1759
|
-
getFunction(nameOrSignature: "updatePositionStatusFromLoanOps"): TypedContractMethod<[
|
|
1760
|
-
positionId: BytesLike,
|
|
1761
|
-
newStatus: BigNumberish
|
|
1762
|
-
], [
|
|
1763
|
-
void
|
|
1764
|
-
], "nonpayable">;
|
|
1765
|
-
getFunction(nameOrSignature: "upgradeToAndCall"): TypedContractMethod<[
|
|
1766
|
-
newImplementation: AddressLike,
|
|
1767
|
-
data: BytesLike
|
|
1768
|
-
], [
|
|
1769
|
-
void
|
|
1770
|
-
], "payable">;
|
|
1771
|
-
getFunction(nameOrSignature: "verifyAuthorization"): TypedContractMethod<[
|
|
1772
|
-
selector: BytesLike,
|
|
1773
|
-
messageHash: BytesLike,
|
|
1774
|
-
signature: BytesLike
|
|
1775
|
-
], [
|
|
1776
|
-
boolean
|
|
1777
|
-
], "view">;
|
|
1778
|
-
getFunction(nameOrSignature: "views"): TypedContractMethod<[], [string], "view">;
|
|
1779
|
-
getFunction(nameOrSignature: "withdrawBTC"): TypedContractMethod<[
|
|
1780
|
-
params: ICollateralManager.WithdrawalParamsStruct,
|
|
1781
|
-
withdrawalValidatorSignature: BytesLike
|
|
1782
|
-
], [
|
|
1783
|
-
boolean
|
|
1784
|
-
], "nonpayable">;
|
|
1785
|
-
getEvent(key: "BalanceConfirmed"): TypedContractEvent<BalanceConfirmedEvent.InputTuple, BalanceConfirmedEvent.OutputTuple, BalanceConfirmedEvent.OutputObject>;
|
|
1786
|
-
getEvent(key: "ExtensionPendingCleared"): TypedContractEvent<ExtensionPendingClearedEvent.InputTuple, ExtensionPendingClearedEvent.OutputTuple, ExtensionPendingClearedEvent.OutputObject>;
|
|
1787
|
-
getEvent(key: "Initialized"): TypedContractEvent<InitializedEvent$1.InputTuple, InitializedEvent$1.OutputTuple, InitializedEvent$1.OutputObject>;
|
|
1788
|
-
getEvent(key: "ModulesUpdatedBatch"): TypedContractEvent<ModulesUpdatedBatchEvent.InputTuple, ModulesUpdatedBatchEvent.OutputTuple, ModulesUpdatedBatchEvent.OutputObject>;
|
|
1789
|
-
getEvent(key: "PKPLogicValidated"): TypedContractEvent<PKPLogicValidatedEvent.InputTuple, PKPLogicValidatedEvent.OutputTuple, PKPLogicValidatedEvent.OutputObject>;
|
|
1790
|
-
getEvent(key: "PKPValidationRegistryUpdated"): TypedContractEvent<PKPValidationRegistryUpdatedEvent.InputTuple, PKPValidationRegistryUpdatedEvent.OutputTuple, PKPValidationRegistryUpdatedEvent.OutputObject>;
|
|
1791
|
-
getEvent(key: "PartialPaymentMade"): TypedContractEvent<PartialPaymentMadeEvent.InputTuple, PartialPaymentMadeEvent.OutputTuple, PartialPaymentMadeEvent.OutputObject>;
|
|
1792
|
-
getEvent(key: "Paused"): TypedContractEvent<PausedEvent$1.InputTuple, PausedEvent$1.OutputTuple, PausedEvent$1.OutputObject>;
|
|
1793
|
-
getEvent(key: "PositionClosed"): TypedContractEvent<PositionClosedEvent.InputTuple, PositionClosedEvent.OutputTuple, PositionClosedEvent.OutputObject>;
|
|
1794
|
-
getEvent(key: "PositionCreated"): TypedContractEvent<PositionCreatedEvent.InputTuple, PositionCreatedEvent.OutputTuple, PositionCreatedEvent.OutputObject>;
|
|
1795
|
-
getEvent(key: "PositionLiquidated"): TypedContractEvent<PositionLiquidatedEvent$1.InputTuple, PositionLiquidatedEvent$1.OutputTuple, PositionLiquidatedEvent$1.OutputObject>;
|
|
1796
|
-
getEvent(key: "PositionRenewed"): TypedContractEvent<PositionRenewedEvent.InputTuple, PositionRenewedEvent.OutputTuple, PositionRenewedEvent.OutputObject>;
|
|
1797
|
-
getEvent(key: "PositionRepaid"): TypedContractEvent<PositionRepaidEvent$1.InputTuple, PositionRepaidEvent$1.OutputTuple, PositionRepaidEvent$1.OutputObject>;
|
|
1798
|
-
getEvent(key: "PositionStatusUpdated"): TypedContractEvent<PositionStatusUpdatedEvent.InputTuple, PositionStatusUpdatedEvent.OutputTuple, PositionStatusUpdatedEvent.OutputObject>;
|
|
1799
|
-
getEvent(key: "PositionUpdated"): TypedContractEvent<PositionUpdatedEvent$1.InputTuple, PositionUpdatedEvent$1.OutputTuple, PositionUpdatedEvent$1.OutputObject>;
|
|
1800
|
-
getEvent(key: "RoleAdminChanged"): TypedContractEvent<RoleAdminChangedEvent$1.InputTuple, RoleAdminChangedEvent$1.OutputTuple, RoleAdminChangedEvent$1.OutputObject>;
|
|
1801
|
-
getEvent(key: "RoleGranted"): TypedContractEvent<RoleGrantedEvent$1.InputTuple, RoleGrantedEvent$1.OutputTuple, RoleGrantedEvent$1.OutputObject>;
|
|
1802
|
-
getEvent(key: "RoleRevoked"): TypedContractEvent<RoleRevokedEvent$1.InputTuple, RoleRevokedEvent$1.OutputTuple, RoleRevokedEvent$1.OutputObject>;
|
|
1803
|
-
getEvent(key: "UCDMinted"): TypedContractEvent<UCDMintedEvent$1.InputTuple, UCDMintedEvent$1.OutputTuple, UCDMintedEvent$1.OutputObject>;
|
|
1804
|
-
getEvent(key: "Unpaused"): TypedContractEvent<UnpausedEvent$1.InputTuple, UnpausedEvent$1.OutputTuple, UnpausedEvent$1.OutputObject>;
|
|
1805
|
-
getEvent(key: "Upgraded"): TypedContractEvent<UpgradedEvent$1.InputTuple, UpgradedEvent$1.OutputTuple, UpgradedEvent$1.OutputObject>;
|
|
1806
|
-
filters: {
|
|
1807
|
-
"BalanceConfirmed(bytes32,uint256,uint256,uint256)": TypedContractEvent<BalanceConfirmedEvent.InputTuple, BalanceConfirmedEvent.OutputTuple, BalanceConfirmedEvent.OutputObject>;
|
|
1808
|
-
BalanceConfirmed: TypedContractEvent<BalanceConfirmedEvent.InputTuple, BalanceConfirmedEvent.OutputTuple, BalanceConfirmedEvent.OutputObject>;
|
|
1809
|
-
"ExtensionPendingCleared(bytes32,address)": TypedContractEvent<ExtensionPendingClearedEvent.InputTuple, ExtensionPendingClearedEvent.OutputTuple, ExtensionPendingClearedEvent.OutputObject>;
|
|
1810
|
-
ExtensionPendingCleared: TypedContractEvent<ExtensionPendingClearedEvent.InputTuple, ExtensionPendingClearedEvent.OutputTuple, ExtensionPendingClearedEvent.OutputObject>;
|
|
1811
|
-
"Initialized(uint64)": TypedContractEvent<InitializedEvent$1.InputTuple, InitializedEvent$1.OutputTuple, InitializedEvent$1.OutputObject>;
|
|
1812
|
-
Initialized: TypedContractEvent<InitializedEvent$1.InputTuple, InitializedEvent$1.OutputTuple, InitializedEvent$1.OutputObject>;
|
|
1813
|
-
"ModulesUpdatedBatch(address,uint256)": TypedContractEvent<ModulesUpdatedBatchEvent.InputTuple, ModulesUpdatedBatchEvent.OutputTuple, ModulesUpdatedBatchEvent.OutputObject>;
|
|
1814
|
-
ModulesUpdatedBatch: TypedContractEvent<ModulesUpdatedBatchEvent.InputTuple, ModulesUpdatedBatchEvent.OutputTuple, ModulesUpdatedBatchEvent.OutputObject>;
|
|
1815
|
-
"PKPLogicValidated(bytes32,bool)": TypedContractEvent<PKPLogicValidatedEvent.InputTuple, PKPLogicValidatedEvent.OutputTuple, PKPLogicValidatedEvent.OutputObject>;
|
|
1816
|
-
PKPLogicValidated: TypedContractEvent<PKPLogicValidatedEvent.InputTuple, PKPLogicValidatedEvent.OutputTuple, PKPLogicValidatedEvent.OutputObject>;
|
|
1817
|
-
"PKPValidationRegistryUpdated(address,address,address)": TypedContractEvent<PKPValidationRegistryUpdatedEvent.InputTuple, PKPValidationRegistryUpdatedEvent.OutputTuple, PKPValidationRegistryUpdatedEvent.OutputObject>;
|
|
1818
|
-
PKPValidationRegistryUpdated: TypedContractEvent<PKPValidationRegistryUpdatedEvent.InputTuple, PKPValidationRegistryUpdatedEvent.OutputTuple, PKPValidationRegistryUpdatedEvent.OutputObject>;
|
|
1819
|
-
"PartialPaymentMade(bytes32,address,uint256,uint256)": TypedContractEvent<PartialPaymentMadeEvent.InputTuple, PartialPaymentMadeEvent.OutputTuple, PartialPaymentMadeEvent.OutputObject>;
|
|
1820
|
-
PartialPaymentMade: TypedContractEvent<PartialPaymentMadeEvent.InputTuple, PartialPaymentMadeEvent.OutputTuple, PartialPaymentMadeEvent.OutputObject>;
|
|
1821
|
-
"Paused(address)": TypedContractEvent<PausedEvent$1.InputTuple, PausedEvent$1.OutputTuple, PausedEvent$1.OutputObject>;
|
|
1822
|
-
Paused: TypedContractEvent<PausedEvent$1.InputTuple, PausedEvent$1.OutputTuple, PausedEvent$1.OutputObject>;
|
|
1823
|
-
"PositionClosed(bytes32,address,uint256,string,uint256)": TypedContractEvent<PositionClosedEvent.InputTuple, PositionClosedEvent.OutputTuple, PositionClosedEvent.OutputObject>;
|
|
1824
|
-
PositionClosed: TypedContractEvent<PositionClosedEvent.InputTuple, PositionClosedEvent.OutputTuple, PositionClosedEvent.OutputObject>;
|
|
1825
|
-
"PositionCreated(bytes32,bytes32,address,uint256,uint256,uint256)": TypedContractEvent<PositionCreatedEvent.InputTuple, PositionCreatedEvent.OutputTuple, PositionCreatedEvent.OutputObject>;
|
|
1826
|
-
PositionCreated: TypedContractEvent<PositionCreatedEvent.InputTuple, PositionCreatedEvent.OutputTuple, PositionCreatedEvent.OutputObject>;
|
|
1827
|
-
"PositionLiquidated(bytes32,address,uint256,uint256)": TypedContractEvent<PositionLiquidatedEvent$1.InputTuple, PositionLiquidatedEvent$1.OutputTuple, PositionLiquidatedEvent$1.OutputObject>;
|
|
1828
|
-
PositionLiquidated: TypedContractEvent<PositionLiquidatedEvent$1.InputTuple, PositionLiquidatedEvent$1.OutputTuple, PositionLiquidatedEvent$1.OutputObject>;
|
|
1829
|
-
"PositionRenewed(bytes32,address,uint256,uint256,uint256)": TypedContractEvent<PositionRenewedEvent.InputTuple, PositionRenewedEvent.OutputTuple, PositionRenewedEvent.OutputObject>;
|
|
1830
|
-
PositionRenewed: TypedContractEvent<PositionRenewedEvent.InputTuple, PositionRenewedEvent.OutputTuple, PositionRenewedEvent.OutputObject>;
|
|
1831
|
-
"PositionRepaid(bytes32,address,uint256,uint256)": TypedContractEvent<PositionRepaidEvent$1.InputTuple, PositionRepaidEvent$1.OutputTuple, PositionRepaidEvent$1.OutputObject>;
|
|
1832
|
-
PositionRepaid: TypedContractEvent<PositionRepaidEvent$1.InputTuple, PositionRepaidEvent$1.OutputTuple, PositionRepaidEvent$1.OutputObject>;
|
|
1833
|
-
"PositionStatusUpdated(bytes32,uint8,uint8)": TypedContractEvent<PositionStatusUpdatedEvent.InputTuple, PositionStatusUpdatedEvent.OutputTuple, PositionStatusUpdatedEvent.OutputObject>;
|
|
1834
|
-
PositionStatusUpdated: TypedContractEvent<PositionStatusUpdatedEvent.InputTuple, PositionStatusUpdatedEvent.OutputTuple, PositionStatusUpdatedEvent.OutputObject>;
|
|
1835
|
-
"PositionUpdated(bytes32,uint256,uint256)": TypedContractEvent<PositionUpdatedEvent$1.InputTuple, PositionUpdatedEvent$1.OutputTuple, PositionUpdatedEvent$1.OutputObject>;
|
|
1836
|
-
PositionUpdated: TypedContractEvent<PositionUpdatedEvent$1.InputTuple, PositionUpdatedEvent$1.OutputTuple, PositionUpdatedEvent$1.OutputObject>;
|
|
1837
|
-
"RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent<RoleAdminChangedEvent$1.InputTuple, RoleAdminChangedEvent$1.OutputTuple, RoleAdminChangedEvent$1.OutputObject>;
|
|
1838
|
-
RoleAdminChanged: TypedContractEvent<RoleAdminChangedEvent$1.InputTuple, RoleAdminChangedEvent$1.OutputTuple, RoleAdminChangedEvent$1.OutputObject>;
|
|
1839
|
-
"RoleGranted(bytes32,address,address)": TypedContractEvent<RoleGrantedEvent$1.InputTuple, RoleGrantedEvent$1.OutputTuple, RoleGrantedEvent$1.OutputObject>;
|
|
1840
|
-
RoleGranted: TypedContractEvent<RoleGrantedEvent$1.InputTuple, RoleGrantedEvent$1.OutputTuple, RoleGrantedEvent$1.OutputObject>;
|
|
1841
|
-
"RoleRevoked(bytes32,address,address)": TypedContractEvent<RoleRevokedEvent$1.InputTuple, RoleRevokedEvent$1.OutputTuple, RoleRevokedEvent$1.OutputObject>;
|
|
1842
|
-
RoleRevoked: TypedContractEvent<RoleRevokedEvent$1.InputTuple, RoleRevokedEvent$1.OutputTuple, RoleRevokedEvent$1.OutputObject>;
|
|
1843
|
-
"UCDMinted(bytes32,uint256,bytes)": TypedContractEvent<UCDMintedEvent$1.InputTuple, UCDMintedEvent$1.OutputTuple, UCDMintedEvent$1.OutputObject>;
|
|
1844
|
-
UCDMinted: TypedContractEvent<UCDMintedEvent$1.InputTuple, UCDMintedEvent$1.OutputTuple, UCDMintedEvent$1.OutputObject>;
|
|
1845
|
-
"Unpaused(address)": TypedContractEvent<UnpausedEvent$1.InputTuple, UnpausedEvent$1.OutputTuple, UnpausedEvent$1.OutputObject>;
|
|
1846
|
-
Unpaused: TypedContractEvent<UnpausedEvent$1.InputTuple, UnpausedEvent$1.OutputTuple, UnpausedEvent$1.OutputObject>;
|
|
1847
|
-
"Upgraded(address)": TypedContractEvent<UpgradedEvent$1.InputTuple, UpgradedEvent$1.OutputTuple, UpgradedEvent$1.OutputObject>;
|
|
1848
|
-
Upgraded: TypedContractEvent<UpgradedEvent$1.InputTuple, UpgradedEvent$1.OutputTuple, UpgradedEvent$1.OutputObject>;
|
|
1849
|
-
};
|
|
1850
|
-
}
|
|
1851
|
-
|
|
1852
|
-
interface ICommunityManagerInterface extends Interface {
|
|
1853
|
-
getFunction(nameOrSignature: "calculateCommunityMintingFee" | "canUpdateFeeRate" | "distributeCommunityFee" | "executeGvnrUpdate" | "getCommunityMintingFeeRate" | "getGvnrTokenAddress" | "getGvnrTokenRequirement" | "pauseFeeRateUpdates" | "proposeGvnrUpdate" | "signGvnrUpdate" | "supportsInterface" | "unpauseFeeRateUpdates" | "updateCommunityMintingFeeRate" | "updateDependencies" | "validateCommunityEligibility"): FunctionFragment;
|
|
1854
|
-
getEvent(nameOrSignatureOrTopic: "CommunityFeeDistributed" | "CommunityFeeRateUpdated" | "ContractUpgraded" | "DependenciesUpdated" | "FeeRateUpdatesPaused" | "FeeRateUpdatesUnpaused" | "GvnrUpdateExecuted" | "GvnrUpdateProposed" | "GvnrUpdateSigned"): EventFragment;
|
|
1855
|
-
encodeFunctionData(functionFragment: "calculateCommunityMintingFee", values: [BytesLike]): string;
|
|
1856
|
-
encodeFunctionData(functionFragment: "canUpdateFeeRate", values?: undefined): string;
|
|
1857
|
-
encodeFunctionData(functionFragment: "distributeCommunityFee", values: [BytesLike, AddressLike, BigNumberish]): string;
|
|
1858
|
-
encodeFunctionData(functionFragment: "executeGvnrUpdate", values: [BytesLike, AddressLike, BigNumberish]): string;
|
|
1859
|
-
encodeFunctionData(functionFragment: "getCommunityMintingFeeRate", values?: undefined): string;
|
|
1860
|
-
encodeFunctionData(functionFragment: "getGvnrTokenAddress", values?: undefined): string;
|
|
1861
|
-
encodeFunctionData(functionFragment: "getGvnrTokenRequirement", values?: undefined): string;
|
|
1862
|
-
encodeFunctionData(functionFragment: "pauseFeeRateUpdates", values?: undefined): string;
|
|
1863
|
-
encodeFunctionData(functionFragment: "proposeGvnrUpdate", values: [AddressLike, BigNumberish]): string;
|
|
1864
|
-
encodeFunctionData(functionFragment: "signGvnrUpdate", values: [BytesLike]): string;
|
|
1865
|
-
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
1866
|
-
encodeFunctionData(functionFragment: "unpauseFeeRateUpdates", values?: undefined): string;
|
|
1867
|
-
encodeFunctionData(functionFragment: "updateCommunityMintingFeeRate", values: [BigNumberish]): string;
|
|
1868
|
-
encodeFunctionData(functionFragment: "updateDependencies", values: [AddressLike, AddressLike, AddressLike]): string;
|
|
1869
|
-
encodeFunctionData(functionFragment: "validateCommunityEligibility", values: [AddressLike]): string;
|
|
1870
|
-
decodeFunctionResult(functionFragment: "calculateCommunityMintingFee", data: BytesLike): Result$2;
|
|
1871
|
-
decodeFunctionResult(functionFragment: "canUpdateFeeRate", data: BytesLike): Result$2;
|
|
1872
|
-
decodeFunctionResult(functionFragment: "distributeCommunityFee", data: BytesLike): Result$2;
|
|
1873
|
-
decodeFunctionResult(functionFragment: "executeGvnrUpdate", data: BytesLike): Result$2;
|
|
1874
|
-
decodeFunctionResult(functionFragment: "getCommunityMintingFeeRate", data: BytesLike): Result$2;
|
|
1875
|
-
decodeFunctionResult(functionFragment: "getGvnrTokenAddress", data: BytesLike): Result$2;
|
|
1876
|
-
decodeFunctionResult(functionFragment: "getGvnrTokenRequirement", data: BytesLike): Result$2;
|
|
1877
|
-
decodeFunctionResult(functionFragment: "pauseFeeRateUpdates", data: BytesLike): Result$2;
|
|
1878
|
-
decodeFunctionResult(functionFragment: "proposeGvnrUpdate", data: BytesLike): Result$2;
|
|
1879
|
-
decodeFunctionResult(functionFragment: "signGvnrUpdate", data: BytesLike): Result$2;
|
|
1880
|
-
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result$2;
|
|
1881
|
-
decodeFunctionResult(functionFragment: "unpauseFeeRateUpdates", data: BytesLike): Result$2;
|
|
1882
|
-
decodeFunctionResult(functionFragment: "updateCommunityMintingFeeRate", data: BytesLike): Result$2;
|
|
1883
|
-
decodeFunctionResult(functionFragment: "updateDependencies", data: BytesLike): Result$2;
|
|
1884
|
-
decodeFunctionResult(functionFragment: "validateCommunityEligibility", data: BytesLike): Result$2;
|
|
1885
|
-
}
|
|
1886
|
-
declare namespace CommunityFeeDistributedEvent {
|
|
1887
|
-
type InputTuple = [
|
|
1888
|
-
positionId: BytesLike,
|
|
1889
|
-
communityProvider: AddressLike,
|
|
1890
|
-
serviceType: BigNumberish,
|
|
1891
|
-
feeAmount: BigNumberish,
|
|
1892
|
-
timestamp: BigNumberish
|
|
1893
|
-
];
|
|
1894
|
-
type OutputTuple = [
|
|
1895
|
-
positionId: string,
|
|
1896
|
-
communityProvider: string,
|
|
1897
|
-
serviceType: bigint,
|
|
1898
|
-
feeAmount: bigint,
|
|
1899
|
-
timestamp: bigint
|
|
1900
|
-
];
|
|
1901
|
-
interface OutputObject {
|
|
1902
|
-
positionId: string;
|
|
1903
|
-
communityProvider: string;
|
|
1904
|
-
serviceType: bigint;
|
|
1905
|
-
feeAmount: bigint;
|
|
1906
|
-
timestamp: bigint;
|
|
1907
|
-
}
|
|
1908
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1909
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1910
|
-
type Log = TypedEventLog<Event>;
|
|
1911
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1912
|
-
}
|
|
1913
|
-
declare namespace CommunityFeeRateUpdatedEvent {
|
|
1914
|
-
type InputTuple = [
|
|
1915
|
-
oldRate: BigNumberish,
|
|
1916
|
-
newRate: BigNumberish,
|
|
1917
|
-
admin: AddressLike,
|
|
1918
|
-
timestamp: BigNumberish
|
|
1919
|
-
];
|
|
1920
|
-
type OutputTuple = [
|
|
1921
|
-
oldRate: bigint,
|
|
1922
|
-
newRate: bigint,
|
|
1923
|
-
admin: string,
|
|
1924
|
-
timestamp: bigint
|
|
1925
|
-
];
|
|
1926
|
-
interface OutputObject {
|
|
1927
|
-
oldRate: bigint;
|
|
1928
|
-
newRate: bigint;
|
|
1929
|
-
admin: string;
|
|
1930
|
-
timestamp: bigint;
|
|
1931
|
-
}
|
|
1932
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1933
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1934
|
-
type Log = TypedEventLog<Event>;
|
|
1935
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1936
|
-
}
|
|
1937
|
-
declare namespace ContractUpgradedEvent$1 {
|
|
1938
|
-
type InputTuple = [
|
|
1939
|
-
oldImplementation: AddressLike,
|
|
1940
|
-
newImplementation: AddressLike,
|
|
1941
|
-
version: string,
|
|
1942
|
-
timestamp: BigNumberish
|
|
1943
|
-
];
|
|
1944
|
-
type OutputTuple = [
|
|
1945
|
-
oldImplementation: string,
|
|
1946
|
-
newImplementation: string,
|
|
1947
|
-
version: string,
|
|
1948
|
-
timestamp: bigint
|
|
1949
|
-
];
|
|
1950
|
-
interface OutputObject {
|
|
1951
|
-
oldImplementation: string;
|
|
1952
|
-
newImplementation: string;
|
|
1953
|
-
version: string;
|
|
1954
|
-
timestamp: bigint;
|
|
1955
|
-
}
|
|
1956
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1957
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1958
|
-
type Log = TypedEventLog<Event>;
|
|
1959
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1960
|
-
}
|
|
1961
|
-
declare namespace DependenciesUpdatedEvent$1 {
|
|
1962
|
-
type InputTuple = [
|
|
1963
|
-
core: AddressLike,
|
|
1964
|
-
ucdController: AddressLike,
|
|
1965
|
-
termManager: AddressLike
|
|
1966
|
-
];
|
|
1967
|
-
type OutputTuple = [
|
|
1968
|
-
core: string,
|
|
1969
|
-
ucdController: string,
|
|
1970
|
-
termManager: string
|
|
1971
|
-
];
|
|
1972
|
-
interface OutputObject {
|
|
1973
|
-
core: string;
|
|
1974
|
-
ucdController: string;
|
|
1975
|
-
termManager: string;
|
|
1976
|
-
}
|
|
1977
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1978
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1979
|
-
type Log = TypedEventLog<Event>;
|
|
1980
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1981
|
-
}
|
|
1982
|
-
declare namespace FeeRateUpdatesPausedEvent {
|
|
1983
|
-
type InputTuple = [admin: AddressLike, timestamp: BigNumberish];
|
|
1984
|
-
type OutputTuple = [admin: string, timestamp: bigint];
|
|
1985
|
-
interface OutputObject {
|
|
1986
|
-
admin: string;
|
|
1987
|
-
timestamp: bigint;
|
|
1988
|
-
}
|
|
1989
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
1990
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
1991
|
-
type Log = TypedEventLog<Event>;
|
|
1992
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
1993
|
-
}
|
|
1994
|
-
declare namespace FeeRateUpdatesUnpausedEvent {
|
|
1995
|
-
type InputTuple = [admin: AddressLike, timestamp: BigNumberish];
|
|
1996
|
-
type OutputTuple = [admin: string, timestamp: bigint];
|
|
1997
|
-
interface OutputObject {
|
|
1998
|
-
admin: string;
|
|
1999
|
-
timestamp: bigint;
|
|
2000
|
-
}
|
|
2001
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2002
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2003
|
-
type Log = TypedEventLog<Event>;
|
|
2004
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
2005
|
-
}
|
|
2006
|
-
declare namespace GvnrUpdateExecutedEvent {
|
|
2007
|
-
type InputTuple = [
|
|
2008
|
-
oldTokenAddress: AddressLike,
|
|
2009
|
-
newTokenAddress: AddressLike,
|
|
2010
|
-
oldTokenRequirement: BigNumberish,
|
|
2011
|
-
newTokenRequirement: BigNumberish
|
|
2012
|
-
];
|
|
2013
|
-
type OutputTuple = [
|
|
2014
|
-
oldTokenAddress: string,
|
|
2015
|
-
newTokenAddress: string,
|
|
2016
|
-
oldTokenRequirement: bigint,
|
|
2017
|
-
newTokenRequirement: bigint
|
|
2018
|
-
];
|
|
2019
|
-
interface OutputObject {
|
|
2020
|
-
oldTokenAddress: string;
|
|
2021
|
-
newTokenAddress: string;
|
|
2022
|
-
oldTokenRequirement: bigint;
|
|
2023
|
-
newTokenRequirement: bigint;
|
|
2024
|
-
}
|
|
2025
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2026
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2027
|
-
type Log = TypedEventLog<Event>;
|
|
2028
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
2029
|
-
}
|
|
2030
|
-
declare namespace GvnrUpdateProposedEvent {
|
|
2031
|
-
type InputTuple = [
|
|
2032
|
-
proposalHash: BytesLike,
|
|
2033
|
-
tokenAddress: AddressLike,
|
|
2034
|
-
tokenRequirement: BigNumberish,
|
|
2035
|
-
proposer: AddressLike
|
|
2036
|
-
];
|
|
2037
|
-
type OutputTuple = [
|
|
2038
|
-
proposalHash: string,
|
|
2039
|
-
tokenAddress: string,
|
|
2040
|
-
tokenRequirement: bigint,
|
|
2041
|
-
proposer: string
|
|
2042
|
-
];
|
|
2043
|
-
interface OutputObject {
|
|
2044
|
-
proposalHash: string;
|
|
2045
|
-
tokenAddress: string;
|
|
2046
|
-
tokenRequirement: bigint;
|
|
2047
|
-
proposer: string;
|
|
2048
|
-
}
|
|
2049
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2050
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2051
|
-
type Log = TypedEventLog<Event>;
|
|
2052
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
2053
|
-
}
|
|
2054
|
-
declare namespace GvnrUpdateSignedEvent {
|
|
2055
|
-
type InputTuple = [
|
|
2056
|
-
proposalHash: BytesLike,
|
|
2057
|
-
signer: AddressLike,
|
|
2058
|
-
totalSignatures: BigNumberish
|
|
2059
|
-
];
|
|
2060
|
-
type OutputTuple = [
|
|
2061
|
-
proposalHash: string,
|
|
2062
|
-
signer: string,
|
|
2063
|
-
totalSignatures: bigint
|
|
2064
|
-
];
|
|
2065
|
-
interface OutputObject {
|
|
2066
|
-
proposalHash: string;
|
|
2067
|
-
signer: string;
|
|
2068
|
-
totalSignatures: bigint;
|
|
2069
|
-
}
|
|
2070
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2071
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2072
|
-
type Log = TypedEventLog<Event>;
|
|
2073
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
2074
|
-
}
|
|
2075
|
-
interface ICommunityManager extends BaseContract {
|
|
2076
|
-
connect(runner?: ContractRunner | null): ICommunityManager;
|
|
2077
|
-
waitForDeployment(): Promise<this>;
|
|
2078
|
-
interface: ICommunityManagerInterface;
|
|
2079
|
-
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
2080
|
-
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
2081
|
-
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
2082
|
-
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
2083
|
-
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
2084
|
-
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
2085
|
-
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
2086
|
-
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
2087
|
-
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
2088
|
-
calculateCommunityMintingFee: TypedContractMethod<[
|
|
2089
|
-
positionId: BytesLike
|
|
2090
|
-
], [
|
|
2091
|
-
bigint
|
|
2092
|
-
], "view">;
|
|
2093
|
-
canUpdateFeeRate: TypedContractMethod<[], [boolean], "view">;
|
|
2094
|
-
distributeCommunityFee: TypedContractMethod<[
|
|
2095
|
-
positionId: BytesLike,
|
|
2096
|
-
communityProvider: AddressLike,
|
|
2097
|
-
serviceType: BigNumberish
|
|
2098
|
-
], [
|
|
2099
|
-
boolean
|
|
2100
|
-
], "nonpayable">;
|
|
2101
|
-
executeGvnrUpdate: TypedContractMethod<[
|
|
2102
|
-
proposalHash: BytesLike,
|
|
2103
|
-
newGvnrTokenAddress: AddressLike,
|
|
2104
|
-
newGvnrTokenRequirement: BigNumberish
|
|
2105
|
-
], [
|
|
2106
|
-
void
|
|
2107
|
-
], "nonpayable">;
|
|
2108
|
-
getCommunityMintingFeeRate: TypedContractMethod<[], [bigint], "view">;
|
|
2109
|
-
getGvnrTokenAddress: TypedContractMethod<[], [string], "view">;
|
|
2110
|
-
getGvnrTokenRequirement: TypedContractMethod<[], [bigint], "view">;
|
|
2111
|
-
pauseFeeRateUpdates: TypedContractMethod<[], [void], "nonpayable">;
|
|
2112
|
-
proposeGvnrUpdate: TypedContractMethod<[
|
|
2113
|
-
newGvnrTokenAddress: AddressLike,
|
|
2114
|
-
newGvnrTokenRequirement: BigNumberish
|
|
2115
|
-
], [
|
|
2116
|
-
void
|
|
2117
|
-
], "nonpayable">;
|
|
2118
|
-
signGvnrUpdate: TypedContractMethod<[
|
|
2119
|
-
proposalHash: BytesLike
|
|
2120
|
-
], [
|
|
2121
|
-
void
|
|
2122
|
-
], "nonpayable">;
|
|
2123
|
-
supportsInterface: TypedContractMethod<[
|
|
2124
|
-
interfaceId: BytesLike
|
|
2125
|
-
], [
|
|
2126
|
-
boolean
|
|
2127
|
-
], "view">;
|
|
2128
|
-
unpauseFeeRateUpdates: TypedContractMethod<[], [void], "nonpayable">;
|
|
2129
|
-
updateCommunityMintingFeeRate: TypedContractMethod<[
|
|
2130
|
-
newRate: BigNumberish
|
|
2131
|
-
], [
|
|
2132
|
-
void
|
|
2133
|
-
], "nonpayable">;
|
|
2134
|
-
updateDependencies: TypedContractMethod<[
|
|
2135
|
-
newCore: AddressLike,
|
|
2136
|
-
newUcdController: AddressLike,
|
|
2137
|
-
newTermManager: AddressLike
|
|
2138
|
-
], [
|
|
2139
|
-
void
|
|
2140
|
-
], "nonpayable">;
|
|
2141
|
-
validateCommunityEligibility: TypedContractMethod<[
|
|
2142
|
-
user: AddressLike
|
|
2143
|
-
], [
|
|
2144
|
-
boolean
|
|
2145
|
-
], "view">;
|
|
2146
|
-
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
2147
|
-
getFunction(nameOrSignature: "calculateCommunityMintingFee"): TypedContractMethod<[positionId: BytesLike], [bigint], "view">;
|
|
2148
|
-
getFunction(nameOrSignature: "canUpdateFeeRate"): TypedContractMethod<[], [boolean], "view">;
|
|
2149
|
-
getFunction(nameOrSignature: "distributeCommunityFee"): TypedContractMethod<[
|
|
2150
|
-
positionId: BytesLike,
|
|
2151
|
-
communityProvider: AddressLike,
|
|
2152
|
-
serviceType: BigNumberish
|
|
2153
|
-
], [
|
|
2154
|
-
boolean
|
|
2155
|
-
], "nonpayable">;
|
|
2156
|
-
getFunction(nameOrSignature: "executeGvnrUpdate"): TypedContractMethod<[
|
|
2157
|
-
proposalHash: BytesLike,
|
|
2158
|
-
newGvnrTokenAddress: AddressLike,
|
|
2159
|
-
newGvnrTokenRequirement: BigNumberish
|
|
2160
|
-
], [
|
|
2161
|
-
void
|
|
2162
|
-
], "nonpayable">;
|
|
2163
|
-
getFunction(nameOrSignature: "getCommunityMintingFeeRate"): TypedContractMethod<[], [bigint], "view">;
|
|
2164
|
-
getFunction(nameOrSignature: "getGvnrTokenAddress"): TypedContractMethod<[], [string], "view">;
|
|
2165
|
-
getFunction(nameOrSignature: "getGvnrTokenRequirement"): TypedContractMethod<[], [bigint], "view">;
|
|
2166
|
-
getFunction(nameOrSignature: "pauseFeeRateUpdates"): TypedContractMethod<[], [void], "nonpayable">;
|
|
2167
|
-
getFunction(nameOrSignature: "proposeGvnrUpdate"): TypedContractMethod<[
|
|
2168
|
-
newGvnrTokenAddress: AddressLike,
|
|
2169
|
-
newGvnrTokenRequirement: BigNumberish
|
|
2170
|
-
], [
|
|
2171
|
-
void
|
|
2172
|
-
], "nonpayable">;
|
|
2173
|
-
getFunction(nameOrSignature: "signGvnrUpdate"): TypedContractMethod<[proposalHash: BytesLike], [void], "nonpayable">;
|
|
2174
|
-
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
2175
|
-
getFunction(nameOrSignature: "unpauseFeeRateUpdates"): TypedContractMethod<[], [void], "nonpayable">;
|
|
2176
|
-
getFunction(nameOrSignature: "updateCommunityMintingFeeRate"): TypedContractMethod<[newRate: BigNumberish], [void], "nonpayable">;
|
|
2177
|
-
getFunction(nameOrSignature: "updateDependencies"): TypedContractMethod<[
|
|
2178
|
-
newCore: AddressLike,
|
|
2179
|
-
newUcdController: AddressLike,
|
|
2180
|
-
newTermManager: AddressLike
|
|
2181
|
-
], [
|
|
2182
|
-
void
|
|
2183
|
-
], "nonpayable">;
|
|
2184
|
-
getFunction(nameOrSignature: "validateCommunityEligibility"): TypedContractMethod<[user: AddressLike], [boolean], "view">;
|
|
2185
|
-
getEvent(key: "CommunityFeeDistributed"): TypedContractEvent<CommunityFeeDistributedEvent.InputTuple, CommunityFeeDistributedEvent.OutputTuple, CommunityFeeDistributedEvent.OutputObject>;
|
|
2186
|
-
getEvent(key: "CommunityFeeRateUpdated"): TypedContractEvent<CommunityFeeRateUpdatedEvent.InputTuple, CommunityFeeRateUpdatedEvent.OutputTuple, CommunityFeeRateUpdatedEvent.OutputObject>;
|
|
2187
|
-
getEvent(key: "ContractUpgraded"): TypedContractEvent<ContractUpgradedEvent$1.InputTuple, ContractUpgradedEvent$1.OutputTuple, ContractUpgradedEvent$1.OutputObject>;
|
|
2188
|
-
getEvent(key: "DependenciesUpdated"): TypedContractEvent<DependenciesUpdatedEvent$1.InputTuple, DependenciesUpdatedEvent$1.OutputTuple, DependenciesUpdatedEvent$1.OutputObject>;
|
|
2189
|
-
getEvent(key: "FeeRateUpdatesPaused"): TypedContractEvent<FeeRateUpdatesPausedEvent.InputTuple, FeeRateUpdatesPausedEvent.OutputTuple, FeeRateUpdatesPausedEvent.OutputObject>;
|
|
2190
|
-
getEvent(key: "FeeRateUpdatesUnpaused"): TypedContractEvent<FeeRateUpdatesUnpausedEvent.InputTuple, FeeRateUpdatesUnpausedEvent.OutputTuple, FeeRateUpdatesUnpausedEvent.OutputObject>;
|
|
2191
|
-
getEvent(key: "GvnrUpdateExecuted"): TypedContractEvent<GvnrUpdateExecutedEvent.InputTuple, GvnrUpdateExecutedEvent.OutputTuple, GvnrUpdateExecutedEvent.OutputObject>;
|
|
2192
|
-
getEvent(key: "GvnrUpdateProposed"): TypedContractEvent<GvnrUpdateProposedEvent.InputTuple, GvnrUpdateProposedEvent.OutputTuple, GvnrUpdateProposedEvent.OutputObject>;
|
|
2193
|
-
getEvent(key: "GvnrUpdateSigned"): TypedContractEvent<GvnrUpdateSignedEvent.InputTuple, GvnrUpdateSignedEvent.OutputTuple, GvnrUpdateSignedEvent.OutputObject>;
|
|
2194
|
-
filters: {
|
|
2195
|
-
"CommunityFeeDistributed(bytes32,address,uint8,uint256,uint256)": TypedContractEvent<CommunityFeeDistributedEvent.InputTuple, CommunityFeeDistributedEvent.OutputTuple, CommunityFeeDistributedEvent.OutputObject>;
|
|
2196
|
-
CommunityFeeDistributed: TypedContractEvent<CommunityFeeDistributedEvent.InputTuple, CommunityFeeDistributedEvent.OutputTuple, CommunityFeeDistributedEvent.OutputObject>;
|
|
2197
|
-
"CommunityFeeRateUpdated(uint256,uint256,address,uint256)": TypedContractEvent<CommunityFeeRateUpdatedEvent.InputTuple, CommunityFeeRateUpdatedEvent.OutputTuple, CommunityFeeRateUpdatedEvent.OutputObject>;
|
|
2198
|
-
CommunityFeeRateUpdated: TypedContractEvent<CommunityFeeRateUpdatedEvent.InputTuple, CommunityFeeRateUpdatedEvent.OutputTuple, CommunityFeeRateUpdatedEvent.OutputObject>;
|
|
2199
|
-
"ContractUpgraded(address,address,string,uint256)": TypedContractEvent<ContractUpgradedEvent$1.InputTuple, ContractUpgradedEvent$1.OutputTuple, ContractUpgradedEvent$1.OutputObject>;
|
|
2200
|
-
ContractUpgraded: TypedContractEvent<ContractUpgradedEvent$1.InputTuple, ContractUpgradedEvent$1.OutputTuple, ContractUpgradedEvent$1.OutputObject>;
|
|
2201
|
-
"DependenciesUpdated(address,address,address)": TypedContractEvent<DependenciesUpdatedEvent$1.InputTuple, DependenciesUpdatedEvent$1.OutputTuple, DependenciesUpdatedEvent$1.OutputObject>;
|
|
2202
|
-
DependenciesUpdated: TypedContractEvent<DependenciesUpdatedEvent$1.InputTuple, DependenciesUpdatedEvent$1.OutputTuple, DependenciesUpdatedEvent$1.OutputObject>;
|
|
2203
|
-
"FeeRateUpdatesPaused(address,uint256)": TypedContractEvent<FeeRateUpdatesPausedEvent.InputTuple, FeeRateUpdatesPausedEvent.OutputTuple, FeeRateUpdatesPausedEvent.OutputObject>;
|
|
2204
|
-
FeeRateUpdatesPaused: TypedContractEvent<FeeRateUpdatesPausedEvent.InputTuple, FeeRateUpdatesPausedEvent.OutputTuple, FeeRateUpdatesPausedEvent.OutputObject>;
|
|
2205
|
-
"FeeRateUpdatesUnpaused(address,uint256)": TypedContractEvent<FeeRateUpdatesUnpausedEvent.InputTuple, FeeRateUpdatesUnpausedEvent.OutputTuple, FeeRateUpdatesUnpausedEvent.OutputObject>;
|
|
2206
|
-
FeeRateUpdatesUnpaused: TypedContractEvent<FeeRateUpdatesUnpausedEvent.InputTuple, FeeRateUpdatesUnpausedEvent.OutputTuple, FeeRateUpdatesUnpausedEvent.OutputObject>;
|
|
2207
|
-
"GvnrUpdateExecuted(address,address,uint256,uint256)": TypedContractEvent<GvnrUpdateExecutedEvent.InputTuple, GvnrUpdateExecutedEvent.OutputTuple, GvnrUpdateExecutedEvent.OutputObject>;
|
|
2208
|
-
GvnrUpdateExecuted: TypedContractEvent<GvnrUpdateExecutedEvent.InputTuple, GvnrUpdateExecutedEvent.OutputTuple, GvnrUpdateExecutedEvent.OutputObject>;
|
|
2209
|
-
"GvnrUpdateProposed(bytes32,address,uint256,address)": TypedContractEvent<GvnrUpdateProposedEvent.InputTuple, GvnrUpdateProposedEvent.OutputTuple, GvnrUpdateProposedEvent.OutputObject>;
|
|
2210
|
-
GvnrUpdateProposed: TypedContractEvent<GvnrUpdateProposedEvent.InputTuple, GvnrUpdateProposedEvent.OutputTuple, GvnrUpdateProposedEvent.OutputObject>;
|
|
2211
|
-
"GvnrUpdateSigned(bytes32,address,uint256)": TypedContractEvent<GvnrUpdateSignedEvent.InputTuple, GvnrUpdateSignedEvent.OutputTuple, GvnrUpdateSignedEvent.OutputObject>;
|
|
2212
|
-
GvnrUpdateSigned: TypedContractEvent<GvnrUpdateSignedEvent.InputTuple, GvnrUpdateSignedEvent.OutputTuple, GvnrUpdateSignedEvent.OutputObject>;
|
|
2213
|
-
};
|
|
2214
|
-
}
|
|
2215
|
-
|
|
2216
|
-
interface ILiquidationManagerInterface extends Interface {
|
|
2217
|
-
getFunction(nameOrSignature: "calculateLiquidationBonus" | "commitLiquidation" | "isLiquidatable" | "liquidatePosition" | "revealAndLiquidate" | "supportsInterface"): FunctionFragment;
|
|
2218
|
-
getEvent(nameOrSignatureOrTopic: "PositionLiquidated"): EventFragment;
|
|
2219
|
-
encodeFunctionData(functionFragment: "calculateLiquidationBonus", values: [BytesLike, BigNumberish, BigNumberish, BigNumberish, BytesLike]): string;
|
|
2220
|
-
encodeFunctionData(functionFragment: "commitLiquidation", values: [BytesLike, BigNumberish, BigNumberish]): string;
|
|
2221
|
-
encodeFunctionData(functionFragment: "isLiquidatable", values: [BytesLike, BigNumberish, BigNumberish, BytesLike]): string;
|
|
2222
|
-
encodeFunctionData(functionFragment: "liquidatePosition", values: [BytesLike, BigNumberish, BigNumberish]): string;
|
|
2223
|
-
encodeFunctionData(functionFragment: "revealAndLiquidate", values: [BytesLike, BigNumberish, BigNumberish, BytesLike, BigNumberish]): string;
|
|
2224
|
-
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
2225
|
-
decodeFunctionResult(functionFragment: "calculateLiquidationBonus", data: BytesLike): Result$2;
|
|
2226
|
-
decodeFunctionResult(functionFragment: "commitLiquidation", data: BytesLike): Result$2;
|
|
2227
|
-
decodeFunctionResult(functionFragment: "isLiquidatable", data: BytesLike): Result$2;
|
|
2228
|
-
decodeFunctionResult(functionFragment: "liquidatePosition", data: BytesLike): Result$2;
|
|
2229
|
-
decodeFunctionResult(functionFragment: "revealAndLiquidate", data: BytesLike): Result$2;
|
|
2230
|
-
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result$2;
|
|
2231
|
-
}
|
|
2232
|
-
declare namespace PositionLiquidatedEvent {
|
|
2233
|
-
type InputTuple = [
|
|
2234
|
-
positionId: BytesLike,
|
|
2235
|
-
liquidator: AddressLike,
|
|
2236
|
-
collateralAmount: BigNumberish,
|
|
2237
|
-
debtAmount: BigNumberish,
|
|
2238
|
-
bonus: BigNumberish
|
|
2239
|
-
];
|
|
2240
|
-
type OutputTuple = [
|
|
2241
|
-
positionId: string,
|
|
2242
|
-
liquidator: string,
|
|
2243
|
-
collateralAmount: bigint,
|
|
2244
|
-
debtAmount: bigint,
|
|
2245
|
-
bonus: bigint
|
|
2246
|
-
];
|
|
2247
|
-
interface OutputObject {
|
|
2248
|
-
positionId: string;
|
|
2249
|
-
liquidator: string;
|
|
2250
|
-
collateralAmount: bigint;
|
|
2251
|
-
debtAmount: bigint;
|
|
2252
|
-
bonus: bigint;
|
|
2253
|
-
}
|
|
2254
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2255
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2256
|
-
type Log = TypedEventLog<Event>;
|
|
2257
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
2258
|
-
}
|
|
2259
|
-
interface ILiquidationManager extends BaseContract {
|
|
2260
|
-
connect(runner?: ContractRunner | null): ILiquidationManager;
|
|
2261
|
-
waitForDeployment(): Promise<this>;
|
|
2262
|
-
interface: ILiquidationManagerInterface;
|
|
2263
|
-
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
2264
|
-
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
2265
|
-
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
2266
|
-
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
2267
|
-
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
2268
|
-
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
2269
|
-
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
2270
|
-
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
2271
|
-
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
2272
|
-
calculateLiquidationBonus: TypedContractMethod<[
|
|
2273
|
-
positionId: BytesLike,
|
|
2274
|
-
quantumTimestamp: BigNumberish,
|
|
2275
|
-
btcPrice: BigNumberish,
|
|
2276
|
-
btcAmountSats: BigNumberish,
|
|
2277
|
-
liquidationValidatorSignature: BytesLike
|
|
2278
|
-
], [
|
|
2279
|
-
bigint
|
|
2280
|
-
], "nonpayable">;
|
|
2281
|
-
commitLiquidation: TypedContractMethod<[
|
|
2282
|
-
positionId: BytesLike,
|
|
2283
|
-
quantumTimestamp: BigNumberish,
|
|
2284
|
-
btcPrice: BigNumberish
|
|
2285
|
-
], [
|
|
2286
|
-
void
|
|
2287
|
-
], "nonpayable">;
|
|
2288
|
-
isLiquidatable: TypedContractMethod<[
|
|
2289
|
-
positionId: BytesLike,
|
|
2290
|
-
btcPrice: BigNumberish,
|
|
2291
|
-
quantumTimestamp: BigNumberish,
|
|
2292
|
-
liquidationValidatorSignature: BytesLike
|
|
2293
|
-
], [
|
|
2294
|
-
boolean
|
|
2295
|
-
], "nonpayable">;
|
|
2296
|
-
liquidatePosition: TypedContractMethod<[
|
|
2297
|
-
positionId: BytesLike,
|
|
2298
|
-
btcPrice: BigNumberish,
|
|
2299
|
-
quantumTimestamp: BigNumberish
|
|
2300
|
-
], [
|
|
2301
|
-
boolean
|
|
2302
|
-
], "nonpayable">;
|
|
2303
|
-
revealAndLiquidate: TypedContractMethod<[
|
|
2304
|
-
positionId: BytesLike,
|
|
2305
|
-
quantumTimestamp: BigNumberish,
|
|
2306
|
-
btcPrice: BigNumberish,
|
|
2307
|
-
liquidationValidatorSignature: BytesLike,
|
|
2308
|
-
deadline: BigNumberish
|
|
2309
|
-
], [
|
|
2310
|
-
boolean
|
|
2311
|
-
], "nonpayable">;
|
|
2312
|
-
supportsInterface: TypedContractMethod<[
|
|
2313
|
-
interfaceId: BytesLike
|
|
2314
|
-
], [
|
|
2315
|
-
boolean
|
|
2316
|
-
], "view">;
|
|
2317
|
-
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
2318
|
-
getFunction(nameOrSignature: "calculateLiquidationBonus"): TypedContractMethod<[
|
|
2319
|
-
positionId: BytesLike,
|
|
2320
|
-
quantumTimestamp: BigNumberish,
|
|
2321
|
-
btcPrice: BigNumberish,
|
|
2322
|
-
btcAmountSats: BigNumberish,
|
|
2323
|
-
liquidationValidatorSignature: BytesLike
|
|
2324
|
-
], [
|
|
2325
|
-
bigint
|
|
2326
|
-
], "nonpayable">;
|
|
2327
|
-
getFunction(nameOrSignature: "commitLiquidation"): TypedContractMethod<[
|
|
2328
|
-
positionId: BytesLike,
|
|
2329
|
-
quantumTimestamp: BigNumberish,
|
|
2330
|
-
btcPrice: BigNumberish
|
|
2331
|
-
], [
|
|
2332
|
-
void
|
|
2333
|
-
], "nonpayable">;
|
|
2334
|
-
getFunction(nameOrSignature: "isLiquidatable"): TypedContractMethod<[
|
|
2335
|
-
positionId: BytesLike,
|
|
2336
|
-
btcPrice: BigNumberish,
|
|
2337
|
-
quantumTimestamp: BigNumberish,
|
|
2338
|
-
liquidationValidatorSignature: BytesLike
|
|
2339
|
-
], [
|
|
2340
|
-
boolean
|
|
2341
|
-
], "nonpayable">;
|
|
2342
|
-
getFunction(nameOrSignature: "liquidatePosition"): TypedContractMethod<[
|
|
2343
|
-
positionId: BytesLike,
|
|
2344
|
-
btcPrice: BigNumberish,
|
|
2345
|
-
quantumTimestamp: BigNumberish
|
|
2346
|
-
], [
|
|
2347
|
-
boolean
|
|
2348
|
-
], "nonpayable">;
|
|
2349
|
-
getFunction(nameOrSignature: "revealAndLiquidate"): TypedContractMethod<[
|
|
2350
|
-
positionId: BytesLike,
|
|
2351
|
-
quantumTimestamp: BigNumberish,
|
|
2352
|
-
btcPrice: BigNumberish,
|
|
2353
|
-
liquidationValidatorSignature: BytesLike,
|
|
2354
|
-
deadline: BigNumberish
|
|
2355
|
-
], [
|
|
2356
|
-
boolean
|
|
2357
|
-
], "nonpayable">;
|
|
2358
|
-
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
2359
|
-
getEvent(key: "PositionLiquidated"): TypedContractEvent<PositionLiquidatedEvent.InputTuple, PositionLiquidatedEvent.OutputTuple, PositionLiquidatedEvent.OutputObject>;
|
|
2360
|
-
filters: {
|
|
2361
|
-
"PositionLiquidated(bytes32,address,uint256,uint256,uint256)": TypedContractEvent<PositionLiquidatedEvent.InputTuple, PositionLiquidatedEvent.OutputTuple, PositionLiquidatedEvent.OutputObject>;
|
|
2362
|
-
PositionLiquidated: TypedContractEvent<PositionLiquidatedEvent.InputTuple, PositionLiquidatedEvent.OutputTuple, PositionLiquidatedEvent.OutputObject>;
|
|
2363
|
-
};
|
|
2364
|
-
}
|
|
2365
|
-
|
|
2366
|
-
interface ILoanOperationsManagerInterface extends Interface {
|
|
2367
|
-
getFunction(nameOrSignature: "authorizeBTCSpend" | "calculateCollateralRatio" | "getOriginationFeeBalance" | "getPKPActualCollateral" | "getTotalAuthorizedSats" | "getUcdController" | "isPriceFeedStale" | "liquidationThreshold" | "maximumLtvRatio" | "minimumLoanValueWei" | "mintUCD" | "processPayment" | "supportsInterface" | "transferOriginationFee" | "ucdToken" | "updatePosition"): FunctionFragment;
|
|
2368
|
-
getEvent(nameOrSignatureOrTopic: "PositionRepaid" | "PositionUpdated" | "UCDMinted"): EventFragment;
|
|
2369
|
-
encodeFunctionData(functionFragment: "authorizeBTCSpend", values: [
|
|
2370
|
-
BytesLike,
|
|
2371
|
-
string,
|
|
2372
|
-
BigNumberish,
|
|
2373
|
-
BigNumberish,
|
|
2374
|
-
string,
|
|
2375
|
-
BigNumberish,
|
|
2376
|
-
BytesLike
|
|
2377
|
-
]): string;
|
|
2378
|
-
encodeFunctionData(functionFragment: "calculateCollateralRatio", values: [BytesLike, BigNumberish]): string;
|
|
2379
|
-
encodeFunctionData(functionFragment: "getOriginationFeeBalance", values?: undefined): string;
|
|
2380
|
-
encodeFunctionData(functionFragment: "getPKPActualCollateral", values: [BytesLike]): string;
|
|
2381
|
-
encodeFunctionData(functionFragment: "getTotalAuthorizedSats", values: [BytesLike]): string;
|
|
2382
|
-
encodeFunctionData(functionFragment: "getUcdController", values?: undefined): string;
|
|
2383
|
-
encodeFunctionData(functionFragment: "isPriceFeedStale", values?: undefined): string;
|
|
2384
|
-
encodeFunctionData(functionFragment: "liquidationThreshold", values?: undefined): string;
|
|
2385
|
-
encodeFunctionData(functionFragment: "maximumLtvRatio", values?: undefined): string;
|
|
2386
|
-
encodeFunctionData(functionFragment: "minimumLoanValueWei", values?: undefined): string;
|
|
2387
|
-
encodeFunctionData(functionFragment: "mintUCD", values: [
|
|
2388
|
-
BytesLike,
|
|
2389
|
-
BigNumberish,
|
|
2390
|
-
BigNumberish,
|
|
2391
|
-
BigNumberish,
|
|
2392
|
-
BigNumberish,
|
|
2393
|
-
BigNumberish,
|
|
2394
|
-
BytesLike,
|
|
2395
|
-
BytesLike,
|
|
2396
|
-
BigNumberish
|
|
2397
|
-
]): string;
|
|
2398
|
-
encodeFunctionData(functionFragment: "processPayment", values: [BytesLike, BigNumberish, BigNumberish, BigNumberish]): string;
|
|
2399
|
-
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
2400
|
-
encodeFunctionData(functionFragment: "transferOriginationFee", values: [AddressLike, BigNumberish]): string;
|
|
2401
|
-
encodeFunctionData(functionFragment: "ucdToken", values?: undefined): string;
|
|
2402
|
-
encodeFunctionData(functionFragment: "updatePosition", values: [BytesLike, BigNumberish, BigNumberish, BigNumberish, BytesLike]): string;
|
|
2403
|
-
decodeFunctionResult(functionFragment: "authorizeBTCSpend", data: BytesLike): Result$2;
|
|
2404
|
-
decodeFunctionResult(functionFragment: "calculateCollateralRatio", data: BytesLike): Result$2;
|
|
2405
|
-
decodeFunctionResult(functionFragment: "getOriginationFeeBalance", data: BytesLike): Result$2;
|
|
2406
|
-
decodeFunctionResult(functionFragment: "getPKPActualCollateral", data: BytesLike): Result$2;
|
|
2407
|
-
decodeFunctionResult(functionFragment: "getTotalAuthorizedSats", data: BytesLike): Result$2;
|
|
2408
|
-
decodeFunctionResult(functionFragment: "getUcdController", data: BytesLike): Result$2;
|
|
2409
|
-
decodeFunctionResult(functionFragment: "isPriceFeedStale", data: BytesLike): Result$2;
|
|
2410
|
-
decodeFunctionResult(functionFragment: "liquidationThreshold", data: BytesLike): Result$2;
|
|
2411
|
-
decodeFunctionResult(functionFragment: "maximumLtvRatio", data: BytesLike): Result$2;
|
|
2412
|
-
decodeFunctionResult(functionFragment: "minimumLoanValueWei", data: BytesLike): Result$2;
|
|
2413
|
-
decodeFunctionResult(functionFragment: "mintUCD", data: BytesLike): Result$2;
|
|
2414
|
-
decodeFunctionResult(functionFragment: "processPayment", data: BytesLike): Result$2;
|
|
2415
|
-
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result$2;
|
|
2416
|
-
decodeFunctionResult(functionFragment: "transferOriginationFee", data: BytesLike): Result$2;
|
|
2417
|
-
decodeFunctionResult(functionFragment: "ucdToken", data: BytesLike): Result$2;
|
|
2418
|
-
decodeFunctionResult(functionFragment: "updatePosition", data: BytesLike): Result$2;
|
|
2419
|
-
}
|
|
2420
|
-
declare namespace PositionRepaidEvent {
|
|
2421
|
-
type InputTuple = [
|
|
2422
|
-
positionId: BytesLike,
|
|
2423
|
-
amount: BigNumberish,
|
|
2424
|
-
repayer: AddressLike
|
|
2425
|
-
];
|
|
2426
|
-
type OutputTuple = [
|
|
2427
|
-
positionId: string,
|
|
2428
|
-
amount: bigint,
|
|
2429
|
-
repayer: string
|
|
2430
|
-
];
|
|
2431
|
-
interface OutputObject {
|
|
2432
|
-
positionId: string;
|
|
2433
|
-
amount: bigint;
|
|
2434
|
-
repayer: string;
|
|
2435
|
-
}
|
|
2436
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2437
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2438
|
-
type Log = TypedEventLog<Event>;
|
|
2439
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
2440
|
-
}
|
|
2441
|
-
declare namespace PositionUpdatedEvent {
|
|
2442
|
-
type InputTuple = [
|
|
2443
|
-
positionId: BytesLike,
|
|
2444
|
-
newDebt: BigNumberish,
|
|
2445
|
-
newRatio: BigNumberish
|
|
2446
|
-
];
|
|
2447
|
-
type OutputTuple = [
|
|
2448
|
-
positionId: string,
|
|
2449
|
-
newDebt: bigint,
|
|
2450
|
-
newRatio: bigint
|
|
2451
|
-
];
|
|
2452
|
-
interface OutputObject {
|
|
2453
|
-
positionId: string;
|
|
2454
|
-
newDebt: bigint;
|
|
2455
|
-
newRatio: bigint;
|
|
2456
|
-
}
|
|
2457
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2458
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2459
|
-
type Log = TypedEventLog<Event>;
|
|
2460
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
2461
|
-
}
|
|
2462
|
-
declare namespace UCDMintedEvent {
|
|
2463
|
-
type InputTuple = [
|
|
2464
|
-
positionId: BytesLike,
|
|
2465
|
-
amount: BigNumberish,
|
|
2466
|
-
minter: AddressLike
|
|
2467
|
-
];
|
|
2468
|
-
type OutputTuple = [
|
|
2469
|
-
positionId: string,
|
|
2470
|
-
amount: bigint,
|
|
2471
|
-
minter: string
|
|
2472
|
-
];
|
|
2473
|
-
interface OutputObject {
|
|
2474
|
-
positionId: string;
|
|
2475
|
-
amount: bigint;
|
|
2476
|
-
minter: string;
|
|
2477
|
-
}
|
|
2478
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2479
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2480
|
-
type Log = TypedEventLog<Event>;
|
|
2481
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
2482
|
-
}
|
|
2483
|
-
interface ILoanOperationsManager extends BaseContract {
|
|
2484
|
-
connect(runner?: ContractRunner | null): ILoanOperationsManager;
|
|
2485
|
-
waitForDeployment(): Promise<this>;
|
|
2486
|
-
interface: ILoanOperationsManagerInterface;
|
|
2487
|
-
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
2488
|
-
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
2489
|
-
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
2490
|
-
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
2491
|
-
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
2492
|
-
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
2493
|
-
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
2494
|
-
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
2495
|
-
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
2496
|
-
authorizeBTCSpend: TypedContractMethod<[
|
|
2497
|
-
positionId: BytesLike,
|
|
2498
|
-
txid: string,
|
|
2499
|
-
vout: BigNumberish,
|
|
2500
|
-
satoshis: BigNumberish,
|
|
2501
|
-
targetAddress: string,
|
|
2502
|
-
targetAmount: BigNumberish,
|
|
2503
|
-
litSignature: BytesLike
|
|
2504
|
-
], [
|
|
2505
|
-
bigint
|
|
2506
|
-
], "nonpayable">;
|
|
2507
|
-
calculateCollateralRatio: TypedContractMethod<[
|
|
2508
|
-
positionId: BytesLike,
|
|
2509
|
-
btcPrice: BigNumberish
|
|
2510
|
-
], [
|
|
2511
|
-
bigint
|
|
2512
|
-
], "view">;
|
|
2513
|
-
getOriginationFeeBalance: TypedContractMethod<[], [bigint], "view">;
|
|
2514
|
-
getPKPActualCollateral: TypedContractMethod<[
|
|
2515
|
-
pkpId: BytesLike
|
|
2516
|
-
], [
|
|
2517
|
-
bigint
|
|
2518
|
-
], "view">;
|
|
2519
|
-
getTotalAuthorizedSats: TypedContractMethod<[
|
|
2520
|
-
positionId: BytesLike
|
|
2521
|
-
], [
|
|
2522
|
-
bigint
|
|
2523
|
-
], "view">;
|
|
2524
|
-
getUcdController: TypedContractMethod<[], [string], "view">;
|
|
2525
|
-
isPriceFeedStale: TypedContractMethod<[], [boolean], "view">;
|
|
2526
|
-
liquidationThreshold: TypedContractMethod<[], [bigint], "view">;
|
|
2527
|
-
maximumLtvRatio: TypedContractMethod<[], [bigint], "view">;
|
|
2528
|
-
minimumLoanValueWei: TypedContractMethod<[], [bigint], "view">;
|
|
2529
|
-
mintUCD: TypedContractMethod<[
|
|
2530
|
-
positionId: BytesLike,
|
|
2531
|
-
mintAmount: BigNumberish,
|
|
2532
|
-
mintFee: BigNumberish,
|
|
2533
|
-
newDebt: BigNumberish,
|
|
2534
|
-
newCollateral: BigNumberish,
|
|
2535
|
-
btcPrice: BigNumberish,
|
|
2536
|
-
authorizedSpendsHash: BytesLike,
|
|
2537
|
-
ucdDebtHash: BytesLike,
|
|
2538
|
-
quantumTimestamp: BigNumberish
|
|
2539
|
-
], [
|
|
2540
|
-
boolean
|
|
2541
|
-
], "nonpayable">;
|
|
2542
|
-
processPayment: TypedContractMethod<[
|
|
2543
|
-
positionId: BytesLike,
|
|
2544
|
-
paymentAmount: BigNumberish,
|
|
2545
|
-
quantumTimestamp: BigNumberish,
|
|
2546
|
-
btcPrice: BigNumberish
|
|
2547
|
-
], [
|
|
2548
|
-
boolean
|
|
2549
|
-
], "nonpayable">;
|
|
2550
|
-
supportsInterface: TypedContractMethod<[
|
|
2551
|
-
interfaceId: BytesLike
|
|
2552
|
-
], [
|
|
2553
|
-
boolean
|
|
2554
|
-
], "view">;
|
|
2555
|
-
transferOriginationFee: TypedContractMethod<[
|
|
2556
|
-
recipient: AddressLike,
|
|
2557
|
-
amount: BigNumberish
|
|
2558
|
-
], [
|
|
2559
|
-
boolean
|
|
2560
|
-
], "nonpayable">;
|
|
2561
|
-
ucdToken: TypedContractMethod<[], [string], "view">;
|
|
2562
|
-
updatePosition: TypedContractMethod<[
|
|
2563
|
-
positionId: BytesLike,
|
|
2564
|
-
newDebt: BigNumberish,
|
|
2565
|
-
quantumTimestamp: BigNumberish,
|
|
2566
|
-
btcPrice: BigNumberish,
|
|
2567
|
-
updateValidatorSignature: BytesLike
|
|
2568
|
-
], [
|
|
2569
|
-
boolean
|
|
2570
|
-
], "nonpayable">;
|
|
2571
|
-
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
2572
|
-
getFunction(nameOrSignature: "authorizeBTCSpend"): TypedContractMethod<[
|
|
2573
|
-
positionId: BytesLike,
|
|
2574
|
-
txid: string,
|
|
2575
|
-
vout: BigNumberish,
|
|
2576
|
-
satoshis: BigNumberish,
|
|
2577
|
-
targetAddress: string,
|
|
2578
|
-
targetAmount: BigNumberish,
|
|
2579
|
-
litSignature: BytesLike
|
|
2580
|
-
], [
|
|
2581
|
-
bigint
|
|
2582
|
-
], "nonpayable">;
|
|
2583
|
-
getFunction(nameOrSignature: "calculateCollateralRatio"): TypedContractMethod<[
|
|
2584
|
-
positionId: BytesLike,
|
|
2585
|
-
btcPrice: BigNumberish
|
|
2586
|
-
], [
|
|
2587
|
-
bigint
|
|
2588
|
-
], "view">;
|
|
2589
|
-
getFunction(nameOrSignature: "getOriginationFeeBalance"): TypedContractMethod<[], [bigint], "view">;
|
|
2590
|
-
getFunction(nameOrSignature: "getPKPActualCollateral"): TypedContractMethod<[pkpId: BytesLike], [bigint], "view">;
|
|
2591
|
-
getFunction(nameOrSignature: "getTotalAuthorizedSats"): TypedContractMethod<[positionId: BytesLike], [bigint], "view">;
|
|
2592
|
-
getFunction(nameOrSignature: "getUcdController"): TypedContractMethod<[], [string], "view">;
|
|
2593
|
-
getFunction(nameOrSignature: "isPriceFeedStale"): TypedContractMethod<[], [boolean], "view">;
|
|
2594
|
-
getFunction(nameOrSignature: "liquidationThreshold"): TypedContractMethod<[], [bigint], "view">;
|
|
2595
|
-
getFunction(nameOrSignature: "maximumLtvRatio"): TypedContractMethod<[], [bigint], "view">;
|
|
2596
|
-
getFunction(nameOrSignature: "minimumLoanValueWei"): TypedContractMethod<[], [bigint], "view">;
|
|
2597
|
-
getFunction(nameOrSignature: "mintUCD"): TypedContractMethod<[
|
|
2598
|
-
positionId: BytesLike,
|
|
2599
|
-
mintAmount: BigNumberish,
|
|
2600
|
-
mintFee: BigNumberish,
|
|
2601
|
-
newDebt: BigNumberish,
|
|
2602
|
-
newCollateral: BigNumberish,
|
|
2603
|
-
btcPrice: BigNumberish,
|
|
2604
|
-
authorizedSpendsHash: BytesLike,
|
|
2605
|
-
ucdDebtHash: BytesLike,
|
|
2606
|
-
quantumTimestamp: BigNumberish
|
|
2607
|
-
], [
|
|
2608
|
-
boolean
|
|
2609
|
-
], "nonpayable">;
|
|
2610
|
-
getFunction(nameOrSignature: "processPayment"): TypedContractMethod<[
|
|
2611
|
-
positionId: BytesLike,
|
|
2612
|
-
paymentAmount: BigNumberish,
|
|
2613
|
-
quantumTimestamp: BigNumberish,
|
|
2614
|
-
btcPrice: BigNumberish
|
|
2615
|
-
], [
|
|
2616
|
-
boolean
|
|
2617
|
-
], "nonpayable">;
|
|
2618
|
-
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
2619
|
-
getFunction(nameOrSignature: "transferOriginationFee"): TypedContractMethod<[
|
|
2620
|
-
recipient: AddressLike,
|
|
2621
|
-
amount: BigNumberish
|
|
2622
|
-
], [
|
|
2623
|
-
boolean
|
|
2624
|
-
], "nonpayable">;
|
|
2625
|
-
getFunction(nameOrSignature: "ucdToken"): TypedContractMethod<[], [string], "view">;
|
|
2626
|
-
getFunction(nameOrSignature: "updatePosition"): TypedContractMethod<[
|
|
2627
|
-
positionId: BytesLike,
|
|
2628
|
-
newDebt: BigNumberish,
|
|
2629
|
-
quantumTimestamp: BigNumberish,
|
|
2630
|
-
btcPrice: BigNumberish,
|
|
2631
|
-
updateValidatorSignature: BytesLike
|
|
2632
|
-
], [
|
|
2633
|
-
boolean
|
|
2634
|
-
], "nonpayable">;
|
|
2635
|
-
getEvent(key: "PositionRepaid"): TypedContractEvent<PositionRepaidEvent.InputTuple, PositionRepaidEvent.OutputTuple, PositionRepaidEvent.OutputObject>;
|
|
2636
|
-
getEvent(key: "PositionUpdated"): TypedContractEvent<PositionUpdatedEvent.InputTuple, PositionUpdatedEvent.OutputTuple, PositionUpdatedEvent.OutputObject>;
|
|
2637
|
-
getEvent(key: "UCDMinted"): TypedContractEvent<UCDMintedEvent.InputTuple, UCDMintedEvent.OutputTuple, UCDMintedEvent.OutputObject>;
|
|
2638
|
-
filters: {
|
|
2639
|
-
"PositionRepaid(bytes32,uint256,address)": TypedContractEvent<PositionRepaidEvent.InputTuple, PositionRepaidEvent.OutputTuple, PositionRepaidEvent.OutputObject>;
|
|
2640
|
-
PositionRepaid: TypedContractEvent<PositionRepaidEvent.InputTuple, PositionRepaidEvent.OutputTuple, PositionRepaidEvent.OutputObject>;
|
|
2641
|
-
"PositionUpdated(bytes32,uint256,uint256)": TypedContractEvent<PositionUpdatedEvent.InputTuple, PositionUpdatedEvent.OutputTuple, PositionUpdatedEvent.OutputObject>;
|
|
2642
|
-
PositionUpdated: TypedContractEvent<PositionUpdatedEvent.InputTuple, PositionUpdatedEvent.OutputTuple, PositionUpdatedEvent.OutputObject>;
|
|
2643
|
-
"UCDMinted(bytes32,uint256,address)": TypedContractEvent<UCDMintedEvent.InputTuple, UCDMintedEvent.OutputTuple, UCDMintedEvent.OutputObject>;
|
|
2644
|
-
UCDMinted: TypedContractEvent<UCDMintedEvent.InputTuple, UCDMintedEvent.OutputTuple, UCDMintedEvent.OutputObject>;
|
|
2645
|
-
};
|
|
2646
|
-
}
|
|
2647
|
-
|
|
2648
|
-
interface IPriceFeedConsumerInterface extends Interface {
|
|
2649
|
-
getFunction(nameOrSignature: "getCurrentPrice" | "getPriceAge" | "isPriceStale" | "updatePrice" | "validatePriceFeed"): FunctionFragment;
|
|
2650
|
-
getEvent(nameOrSignatureOrTopic: "PriceFeedChanged" | "PriceUpdated" | "PriceValidationFailed"): EventFragment;
|
|
2651
|
-
encodeFunctionData(functionFragment: "getCurrentPrice", values?: undefined): string;
|
|
2652
|
-
encodeFunctionData(functionFragment: "getPriceAge", values?: undefined): string;
|
|
2653
|
-
encodeFunctionData(functionFragment: "isPriceStale", values?: undefined): string;
|
|
2654
|
-
encodeFunctionData(functionFragment: "updatePrice", values?: undefined): string;
|
|
2655
|
-
encodeFunctionData(functionFragment: "validatePriceFeed", values?: undefined): string;
|
|
2656
|
-
decodeFunctionResult(functionFragment: "getCurrentPrice", data: BytesLike): Result$2;
|
|
2657
|
-
decodeFunctionResult(functionFragment: "getPriceAge", data: BytesLike): Result$2;
|
|
2658
|
-
decodeFunctionResult(functionFragment: "isPriceStale", data: BytesLike): Result$2;
|
|
2659
|
-
decodeFunctionResult(functionFragment: "updatePrice", data: BytesLike): Result$2;
|
|
2660
|
-
decodeFunctionResult(functionFragment: "validatePriceFeed", data: BytesLike): Result$2;
|
|
2661
|
-
}
|
|
2662
|
-
declare namespace PriceFeedChangedEvent {
|
|
2663
|
-
type InputTuple = [oldFeed: AddressLike, newFeed: AddressLike];
|
|
2664
|
-
type OutputTuple = [oldFeed: string, newFeed: string];
|
|
2665
|
-
interface OutputObject {
|
|
2666
|
-
oldFeed: string;
|
|
2667
|
-
newFeed: string;
|
|
2668
|
-
}
|
|
2669
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2670
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2671
|
-
type Log = TypedEventLog<Event>;
|
|
2672
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
2673
|
-
}
|
|
2674
|
-
declare namespace PriceUpdatedEvent {
|
|
2675
|
-
type InputTuple = [
|
|
2676
|
-
newPrice: BigNumberish,
|
|
2677
|
-
timestamp: BigNumberish,
|
|
2678
|
-
roundId: BigNumberish
|
|
2679
|
-
];
|
|
2680
|
-
type OutputTuple = [
|
|
2681
|
-
newPrice: bigint,
|
|
2682
|
-
timestamp: bigint,
|
|
2683
|
-
roundId: bigint
|
|
2684
|
-
];
|
|
2685
|
-
interface OutputObject {
|
|
2686
|
-
newPrice: bigint;
|
|
2687
|
-
timestamp: bigint;
|
|
2688
|
-
roundId: bigint;
|
|
2689
|
-
}
|
|
2690
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2691
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2692
|
-
type Log = TypedEventLog<Event>;
|
|
2693
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
2694
|
-
}
|
|
2695
|
-
declare namespace PriceValidationFailedEvent {
|
|
2696
|
-
type InputTuple = [price: BigNumberish, reason: string];
|
|
2697
|
-
type OutputTuple = [price: bigint, reason: string];
|
|
2698
|
-
interface OutputObject {
|
|
2699
|
-
price: bigint;
|
|
2700
|
-
reason: string;
|
|
2701
|
-
}
|
|
2702
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2703
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2704
|
-
type Log = TypedEventLog<Event>;
|
|
2705
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
2706
|
-
}
|
|
2707
|
-
interface IPriceFeedConsumer extends BaseContract {
|
|
2708
|
-
connect(runner?: ContractRunner | null): IPriceFeedConsumer;
|
|
2709
|
-
waitForDeployment(): Promise<this>;
|
|
2710
|
-
interface: IPriceFeedConsumerInterface;
|
|
2711
|
-
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
2712
|
-
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
2713
|
-
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
2714
|
-
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
2715
|
-
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
2716
|
-
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
2717
|
-
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
2718
|
-
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
2719
|
-
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
2720
|
-
getCurrentPrice: TypedContractMethod<[], [bigint], "view">;
|
|
2721
|
-
getPriceAge: TypedContractMethod<[], [bigint], "view">;
|
|
2722
|
-
isPriceStale: TypedContractMethod<[], [boolean], "view">;
|
|
2723
|
-
updatePrice: TypedContractMethod<[], [boolean], "nonpayable">;
|
|
2724
|
-
validatePriceFeed: TypedContractMethod<[], [boolean], "view">;
|
|
2725
|
-
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
2726
|
-
getFunction(nameOrSignature: "getCurrentPrice"): TypedContractMethod<[], [bigint], "view">;
|
|
2727
|
-
getFunction(nameOrSignature: "getPriceAge"): TypedContractMethod<[], [bigint], "view">;
|
|
2728
|
-
getFunction(nameOrSignature: "isPriceStale"): TypedContractMethod<[], [boolean], "view">;
|
|
2729
|
-
getFunction(nameOrSignature: "updatePrice"): TypedContractMethod<[], [boolean], "nonpayable">;
|
|
2730
|
-
getFunction(nameOrSignature: "validatePriceFeed"): TypedContractMethod<[], [boolean], "view">;
|
|
2731
|
-
getEvent(key: "PriceFeedChanged"): TypedContractEvent<PriceFeedChangedEvent.InputTuple, PriceFeedChangedEvent.OutputTuple, PriceFeedChangedEvent.OutputObject>;
|
|
2732
|
-
getEvent(key: "PriceUpdated"): TypedContractEvent<PriceUpdatedEvent.InputTuple, PriceUpdatedEvent.OutputTuple, PriceUpdatedEvent.OutputObject>;
|
|
2733
|
-
getEvent(key: "PriceValidationFailed"): TypedContractEvent<PriceValidationFailedEvent.InputTuple, PriceValidationFailedEvent.OutputTuple, PriceValidationFailedEvent.OutputObject>;
|
|
2734
|
-
filters: {
|
|
2735
|
-
"PriceFeedChanged(address,address)": TypedContractEvent<PriceFeedChangedEvent.InputTuple, PriceFeedChangedEvent.OutputTuple, PriceFeedChangedEvent.OutputObject>;
|
|
2736
|
-
PriceFeedChanged: TypedContractEvent<PriceFeedChangedEvent.InputTuple, PriceFeedChangedEvent.OutputTuple, PriceFeedChangedEvent.OutputObject>;
|
|
2737
|
-
"PriceUpdated(uint256,uint256,uint80)": TypedContractEvent<PriceUpdatedEvent.InputTuple, PriceUpdatedEvent.OutputTuple, PriceUpdatedEvent.OutputObject>;
|
|
2738
|
-
PriceUpdated: TypedContractEvent<PriceUpdatedEvent.InputTuple, PriceUpdatedEvent.OutputTuple, PriceUpdatedEvent.OutputObject>;
|
|
2739
|
-
"PriceValidationFailed(uint256,string)": TypedContractEvent<PriceValidationFailedEvent.InputTuple, PriceValidationFailedEvent.OutputTuple, PriceValidationFailedEvent.OutputObject>;
|
|
2740
|
-
PriceValidationFailed: TypedContractEvent<PriceValidationFailedEvent.InputTuple, PriceValidationFailedEvent.OutputTuple, PriceValidationFailedEvent.OutputObject>;
|
|
2741
|
-
};
|
|
2742
|
-
}
|
|
2743
|
-
|
|
2744
|
-
interface ITermManagerInterface extends Interface {
|
|
2745
|
-
getFunction(nameOrSignature: "addTerm" | "getTermFees" | "getValidTermsWithFees" | "isValidTerm" | "removeTerm" | "supportsInterface" | "updateDependencies" | "updateTermFees"): FunctionFragment;
|
|
2746
|
-
getEvent(nameOrSignatureOrTopic: "ContractUpgraded" | "DependenciesUpdated" | "TermAdded" | "TermFeesUpdated" | "TermRemoved"): EventFragment;
|
|
2747
|
-
encodeFunctionData(functionFragment: "addTerm", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
2748
|
-
encodeFunctionData(functionFragment: "getTermFees", values: [BigNumberish]): string;
|
|
2749
|
-
encodeFunctionData(functionFragment: "getValidTermsWithFees", values?: undefined): string;
|
|
2750
|
-
encodeFunctionData(functionFragment: "isValidTerm", values: [BigNumberish]): string;
|
|
2751
|
-
encodeFunctionData(functionFragment: "removeTerm", values: [BigNumberish]): string;
|
|
2752
|
-
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
2753
|
-
encodeFunctionData(functionFragment: "updateDependencies", values: [AddressLike, AddressLike]): string;
|
|
2754
|
-
encodeFunctionData(functionFragment: "updateTermFees", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
2755
|
-
decodeFunctionResult(functionFragment: "addTerm", data: BytesLike): Result$2;
|
|
2756
|
-
decodeFunctionResult(functionFragment: "getTermFees", data: BytesLike): Result$2;
|
|
2757
|
-
decodeFunctionResult(functionFragment: "getValidTermsWithFees", data: BytesLike): Result$2;
|
|
2758
|
-
decodeFunctionResult(functionFragment: "isValidTerm", data: BytesLike): Result$2;
|
|
2759
|
-
decodeFunctionResult(functionFragment: "removeTerm", data: BytesLike): Result$2;
|
|
2760
|
-
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result$2;
|
|
2761
|
-
decodeFunctionResult(functionFragment: "updateDependencies", data: BytesLike): Result$2;
|
|
2762
|
-
decodeFunctionResult(functionFragment: "updateTermFees", data: BytesLike): Result$2;
|
|
2763
|
-
}
|
|
2764
|
-
declare namespace ContractUpgradedEvent {
|
|
2765
|
-
type InputTuple = [
|
|
2766
|
-
oldImplementation: AddressLike,
|
|
2767
|
-
newImplementation: AddressLike,
|
|
2768
|
-
version: string,
|
|
2769
|
-
timestamp: BigNumberish
|
|
2770
|
-
];
|
|
2771
|
-
type OutputTuple = [
|
|
2772
|
-
oldImplementation: string,
|
|
2773
|
-
newImplementation: string,
|
|
2774
|
-
version: string,
|
|
2775
|
-
timestamp: bigint
|
|
2776
|
-
];
|
|
2777
|
-
interface OutputObject {
|
|
2778
|
-
oldImplementation: string;
|
|
2779
|
-
newImplementation: string;
|
|
2780
|
-
version: string;
|
|
2781
|
-
timestamp: bigint;
|
|
2782
|
-
}
|
|
2783
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2784
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2785
|
-
type Log = TypedEventLog<Event>;
|
|
2786
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
2787
|
-
}
|
|
2788
|
-
declare namespace DependenciesUpdatedEvent {
|
|
2789
|
-
type InputTuple = [core: AddressLike, ucdController: AddressLike];
|
|
2790
|
-
type OutputTuple = [core: string, ucdController: string];
|
|
2791
|
-
interface OutputObject {
|
|
2792
|
-
core: string;
|
|
2793
|
-
ucdController: string;
|
|
2794
|
-
}
|
|
2795
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2796
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2797
|
-
type Log = TypedEventLog<Event>;
|
|
2798
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
2799
|
-
}
|
|
2800
|
-
declare namespace TermAddedEvent {
|
|
2801
|
-
type InputTuple = [
|
|
2802
|
-
termMonths: BigNumberish,
|
|
2803
|
-
originationFee: BigNumberish,
|
|
2804
|
-
extensionFee: BigNumberish,
|
|
2805
|
-
admin: AddressLike
|
|
2806
|
-
];
|
|
2807
|
-
type OutputTuple = [
|
|
2808
|
-
termMonths: bigint,
|
|
2809
|
-
originationFee: bigint,
|
|
2810
|
-
extensionFee: bigint,
|
|
2811
|
-
admin: string
|
|
2812
|
-
];
|
|
2813
|
-
interface OutputObject {
|
|
2814
|
-
termMonths: bigint;
|
|
2815
|
-
originationFee: bigint;
|
|
2816
|
-
extensionFee: bigint;
|
|
2817
|
-
admin: string;
|
|
2818
|
-
}
|
|
2819
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2820
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2821
|
-
type Log = TypedEventLog<Event>;
|
|
2822
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
2823
|
-
}
|
|
2824
|
-
declare namespace TermFeesUpdatedEvent {
|
|
2825
|
-
type InputTuple = [
|
|
2826
|
-
termMonths: BigNumberish,
|
|
2827
|
-
newOriginationFee: BigNumberish,
|
|
2828
|
-
newExtensionFee: BigNumberish
|
|
2829
|
-
];
|
|
2830
|
-
type OutputTuple = [
|
|
2831
|
-
termMonths: bigint,
|
|
2832
|
-
newOriginationFee: bigint,
|
|
2833
|
-
newExtensionFee: bigint
|
|
2834
|
-
];
|
|
2835
|
-
interface OutputObject {
|
|
2836
|
-
termMonths: bigint;
|
|
2837
|
-
newOriginationFee: bigint;
|
|
2838
|
-
newExtensionFee: bigint;
|
|
2839
|
-
}
|
|
2840
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2841
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2842
|
-
type Log = TypedEventLog<Event>;
|
|
2843
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
2844
|
-
}
|
|
2845
|
-
declare namespace TermRemovedEvent {
|
|
2846
|
-
type InputTuple = [termMonths: BigNumberish, admin: AddressLike];
|
|
2847
|
-
type OutputTuple = [termMonths: bigint, admin: string];
|
|
2848
|
-
interface OutputObject {
|
|
2849
|
-
termMonths: bigint;
|
|
2850
|
-
admin: string;
|
|
2851
|
-
}
|
|
2852
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
2853
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
2854
|
-
type Log = TypedEventLog<Event>;
|
|
2855
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
2856
|
-
}
|
|
2857
|
-
interface ITermManager extends BaseContract {
|
|
2858
|
-
connect(runner?: ContractRunner | null): ITermManager;
|
|
2859
|
-
waitForDeployment(): Promise<this>;
|
|
2860
|
-
interface: ITermManagerInterface;
|
|
2861
|
-
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
2862
|
-
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
2863
|
-
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
2864
|
-
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
2865
|
-
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
2866
|
-
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
2867
|
-
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
2868
|
-
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
2869
|
-
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
2870
|
-
addTerm: TypedContractMethod<[
|
|
2871
|
-
_termMonths: BigNumberish,
|
|
2872
|
-
_originationFee: BigNumberish,
|
|
2873
|
-
_extensionFee: BigNumberish
|
|
2874
|
-
], [
|
|
2875
|
-
void
|
|
2876
|
-
], "nonpayable">;
|
|
2877
|
-
getTermFees: TypedContractMethod<[
|
|
2878
|
-
_termMonths: BigNumberish
|
|
2879
|
-
], [
|
|
2880
|
-
[bigint, bigint] & {
|
|
2881
|
-
originationFee: bigint;
|
|
2882
|
-
extensionFee: bigint;
|
|
2883
|
-
}
|
|
2884
|
-
], "view">;
|
|
2885
|
-
getValidTermsWithFees: TypedContractMethod<[
|
|
2886
|
-
], [
|
|
2887
|
-
[
|
|
2888
|
-
bigint[],
|
|
2889
|
-
bigint[],
|
|
2890
|
-
bigint[]
|
|
2891
|
-
] & {
|
|
2892
|
-
terms: bigint[];
|
|
2893
|
-
originationFees: bigint[];
|
|
2894
|
-
extensionFees: bigint[];
|
|
2895
|
-
}
|
|
2896
|
-
], "view">;
|
|
2897
|
-
isValidTerm: TypedContractMethod<[
|
|
2898
|
-
_termMonths: BigNumberish
|
|
2899
|
-
], [
|
|
2900
|
-
boolean
|
|
2901
|
-
], "view">;
|
|
2902
|
-
removeTerm: TypedContractMethod<[
|
|
2903
|
-
_termMonths: BigNumberish
|
|
2904
|
-
], [
|
|
2905
|
-
void
|
|
2906
|
-
], "nonpayable">;
|
|
2907
|
-
supportsInterface: TypedContractMethod<[
|
|
2908
|
-
interfaceId: BytesLike
|
|
2909
|
-
], [
|
|
2910
|
-
boolean
|
|
2911
|
-
], "view">;
|
|
2912
|
-
updateDependencies: TypedContractMethod<[
|
|
2913
|
-
newCore: AddressLike,
|
|
2914
|
-
newUcdController: AddressLike
|
|
2915
|
-
], [
|
|
2916
|
-
void
|
|
2917
|
-
], "nonpayable">;
|
|
2918
|
-
updateTermFees: TypedContractMethod<[
|
|
2919
|
-
_termMonths: BigNumberish,
|
|
2920
|
-
_originationFee: BigNumberish,
|
|
2921
|
-
_extensionFee: BigNumberish
|
|
2922
|
-
], [
|
|
2923
|
-
void
|
|
2924
|
-
], "nonpayable">;
|
|
2925
|
-
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
2926
|
-
getFunction(nameOrSignature: "addTerm"): TypedContractMethod<[
|
|
2927
|
-
_termMonths: BigNumberish,
|
|
2928
|
-
_originationFee: BigNumberish,
|
|
2929
|
-
_extensionFee: BigNumberish
|
|
2930
|
-
], [
|
|
2931
|
-
void
|
|
2932
|
-
], "nonpayable">;
|
|
2933
|
-
getFunction(nameOrSignature: "getTermFees"): TypedContractMethod<[
|
|
2934
|
-
_termMonths: BigNumberish
|
|
2935
|
-
], [
|
|
2936
|
-
[bigint, bigint] & {
|
|
2937
|
-
originationFee: bigint;
|
|
2938
|
-
extensionFee: bigint;
|
|
2939
|
-
}
|
|
2940
|
-
], "view">;
|
|
2941
|
-
getFunction(nameOrSignature: "getValidTermsWithFees"): TypedContractMethod<[
|
|
2942
|
-
], [
|
|
2943
|
-
[
|
|
2944
|
-
bigint[],
|
|
2945
|
-
bigint[],
|
|
2946
|
-
bigint[]
|
|
2947
|
-
] & {
|
|
2948
|
-
terms: bigint[];
|
|
2949
|
-
originationFees: bigint[];
|
|
2950
|
-
extensionFees: bigint[];
|
|
2951
|
-
}
|
|
2952
|
-
], "view">;
|
|
2953
|
-
getFunction(nameOrSignature: "isValidTerm"): TypedContractMethod<[_termMonths: BigNumberish], [boolean], "view">;
|
|
2954
|
-
getFunction(nameOrSignature: "removeTerm"): TypedContractMethod<[_termMonths: BigNumberish], [void], "nonpayable">;
|
|
2955
|
-
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
2956
|
-
getFunction(nameOrSignature: "updateDependencies"): TypedContractMethod<[
|
|
2957
|
-
newCore: AddressLike,
|
|
2958
|
-
newUcdController: AddressLike
|
|
2959
|
-
], [
|
|
2960
|
-
void
|
|
2961
|
-
], "nonpayable">;
|
|
2962
|
-
getFunction(nameOrSignature: "updateTermFees"): TypedContractMethod<[
|
|
2963
|
-
_termMonths: BigNumberish,
|
|
2964
|
-
_originationFee: BigNumberish,
|
|
2965
|
-
_extensionFee: BigNumberish
|
|
2966
|
-
], [
|
|
2967
|
-
void
|
|
2968
|
-
], "nonpayable">;
|
|
2969
|
-
getEvent(key: "ContractUpgraded"): TypedContractEvent<ContractUpgradedEvent.InputTuple, ContractUpgradedEvent.OutputTuple, ContractUpgradedEvent.OutputObject>;
|
|
2970
|
-
getEvent(key: "DependenciesUpdated"): TypedContractEvent<DependenciesUpdatedEvent.InputTuple, DependenciesUpdatedEvent.OutputTuple, DependenciesUpdatedEvent.OutputObject>;
|
|
2971
|
-
getEvent(key: "TermAdded"): TypedContractEvent<TermAddedEvent.InputTuple, TermAddedEvent.OutputTuple, TermAddedEvent.OutputObject>;
|
|
2972
|
-
getEvent(key: "TermFeesUpdated"): TypedContractEvent<TermFeesUpdatedEvent.InputTuple, TermFeesUpdatedEvent.OutputTuple, TermFeesUpdatedEvent.OutputObject>;
|
|
2973
|
-
getEvent(key: "TermRemoved"): TypedContractEvent<TermRemovedEvent.InputTuple, TermRemovedEvent.OutputTuple, TermRemovedEvent.OutputObject>;
|
|
2974
|
-
filters: {
|
|
2975
|
-
"ContractUpgraded(address,address,string,uint256)": TypedContractEvent<ContractUpgradedEvent.InputTuple, ContractUpgradedEvent.OutputTuple, ContractUpgradedEvent.OutputObject>;
|
|
2976
|
-
ContractUpgraded: TypedContractEvent<ContractUpgradedEvent.InputTuple, ContractUpgradedEvent.OutputTuple, ContractUpgradedEvent.OutputObject>;
|
|
2977
|
-
"DependenciesUpdated(address,address)": TypedContractEvent<DependenciesUpdatedEvent.InputTuple, DependenciesUpdatedEvent.OutputTuple, DependenciesUpdatedEvent.OutputObject>;
|
|
2978
|
-
DependenciesUpdated: TypedContractEvent<DependenciesUpdatedEvent.InputTuple, DependenciesUpdatedEvent.OutputTuple, DependenciesUpdatedEvent.OutputObject>;
|
|
2979
|
-
"TermAdded(uint256,uint88,uint88,address)": TypedContractEvent<TermAddedEvent.InputTuple, TermAddedEvent.OutputTuple, TermAddedEvent.OutputObject>;
|
|
2980
|
-
TermAdded: TypedContractEvent<TermAddedEvent.InputTuple, TermAddedEvent.OutputTuple, TermAddedEvent.OutputObject>;
|
|
2981
|
-
"TermFeesUpdated(uint256,uint88,uint88)": TypedContractEvent<TermFeesUpdatedEvent.InputTuple, TermFeesUpdatedEvent.OutputTuple, TermFeesUpdatedEvent.OutputObject>;
|
|
2982
|
-
TermFeesUpdated: TypedContractEvent<TermFeesUpdatedEvent.InputTuple, TermFeesUpdatedEvent.OutputTuple, TermFeesUpdatedEvent.OutputObject>;
|
|
2983
|
-
"TermRemoved(uint256,address)": TypedContractEvent<TermRemovedEvent.InputTuple, TermRemovedEvent.OutputTuple, TermRemovedEvent.OutputObject>;
|
|
2984
|
-
TermRemoved: TypedContractEvent<TermRemovedEvent.InputTuple, TermRemovedEvent.OutputTuple, TermRemovedEvent.OutputObject>;
|
|
2985
|
-
};
|
|
2986
|
-
}
|
|
2987
|
-
|
|
2988
|
-
interface IUCDControllerInterface extends Interface {
|
|
2989
|
-
getFunction(nameOrSignature: "authorizedBurners" | "authorizedMinters" | "burnTokens" | "burnedPerAddress" | "dailyBurnLimit" | "dailyBurned" | "dailyMintLimit" | "dailyMinted" | "getCurrentSupply" | "getRemainingBurnCapacity" | "getRemainingMintCapacity" | "isAuthorizedBurner" | "isAuthorizedMinter" | "lastBurnReset" | "lastMintReset" | "maxSupply" | "mintTokens" | "setAuthorizedBurner" | "setAuthorizedMinter" | "setDailyBurnLimit" | "setDailyMintLimit" | "setMaxSupply" | "totalBurned" | "totalMinted" | "ucdToken" | "updateUCDToken"): FunctionFragment;
|
|
2990
|
-
getEvent(nameOrSignatureOrTopic: "AuthorizedBurnerUpdated" | "AuthorizedMinterUpdated" | "DailyBurnLimitUpdated" | "DailyMintLimitUpdated" | "MaxSupplyUpdated" | "TokensBurned" | "TokensMinted" | "UCDTokenUpdated"): EventFragment;
|
|
2991
|
-
encodeFunctionData(functionFragment: "authorizedBurners", values: [AddressLike]): string;
|
|
2992
|
-
encodeFunctionData(functionFragment: "authorizedMinters", values: [AddressLike]): string;
|
|
2993
|
-
encodeFunctionData(functionFragment: "burnTokens", values: [AddressLike, BigNumberish]): string;
|
|
2994
|
-
encodeFunctionData(functionFragment: "burnedPerAddress", values: [AddressLike]): string;
|
|
2995
|
-
encodeFunctionData(functionFragment: "dailyBurnLimit", values?: undefined): string;
|
|
2996
|
-
encodeFunctionData(functionFragment: "dailyBurned", values?: undefined): string;
|
|
2997
|
-
encodeFunctionData(functionFragment: "dailyMintLimit", values?: undefined): string;
|
|
2998
|
-
encodeFunctionData(functionFragment: "dailyMinted", values?: undefined): string;
|
|
2999
|
-
encodeFunctionData(functionFragment: "getCurrentSupply", values?: undefined): string;
|
|
3000
|
-
encodeFunctionData(functionFragment: "getRemainingBurnCapacity", values?: undefined): string;
|
|
3001
|
-
encodeFunctionData(functionFragment: "getRemainingMintCapacity", values?: undefined): string;
|
|
3002
|
-
encodeFunctionData(functionFragment: "isAuthorizedBurner", values: [AddressLike]): string;
|
|
3003
|
-
encodeFunctionData(functionFragment: "isAuthorizedMinter", values: [AddressLike]): string;
|
|
3004
|
-
encodeFunctionData(functionFragment: "lastBurnReset", values?: undefined): string;
|
|
3005
|
-
encodeFunctionData(functionFragment: "lastMintReset", values?: undefined): string;
|
|
3006
|
-
encodeFunctionData(functionFragment: "maxSupply", values?: undefined): string;
|
|
3007
|
-
encodeFunctionData(functionFragment: "mintTokens", values: [AddressLike, BigNumberish]): string;
|
|
3008
|
-
encodeFunctionData(functionFragment: "setAuthorizedBurner", values: [AddressLike, boolean]): string;
|
|
3009
|
-
encodeFunctionData(functionFragment: "setAuthorizedMinter", values: [AddressLike, boolean]): string;
|
|
3010
|
-
encodeFunctionData(functionFragment: "setDailyBurnLimit", values: [BigNumberish]): string;
|
|
3011
|
-
encodeFunctionData(functionFragment: "setDailyMintLimit", values: [BigNumberish]): string;
|
|
3012
|
-
encodeFunctionData(functionFragment: "setMaxSupply", values: [BigNumberish]): string;
|
|
3013
|
-
encodeFunctionData(functionFragment: "totalBurned", values?: undefined): string;
|
|
3014
|
-
encodeFunctionData(functionFragment: "totalMinted", values?: undefined): string;
|
|
3015
|
-
encodeFunctionData(functionFragment: "ucdToken", values?: undefined): string;
|
|
3016
|
-
encodeFunctionData(functionFragment: "updateUCDToken", values: [AddressLike]): string;
|
|
3017
|
-
decodeFunctionResult(functionFragment: "authorizedBurners", data: BytesLike): Result$2;
|
|
3018
|
-
decodeFunctionResult(functionFragment: "authorizedMinters", data: BytesLike): Result$2;
|
|
3019
|
-
decodeFunctionResult(functionFragment: "burnTokens", data: BytesLike): Result$2;
|
|
3020
|
-
decodeFunctionResult(functionFragment: "burnedPerAddress", data: BytesLike): Result$2;
|
|
3021
|
-
decodeFunctionResult(functionFragment: "dailyBurnLimit", data: BytesLike): Result$2;
|
|
3022
|
-
decodeFunctionResult(functionFragment: "dailyBurned", data: BytesLike): Result$2;
|
|
3023
|
-
decodeFunctionResult(functionFragment: "dailyMintLimit", data: BytesLike): Result$2;
|
|
3024
|
-
decodeFunctionResult(functionFragment: "dailyMinted", data: BytesLike): Result$2;
|
|
3025
|
-
decodeFunctionResult(functionFragment: "getCurrentSupply", data: BytesLike): Result$2;
|
|
3026
|
-
decodeFunctionResult(functionFragment: "getRemainingBurnCapacity", data: BytesLike): Result$2;
|
|
3027
|
-
decodeFunctionResult(functionFragment: "getRemainingMintCapacity", data: BytesLike): Result$2;
|
|
3028
|
-
decodeFunctionResult(functionFragment: "isAuthorizedBurner", data: BytesLike): Result$2;
|
|
3029
|
-
decodeFunctionResult(functionFragment: "isAuthorizedMinter", data: BytesLike): Result$2;
|
|
3030
|
-
decodeFunctionResult(functionFragment: "lastBurnReset", data: BytesLike): Result$2;
|
|
3031
|
-
decodeFunctionResult(functionFragment: "lastMintReset", data: BytesLike): Result$2;
|
|
3032
|
-
decodeFunctionResult(functionFragment: "maxSupply", data: BytesLike): Result$2;
|
|
3033
|
-
decodeFunctionResult(functionFragment: "mintTokens", data: BytesLike): Result$2;
|
|
3034
|
-
decodeFunctionResult(functionFragment: "setAuthorizedBurner", data: BytesLike): Result$2;
|
|
3035
|
-
decodeFunctionResult(functionFragment: "setAuthorizedMinter", data: BytesLike): Result$2;
|
|
3036
|
-
decodeFunctionResult(functionFragment: "setDailyBurnLimit", data: BytesLike): Result$2;
|
|
3037
|
-
decodeFunctionResult(functionFragment: "setDailyMintLimit", data: BytesLike): Result$2;
|
|
3038
|
-
decodeFunctionResult(functionFragment: "setMaxSupply", data: BytesLike): Result$2;
|
|
3039
|
-
decodeFunctionResult(functionFragment: "totalBurned", data: BytesLike): Result$2;
|
|
3040
|
-
decodeFunctionResult(functionFragment: "totalMinted", data: BytesLike): Result$2;
|
|
3041
|
-
decodeFunctionResult(functionFragment: "ucdToken", data: BytesLike): Result$2;
|
|
3042
|
-
decodeFunctionResult(functionFragment: "updateUCDToken", data: BytesLike): Result$2;
|
|
3043
|
-
}
|
|
3044
|
-
declare namespace AuthorizedBurnerUpdatedEvent {
|
|
3045
|
-
type InputTuple = [burner: AddressLike, authorized: boolean];
|
|
3046
|
-
type OutputTuple = [burner: string, authorized: boolean];
|
|
3047
|
-
interface OutputObject {
|
|
3048
|
-
burner: string;
|
|
3049
|
-
authorized: boolean;
|
|
3050
|
-
}
|
|
3051
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3052
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3053
|
-
type Log = TypedEventLog<Event>;
|
|
3054
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3055
|
-
}
|
|
3056
|
-
declare namespace AuthorizedMinterUpdatedEvent {
|
|
3057
|
-
type InputTuple = [minter: AddressLike, authorized: boolean];
|
|
3058
|
-
type OutputTuple = [minter: string, authorized: boolean];
|
|
3059
|
-
interface OutputObject {
|
|
3060
|
-
minter: string;
|
|
3061
|
-
authorized: boolean;
|
|
3062
|
-
}
|
|
3063
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3064
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3065
|
-
type Log = TypedEventLog<Event>;
|
|
3066
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3067
|
-
}
|
|
3068
|
-
declare namespace DailyBurnLimitUpdatedEvent {
|
|
3069
|
-
type InputTuple = [oldLimit: BigNumberish, newLimit: BigNumberish];
|
|
3070
|
-
type OutputTuple = [oldLimit: bigint, newLimit: bigint];
|
|
3071
|
-
interface OutputObject {
|
|
3072
|
-
oldLimit: bigint;
|
|
3073
|
-
newLimit: bigint;
|
|
3074
|
-
}
|
|
3075
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3076
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3077
|
-
type Log = TypedEventLog<Event>;
|
|
3078
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3079
|
-
}
|
|
3080
|
-
declare namespace DailyMintLimitUpdatedEvent {
|
|
3081
|
-
type InputTuple = [oldLimit: BigNumberish, newLimit: BigNumberish];
|
|
3082
|
-
type OutputTuple = [oldLimit: bigint, newLimit: bigint];
|
|
3083
|
-
interface OutputObject {
|
|
3084
|
-
oldLimit: bigint;
|
|
3085
|
-
newLimit: bigint;
|
|
3086
|
-
}
|
|
3087
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3088
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3089
|
-
type Log = TypedEventLog<Event>;
|
|
3090
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3091
|
-
}
|
|
3092
|
-
declare namespace MaxSupplyUpdatedEvent {
|
|
3093
|
-
type InputTuple = [
|
|
3094
|
-
oldMaxSupply: BigNumberish,
|
|
3095
|
-
newMaxSupply: BigNumberish
|
|
3096
|
-
];
|
|
3097
|
-
type OutputTuple = [oldMaxSupply: bigint, newMaxSupply: bigint];
|
|
3098
|
-
interface OutputObject {
|
|
3099
|
-
oldMaxSupply: bigint;
|
|
3100
|
-
newMaxSupply: bigint;
|
|
3101
|
-
}
|
|
3102
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3103
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3104
|
-
type Log = TypedEventLog<Event>;
|
|
3105
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3106
|
-
}
|
|
3107
|
-
declare namespace TokensBurnedEvent {
|
|
3108
|
-
type InputTuple = [
|
|
3109
|
-
from: AddressLike,
|
|
3110
|
-
amount: BigNumberish,
|
|
3111
|
-
burner: AddressLike
|
|
3112
|
-
];
|
|
3113
|
-
type OutputTuple = [from: string, amount: bigint, burner: string];
|
|
3114
|
-
interface OutputObject {
|
|
3115
|
-
from: string;
|
|
3116
|
-
amount: bigint;
|
|
3117
|
-
burner: string;
|
|
3118
|
-
}
|
|
3119
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3120
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3121
|
-
type Log = TypedEventLog<Event>;
|
|
3122
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3123
|
-
}
|
|
3124
|
-
declare namespace TokensMintedEvent {
|
|
3125
|
-
type InputTuple = [
|
|
3126
|
-
to: AddressLike,
|
|
3127
|
-
amount: BigNumberish,
|
|
3128
|
-
minter: AddressLike
|
|
3129
|
-
];
|
|
3130
|
-
type OutputTuple = [to: string, amount: bigint, minter: string];
|
|
3131
|
-
interface OutputObject {
|
|
3132
|
-
to: string;
|
|
3133
|
-
amount: bigint;
|
|
3134
|
-
minter: string;
|
|
3135
|
-
}
|
|
3136
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3137
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3138
|
-
type Log = TypedEventLog<Event>;
|
|
3139
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3140
|
-
}
|
|
3141
|
-
declare namespace UCDTokenUpdatedEvent {
|
|
3142
|
-
type InputTuple = [oldToken: AddressLike, newToken: AddressLike];
|
|
3143
|
-
type OutputTuple = [oldToken: string, newToken: string];
|
|
3144
|
-
interface OutputObject {
|
|
3145
|
-
oldToken: string;
|
|
3146
|
-
newToken: string;
|
|
3147
|
-
}
|
|
3148
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3149
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3150
|
-
type Log = TypedEventLog<Event>;
|
|
3151
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3152
|
-
}
|
|
3153
|
-
interface IUCDController extends BaseContract {
|
|
3154
|
-
connect(runner?: ContractRunner | null): IUCDController;
|
|
3155
|
-
waitForDeployment(): Promise<this>;
|
|
3156
|
-
interface: IUCDControllerInterface;
|
|
3157
|
-
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
3158
|
-
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
3159
|
-
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3160
|
-
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3161
|
-
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3162
|
-
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3163
|
-
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
3164
|
-
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
3165
|
-
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
3166
|
-
authorizedBurners: TypedContractMethod<[
|
|
3167
|
-
account: AddressLike
|
|
3168
|
-
], [
|
|
3169
|
-
boolean
|
|
3170
|
-
], "view">;
|
|
3171
|
-
authorizedMinters: TypedContractMethod<[
|
|
3172
|
-
account: AddressLike
|
|
3173
|
-
], [
|
|
3174
|
-
boolean
|
|
3175
|
-
], "view">;
|
|
3176
|
-
burnTokens: TypedContractMethod<[
|
|
3177
|
-
from: AddressLike,
|
|
3178
|
-
amount: BigNumberish
|
|
3179
|
-
], [
|
|
3180
|
-
void
|
|
3181
|
-
], "nonpayable">;
|
|
3182
|
-
burnedPerAddress: TypedContractMethod<[
|
|
3183
|
-
account: AddressLike
|
|
3184
|
-
], [
|
|
3185
|
-
bigint
|
|
3186
|
-
], "view">;
|
|
3187
|
-
dailyBurnLimit: TypedContractMethod<[], [bigint], "view">;
|
|
3188
|
-
dailyBurned: TypedContractMethod<[], [bigint], "view">;
|
|
3189
|
-
dailyMintLimit: TypedContractMethod<[], [bigint], "view">;
|
|
3190
|
-
dailyMinted: TypedContractMethod<[], [bigint], "view">;
|
|
3191
|
-
getCurrentSupply: TypedContractMethod<[], [bigint], "view">;
|
|
3192
|
-
getRemainingBurnCapacity: TypedContractMethod<[], [bigint], "view">;
|
|
3193
|
-
getRemainingMintCapacity: TypedContractMethod<[], [bigint], "view">;
|
|
3194
|
-
isAuthorizedBurner: TypedContractMethod<[
|
|
3195
|
-
account: AddressLike
|
|
3196
|
-
], [
|
|
3197
|
-
boolean
|
|
3198
|
-
], "view">;
|
|
3199
|
-
isAuthorizedMinter: TypedContractMethod<[
|
|
3200
|
-
account: AddressLike
|
|
3201
|
-
], [
|
|
3202
|
-
boolean
|
|
3203
|
-
], "view">;
|
|
3204
|
-
lastBurnReset: TypedContractMethod<[], [bigint], "view">;
|
|
3205
|
-
lastMintReset: TypedContractMethod<[], [bigint], "view">;
|
|
3206
|
-
maxSupply: TypedContractMethod<[], [bigint], "view">;
|
|
3207
|
-
mintTokens: TypedContractMethod<[
|
|
3208
|
-
to: AddressLike,
|
|
3209
|
-
amount: BigNumberish
|
|
3210
|
-
], [
|
|
3211
|
-
void
|
|
3212
|
-
], "nonpayable">;
|
|
3213
|
-
setAuthorizedBurner: TypedContractMethod<[
|
|
3214
|
-
burner: AddressLike,
|
|
3215
|
-
authorized: boolean
|
|
3216
|
-
], [
|
|
3217
|
-
void
|
|
3218
|
-
], "nonpayable">;
|
|
3219
|
-
setAuthorizedMinter: TypedContractMethod<[
|
|
3220
|
-
minter: AddressLike,
|
|
3221
|
-
authorized: boolean
|
|
3222
|
-
], [
|
|
3223
|
-
void
|
|
3224
|
-
], "nonpayable">;
|
|
3225
|
-
setDailyBurnLimit: TypedContractMethod<[
|
|
3226
|
-
newLimit: BigNumberish
|
|
3227
|
-
], [
|
|
3228
|
-
void
|
|
3229
|
-
], "nonpayable">;
|
|
3230
|
-
setDailyMintLimit: TypedContractMethod<[
|
|
3231
|
-
newLimit: BigNumberish
|
|
3232
|
-
], [
|
|
3233
|
-
void
|
|
3234
|
-
], "nonpayable">;
|
|
3235
|
-
setMaxSupply: TypedContractMethod<[
|
|
3236
|
-
newMaxSupply: BigNumberish
|
|
3237
|
-
], [
|
|
3238
|
-
void
|
|
3239
|
-
], "nonpayable">;
|
|
3240
|
-
totalBurned: TypedContractMethod<[], [bigint], "view">;
|
|
3241
|
-
totalMinted: TypedContractMethod<[], [bigint], "view">;
|
|
3242
|
-
ucdToken: TypedContractMethod<[], [string], "view">;
|
|
3243
|
-
updateUCDToken: TypedContractMethod<[
|
|
3244
|
-
newToken: AddressLike
|
|
3245
|
-
], [
|
|
3246
|
-
void
|
|
3247
|
-
], "nonpayable">;
|
|
3248
|
-
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
3249
|
-
getFunction(nameOrSignature: "authorizedBurners"): TypedContractMethod<[account: AddressLike], [boolean], "view">;
|
|
3250
|
-
getFunction(nameOrSignature: "authorizedMinters"): TypedContractMethod<[account: AddressLike], [boolean], "view">;
|
|
3251
|
-
getFunction(nameOrSignature: "burnTokens"): TypedContractMethod<[
|
|
3252
|
-
from: AddressLike,
|
|
3253
|
-
amount: BigNumberish
|
|
3254
|
-
], [
|
|
3255
|
-
void
|
|
3256
|
-
], "nonpayable">;
|
|
3257
|
-
getFunction(nameOrSignature: "burnedPerAddress"): TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
|
3258
|
-
getFunction(nameOrSignature: "dailyBurnLimit"): TypedContractMethod<[], [bigint], "view">;
|
|
3259
|
-
getFunction(nameOrSignature: "dailyBurned"): TypedContractMethod<[], [bigint], "view">;
|
|
3260
|
-
getFunction(nameOrSignature: "dailyMintLimit"): TypedContractMethod<[], [bigint], "view">;
|
|
3261
|
-
getFunction(nameOrSignature: "dailyMinted"): TypedContractMethod<[], [bigint], "view">;
|
|
3262
|
-
getFunction(nameOrSignature: "getCurrentSupply"): TypedContractMethod<[], [bigint], "view">;
|
|
3263
|
-
getFunction(nameOrSignature: "getRemainingBurnCapacity"): TypedContractMethod<[], [bigint], "view">;
|
|
3264
|
-
getFunction(nameOrSignature: "getRemainingMintCapacity"): TypedContractMethod<[], [bigint], "view">;
|
|
3265
|
-
getFunction(nameOrSignature: "isAuthorizedBurner"): TypedContractMethod<[account: AddressLike], [boolean], "view">;
|
|
3266
|
-
getFunction(nameOrSignature: "isAuthorizedMinter"): TypedContractMethod<[account: AddressLike], [boolean], "view">;
|
|
3267
|
-
getFunction(nameOrSignature: "lastBurnReset"): TypedContractMethod<[], [bigint], "view">;
|
|
3268
|
-
getFunction(nameOrSignature: "lastMintReset"): TypedContractMethod<[], [bigint], "view">;
|
|
3269
|
-
getFunction(nameOrSignature: "maxSupply"): TypedContractMethod<[], [bigint], "view">;
|
|
3270
|
-
getFunction(nameOrSignature: "mintTokens"): TypedContractMethod<[
|
|
3271
|
-
to: AddressLike,
|
|
3272
|
-
amount: BigNumberish
|
|
3273
|
-
], [
|
|
3274
|
-
void
|
|
3275
|
-
], "nonpayable">;
|
|
3276
|
-
getFunction(nameOrSignature: "setAuthorizedBurner"): TypedContractMethod<[
|
|
3277
|
-
burner: AddressLike,
|
|
3278
|
-
authorized: boolean
|
|
3279
|
-
], [
|
|
3280
|
-
void
|
|
3281
|
-
], "nonpayable">;
|
|
3282
|
-
getFunction(nameOrSignature: "setAuthorizedMinter"): TypedContractMethod<[
|
|
3283
|
-
minter: AddressLike,
|
|
3284
|
-
authorized: boolean
|
|
3285
|
-
], [
|
|
3286
|
-
void
|
|
3287
|
-
], "nonpayable">;
|
|
3288
|
-
getFunction(nameOrSignature: "setDailyBurnLimit"): TypedContractMethod<[newLimit: BigNumberish], [void], "nonpayable">;
|
|
3289
|
-
getFunction(nameOrSignature: "setDailyMintLimit"): TypedContractMethod<[newLimit: BigNumberish], [void], "nonpayable">;
|
|
3290
|
-
getFunction(nameOrSignature: "setMaxSupply"): TypedContractMethod<[newMaxSupply: BigNumberish], [void], "nonpayable">;
|
|
3291
|
-
getFunction(nameOrSignature: "totalBurned"): TypedContractMethod<[], [bigint], "view">;
|
|
3292
|
-
getFunction(nameOrSignature: "totalMinted"): TypedContractMethod<[], [bigint], "view">;
|
|
3293
|
-
getFunction(nameOrSignature: "ucdToken"): TypedContractMethod<[], [string], "view">;
|
|
3294
|
-
getFunction(nameOrSignature: "updateUCDToken"): TypedContractMethod<[newToken: AddressLike], [void], "nonpayable">;
|
|
3295
|
-
getEvent(key: "AuthorizedBurnerUpdated"): TypedContractEvent<AuthorizedBurnerUpdatedEvent.InputTuple, AuthorizedBurnerUpdatedEvent.OutputTuple, AuthorizedBurnerUpdatedEvent.OutputObject>;
|
|
3296
|
-
getEvent(key: "AuthorizedMinterUpdated"): TypedContractEvent<AuthorizedMinterUpdatedEvent.InputTuple, AuthorizedMinterUpdatedEvent.OutputTuple, AuthorizedMinterUpdatedEvent.OutputObject>;
|
|
3297
|
-
getEvent(key: "DailyBurnLimitUpdated"): TypedContractEvent<DailyBurnLimitUpdatedEvent.InputTuple, DailyBurnLimitUpdatedEvent.OutputTuple, DailyBurnLimitUpdatedEvent.OutputObject>;
|
|
3298
|
-
getEvent(key: "DailyMintLimitUpdated"): TypedContractEvent<DailyMintLimitUpdatedEvent.InputTuple, DailyMintLimitUpdatedEvent.OutputTuple, DailyMintLimitUpdatedEvent.OutputObject>;
|
|
3299
|
-
getEvent(key: "MaxSupplyUpdated"): TypedContractEvent<MaxSupplyUpdatedEvent.InputTuple, MaxSupplyUpdatedEvent.OutputTuple, MaxSupplyUpdatedEvent.OutputObject>;
|
|
3300
|
-
getEvent(key: "TokensBurned"): TypedContractEvent<TokensBurnedEvent.InputTuple, TokensBurnedEvent.OutputTuple, TokensBurnedEvent.OutputObject>;
|
|
3301
|
-
getEvent(key: "TokensMinted"): TypedContractEvent<TokensMintedEvent.InputTuple, TokensMintedEvent.OutputTuple, TokensMintedEvent.OutputObject>;
|
|
3302
|
-
getEvent(key: "UCDTokenUpdated"): TypedContractEvent<UCDTokenUpdatedEvent.InputTuple, UCDTokenUpdatedEvent.OutputTuple, UCDTokenUpdatedEvent.OutputObject>;
|
|
3303
|
-
filters: {
|
|
3304
|
-
"AuthorizedBurnerUpdated(address,bool)": TypedContractEvent<AuthorizedBurnerUpdatedEvent.InputTuple, AuthorizedBurnerUpdatedEvent.OutputTuple, AuthorizedBurnerUpdatedEvent.OutputObject>;
|
|
3305
|
-
AuthorizedBurnerUpdated: TypedContractEvent<AuthorizedBurnerUpdatedEvent.InputTuple, AuthorizedBurnerUpdatedEvent.OutputTuple, AuthorizedBurnerUpdatedEvent.OutputObject>;
|
|
3306
|
-
"AuthorizedMinterUpdated(address,bool)": TypedContractEvent<AuthorizedMinterUpdatedEvent.InputTuple, AuthorizedMinterUpdatedEvent.OutputTuple, AuthorizedMinterUpdatedEvent.OutputObject>;
|
|
3307
|
-
AuthorizedMinterUpdated: TypedContractEvent<AuthorizedMinterUpdatedEvent.InputTuple, AuthorizedMinterUpdatedEvent.OutputTuple, AuthorizedMinterUpdatedEvent.OutputObject>;
|
|
3308
|
-
"DailyBurnLimitUpdated(uint256,uint256)": TypedContractEvent<DailyBurnLimitUpdatedEvent.InputTuple, DailyBurnLimitUpdatedEvent.OutputTuple, DailyBurnLimitUpdatedEvent.OutputObject>;
|
|
3309
|
-
DailyBurnLimitUpdated: TypedContractEvent<DailyBurnLimitUpdatedEvent.InputTuple, DailyBurnLimitUpdatedEvent.OutputTuple, DailyBurnLimitUpdatedEvent.OutputObject>;
|
|
3310
|
-
"DailyMintLimitUpdated(uint256,uint256)": TypedContractEvent<DailyMintLimitUpdatedEvent.InputTuple, DailyMintLimitUpdatedEvent.OutputTuple, DailyMintLimitUpdatedEvent.OutputObject>;
|
|
3311
|
-
DailyMintLimitUpdated: TypedContractEvent<DailyMintLimitUpdatedEvent.InputTuple, DailyMintLimitUpdatedEvent.OutputTuple, DailyMintLimitUpdatedEvent.OutputObject>;
|
|
3312
|
-
"MaxSupplyUpdated(uint256,uint256)": TypedContractEvent<MaxSupplyUpdatedEvent.InputTuple, MaxSupplyUpdatedEvent.OutputTuple, MaxSupplyUpdatedEvent.OutputObject>;
|
|
3313
|
-
MaxSupplyUpdated: TypedContractEvent<MaxSupplyUpdatedEvent.InputTuple, MaxSupplyUpdatedEvent.OutputTuple, MaxSupplyUpdatedEvent.OutputObject>;
|
|
3314
|
-
"TokensBurned(address,uint256,address)": TypedContractEvent<TokensBurnedEvent.InputTuple, TokensBurnedEvent.OutputTuple, TokensBurnedEvent.OutputObject>;
|
|
3315
|
-
TokensBurned: TypedContractEvent<TokensBurnedEvent.InputTuple, TokensBurnedEvent.OutputTuple, TokensBurnedEvent.OutputObject>;
|
|
3316
|
-
"TokensMinted(address,uint256,address)": TypedContractEvent<TokensMintedEvent.InputTuple, TokensMintedEvent.OutputTuple, TokensMintedEvent.OutputObject>;
|
|
3317
|
-
TokensMinted: TypedContractEvent<TokensMintedEvent.InputTuple, TokensMintedEvent.OutputTuple, TokensMintedEvent.OutputObject>;
|
|
3318
|
-
"UCDTokenUpdated(address,address)": TypedContractEvent<UCDTokenUpdatedEvent.InputTuple, UCDTokenUpdatedEvent.OutputTuple, UCDTokenUpdatedEvent.OutputObject>;
|
|
3319
|
-
UCDTokenUpdated: TypedContractEvent<UCDTokenUpdatedEvent.InputTuple, UCDTokenUpdatedEvent.OutputTuple, UCDTokenUpdatedEvent.OutputObject>;
|
|
3320
|
-
};
|
|
3321
|
-
}
|
|
3322
|
-
|
|
3323
|
-
interface CircuitBreakerModuleInterface extends Interface {
|
|
3324
|
-
getFunction(nameOrSignature: "ADMIN_ROLE" | "DEFAULT_ADMIN_ROLE" | "EMERGENCY_PAUSE_ROLE" | "LIMIT_UPDATE_DELAY" | "REQUIRED_SIGNATURES" | "UPGRADE_INTERFACE_VERSION" | "activateCircuitBreaker" | "circuitBreakerActivatedAt" | "circuitBreakerActive" | "circuitBreakerCheck" | "dailyBtcVolume" | "dailyUcdVolume" | "dailyVolumeLimit" | "deactivateCircuitBreaker" | "executeLimitUpdate" | "getRoleAdmin" | "grantRole" | "hasRole" | "initialize" | "limitUpdateProposals" | "limitUpdateSigners" | "maxBtcPerPosition" | "maxSingleLoanValue" | "paused" | "proposeLimitUpdate" | "proxiableUUID" | "renounceRole" | "revokeRole" | "signCircuitBreakerDeactivation" | "signLimitUpdate" | "supportsInterface" | "upgradeToAndCall"): FunctionFragment;
|
|
3325
|
-
getEvent(nameOrSignatureOrTopic: "CircuitBreakerActivated" | "CircuitBreakerDeactivated" | "CircuitBreakerDeactivationSigned" | "DailyLimitApproached" | "Initialized" | "LimitUpdateProposed" | "LimitUpdateSigned" | "LimitsUpdated" | "Paused" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "Unpaused" | "Upgraded" | "VolumeUpdated"): EventFragment;
|
|
3326
|
-
encodeFunctionData(functionFragment: "ADMIN_ROLE", values?: undefined): string;
|
|
3327
|
-
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
|
|
3328
|
-
encodeFunctionData(functionFragment: "EMERGENCY_PAUSE_ROLE", values?: undefined): string;
|
|
3329
|
-
encodeFunctionData(functionFragment: "LIMIT_UPDATE_DELAY", values?: undefined): string;
|
|
3330
|
-
encodeFunctionData(functionFragment: "REQUIRED_SIGNATURES", values?: undefined): string;
|
|
3331
|
-
encodeFunctionData(functionFragment: "UPGRADE_INTERFACE_VERSION", values?: undefined): string;
|
|
3332
|
-
encodeFunctionData(functionFragment: "activateCircuitBreaker", values?: undefined): string;
|
|
3333
|
-
encodeFunctionData(functionFragment: "circuitBreakerActivatedAt", values?: undefined): string;
|
|
3334
|
-
encodeFunctionData(functionFragment: "circuitBreakerActive", values?: undefined): string;
|
|
3335
|
-
encodeFunctionData(functionFragment: "circuitBreakerCheck", values: [BigNumberish, BigNumberish]): string;
|
|
3336
|
-
encodeFunctionData(functionFragment: "dailyBtcVolume", values: [BigNumberish]): string;
|
|
3337
|
-
encodeFunctionData(functionFragment: "dailyUcdVolume", values: [BigNumberish]): string;
|
|
3338
|
-
encodeFunctionData(functionFragment: "dailyVolumeLimit", values?: undefined): string;
|
|
3339
|
-
encodeFunctionData(functionFragment: "deactivateCircuitBreaker", values?: undefined): string;
|
|
3340
|
-
encodeFunctionData(functionFragment: "executeLimitUpdate", values: [BytesLike, BigNumberish, BigNumberish, BigNumberish]): string;
|
|
3341
|
-
encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string;
|
|
3342
|
-
encodeFunctionData(functionFragment: "grantRole", values: [BytesLike, AddressLike]): string;
|
|
3343
|
-
encodeFunctionData(functionFragment: "hasRole", values: [BytesLike, AddressLike]): string;
|
|
3344
|
-
encodeFunctionData(functionFragment: "initialize", values: [AddressLike]): string;
|
|
3345
|
-
encodeFunctionData(functionFragment: "limitUpdateProposals", values: [BytesLike]): string;
|
|
3346
|
-
encodeFunctionData(functionFragment: "limitUpdateSigners", values: [BytesLike, BigNumberish]): string;
|
|
3347
|
-
encodeFunctionData(functionFragment: "maxBtcPerPosition", values?: undefined): string;
|
|
3348
|
-
encodeFunctionData(functionFragment: "maxSingleLoanValue", values?: undefined): string;
|
|
3349
|
-
encodeFunctionData(functionFragment: "paused", values?: undefined): string;
|
|
3350
|
-
encodeFunctionData(functionFragment: "proposeLimitUpdate", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
3351
|
-
encodeFunctionData(functionFragment: "proxiableUUID", values?: undefined): string;
|
|
3352
|
-
encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
|
|
3353
|
-
encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string;
|
|
3354
|
-
encodeFunctionData(functionFragment: "signCircuitBreakerDeactivation", values?: undefined): string;
|
|
3355
|
-
encodeFunctionData(functionFragment: "signLimitUpdate", values: [BytesLike]): string;
|
|
3356
|
-
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
3357
|
-
encodeFunctionData(functionFragment: "upgradeToAndCall", values: [AddressLike, BytesLike]): string;
|
|
3358
|
-
decodeFunctionResult(functionFragment: "ADMIN_ROLE", data: BytesLike): Result$2;
|
|
3359
|
-
decodeFunctionResult(functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike): Result$2;
|
|
3360
|
-
decodeFunctionResult(functionFragment: "EMERGENCY_PAUSE_ROLE", data: BytesLike): Result$2;
|
|
3361
|
-
decodeFunctionResult(functionFragment: "LIMIT_UPDATE_DELAY", data: BytesLike): Result$2;
|
|
3362
|
-
decodeFunctionResult(functionFragment: "REQUIRED_SIGNATURES", data: BytesLike): Result$2;
|
|
3363
|
-
decodeFunctionResult(functionFragment: "UPGRADE_INTERFACE_VERSION", data: BytesLike): Result$2;
|
|
3364
|
-
decodeFunctionResult(functionFragment: "activateCircuitBreaker", data: BytesLike): Result$2;
|
|
3365
|
-
decodeFunctionResult(functionFragment: "circuitBreakerActivatedAt", data: BytesLike): Result$2;
|
|
3366
|
-
decodeFunctionResult(functionFragment: "circuitBreakerActive", data: BytesLike): Result$2;
|
|
3367
|
-
decodeFunctionResult(functionFragment: "circuitBreakerCheck", data: BytesLike): Result$2;
|
|
3368
|
-
decodeFunctionResult(functionFragment: "dailyBtcVolume", data: BytesLike): Result$2;
|
|
3369
|
-
decodeFunctionResult(functionFragment: "dailyUcdVolume", data: BytesLike): Result$2;
|
|
3370
|
-
decodeFunctionResult(functionFragment: "dailyVolumeLimit", data: BytesLike): Result$2;
|
|
3371
|
-
decodeFunctionResult(functionFragment: "deactivateCircuitBreaker", data: BytesLike): Result$2;
|
|
3372
|
-
decodeFunctionResult(functionFragment: "executeLimitUpdate", data: BytesLike): Result$2;
|
|
3373
|
-
decodeFunctionResult(functionFragment: "getRoleAdmin", data: BytesLike): Result$2;
|
|
3374
|
-
decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result$2;
|
|
3375
|
-
decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result$2;
|
|
3376
|
-
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result$2;
|
|
3377
|
-
decodeFunctionResult(functionFragment: "limitUpdateProposals", data: BytesLike): Result$2;
|
|
3378
|
-
decodeFunctionResult(functionFragment: "limitUpdateSigners", data: BytesLike): Result$2;
|
|
3379
|
-
decodeFunctionResult(functionFragment: "maxBtcPerPosition", data: BytesLike): Result$2;
|
|
3380
|
-
decodeFunctionResult(functionFragment: "maxSingleLoanValue", data: BytesLike): Result$2;
|
|
3381
|
-
decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result$2;
|
|
3382
|
-
decodeFunctionResult(functionFragment: "proposeLimitUpdate", data: BytesLike): Result$2;
|
|
3383
|
-
decodeFunctionResult(functionFragment: "proxiableUUID", data: BytesLike): Result$2;
|
|
3384
|
-
decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result$2;
|
|
3385
|
-
decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result$2;
|
|
3386
|
-
decodeFunctionResult(functionFragment: "signCircuitBreakerDeactivation", data: BytesLike): Result$2;
|
|
3387
|
-
decodeFunctionResult(functionFragment: "signLimitUpdate", data: BytesLike): Result$2;
|
|
3388
|
-
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result$2;
|
|
3389
|
-
decodeFunctionResult(functionFragment: "upgradeToAndCall", data: BytesLike): Result$2;
|
|
3390
|
-
}
|
|
3391
|
-
declare namespace CircuitBreakerActivatedEvent {
|
|
3392
|
-
type InputTuple = [admin: AddressLike];
|
|
3393
|
-
type OutputTuple = [admin: string];
|
|
3394
|
-
interface OutputObject {
|
|
3395
|
-
admin: string;
|
|
3396
|
-
}
|
|
3397
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3398
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3399
|
-
type Log = TypedEventLog<Event>;
|
|
3400
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3401
|
-
}
|
|
3402
|
-
declare namespace CircuitBreakerDeactivatedEvent {
|
|
3403
|
-
type InputTuple = [admin: AddressLike];
|
|
3404
|
-
type OutputTuple = [admin: string];
|
|
3405
|
-
interface OutputObject {
|
|
3406
|
-
admin: string;
|
|
3407
|
-
}
|
|
3408
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3409
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3410
|
-
type Log = TypedEventLog<Event>;
|
|
3411
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3412
|
-
}
|
|
3413
|
-
declare namespace CircuitBreakerDeactivationSignedEvent {
|
|
3414
|
-
type InputTuple = [signer: AddressLike, totalSignatures: BigNumberish];
|
|
3415
|
-
type OutputTuple = [signer: string, totalSignatures: bigint];
|
|
3416
|
-
interface OutputObject {
|
|
3417
|
-
signer: string;
|
|
3418
|
-
totalSignatures: bigint;
|
|
3419
|
-
}
|
|
3420
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3421
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3422
|
-
type Log = TypedEventLog<Event>;
|
|
3423
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3424
|
-
}
|
|
3425
|
-
declare namespace DailyLimitApproachedEvent {
|
|
3426
|
-
type InputTuple = [
|
|
3427
|
-
currentVolume: BigNumberish,
|
|
3428
|
-
limit: BigNumberish,
|
|
3429
|
-
percentage: BigNumberish
|
|
3430
|
-
];
|
|
3431
|
-
type OutputTuple = [
|
|
3432
|
-
currentVolume: bigint,
|
|
3433
|
-
limit: bigint,
|
|
3434
|
-
percentage: bigint
|
|
3435
|
-
];
|
|
3436
|
-
interface OutputObject {
|
|
3437
|
-
currentVolume: bigint;
|
|
3438
|
-
limit: bigint;
|
|
3439
|
-
percentage: bigint;
|
|
3440
|
-
}
|
|
3441
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3442
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3443
|
-
type Log = TypedEventLog<Event>;
|
|
3444
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3445
|
-
}
|
|
3446
|
-
declare namespace InitializedEvent {
|
|
3447
|
-
type InputTuple = [version: BigNumberish];
|
|
3448
|
-
type OutputTuple = [version: bigint];
|
|
3449
|
-
interface OutputObject {
|
|
3450
|
-
version: bigint;
|
|
3451
|
-
}
|
|
3452
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3453
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3454
|
-
type Log = TypedEventLog<Event>;
|
|
3455
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3456
|
-
}
|
|
3457
|
-
declare namespace LimitUpdateProposedEvent {
|
|
3458
|
-
type InputTuple = [
|
|
3459
|
-
proposalHash: BytesLike,
|
|
3460
|
-
maxLoanValue: BigNumberish,
|
|
3461
|
-
maxBtcPerPosition: BigNumberish,
|
|
3462
|
-
dailyLimit: BigNumberish,
|
|
3463
|
-
proposer: AddressLike
|
|
3464
|
-
];
|
|
3465
|
-
type OutputTuple = [
|
|
3466
|
-
proposalHash: string,
|
|
3467
|
-
maxLoanValue: bigint,
|
|
3468
|
-
maxBtcPerPosition: bigint,
|
|
3469
|
-
dailyLimit: bigint,
|
|
3470
|
-
proposer: string
|
|
3471
|
-
];
|
|
3472
|
-
interface OutputObject {
|
|
3473
|
-
proposalHash: string;
|
|
3474
|
-
maxLoanValue: bigint;
|
|
3475
|
-
maxBtcPerPosition: bigint;
|
|
3476
|
-
dailyLimit: bigint;
|
|
3477
|
-
proposer: string;
|
|
3478
|
-
}
|
|
3479
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3480
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3481
|
-
type Log = TypedEventLog<Event>;
|
|
3482
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3483
|
-
}
|
|
3484
|
-
declare namespace LimitUpdateSignedEvent {
|
|
3485
|
-
type InputTuple = [
|
|
3486
|
-
proposalHash: BytesLike,
|
|
3487
|
-
signer: AddressLike,
|
|
3488
|
-
totalSignatures: BigNumberish
|
|
3489
|
-
];
|
|
3490
|
-
type OutputTuple = [
|
|
3491
|
-
proposalHash: string,
|
|
3492
|
-
signer: string,
|
|
3493
|
-
totalSignatures: bigint
|
|
3494
|
-
];
|
|
3495
|
-
interface OutputObject {
|
|
3496
|
-
proposalHash: string;
|
|
3497
|
-
signer: string;
|
|
3498
|
-
totalSignatures: bigint;
|
|
3499
|
-
}
|
|
3500
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3501
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3502
|
-
type Log = TypedEventLog<Event>;
|
|
3503
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3504
|
-
}
|
|
3505
|
-
declare namespace LimitsUpdatedEvent {
|
|
3506
|
-
type InputTuple = [
|
|
3507
|
-
oldMaxLoanValue: BigNumberish,
|
|
3508
|
-
newMaxLoanValue: BigNumberish,
|
|
3509
|
-
oldMaxBtcPerPosition: BigNumberish,
|
|
3510
|
-
newMaxBtcPerPosition: BigNumberish,
|
|
3511
|
-
oldDailyLimit: BigNumberish,
|
|
3512
|
-
newDailyLimit: BigNumberish
|
|
3513
|
-
];
|
|
3514
|
-
type OutputTuple = [
|
|
3515
|
-
oldMaxLoanValue: bigint,
|
|
3516
|
-
newMaxLoanValue: bigint,
|
|
3517
|
-
oldMaxBtcPerPosition: bigint,
|
|
3518
|
-
newMaxBtcPerPosition: bigint,
|
|
3519
|
-
oldDailyLimit: bigint,
|
|
3520
|
-
newDailyLimit: bigint
|
|
3521
|
-
];
|
|
3522
|
-
interface OutputObject {
|
|
3523
|
-
oldMaxLoanValue: bigint;
|
|
3524
|
-
newMaxLoanValue: bigint;
|
|
3525
|
-
oldMaxBtcPerPosition: bigint;
|
|
3526
|
-
newMaxBtcPerPosition: bigint;
|
|
3527
|
-
oldDailyLimit: bigint;
|
|
3528
|
-
newDailyLimit: bigint;
|
|
3529
|
-
}
|
|
3530
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3531
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3532
|
-
type Log = TypedEventLog<Event>;
|
|
3533
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3534
|
-
}
|
|
3535
|
-
declare namespace PausedEvent {
|
|
3536
|
-
type InputTuple = [account: AddressLike];
|
|
3537
|
-
type OutputTuple = [account: string];
|
|
3538
|
-
interface OutputObject {
|
|
3539
|
-
account: string;
|
|
3540
|
-
}
|
|
3541
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3542
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3543
|
-
type Log = TypedEventLog<Event>;
|
|
3544
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3545
|
-
}
|
|
3546
|
-
declare namespace RoleAdminChangedEvent {
|
|
3547
|
-
type InputTuple = [
|
|
3548
|
-
role: BytesLike,
|
|
3549
|
-
previousAdminRole: BytesLike,
|
|
3550
|
-
newAdminRole: BytesLike
|
|
3551
|
-
];
|
|
3552
|
-
type OutputTuple = [
|
|
3553
|
-
role: string,
|
|
3554
|
-
previousAdminRole: string,
|
|
3555
|
-
newAdminRole: string
|
|
3556
|
-
];
|
|
3557
|
-
interface OutputObject {
|
|
3558
|
-
role: string;
|
|
3559
|
-
previousAdminRole: string;
|
|
3560
|
-
newAdminRole: string;
|
|
3561
|
-
}
|
|
3562
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3563
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3564
|
-
type Log = TypedEventLog<Event>;
|
|
3565
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3566
|
-
}
|
|
3567
|
-
declare namespace RoleGrantedEvent {
|
|
3568
|
-
type InputTuple = [
|
|
3569
|
-
role: BytesLike,
|
|
3570
|
-
account: AddressLike,
|
|
3571
|
-
sender: AddressLike
|
|
3572
|
-
];
|
|
3573
|
-
type OutputTuple = [role: string, account: string, sender: string];
|
|
3574
|
-
interface OutputObject {
|
|
3575
|
-
role: string;
|
|
3576
|
-
account: string;
|
|
3577
|
-
sender: string;
|
|
3578
|
-
}
|
|
3579
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3580
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3581
|
-
type Log = TypedEventLog<Event>;
|
|
3582
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3583
|
-
}
|
|
3584
|
-
declare namespace RoleRevokedEvent {
|
|
3585
|
-
type InputTuple = [
|
|
3586
|
-
role: BytesLike,
|
|
3587
|
-
account: AddressLike,
|
|
3588
|
-
sender: AddressLike
|
|
3589
|
-
];
|
|
3590
|
-
type OutputTuple = [role: string, account: string, sender: string];
|
|
3591
|
-
interface OutputObject {
|
|
3592
|
-
role: string;
|
|
3593
|
-
account: string;
|
|
3594
|
-
sender: string;
|
|
3595
|
-
}
|
|
3596
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3597
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3598
|
-
type Log = TypedEventLog<Event>;
|
|
3599
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3600
|
-
}
|
|
3601
|
-
declare namespace UnpausedEvent {
|
|
3602
|
-
type InputTuple = [account: AddressLike];
|
|
3603
|
-
type OutputTuple = [account: string];
|
|
3604
|
-
interface OutputObject {
|
|
3605
|
-
account: string;
|
|
3606
|
-
}
|
|
3607
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3608
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3609
|
-
type Log = TypedEventLog<Event>;
|
|
3610
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3611
|
-
}
|
|
3612
|
-
declare namespace UpgradedEvent {
|
|
3613
|
-
type InputTuple = [implementation: AddressLike];
|
|
3614
|
-
type OutputTuple = [implementation: string];
|
|
3615
|
-
interface OutputObject {
|
|
3616
|
-
implementation: string;
|
|
3617
|
-
}
|
|
3618
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3619
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3620
|
-
type Log = TypedEventLog<Event>;
|
|
3621
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3622
|
-
}
|
|
3623
|
-
declare namespace VolumeUpdatedEvent {
|
|
3624
|
-
type InputTuple = [
|
|
3625
|
-
day: BigNumberish,
|
|
3626
|
-
amount: BigNumberish,
|
|
3627
|
-
newVolume: BigNumberish
|
|
3628
|
-
];
|
|
3629
|
-
type OutputTuple = [day: bigint, amount: bigint, newVolume: bigint];
|
|
3630
|
-
interface OutputObject {
|
|
3631
|
-
day: bigint;
|
|
3632
|
-
amount: bigint;
|
|
3633
|
-
newVolume: bigint;
|
|
3634
|
-
}
|
|
3635
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
3636
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
3637
|
-
type Log = TypedEventLog<Event>;
|
|
3638
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
3639
|
-
}
|
|
3640
|
-
interface CircuitBreakerModule extends BaseContract {
|
|
3641
|
-
connect(runner?: ContractRunner | null): CircuitBreakerModule;
|
|
3642
|
-
waitForDeployment(): Promise<this>;
|
|
3643
|
-
interface: CircuitBreakerModuleInterface;
|
|
3644
|
-
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
3645
|
-
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
3646
|
-
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3647
|
-
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3648
|
-
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3649
|
-
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
3650
|
-
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
3651
|
-
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
3652
|
-
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
3653
|
-
ADMIN_ROLE: TypedContractMethod<[], [string], "view">;
|
|
3654
|
-
DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">;
|
|
3655
|
-
EMERGENCY_PAUSE_ROLE: TypedContractMethod<[], [string], "view">;
|
|
3656
|
-
LIMIT_UPDATE_DELAY: TypedContractMethod<[], [bigint], "view">;
|
|
3657
|
-
REQUIRED_SIGNATURES: TypedContractMethod<[], [bigint], "view">;
|
|
3658
|
-
UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">;
|
|
3659
|
-
activateCircuitBreaker: TypedContractMethod<[], [void], "nonpayable">;
|
|
3660
|
-
circuitBreakerActivatedAt: TypedContractMethod<[], [bigint], "view">;
|
|
3661
|
-
circuitBreakerActive: TypedContractMethod<[], [boolean], "view">;
|
|
3662
|
-
circuitBreakerCheck: TypedContractMethod<[
|
|
3663
|
-
ucdAmount: BigNumberish,
|
|
3664
|
-
btcAmount: BigNumberish
|
|
3665
|
-
], [
|
|
3666
|
-
void
|
|
3667
|
-
], "nonpayable">;
|
|
3668
|
-
dailyBtcVolume: TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
|
|
3669
|
-
dailyUcdVolume: TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
|
|
3670
|
-
dailyVolumeLimit: TypedContractMethod<[], [bigint], "view">;
|
|
3671
|
-
deactivateCircuitBreaker: TypedContractMethod<[], [void], "nonpayable">;
|
|
3672
|
-
executeLimitUpdate: TypedContractMethod<[
|
|
3673
|
-
proposalHash: BytesLike,
|
|
3674
|
-
newMaxLoanValue: BigNumberish,
|
|
3675
|
-
newMaxBtcPerPosition: BigNumberish,
|
|
3676
|
-
newDailyLimit: BigNumberish
|
|
3677
|
-
], [
|
|
3678
|
-
void
|
|
3679
|
-
], "nonpayable">;
|
|
3680
|
-
getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
3681
|
-
grantRole: TypedContractMethod<[
|
|
3682
|
-
role: BytesLike,
|
|
3683
|
-
account: AddressLike
|
|
3684
|
-
], [
|
|
3685
|
-
void
|
|
3686
|
-
], "nonpayable">;
|
|
3687
|
-
hasRole: TypedContractMethod<[
|
|
3688
|
-
role: BytesLike,
|
|
3689
|
-
account: AddressLike
|
|
3690
|
-
], [
|
|
3691
|
-
boolean
|
|
3692
|
-
], "view">;
|
|
3693
|
-
initialize: TypedContractMethod<[_admin: AddressLike], [void], "nonpayable">;
|
|
3694
|
-
limitUpdateProposals: TypedContractMethod<[
|
|
3695
|
-
arg0: BytesLike
|
|
3696
|
-
], [
|
|
3697
|
-
bigint
|
|
3698
|
-
], "view">;
|
|
3699
|
-
limitUpdateSigners: TypedContractMethod<[
|
|
3700
|
-
arg0: BytesLike,
|
|
3701
|
-
arg1: BigNumberish
|
|
3702
|
-
], [
|
|
3703
|
-
string
|
|
3704
|
-
], "view">;
|
|
3705
|
-
maxBtcPerPosition: TypedContractMethod<[], [bigint], "view">;
|
|
3706
|
-
maxSingleLoanValue: TypedContractMethod<[], [bigint], "view">;
|
|
3707
|
-
paused: TypedContractMethod<[], [boolean], "view">;
|
|
3708
|
-
proposeLimitUpdate: TypedContractMethod<[
|
|
3709
|
-
newMaxLoanValue: BigNumberish,
|
|
3710
|
-
newMaxBtcPerPosition: BigNumberish,
|
|
3711
|
-
newDailyLimit: BigNumberish
|
|
3712
|
-
], [
|
|
3713
|
-
void
|
|
3714
|
-
], "nonpayable">;
|
|
3715
|
-
proxiableUUID: TypedContractMethod<[], [string], "view">;
|
|
3716
|
-
renounceRole: TypedContractMethod<[
|
|
3717
|
-
role: BytesLike,
|
|
3718
|
-
callerConfirmation: AddressLike
|
|
3719
|
-
], [
|
|
3720
|
-
void
|
|
3721
|
-
], "nonpayable">;
|
|
3722
|
-
revokeRole: TypedContractMethod<[
|
|
3723
|
-
role: BytesLike,
|
|
3724
|
-
account: AddressLike
|
|
3725
|
-
], [
|
|
3726
|
-
void
|
|
3727
|
-
], "nonpayable">;
|
|
3728
|
-
signCircuitBreakerDeactivation: TypedContractMethod<[], [void], "nonpayable">;
|
|
3729
|
-
signLimitUpdate: TypedContractMethod<[
|
|
3730
|
-
proposalHash: BytesLike
|
|
3731
|
-
], [
|
|
3732
|
-
void
|
|
3733
|
-
], "nonpayable">;
|
|
3734
|
-
supportsInterface: TypedContractMethod<[
|
|
3735
|
-
interfaceId: BytesLike
|
|
3736
|
-
], [
|
|
3737
|
-
boolean
|
|
3738
|
-
], "view">;
|
|
3739
|
-
upgradeToAndCall: TypedContractMethod<[
|
|
3740
|
-
newImplementation: AddressLike,
|
|
3741
|
-
data: BytesLike
|
|
3742
|
-
], [
|
|
3743
|
-
void
|
|
3744
|
-
], "payable">;
|
|
3745
|
-
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
3746
|
-
getFunction(nameOrSignature: "ADMIN_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
3747
|
-
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
3748
|
-
getFunction(nameOrSignature: "EMERGENCY_PAUSE_ROLE"): TypedContractMethod<[], [string], "view">;
|
|
3749
|
-
getFunction(nameOrSignature: "LIMIT_UPDATE_DELAY"): TypedContractMethod<[], [bigint], "view">;
|
|
3750
|
-
getFunction(nameOrSignature: "REQUIRED_SIGNATURES"): TypedContractMethod<[], [bigint], "view">;
|
|
3751
|
-
getFunction(nameOrSignature: "UPGRADE_INTERFACE_VERSION"): TypedContractMethod<[], [string], "view">;
|
|
3752
|
-
getFunction(nameOrSignature: "activateCircuitBreaker"): TypedContractMethod<[], [void], "nonpayable">;
|
|
3753
|
-
getFunction(nameOrSignature: "circuitBreakerActivatedAt"): TypedContractMethod<[], [bigint], "view">;
|
|
3754
|
-
getFunction(nameOrSignature: "circuitBreakerActive"): TypedContractMethod<[], [boolean], "view">;
|
|
3755
|
-
getFunction(nameOrSignature: "circuitBreakerCheck"): TypedContractMethod<[
|
|
3756
|
-
ucdAmount: BigNumberish,
|
|
3757
|
-
btcAmount: BigNumberish
|
|
3758
|
-
], [
|
|
3759
|
-
void
|
|
3760
|
-
], "nonpayable">;
|
|
3761
|
-
getFunction(nameOrSignature: "dailyBtcVolume"): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
|
|
3762
|
-
getFunction(nameOrSignature: "dailyUcdVolume"): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
|
|
3763
|
-
getFunction(nameOrSignature: "dailyVolumeLimit"): TypedContractMethod<[], [bigint], "view">;
|
|
3764
|
-
getFunction(nameOrSignature: "deactivateCircuitBreaker"): TypedContractMethod<[], [void], "nonpayable">;
|
|
3765
|
-
getFunction(nameOrSignature: "executeLimitUpdate"): TypedContractMethod<[
|
|
3766
|
-
proposalHash: BytesLike,
|
|
3767
|
-
newMaxLoanValue: BigNumberish,
|
|
3768
|
-
newMaxBtcPerPosition: BigNumberish,
|
|
3769
|
-
newDailyLimit: BigNumberish
|
|
3770
|
-
], [
|
|
3771
|
-
void
|
|
3772
|
-
], "nonpayable">;
|
|
3773
|
-
getFunction(nameOrSignature: "getRoleAdmin"): TypedContractMethod<[role: BytesLike], [string], "view">;
|
|
3774
|
-
getFunction(nameOrSignature: "grantRole"): TypedContractMethod<[
|
|
3775
|
-
role: BytesLike,
|
|
3776
|
-
account: AddressLike
|
|
3777
|
-
], [
|
|
3778
|
-
void
|
|
3779
|
-
], "nonpayable">;
|
|
3780
|
-
getFunction(nameOrSignature: "hasRole"): TypedContractMethod<[
|
|
3781
|
-
role: BytesLike,
|
|
3782
|
-
account: AddressLike
|
|
3783
|
-
], [
|
|
3784
|
-
boolean
|
|
3785
|
-
], "view">;
|
|
3786
|
-
getFunction(nameOrSignature: "initialize"): TypedContractMethod<[_admin: AddressLike], [void], "nonpayable">;
|
|
3787
|
-
getFunction(nameOrSignature: "limitUpdateProposals"): TypedContractMethod<[arg0: BytesLike], [bigint], "view">;
|
|
3788
|
-
getFunction(nameOrSignature: "limitUpdateSigners"): TypedContractMethod<[
|
|
3789
|
-
arg0: BytesLike,
|
|
3790
|
-
arg1: BigNumberish
|
|
3791
|
-
], [
|
|
3792
|
-
string
|
|
3793
|
-
], "view">;
|
|
3794
|
-
getFunction(nameOrSignature: "maxBtcPerPosition"): TypedContractMethod<[], [bigint], "view">;
|
|
3795
|
-
getFunction(nameOrSignature: "maxSingleLoanValue"): TypedContractMethod<[], [bigint], "view">;
|
|
3796
|
-
getFunction(nameOrSignature: "paused"): TypedContractMethod<[], [boolean], "view">;
|
|
3797
|
-
getFunction(nameOrSignature: "proposeLimitUpdate"): TypedContractMethod<[
|
|
3798
|
-
newMaxLoanValue: BigNumberish,
|
|
3799
|
-
newMaxBtcPerPosition: BigNumberish,
|
|
3800
|
-
newDailyLimit: BigNumberish
|
|
3801
|
-
], [
|
|
3802
|
-
void
|
|
3803
|
-
], "nonpayable">;
|
|
3804
|
-
getFunction(nameOrSignature: "proxiableUUID"): TypedContractMethod<[], [string], "view">;
|
|
3805
|
-
getFunction(nameOrSignature: "renounceRole"): TypedContractMethod<[
|
|
3806
|
-
role: BytesLike,
|
|
3807
|
-
callerConfirmation: AddressLike
|
|
3808
|
-
], [
|
|
3809
|
-
void
|
|
3810
|
-
], "nonpayable">;
|
|
3811
|
-
getFunction(nameOrSignature: "revokeRole"): TypedContractMethod<[
|
|
3812
|
-
role: BytesLike,
|
|
3813
|
-
account: AddressLike
|
|
3814
|
-
], [
|
|
3815
|
-
void
|
|
3816
|
-
], "nonpayable">;
|
|
3817
|
-
getFunction(nameOrSignature: "signCircuitBreakerDeactivation"): TypedContractMethod<[], [void], "nonpayable">;
|
|
3818
|
-
getFunction(nameOrSignature: "signLimitUpdate"): TypedContractMethod<[proposalHash: BytesLike], [void], "nonpayable">;
|
|
3819
|
-
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
3820
|
-
getFunction(nameOrSignature: "upgradeToAndCall"): TypedContractMethod<[
|
|
3821
|
-
newImplementation: AddressLike,
|
|
3822
|
-
data: BytesLike
|
|
3823
|
-
], [
|
|
3824
|
-
void
|
|
3825
|
-
], "payable">;
|
|
3826
|
-
getEvent(key: "CircuitBreakerActivated"): TypedContractEvent<CircuitBreakerActivatedEvent.InputTuple, CircuitBreakerActivatedEvent.OutputTuple, CircuitBreakerActivatedEvent.OutputObject>;
|
|
3827
|
-
getEvent(key: "CircuitBreakerDeactivated"): TypedContractEvent<CircuitBreakerDeactivatedEvent.InputTuple, CircuitBreakerDeactivatedEvent.OutputTuple, CircuitBreakerDeactivatedEvent.OutputObject>;
|
|
3828
|
-
getEvent(key: "CircuitBreakerDeactivationSigned"): TypedContractEvent<CircuitBreakerDeactivationSignedEvent.InputTuple, CircuitBreakerDeactivationSignedEvent.OutputTuple, CircuitBreakerDeactivationSignedEvent.OutputObject>;
|
|
3829
|
-
getEvent(key: "DailyLimitApproached"): TypedContractEvent<DailyLimitApproachedEvent.InputTuple, DailyLimitApproachedEvent.OutputTuple, DailyLimitApproachedEvent.OutputObject>;
|
|
3830
|
-
getEvent(key: "Initialized"): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
3831
|
-
getEvent(key: "LimitUpdateProposed"): TypedContractEvent<LimitUpdateProposedEvent.InputTuple, LimitUpdateProposedEvent.OutputTuple, LimitUpdateProposedEvent.OutputObject>;
|
|
3832
|
-
getEvent(key: "LimitUpdateSigned"): TypedContractEvent<LimitUpdateSignedEvent.InputTuple, LimitUpdateSignedEvent.OutputTuple, LimitUpdateSignedEvent.OutputObject>;
|
|
3833
|
-
getEvent(key: "LimitsUpdated"): TypedContractEvent<LimitsUpdatedEvent.InputTuple, LimitsUpdatedEvent.OutputTuple, LimitsUpdatedEvent.OutputObject>;
|
|
3834
|
-
getEvent(key: "Paused"): TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
|
3835
|
-
getEvent(key: "RoleAdminChanged"): TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
3836
|
-
getEvent(key: "RoleGranted"): TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
3837
|
-
getEvent(key: "RoleRevoked"): TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
3838
|
-
getEvent(key: "Unpaused"): TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
|
|
3839
|
-
getEvent(key: "Upgraded"): TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3840
|
-
getEvent(key: "VolumeUpdated"): TypedContractEvent<VolumeUpdatedEvent.InputTuple, VolumeUpdatedEvent.OutputTuple, VolumeUpdatedEvent.OutputObject>;
|
|
3841
|
-
filters: {
|
|
3842
|
-
"CircuitBreakerActivated(address)": TypedContractEvent<CircuitBreakerActivatedEvent.InputTuple, CircuitBreakerActivatedEvent.OutputTuple, CircuitBreakerActivatedEvent.OutputObject>;
|
|
3843
|
-
CircuitBreakerActivated: TypedContractEvent<CircuitBreakerActivatedEvent.InputTuple, CircuitBreakerActivatedEvent.OutputTuple, CircuitBreakerActivatedEvent.OutputObject>;
|
|
3844
|
-
"CircuitBreakerDeactivated(address)": TypedContractEvent<CircuitBreakerDeactivatedEvent.InputTuple, CircuitBreakerDeactivatedEvent.OutputTuple, CircuitBreakerDeactivatedEvent.OutputObject>;
|
|
3845
|
-
CircuitBreakerDeactivated: TypedContractEvent<CircuitBreakerDeactivatedEvent.InputTuple, CircuitBreakerDeactivatedEvent.OutputTuple, CircuitBreakerDeactivatedEvent.OutputObject>;
|
|
3846
|
-
"CircuitBreakerDeactivationSigned(address,uint256)": TypedContractEvent<CircuitBreakerDeactivationSignedEvent.InputTuple, CircuitBreakerDeactivationSignedEvent.OutputTuple, CircuitBreakerDeactivationSignedEvent.OutputObject>;
|
|
3847
|
-
CircuitBreakerDeactivationSigned: TypedContractEvent<CircuitBreakerDeactivationSignedEvent.InputTuple, CircuitBreakerDeactivationSignedEvent.OutputTuple, CircuitBreakerDeactivationSignedEvent.OutputObject>;
|
|
3848
|
-
"DailyLimitApproached(uint256,uint256,uint256)": TypedContractEvent<DailyLimitApproachedEvent.InputTuple, DailyLimitApproachedEvent.OutputTuple, DailyLimitApproachedEvent.OutputObject>;
|
|
3849
|
-
DailyLimitApproached: TypedContractEvent<DailyLimitApproachedEvent.InputTuple, DailyLimitApproachedEvent.OutputTuple, DailyLimitApproachedEvent.OutputObject>;
|
|
3850
|
-
"Initialized(uint64)": TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
3851
|
-
Initialized: TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
3852
|
-
"LimitUpdateProposed(bytes32,uint256,uint256,uint256,address)": TypedContractEvent<LimitUpdateProposedEvent.InputTuple, LimitUpdateProposedEvent.OutputTuple, LimitUpdateProposedEvent.OutputObject>;
|
|
3853
|
-
LimitUpdateProposed: TypedContractEvent<LimitUpdateProposedEvent.InputTuple, LimitUpdateProposedEvent.OutputTuple, LimitUpdateProposedEvent.OutputObject>;
|
|
3854
|
-
"LimitUpdateSigned(bytes32,address,uint256)": TypedContractEvent<LimitUpdateSignedEvent.InputTuple, LimitUpdateSignedEvent.OutputTuple, LimitUpdateSignedEvent.OutputObject>;
|
|
3855
|
-
LimitUpdateSigned: TypedContractEvent<LimitUpdateSignedEvent.InputTuple, LimitUpdateSignedEvent.OutputTuple, LimitUpdateSignedEvent.OutputObject>;
|
|
3856
|
-
"LimitsUpdated(uint256,uint256,uint256,uint256,uint256,uint256)": TypedContractEvent<LimitsUpdatedEvent.InputTuple, LimitsUpdatedEvent.OutputTuple, LimitsUpdatedEvent.OutputObject>;
|
|
3857
|
-
LimitsUpdated: TypedContractEvent<LimitsUpdatedEvent.InputTuple, LimitsUpdatedEvent.OutputTuple, LimitsUpdatedEvent.OutputObject>;
|
|
3858
|
-
"Paused(address)": TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
|
3859
|
-
Paused: TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
|
3860
|
-
"RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
3861
|
-
RoleAdminChanged: TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
|
3862
|
-
"RoleGranted(bytes32,address,address)": TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
3863
|
-
RoleGranted: TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
|
3864
|
-
"RoleRevoked(bytes32,address,address)": TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
3865
|
-
RoleRevoked: TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
|
3866
|
-
"Unpaused(address)": TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
|
|
3867
|
-
Unpaused: TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
|
|
3868
|
-
"Upgraded(address)": TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3869
|
-
Upgraded: TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
|
|
3870
|
-
"VolumeUpdated(uint256,uint256,uint256)": TypedContractEvent<VolumeUpdatedEvent.InputTuple, VolumeUpdatedEvent.OutputTuple, VolumeUpdatedEvent.OutputObject>;
|
|
3871
|
-
VolumeUpdated: TypedContractEvent<VolumeUpdatedEvent.InputTuple, VolumeUpdatedEvent.OutputTuple, VolumeUpdatedEvent.OutputObject>;
|
|
3872
|
-
};
|
|
578
|
+
createdAt: number;
|
|
579
|
+
lastUpdated: number;
|
|
580
|
+
selectedTerm: number;
|
|
581
|
+
expiryAt: number;
|
|
582
|
+
status: number;
|
|
583
|
+
}>;
|
|
584
|
+
pkpValidationRegistry(): Promise<string>;
|
|
585
|
+
updateBalance(positionId: string, newBtcBalance: string | number | BigNumber, btcPrice: string | number | BigNumber, quantumTimestamp: string | number | BigNumber, signature: string): Promise<ethers.ContractTransaction>;
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* Loan Operations Manager Contract Interface
|
|
589
|
+
* Based on contracts/src/interfaces/ILoanOperationsManager.sol
|
|
590
|
+
*/
|
|
591
|
+
interface ILoanOperationsManager extends ethers.Contract {
|
|
592
|
+
mintUCD(positionId: string, mintAmount: BigNumber, mintFee: BigNumber, newDebt: BigNumber, newCollateral: BigNumber, btcPrice: BigNumber, authorizedSpendsHash: string, ucdDebtHash: string, quantumTimestamp: BigNumber): Promise<ethers.ContractTransaction>;
|
|
593
|
+
processPayment(positionId: string, paymentAmount: BigNumber, quantumTimestamp: BigNumber, btcPrice: BigNumber): Promise<ethers.ContractTransaction>;
|
|
594
|
+
updatePosition(positionId: string, newDebt: BigNumber, quantumTimestamp: BigNumber, btcPrice: BigNumber, updateValidatorSignature: string): Promise<ethers.ContractTransaction>;
|
|
595
|
+
transferOriginationFee(recipient: string, amount: BigNumber): Promise<ethers.ContractTransaction>;
|
|
596
|
+
mintExtensionFee(amount: BigNumber): Promise<ethers.ContractTransaction>;
|
|
597
|
+
getOriginationFeeBalance(): Promise<BigNumber>;
|
|
598
|
+
authorizeBTCSpend(positionId: string, txid: string, vout: number, satoshis: BigNumber, targetAddress: string, targetAmount: BigNumber, litSignature: string): Promise<ethers.ContractTransaction>;
|
|
599
|
+
liquidationThreshold(): Promise<BigNumber>;
|
|
600
|
+
minimumLoanValueWei(): Promise<BigNumber>;
|
|
601
|
+
maximumLtvRatio(): Promise<BigNumber>;
|
|
602
|
+
ucdToken(): Promise<string>;
|
|
603
|
+
getUcdController(): Promise<string>;
|
|
604
|
+
getPKPActualCollateral(pkpId: string): Promise<BigNumber>;
|
|
605
|
+
isPriceFeedStale(): Promise<boolean>;
|
|
606
|
+
calculateCollateralRatio(positionId: string, btcPrice: BigNumber): Promise<BigNumber>;
|
|
607
|
+
getTotalAuthorizedSats(positionId: string): Promise<BigNumber>;
|
|
608
|
+
extendPosition(positionId: string, newTermMonths: BigNumber, extensionFee: BigNumber, quantumTimestamp: BigNumber, btcPrice: BigNumber, extendValidatorSignature: string): Promise<ethers.ContractTransaction>;
|
|
609
|
+
withdrawBTC(positionId: string, btcTxid: string, btcVout: number, satoshis: BigNumber, destinationAddress: string, quantumTimestamp: BigNumber, btcPrice: BigNumber, btcWithdrawalSignature: string): Promise<ethers.ContractTransaction>;
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* UCD Controller Contract Interface
|
|
613
|
+
* Based on contracts/src/interfaces/IUCDController.sol
|
|
614
|
+
*/
|
|
615
|
+
interface IUCDController extends ethers.Contract {
|
|
616
|
+
mintTokens(to: string, amount: BigNumber): Promise<ethers.ContractTransaction>;
|
|
617
|
+
burnTokens(from: string, amount: BigNumber): Promise<ethers.ContractTransaction>;
|
|
618
|
+
setAuthorizedMinter(minter: string, authorized: boolean): Promise<ethers.ContractTransaction>;
|
|
619
|
+
setAuthorizedBurner(burner: string, authorized: boolean): Promise<ethers.ContractTransaction>;
|
|
620
|
+
setMaxSupply(newMaxSupply: BigNumber): Promise<ethers.ContractTransaction>;
|
|
621
|
+
setDailyMintLimit(newLimit: BigNumber): Promise<ethers.ContractTransaction>;
|
|
622
|
+
setDailyBurnLimit(newLimit: BigNumber): Promise<ethers.ContractTransaction>;
|
|
623
|
+
updateUCDToken(newToken: string): Promise<ethers.ContractTransaction>;
|
|
624
|
+
getCurrentSupply(): Promise<BigNumber>;
|
|
625
|
+
getRemainingMintCapacity(): Promise<BigNumber>;
|
|
626
|
+
getRemainingBurnCapacity(): Promise<BigNumber>;
|
|
627
|
+
isAuthorizedMinter(account: string): Promise<boolean>;
|
|
628
|
+
isAuthorizedBurner(account: string): Promise<boolean>;
|
|
629
|
+
authorizedMinters(account: string): Promise<boolean>;
|
|
630
|
+
authorizedBurners(account: string): Promise<boolean>;
|
|
631
|
+
burnedPerAddress(account: string): Promise<BigNumber>;
|
|
632
|
+
totalMinted(): Promise<BigNumber>;
|
|
633
|
+
totalBurned(): Promise<BigNumber>;
|
|
634
|
+
maxSupply(): Promise<BigNumber>;
|
|
635
|
+
dailyMintLimit(): Promise<BigNumber>;
|
|
636
|
+
dailyBurnLimit(): Promise<BigNumber>;
|
|
637
|
+
lastMintReset(): Promise<BigNumber>;
|
|
638
|
+
lastBurnReset(): Promise<BigNumber>;
|
|
639
|
+
dailyMinted(): Promise<BigNumber>;
|
|
640
|
+
dailyBurned(): Promise<BigNumber>;
|
|
641
|
+
ucdToken(): Promise<string>;
|
|
642
|
+
priceOracle(): Promise<string>;
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* Price Feed Consumer Contract Interface
|
|
646
|
+
* Based on contracts/src/interfaces/IPriceFeedConsumer.sol
|
|
647
|
+
*/
|
|
648
|
+
interface IPriceFeedConsumer extends ethers.Contract {
|
|
649
|
+
updatePrice(): Promise<ethers.ContractTransaction>;
|
|
650
|
+
getCurrentPrice(): Promise<BigNumber>;
|
|
651
|
+
getPriceAge(): Promise<BigNumber>;
|
|
652
|
+
isPriceStale(): Promise<boolean>;
|
|
653
|
+
validatePriceFeed(): Promise<boolean>;
|
|
654
|
+
getLatestBTCPrice(): Promise<BigNumber>;
|
|
655
|
+
decimals(): Promise<number>;
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* Term Manager Contract Interface
|
|
659
|
+
* Based on contracts/src/interfaces/ITermManager.sol
|
|
660
|
+
*/
|
|
661
|
+
interface ITermManager extends ethers.Contract {
|
|
662
|
+
addTerm(termMonths: BigNumber, originationFee: BigNumber, extensionFee: BigNumber): Promise<ethers.ContractTransaction>;
|
|
663
|
+
removeTerm(termMonths: BigNumber): Promise<ethers.ContractTransaction>;
|
|
664
|
+
updateTermFees(termMonths: BigNumber, originationFee: BigNumber, extensionFee: BigNumber): Promise<ethers.ContractTransaction>;
|
|
665
|
+
getTermFees(termMonths: BigNumber): Promise<{
|
|
666
|
+
originationFee: BigNumber;
|
|
667
|
+
extensionFee: BigNumber;
|
|
668
|
+
}>;
|
|
669
|
+
isValidTerm(termMonths: BigNumber): Promise<boolean>;
|
|
670
|
+
getValidTermsWithFees(): Promise<{
|
|
671
|
+
terms: BigNumber[];
|
|
672
|
+
originationFees: BigNumber[];
|
|
673
|
+
extensionFees: BigNumber[];
|
|
674
|
+
}>;
|
|
675
|
+
getTermDataById(termId: BigNumber): Promise<{
|
|
676
|
+
termMonths: BigNumber;
|
|
677
|
+
originationFee: BigNumber;
|
|
678
|
+
extensionFee: BigNumber;
|
|
679
|
+
isActive: boolean;
|
|
680
|
+
}>;
|
|
681
|
+
getAllTerms(): Promise<BigNumber[]>;
|
|
682
|
+
updateDependencies(newCore: string, newUcdController: string): Promise<ethers.ContractTransaction>;
|
|
683
|
+
supportsInterface(interfaceId: string): Promise<boolean>;
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* Circuit Breaker Module Contract Interface
|
|
687
|
+
* Based on contracts/src/interfaces/ICircuitBreakerModule.sol
|
|
688
|
+
*/
|
|
689
|
+
interface CircuitBreakerModule extends ethers.Contract {
|
|
690
|
+
circuitBreakerCheck(ucdAmount: BigNumber, btcAmount: BigNumber): Promise<ethers.ContractTransaction>;
|
|
691
|
+
proposeLimitUpdate(newMaxLoanValue: BigNumber, newMaxBtcPerPosition: BigNumber, newDailyLimit: BigNumber): Promise<ethers.ContractTransaction>;
|
|
692
|
+
signLimitUpdate(proposalHash: string): Promise<ethers.ContractTransaction>;
|
|
693
|
+
executeLimitUpdate(proposalHash: string, newMaxLoanValue: BigNumber, newMaxBtcPerPosition: BigNumber, newDailyLimit: BigNumber): Promise<ethers.ContractTransaction>;
|
|
694
|
+
activateCircuitBreaker(): Promise<ethers.ContractTransaction>;
|
|
695
|
+
deactivateCircuitBreaker(): Promise<ethers.ContractTransaction>;
|
|
696
|
+
signCircuitBreakerDeactivation(): Promise<ethers.ContractTransaction>;
|
|
697
|
+
maxSingleLoanValue(): Promise<BigNumber>;
|
|
698
|
+
maxBtcPerPosition(): Promise<BigNumber>;
|
|
699
|
+
dailyVolumeLimit(): Promise<BigNumber>;
|
|
700
|
+
circuitBreakerActive(): Promise<boolean>;
|
|
701
|
+
circuitBreakerActivatedAt(): Promise<BigNumber>;
|
|
702
|
+
dailyUcdVolume(day: BigNumber): Promise<BigNumber>;
|
|
703
|
+
dailyBtcVolume(day: BigNumber): Promise<BigNumber>;
|
|
704
|
+
supportsInterface(interfaceId: string): Promise<boolean>;
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
707
|
+
* Community Manager Contract Interface
|
|
708
|
+
* Based on contracts/src/interfaces/ICommunityManager.sol
|
|
709
|
+
*/
|
|
710
|
+
interface ICommunityManager extends ethers.Contract {
|
|
711
|
+
calculateCommunityMintingFee(positionId: string): Promise<BigNumber>;
|
|
712
|
+
distributeCommunityFee(positionId: string, communityProvider: string, serviceType: number): Promise<ethers.ContractTransaction>;
|
|
713
|
+
updateCommunityMintingFeeRate(newRate: BigNumber): Promise<ethers.ContractTransaction>;
|
|
714
|
+
getCommunityMintingFeeRate(): Promise<BigNumber>;
|
|
715
|
+
canUpdateFeeRate(): Promise<boolean>;
|
|
716
|
+
pauseFeeRateUpdates(): Promise<ethers.ContractTransaction>;
|
|
717
|
+
unpauseFeeRateUpdates(): Promise<ethers.ContractTransaction>;
|
|
718
|
+
validateCommunityEligibility(user: string): Promise<boolean>;
|
|
719
|
+
getGvnrTokenRequirement(): Promise<BigNumber>;
|
|
720
|
+
getGvnrTokenAddress(): Promise<string>;
|
|
721
|
+
proposeGvnrUpdate(newGvnrTokenAddress: string, newGvnrTokenRequirement: BigNumber): Promise<ethers.ContractTransaction>;
|
|
722
|
+
signGvnrUpdate(proposalHash: string): Promise<ethers.ContractTransaction>;
|
|
723
|
+
executeGvnrUpdate(proposalHash: string, newGvnrTokenAddress: string, newGvnrTokenRequirement: BigNumber): Promise<ethers.ContractTransaction>;
|
|
724
|
+
updateDependencies(newCore: string, newUcdController: string, newTermManager: string): Promise<ethers.ContractTransaction>;
|
|
725
|
+
supportsInterface(interfaceId: string): Promise<boolean>;
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* Liquidation Manager Contract Interface
|
|
729
|
+
* Based on contracts/src/interfaces/ILiquidationManager.sol
|
|
730
|
+
*/
|
|
731
|
+
interface ILiquidationManager extends ethers.Contract {
|
|
732
|
+
liquidatePosition(positionId: string, btcPrice: BigNumber, quantumTimestamp: BigNumber): Promise<ethers.ContractTransaction>;
|
|
733
|
+
commitLiquidation(positionId: string, quantumTimestamp: BigNumber, btcPrice: BigNumber): Promise<ethers.ContractTransaction>;
|
|
734
|
+
revealAndLiquidate(positionId: string, quantumTimestamp: BigNumber, btcPrice: BigNumber, liquidationValidatorSignature: string, deadline: BigNumber): Promise<ethers.ContractTransaction>;
|
|
735
|
+
isLiquidatable(positionId: string, btcPrice: BigNumber, quantumTimestamp: BigNumber, liquidationValidatorSignature: string): Promise<boolean>;
|
|
736
|
+
calculateLiquidationBonus(positionId: string, quantumTimestamp: BigNumber, btcPrice: BigNumber, btcAmountSats: BigNumber, liquidationValidatorSignature: string): Promise<BigNumber>;
|
|
737
|
+
supportsInterface(interfaceId: string): Promise<boolean>;
|
|
3873
738
|
}
|
|
3874
739
|
|
|
3875
740
|
/**
|
|
@@ -4996,6 +1861,94 @@ declare const EventHelpers: {
|
|
|
4996
1861
|
})>;
|
|
4997
1862
|
};
|
|
4998
1863
|
|
|
1864
|
+
/**
|
|
1865
|
+
* PKP Integration Interfaces
|
|
1866
|
+
*/
|
|
1867
|
+
/**
|
|
1868
|
+
* PKP Manager Interface
|
|
1869
|
+
*/
|
|
1870
|
+
interface IPKPManager {
|
|
1871
|
+
issuePKP(request: PKPIssuanceRequest): Promise<PKPData>;
|
|
1872
|
+
validatePKP(pkpId: string): Promise<PKPValidationResult>;
|
|
1873
|
+
getPKPData(pkpId: string): Promise<PKPData | null>;
|
|
1874
|
+
}
|
|
1875
|
+
/**
|
|
1876
|
+
* PKP Data Interface
|
|
1877
|
+
*/
|
|
1878
|
+
interface PKPData {
|
|
1879
|
+
tokenId: string;
|
|
1880
|
+
publicKey: string;
|
|
1881
|
+
ethAddress: string;
|
|
1882
|
+
litActionCid?: string;
|
|
1883
|
+
}
|
|
1884
|
+
/**
|
|
1885
|
+
* PKP Issuance Request Interface
|
|
1886
|
+
*/
|
|
1887
|
+
interface PKPIssuanceRequest {
|
|
1888
|
+
userId: string;
|
|
1889
|
+
metadata?: {
|
|
1890
|
+
name?: string;
|
|
1891
|
+
description?: string;
|
|
1892
|
+
};
|
|
1893
|
+
}
|
|
1894
|
+
/**
|
|
1895
|
+
* PKP Creation Request Interface
|
|
1896
|
+
*/
|
|
1897
|
+
interface PKPCreationRequest {
|
|
1898
|
+
userId: string;
|
|
1899
|
+
litActionCid: string;
|
|
1900
|
+
metadata?: {
|
|
1901
|
+
name?: string;
|
|
1902
|
+
description?: string;
|
|
1903
|
+
attributes?: Record<string, any>;
|
|
1904
|
+
};
|
|
1905
|
+
}
|
|
1906
|
+
/**
|
|
1907
|
+
* PKP Creation Result Interface
|
|
1908
|
+
*/
|
|
1909
|
+
interface PKPCreationResult {
|
|
1910
|
+
success: boolean;
|
|
1911
|
+
error?: string;
|
|
1912
|
+
tokenId?: string;
|
|
1913
|
+
publicKey?: string;
|
|
1914
|
+
ethAddress?: string;
|
|
1915
|
+
transactionHash?: string;
|
|
1916
|
+
}
|
|
1917
|
+
/**
|
|
1918
|
+
* PKP Validation Request Interface
|
|
1919
|
+
*/
|
|
1920
|
+
interface PKPValidationRequest {
|
|
1921
|
+
pkpId: string;
|
|
1922
|
+
message: string;
|
|
1923
|
+
signature: string;
|
|
1924
|
+
}
|
|
1925
|
+
/**
|
|
1926
|
+
* PKP Validation Result Interface
|
|
1927
|
+
*/
|
|
1928
|
+
interface PKPValidationResult {
|
|
1929
|
+
valid: boolean;
|
|
1930
|
+
error?: string;
|
|
1931
|
+
validatorAddress?: string;
|
|
1932
|
+
signature?: string;
|
|
1933
|
+
}
|
|
1934
|
+
/**
|
|
1935
|
+
* PKP Signing Request Interface
|
|
1936
|
+
*/
|
|
1937
|
+
interface PKPSigningRequest {
|
|
1938
|
+
pkpId: string;
|
|
1939
|
+
messageHash: string;
|
|
1940
|
+
params?: Record<string, any>;
|
|
1941
|
+
}
|
|
1942
|
+
/**
|
|
1943
|
+
* PKP Signing Result Interface
|
|
1944
|
+
*/
|
|
1945
|
+
interface PKPSigningResult {
|
|
1946
|
+
success: boolean;
|
|
1947
|
+
error?: string;
|
|
1948
|
+
signature?: string;
|
|
1949
|
+
publicKey?: string;
|
|
1950
|
+
}
|
|
1951
|
+
|
|
4999
1952
|
/**
|
|
5000
1953
|
* Diamond Hands SDK
|
|
5001
1954
|
*
|
|
@@ -5142,6 +2095,7 @@ declare class DiamondHandsSDK {
|
|
|
5142
2095
|
* Extend position term
|
|
5143
2096
|
*
|
|
5144
2097
|
* Follows main's security pattern: authorization → LIT validation → contract execution
|
|
2098
|
+
* Same pattern as makePayment: generate user auth, call lit-ops for LIT Action, then call contract.
|
|
5145
2099
|
*
|
|
5146
2100
|
* @param _positionId - Position identifier
|
|
5147
2101
|
* @param _selectedTerm - Extension term in months
|
|
@@ -5661,94 +2615,6 @@ declare namespace AuthParamsValidation {
|
|
|
5661
2615
|
function validate(params: AuthorizationParams): string[];
|
|
5662
2616
|
}
|
|
5663
2617
|
|
|
5664
|
-
/**
|
|
5665
|
-
* PKP Integration Interfaces
|
|
5666
|
-
*/
|
|
5667
|
-
/**
|
|
5668
|
-
* PKP Manager Interface
|
|
5669
|
-
*/
|
|
5670
|
-
interface IPKPManager {
|
|
5671
|
-
issuePKP(request: PKPIssuanceRequest): Promise<PKPData>;
|
|
5672
|
-
validatePKP(pkpId: string): Promise<PKPValidationResult>;
|
|
5673
|
-
getPKPData(pkpId: string): Promise<PKPData | null>;
|
|
5674
|
-
}
|
|
5675
|
-
/**
|
|
5676
|
-
* PKP Data Interface
|
|
5677
|
-
*/
|
|
5678
|
-
interface PKPData {
|
|
5679
|
-
tokenId: string;
|
|
5680
|
-
publicKey: string;
|
|
5681
|
-
ethAddress: string;
|
|
5682
|
-
litActionCid?: string;
|
|
5683
|
-
}
|
|
5684
|
-
/**
|
|
5685
|
-
* PKP Issuance Request Interface
|
|
5686
|
-
*/
|
|
5687
|
-
interface PKPIssuanceRequest {
|
|
5688
|
-
userId: string;
|
|
5689
|
-
metadata?: {
|
|
5690
|
-
name?: string;
|
|
5691
|
-
description?: string;
|
|
5692
|
-
};
|
|
5693
|
-
}
|
|
5694
|
-
/**
|
|
5695
|
-
* PKP Creation Request Interface
|
|
5696
|
-
*/
|
|
5697
|
-
interface PKPCreationRequest {
|
|
5698
|
-
userId: string;
|
|
5699
|
-
litActionCid: string;
|
|
5700
|
-
metadata?: {
|
|
5701
|
-
name?: string;
|
|
5702
|
-
description?: string;
|
|
5703
|
-
attributes?: Record<string, any>;
|
|
5704
|
-
};
|
|
5705
|
-
}
|
|
5706
|
-
/**
|
|
5707
|
-
* PKP Creation Result Interface
|
|
5708
|
-
*/
|
|
5709
|
-
interface PKPCreationResult {
|
|
5710
|
-
success: boolean;
|
|
5711
|
-
error?: string;
|
|
5712
|
-
tokenId?: string;
|
|
5713
|
-
publicKey?: string;
|
|
5714
|
-
ethAddress?: string;
|
|
5715
|
-
transactionHash?: string;
|
|
5716
|
-
}
|
|
5717
|
-
/**
|
|
5718
|
-
* PKP Validation Request Interface
|
|
5719
|
-
*/
|
|
5720
|
-
interface PKPValidationRequest {
|
|
5721
|
-
pkpId: string;
|
|
5722
|
-
message: string;
|
|
5723
|
-
signature: string;
|
|
5724
|
-
}
|
|
5725
|
-
/**
|
|
5726
|
-
* PKP Validation Result Interface
|
|
5727
|
-
*/
|
|
5728
|
-
interface PKPValidationResult {
|
|
5729
|
-
valid: boolean;
|
|
5730
|
-
error?: string;
|
|
5731
|
-
validatorAddress?: string;
|
|
5732
|
-
signature?: string;
|
|
5733
|
-
}
|
|
5734
|
-
/**
|
|
5735
|
-
* PKP Signing Request Interface
|
|
5736
|
-
*/
|
|
5737
|
-
interface PKPSigningRequest {
|
|
5738
|
-
pkpId: string;
|
|
5739
|
-
messageHash: string;
|
|
5740
|
-
params?: Record<string, any>;
|
|
5741
|
-
}
|
|
5742
|
-
/**
|
|
5743
|
-
* PKP Signing Result Interface
|
|
5744
|
-
*/
|
|
5745
|
-
interface PKPSigningResult {
|
|
5746
|
-
success: boolean;
|
|
5747
|
-
error?: string;
|
|
5748
|
-
signature?: string;
|
|
5749
|
-
publicKey?: string;
|
|
5750
|
-
}
|
|
5751
|
-
|
|
5752
2618
|
/**
|
|
5753
2619
|
* PKP Manager Module
|
|
5754
2620
|
*
|
|
@@ -6752,7 +3618,7 @@ declare class DiamondHandsGraph {
|
|
|
6752
3618
|
/**
|
|
6753
3619
|
* Get all positions directly (simple query with pagination support)
|
|
6754
3620
|
*/
|
|
6755
|
-
getPositions(first?: number, orderBy?: string, orderDirection?: "asc" | "desc", skip?: number): Promise<{
|
|
3621
|
+
getPositions(first?: number, orderBy?: string, orderDirection?: "asc" | "desc", skip?: number, includeTotalCount?: boolean): Promise<{
|
|
6756
3622
|
positions: LoanData[];
|
|
6757
3623
|
total: number;
|
|
6758
3624
|
}>;
|
|
@@ -7187,7 +4053,7 @@ declare function validateSDKEnvironment(requirements: {
|
|
|
7187
4053
|
/**
|
|
7188
4054
|
* Smart Contract ABIs
|
|
7189
4055
|
*/
|
|
7190
|
-
declare const POSITION_MANAGER_ABI: readonly ["function createPosition(bytes32 pkpId, bytes calldata validatorSignature, address borrower, string calldata vaultAddress, uint256 selectedTermMonths) external returns (bool)", "function deletePosition(bytes32 positionId) external", "function getPositionById(bytes32 positionId) external view returns (tuple(bytes32 positionId, bytes32 pkpId, uint256 ucdDebt, string vaultAddress, address borrower, uint40 createdAt, uint40 lastUpdated, uint16 selectedTerm, uint40 expiryAt, uint8 status))", "function getUserPositions(address user) external view returns (bytes32[] memory)", "function calculateCollateralRatio(bytes32 positionId) external view returns (uint256)", "function hasRole(bytes32 role, address account) external view returns (bool)", "function ADMIN_ROLE() external view returns (bytes32)", "function paused() external view returns (bool)", "function mintUCD(bytes32 positionId, uint256 mintAmount, uint256 mintFee, uint256 newDebt, uint256 newCollateral, uint256 btcPrice, bytes32 authorizedSpendsHash, bytes32 ucdDebtHash, bytes32 contractHash, uint256 quantumTimestamp, bytes calldata mintValidatorSignature) external returns (bool)", "function repayPosition(bytes32 positionId, uint256 repaymentAmount) external returns (bool)", "function makePayment(bytes32 positionId, uint256 paymentAmount, uint256 quantumTimestamp, uint256 btcPrice, bytes calldata paymentValidatorSignature) external returns (bool)", "function withdrawBTC(bytes32 positionId, string withdrawalAddress, uint256 networkFee) external returns (bool)", "function extendPosition(bytes32 positionId, uint256 selectedTerm) external returns (bool)", "function liquidatePosition(bytes32 positionId) external returns (bool)", "function commitLiquidation(bytes32 positionId, bytes32 commitHash) external", "function revealAndLiquidate(bytes32 positionId, uint256 nonce, uint256 deadline) external returns (bool)", "function getExpiredLoanLiquidationThreshold(bytes32 positionId) external view returns (uint256)", "function isExpiredLoanLiquidatable(bytes32 positionId, uint256 collateralValue, uint256 debtAmount) external view returns (bool)", "event PositionCreated(bytes32 indexed positionId, bytes32 indexed pkpId, address indexed borrower, uint256 requestedCollateralRatio, uint256 selectedTerm, uint256 expiryAt)", "event UCDMinted(bytes32 indexed positionId, uint256 amount, bytes proof)", "event PositionLiquidated(bytes32 indexed positionId, address indexed liquidator, uint256 collateralRatio, uint256 liquidationBonus)", "event CollateralRatioUpdated(bytes32 indexed positionId, uint256 oldRatio, uint256 newRatio)", "event PositionUpdated(bytes32 indexed positionId, uint256 oldDebt, uint256 newDebt)"];
|
|
4056
|
+
declare const POSITION_MANAGER_ABI: readonly ["function createPosition(bytes32 pkpId, bytes calldata validatorSignature, address borrower, string calldata vaultAddress, uint256 selectedTermMonths) external returns (bool)", "function deletePosition(bytes32 positionId) external", "function getPositionById(bytes32 positionId) external view returns (tuple(bytes32 positionId, bytes32 pkpId, uint256 ucdDebt, string vaultAddress, address borrower, uint40 createdAt, uint40 lastUpdated, uint16 selectedTerm, uint40 expiryAt, uint8 status))", "function getUserPositions(address user) external view returns (bytes32[] memory)", "function calculateCollateralRatio(bytes32 positionId) external view returns (uint256)", "function hasRole(bytes32 role, address account) external view returns (bool)", "function ADMIN_ROLE() external view returns (bytes32)", "function paused() external view returns (bool)", "function mintUCD(bytes32 positionId, uint256 mintAmount, uint256 mintFee, uint256 newDebt, uint256 newCollateral, uint256 btcPrice, bytes32 authorizedSpendsHash, bytes32 ucdDebtHash, bytes32 contractHash, uint256 quantumTimestamp, bytes calldata mintValidatorSignature) external returns (bool)", "function repayPosition(bytes32 positionId, uint256 repaymentAmount) external returns (bool)", "function makePayment(bytes32 positionId, uint256 paymentAmount, uint256 quantumTimestamp, uint256 btcPrice, bytes calldata paymentValidatorSignature) external returns (bool)", "function withdrawBTC(bytes32 positionId, string withdrawalAddress, uint256 networkFee) external returns (bool)", "function extendPosition(bytes32 positionId, uint256 selectedTerm, uint256 quantumTimestamp, uint256 btcPrice, uint256 availableBTCBalance, bytes calldata extensionValidatorSignature) external returns (bool)", "function liquidatePosition(bytes32 positionId) external returns (bool)", "function commitLiquidation(bytes32 positionId, bytes32 commitHash) external", "function revealAndLiquidate(bytes32 positionId, uint256 nonce, uint256 deadline) external returns (bool)", "function getExpiredLoanLiquidationThreshold(bytes32 positionId) external view returns (uint256)", "function isExpiredLoanLiquidatable(bytes32 positionId, uint256 collateralValue, uint256 debtAmount) external view returns (bool)", "event PositionCreated(bytes32 indexed positionId, bytes32 indexed pkpId, address indexed borrower, uint256 requestedCollateralRatio, uint256 selectedTerm, uint256 expiryAt)", "event UCDMinted(bytes32 indexed positionId, uint256 amount, bytes proof)", "event PositionLiquidated(bytes32 indexed positionId, address indexed liquidator, uint256 collateralRatio, uint256 liquidationBonus)", "event CollateralRatioUpdated(bytes32 indexed positionId, uint256 oldRatio, uint256 newRatio)", "event PositionUpdated(bytes32 indexed positionId, uint256 oldDebt, uint256 newDebt)"];
|
|
7191
4057
|
declare const UCD_TOKEN_ABI: readonly ["function balanceOf(address account) external view returns (uint256)", "function transfer(address to, uint256 amount) external returns (bool)", "function approve(address spender, uint256 amount) external returns (bool)", "function allowance(address owner, address spender) external view returns (uint256)", "function mint(address to, uint256 amount) external", "function burn(uint256 amount) external", "function burnFrom(address account, uint256 amount) external", "event Transfer(address indexed from, address indexed to, uint256 value)", "event Approval(address indexed owner, address indexed spender, uint256 value)"];
|
|
7192
4058
|
declare const PRICE_FEED_CONSUMER_ABI: readonly ["function getCurrentPrice() external view returns (uint256)", "function isPriceStale() external view returns (bool)", "function updatePrice() external", "event PriceUpdated(uint256 indexed price, uint256 timestamp)"];
|
|
7193
4059
|
declare const PSM_ABI: readonly ["function swap(address stablecoin, uint256 amountIn, uint256 minUcdOut) external returns (uint256 ucdAmount)", "function addSupportedStablecoin(address stablecoin, uint256 exchangeRate, uint256 entryFeeBps, uint256 exitFeeBps, uint8 decimals, uint256 minSwapAmount, uint256 minRedeemAmount) external", "function updateSupportedStablecoin(address stablecoin, uint256 exchangeRate, uint256 entryFeeBps, uint256 exitFeeBps, uint8 decimals, uint256 minSwapAmount, uint256 minRedeemAmount) external", "function removeSupportedStablecoin(address stablecoin) external", "function withdrawStablecoin(address stablecoin, uint256 amount) external", "function pause() external", "function unpause() external", "function redeem(address stablecoin, uint256 ucdAmount, uint256 minStablecoinOut) external returns (uint256 stablecoinAmount)", "function setExitFee(address stablecoin, uint256 fee) external", "function setEntryFee(address stablecoin, uint256 fee) external", "function setExchangeRate(address stablecoin, uint256 rate) external", "function setRedeemEnabled(bool enabled) external", "function addReserves(address stablecoin, uint256 amount) external", "function syncReserves(address stablecoin) external", "function forceSyncReserves(address stablecoin) external", "function getRedemptionQuote(address stablecoin, uint256 ucdAmount) external view returns (uint256 stablecoinOut, uint256 exitFee)", "function getAvailableReserves(address stablecoin) external view returns (uint256)", "function canRedeem(address stablecoin, uint256 ucdAmount) external view returns (bool)", "function version() external pure returns (string memory)", "function supportedStablecoins(address) external view returns (bool)", "function exchangeRates(address) external view returns (uint256)", "function fees(address) external view returns (uint256)", "function exitFees(address) external view returns (uint256)", "function reserves(address) external view returns (uint256)", "function redeemEnabled() external view returns (bool)", "function stablecoinDecimals(address) external view returns (uint8)", "function lastOperationBlock(address) external view returns (uint256)", "function operationCount(address) external view returns (uint256)", "function BASIS_POINTS() external view returns (uint256)", "function EXCHANGE_RATE_SCALE() external view returns (uint256)", "function MAX_EXIT_FEE() external view returns (uint256)", "function MAX_RESERVE_DRIFT() external view returns (uint256)", "event Swap(address indexed user, address indexed stablecoin, uint256 stablecoinAmount, uint256 ucdAmount, uint256 fee, uint256 timestamp)", "event Redeem(address indexed user, address indexed stablecoin, uint256 ucdAmount, uint256 stablecoinAmount, uint256 exitFee, uint256 timestamp)", "event StablecoinAdded(address indexed stablecoin, uint256 exchangeRate, uint256 fee)", "event StablecoinRemoved(address indexed stablecoin)", "event ReserveUpdated(address indexed stablecoin, uint256 oldReserve, uint256 newReserve)", "event ExitFeeUpdated(address indexed stablecoin, uint256 oldFee, uint256 newFee)", "event EntryFeeUpdated(address indexed stablecoin, uint256 oldFee, uint256 newFee)", "event ExchangeRateUpdated(address indexed stablecoin, uint256 oldRate, uint256 newRate)"];
|
|
@@ -7259,4 +4125,4 @@ declare const DEFAULT_BITCOIN_CONSENSUS_MODE: "majority";
|
|
|
7259
4125
|
*/
|
|
7260
4126
|
declare const MIN_BITCOIN_PROVIDERS_FOR_CONSENSUS = 2;
|
|
7261
4127
|
|
|
7262
|
-
export { AuditTrail, AuthParamsValidation, AuthorizationParams, AuthorizationRequest, AuthorizationResult, BPS, BPSConversions, BTCDepositRequest, BTCDepositResult, BTCProof, BTCTransaction, BTCWithdrawalResult, BasicNetworkConfig, BitcoinAddresses, BitcoinBalanceResult, BitcoinNetwork, BitcoinOperations, BitcoinOperationsConfig, BitcoinProviderConfig, BitcoinUTXO, BlockNumber, CacheConfig, CacheManager, CacheStats, ClosePositionAuthParams, ConfirmBalanceResult, ConfirmationResult, ContractAddresses, ContractCallOptions, ContractManager, ContractManagerConfig, ContractQueryOptions, ContractTransactionResult, CreateLoanAuthParams, CreateLoanRequest, CreateLoanResult, DEFAULT_BALANCE_CACHE_SIZE, DEFAULT_BALANCE_CACHE_TTL_MS, DEFAULT_BITCOIN_CONSENSUS_MODE, DEFAULT_CACHE_CLEANUP_INTERVAL_MS, DEFAULT_CONCURRENCY_LIMIT, DEFAULT_LIT_NETWORKS, DEFAULT_MAX_RETRIES, DEFAULT_NETWORKS, DEFAULT_NETWORK_CONFIG, DEFAULT_OPERATION_TIMEOUT_MS, DEFAULT_PAGINATION_ROWS, DEFAULT_PKP_CACHE_SIZE, DEFAULT_PKP_CACHE_TTL_MS, DebugInfo, DiamondHandsLitActionResult, DiamondHandsSDK, DiamondHandsSDKConfig, EnrichedBitcoinBalance, EnvironmentName, ErrorCategory, ErrorSeverity, EventFilter, EventHelpers, EventLog, ExtendTermAuthParams, Failure, FeeDistributionEvent, IBTCProof, ILitAction, IPKPManager, IUCDMinting, Cache as LRUCache, LiquidationEvent, LiquidationRequest, LitActionAuth, LitActionParams, LitActionResult, LitActionValidationResult, LoanCreationAudit, LoanCreator, LoanCreatorConfig, LoanData, LoanDataDetail, LoanEvents, LoanEventsFilter, LoanManagerConfig, LoanQuery, LoanQueryConfig, LoanQueryFilters, LoanStatus, LoansQuery, MAX_PAGINATION_ROWS, MIN_BITCOIN_PROVIDERS_FOR_CONSENSUS, ManagedContracts, MintUCDAuthParams, MintingParams, MintingResult, MockTokenManager, MockTokenManagerConfig, MockTokenTransactionResult, MonitoringOptions, NETWORK_CONFIGS, NetworkConfig, PKPCreationRequest, PKPCreationResult, PKPData, PKPIssuanceRequest, PKPManager, PKPManagerConfig, PKPSigningRequest, PKPSigningResult, PKPValidationData, PKPValidationRequest, PKPValidationResult, POSITION_MANAGER_ABI, PRICE_FEED_CONSUMER_ABI, PSM_ABI, PSM_MAX_OPERATIONS_PER_WINDOW, PSM_RATE_LIMIT_RESET_BLOCKS, PaginatedLoansResponse, PaginatedResult, Pagination, PaginationParams, PartialPaymentRequest, PartialPaymentResult, PaymentEvent, PaymentType, Position, PositionDetails, PositionQueryOptions, PositionQueryResult, PositionStatus, PositionWithBTCStatus, PriceProviderConfig, RepayDebtAuthParams, Result$1 as Result, RetryConfig, RewardDistribution, SDKConfig, SDKError, SDKInitOptions, SDKMode, SDK_DEFAULTS, SDK_ERROR_MESSAGES, Satoshis, SatoshisConversions, ServiceModeConfig, StandaloneModeConfig, StatusUpdateEvent, Success, THE_GRAPH_MAX_BATCH_SIZE, TermWithFees, TermsWithFeesResult, UCD, UCDConversions, UCDMintEvent, UCDMintRequest, UCDMintResult, UCD_TOKEN_ABI, UnixTimestamp, ValidationRequest, Wei, WeiConversions, WithdrawBTCAuthParams, andThen, collectFailures, collectSuccesses, combine, createBitcoinOperations, createCacheManager, createContractManager, createLoanCreator, createLoanQuery, createMockTokenManager, createPKPManager, DiamondHandsSDK as default, envLog, failure, firstSuccess, fromPromise, getAllNetworkConfigs, getCurrentEnvironment, getLitNetworkConfig, getNetworkConfig, getNetworkConfigByName, isClosePositionAuth, isCreateLoanAuth, isExtendTermAuth, isFailure, isMintUCDAuth, isNetworkSupported, isRepayDebtAuth, isServiceModeConfig, isStandaloneModeConfig, isSuccess, isValidPaymentType, isValidPositionStatus, isWithdrawBTCAuth, loadSDKConfig, map, mapError, match, numericToPositionStatus, success, toPromise, tryCatch, tryCatchAsync, unwrap, unwrapOr, validateSDKConfig, validateSDKEnvironment, validateServiceModeConfig, validateStandaloneModeConfig };
|
|
4128
|
+
export { AuditTrail, AuthParamsValidation, AuthorizationParams, AuthorizationRequest, AuthorizationResult, BPS, BPSConversions, BTCDepositRequest, BTCDepositResult, BTCProof, BTCTransaction, BTCWithdrawalResult, BasicNetworkConfig, BitcoinAddresses, BitcoinBalanceResult, BitcoinNetwork, BitcoinOperations, BitcoinOperationsConfig, BitcoinProviderConfig, BitcoinUTXO, BlockNumber, CacheConfig, CacheManager, CacheStats, CircuitBreakerModule, ClosePositionAuthParams, ConfirmBalanceResult, ConfirmationResult, ContractAddresses, ContractCallOptions, ContractManager, ContractManagerConfig, ContractQueryOptions, ContractTransactionResult, CreateLoanAuthParams, CreateLoanRequest, CreateLoanResult, DEFAULT_BALANCE_CACHE_SIZE, DEFAULT_BALANCE_CACHE_TTL_MS, DEFAULT_BITCOIN_CONSENSUS_MODE, DEFAULT_CACHE_CLEANUP_INTERVAL_MS, DEFAULT_CONCURRENCY_LIMIT, DEFAULT_LIT_NETWORKS, DEFAULT_MAX_RETRIES, DEFAULT_NETWORKS, DEFAULT_NETWORK_CONFIG, DEFAULT_OPERATION_TIMEOUT_MS, DEFAULT_PAGINATION_ROWS, DEFAULT_PKP_CACHE_SIZE, DEFAULT_PKP_CACHE_TTL_MS, DebugInfo, DiamondHandsLitActionResult, DiamondHandsSDK, DiamondHandsSDKConfig, EnrichedBitcoinBalance, EnvironmentName, ErrorCategory, ErrorSeverity, EventFilter, EventHelpers, EventLog, ExtendTermAuthParams, Failure, FeeDistributionEvent, IBTCProof, ICommunityManager, ILiquidationManager, ILitAction, ILoanOperationsManager, IPKPManager, IPriceFeedConsumer, ITermManager, IUCDController, IUCDMinting, Cache as LRUCache, LiquidationEvent, LiquidationRequest, LitActionAuth, LitActionParams, LitActionResult, LitActionValidationResult, LoanCreationAudit, LoanCreator, LoanCreatorConfig, LoanData, LoanDataDetail, LoanEvents, LoanEventsFilter, LoanManagerConfig, LoanQuery, LoanQueryConfig, LoanQueryFilters, LoanStatus, LoansQuery, MAX_PAGINATION_ROWS, MIN_BITCOIN_PROVIDERS_FOR_CONSENSUS, ManagedContracts, MintUCDAuthParams, MintingParams, MintingResult, MockTokenManager, MockTokenManagerConfig, MockTokenTransactionResult, MonitoringOptions, NETWORK_CONFIGS, NetworkConfig, PKPCreationRequest, PKPCreationResult, PKPData, PKPIssuanceRequest, PKPManager, PKPManagerConfig, PKPSigningRequest, PKPSigningResult, PKPValidationData, PKPValidationRequest, PKPValidationResult, POSITION_MANAGER_ABI, PRICE_FEED_CONSUMER_ABI, PSM_ABI, PSM_MAX_OPERATIONS_PER_WINDOW, PSM_RATE_LIMIT_RESET_BLOCKS, PaginatedLoansResponse, PaginatedResult, Pagination, PaginationParams, PartialPaymentRequest, PartialPaymentResult, PaymentEvent, PaymentType, Position, PositionDetails, PositionManager, PositionQueryOptions, PositionQueryResult, PositionStatus, PositionWithBTCStatus, PriceProviderConfig, RepayDebtAuthParams, Result$1 as Result, RetryConfig, RewardDistribution, SDKConfig, SDKError, SDKInitOptions, SDKMode, SDK_DEFAULTS, SDK_ERROR_MESSAGES, Satoshis, SatoshisConversions, ServiceModeConfig, StandaloneModeConfig, StatusUpdateEvent, Success, THE_GRAPH_MAX_BATCH_SIZE, TermWithFees, TermsWithFeesResult, UCD, UCDConversions, UCDMintEvent, UCDMintRequest, UCDMintResult, UCD_TOKEN_ABI, UnixTimestamp, ValidationRequest, Wei, WeiConversions, WithdrawBTCAuthParams, andThen, collectFailures, collectSuccesses, combine, createBitcoinOperations, createCacheManager, createContractManager, createLoanCreator, createLoanQuery, createMockTokenManager, createPKPManager, DiamondHandsSDK as default, envLog, failure, firstSuccess, fromPromise, getAllNetworkConfigs, getCurrentEnvironment, getLitNetworkConfig, getNetworkConfig, getNetworkConfigByName, isClosePositionAuth, isCreateLoanAuth, isExtendTermAuth, isFailure, isMintUCDAuth, isNetworkSupported, isRepayDebtAuth, isServiceModeConfig, isStandaloneModeConfig, isSuccess, isValidPaymentType, isValidPositionStatus, isWithdrawBTCAuth, loadSDKConfig, map, mapError, match, numericToPositionStatus, success, toPromise, tryCatch, tryCatchAsync, unwrap, unwrapOr, validateSDKConfig, validateSDKEnvironment, validateServiceModeConfig, validateStandaloneModeConfig };
|