Skip to content

Commit 30c60fc

Browse files
committed
fix: upgrade database for fasset v1.2
1 parent 174073f commit 30c60fc

File tree

9 files changed

+3182
-1876
lines changed

9 files changed

+3182
-1876
lines changed

packages/fasset-indexer-core/chain/typechain/IAssetManager.ts

Lines changed: 1624 additions & 949 deletions
Large diffs are not rendered by default.

packages/fasset-indexer-core/chain/typechain/ICoreVaultManager.ts

Lines changed: 107 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ export declare namespace ICoreVaultManager {
154154
export interface ICoreVaultManagerInterface extends Interface {
155155
getFunction(
156156
nameOrSignature:
157+
| "assetManager"
157158
| "availableFunds"
159+
| "cancelTransferRequestFromCoreVault"
158160
| "confirmPayment"
159161
| "coreVaultAddress"
160162
| "coreVaultAddressHash"
@@ -179,6 +181,7 @@ export interface ICoreVaultManagerInterface extends Interface {
179181
| "pause"
180182
| "paused"
181183
| "processEscrows"
184+
| "requestTransferFromCoreVault"
182185
| "totalRequestAmountWithFee"
183186
| "triggerInstructions"
184187
): FunctionFragment;
@@ -188,6 +191,7 @@ export interface ICoreVaultManagerInterface extends Interface {
188191
| "AllowedDestinationAddressAdded"
189192
| "AllowedDestinationAddressRemoved"
190193
| "CustodianAddressUpdated"
194+
| "CustomInstructions"
191195
| "EmergencyPauseSenderAdded"
192196
| "EmergencyPauseSenderRemoved"
193197
| "EscrowFinished"
@@ -206,10 +210,18 @@ export interface ICoreVaultManagerInterface extends Interface {
206210
| "UnusedPreimageHashRemoved"
207211
): EventFragment;
208212

213+
encodeFunctionData(
214+
functionFragment: "assetManager",
215+
values?: undefined
216+
): string;
209217
encodeFunctionData(
210218
functionFragment: "availableFunds",
211219
values?: undefined
212220
): string;
221+
encodeFunctionData(
222+
functionFragment: "cancelTransferRequestFromCoreVault",
223+
values: [string]
224+
): string;
213225
encodeFunctionData(
214226
functionFragment: "confirmPayment",
215227
values: [IPayment.ProofStruct]
@@ -300,6 +312,10 @@ export interface ICoreVaultManagerInterface extends Interface {
300312
functionFragment: "processEscrows",
301313
values: [BigNumberish]
302314
): string;
315+
encodeFunctionData(
316+
functionFragment: "requestTransferFromCoreVault",
317+
values: [string, BytesLike, BigNumberish, boolean]
318+
): string;
303319
encodeFunctionData(
304320
functionFragment: "totalRequestAmountWithFee",
305321
values?: undefined
@@ -309,10 +325,18 @@ export interface ICoreVaultManagerInterface extends Interface {
309325
values?: undefined
310326
): string;
311327

328+
decodeFunctionResult(
329+
functionFragment: "assetManager",
330+
data: BytesLike
331+
): Result;
312332
decodeFunctionResult(
313333
functionFragment: "availableFunds",
314334
data: BytesLike
315335
): Result;
336+
decodeFunctionResult(
337+
functionFragment: "cancelTransferRequestFromCoreVault",
338+
data: BytesLike
339+
): Result;
316340
decodeFunctionResult(
317341
functionFragment: "confirmPayment",
318342
data: BytesLike
@@ -403,6 +427,10 @@ export interface ICoreVaultManagerInterface extends Interface {
403427
functionFragment: "processEscrows",
404428
data: BytesLike
405429
): Result;
430+
decodeFunctionResult(
431+
functionFragment: "requestTransferFromCoreVault",
432+
data: BytesLike
433+
): Result;
406434
decodeFunctionResult(
407435
functionFragment: "totalRequestAmountWithFee",
408436
data: BytesLike
@@ -449,6 +477,28 @@ export namespace CustodianAddressUpdatedEvent {
449477
export type LogDescription = TypedLogDescription<Event>;
450478
}
451479

480+
export namespace CustomInstructionsEvent {
481+
export type InputTuple = [
482+
sequence: BigNumberish,
483+
account: string,
484+
instructionsHash: BytesLike
485+
];
486+
export type OutputTuple = [
487+
sequence: bigint,
488+
account: string,
489+
instructionsHash: string
490+
];
491+
export interface OutputObject {
492+
sequence: bigint;
493+
account: string;
494+
instructionsHash: string;
495+
}
496+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
497+
export type Filter = TypedDeferredTopicFilter<Event>;
498+
export type Log = TypedEventLog<Event>;
499+
export type LogDescription = TypedLogDescription<Event>;
500+
}
501+
452502
export namespace EmergencyPauseSenderAddedEvent {
453503
export type InputTuple = [sender: AddressLike];
454504
export type OutputTuple = [sender: string];
@@ -766,8 +816,16 @@ export interface ICoreVaultManager extends BaseContract {
766816
event?: TCEvent
767817
): Promise<this>;
768818

819+
assetManager: TypedContractMethod<[], [string], "view">;
820+
769821
availableFunds: TypedContractMethod<[], [bigint], "view">;
770822

823+
cancelTransferRequestFromCoreVault: TypedContractMethod<
824+
[_destinationAddress: string],
825+
[void],
826+
"nonpayable"
827+
>;
828+
771829
confirmPayment: TypedContractMethod<
772830
[_proof: IPayment.ProofStruct],
773831
[void],
@@ -863,17 +921,34 @@ export interface ICoreVaultManager extends BaseContract {
863921
"nonpayable"
864922
>;
865923

924+
requestTransferFromCoreVault: TypedContractMethod<
925+
[
926+
_destinationAddress: string,
927+
_paymentReference: BytesLike,
928+
_amount: BigNumberish,
929+
_cancelable: boolean
930+
],
931+
[string],
932+
"nonpayable"
933+
>;
934+
866935
totalRequestAmountWithFee: TypedContractMethod<[], [bigint], "view">;
867936

868-
triggerInstructions: TypedContractMethod<[], [void], "nonpayable">;
937+
triggerInstructions: TypedContractMethod<[], [bigint], "nonpayable">;
869938

870939
getFunction<T extends ContractMethod = ContractMethod>(
871940
key: string | FunctionFragment
872941
): T;
873942

943+
getFunction(
944+
nameOrSignature: "assetManager"
945+
): TypedContractMethod<[], [string], "view">;
874946
getFunction(
875947
nameOrSignature: "availableFunds"
876948
): TypedContractMethod<[], [bigint], "view">;
949+
getFunction(
950+
nameOrSignature: "cancelTransferRequestFromCoreVault"
951+
): TypedContractMethod<[_destinationAddress: string], [void], "nonpayable">;
877952
getFunction(
878953
nameOrSignature: "confirmPayment"
879954
): TypedContractMethod<[_proof: IPayment.ProofStruct], [void], "nonpayable">;
@@ -973,12 +1048,24 @@ export interface ICoreVaultManager extends BaseContract {
9731048
getFunction(
9741049
nameOrSignature: "processEscrows"
9751050
): TypedContractMethod<[_maxCount: BigNumberish], [boolean], "nonpayable">;
1051+
getFunction(
1052+
nameOrSignature: "requestTransferFromCoreVault"
1053+
): TypedContractMethod<
1054+
[
1055+
_destinationAddress: string,
1056+
_paymentReference: BytesLike,
1057+
_amount: BigNumberish,
1058+
_cancelable: boolean
1059+
],
1060+
[string],
1061+
"nonpayable"
1062+
>;
9761063
getFunction(
9771064
nameOrSignature: "totalRequestAmountWithFee"
9781065
): TypedContractMethod<[], [bigint], "view">;
9791066
getFunction(
9801067
nameOrSignature: "triggerInstructions"
981-
): TypedContractMethod<[], [void], "nonpayable">;
1068+
): TypedContractMethod<[], [bigint], "nonpayable">;
9821069

9831070
getEvent(
9841071
key: "AllowedDestinationAddressAdded"
@@ -1001,6 +1088,13 @@ export interface ICoreVaultManager extends BaseContract {
10011088
CustodianAddressUpdatedEvent.OutputTuple,
10021089
CustodianAddressUpdatedEvent.OutputObject
10031090
>;
1091+
getEvent(
1092+
key: "CustomInstructions"
1093+
): TypedContractEvent<
1094+
CustomInstructionsEvent.InputTuple,
1095+
CustomInstructionsEvent.OutputTuple,
1096+
CustomInstructionsEvent.OutputObject
1097+
>;
10041098
getEvent(
10051099
key: "EmergencyPauseSenderAdded"
10061100
): TypedContractEvent<
@@ -1148,6 +1242,17 @@ export interface ICoreVaultManager extends BaseContract {
11481242
CustodianAddressUpdatedEvent.OutputObject
11491243
>;
11501244

1245+
"CustomInstructions(uint256,string,bytes32)": TypedContractEvent<
1246+
CustomInstructionsEvent.InputTuple,
1247+
CustomInstructionsEvent.OutputTuple,
1248+
CustomInstructionsEvent.OutputObject
1249+
>;
1250+
CustomInstructions: TypedContractEvent<
1251+
CustomInstructionsEvent.InputTuple,
1252+
CustomInstructionsEvent.OutputTuple,
1253+
CustomInstructionsEvent.OutputObject
1254+
>;
1255+
11511256
"EmergencyPauseSenderAdded(address)": TypedContractEvent<
11521257
EmergencyPauseSenderAddedEvent.InputTuple,
11531258
EmergencyPauseSenderAddedEvent.OutputTuple,

0 commit comments

Comments
 (0)