Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pxrl/typechain' into pxrl/types-…
Browse files Browse the repository at this point in the history
…prep
  • Loading branch information
pxrl committed Jan 16, 2024
2 parents 8edcb9e + e15cfd2 commit a8bfeca
Showing 1 changed file with 43 additions and 9 deletions.
52 changes: 43 additions & 9 deletions src/typechain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ export type {
MerkleDistributorInterface,
} from "@across-protocol/across-token/dist/typechain/MerkleDistributor";

/**
* Temporarily provide local definitions for the upcoming v3 data types.
* This defers the need to bump contracts-v2, which would otherwise be
* incompatible with the production code in relayer-v2. These defintions
* must be removed when contracts-v2 is finally bumped.
*/

export interface V3FundsDepositedEventObject {
inputToken: string;
outputToken: string;
Expand All @@ -59,7 +66,7 @@ export interface V3FundsDepositedEventObject {
relayer: string;
message: string;
}
export declare type V3FundsDepositedEvent = TypedEvent<
export type V3FundsDepositedEvent = TypedEvent<
[string, string, BigNumber, BigNumber, BigNumber, number, number, number, number, string, string, string, string],
V3FundsDepositedEventObject
>;
Expand All @@ -81,8 +88,7 @@ export interface FilledV3RelayEventObject {
message: string;
relayExecutionInfo: V3SpokePoolInterface.V3RelayExecutionEventInfoStructOutput;
}

export declare type FilledV3RelayEvent = TypedEvent<
export type FilledV3RelayEvent = TypedEvent<
[
string,
string,
Expand All @@ -103,12 +109,40 @@ export declare type FilledV3RelayEvent = TypedEvent<
FilledV3RelayEventObject
>;

/**
* Temporarily provide local definitions for the upcoming v3 data types.
* This defers the need to bump contracts-v2, which would otherwise be
* incompatible with the production code in relayer-v2. These defintions
* must be removed when contracts-v2 is finally bumped.
*/
export interface RequestedSpeedUpV3DepositEventObject {
updatedOutputAmount: BigNumber;
depositId: number;
depositor: string;
updatedRecipient: string;
updatedMessage: string;
depositorSignature: string;
}
export type RequestedSpeedUpV3DepositEvent = TypedEvent<
[BigNumber, number, string, string, string, string],
RequestedSpeedUpV3DepositEventObject
>;

export type RequestedSpeedUpV3DepositEventFilter = TypedEventFilter<RequestedSpeedUpV3DepositEvent>;

export interface RequestedV3SlowFillEventObject {
inputToken: string;
outputToken: string;
inputAmount: BigNumber;
outputAmount: BigNumber;
originChainId: BigNumber;
depositId: number;
fillDeadline: number;
exclusivityDeadline: number;
exclusiveRelayer: string;
depositor: string;
recipient: string;
message: string;
}
export type RequestedV3SlowFillEvent = TypedEvent<
[string, string, BigNumber, BigNumber, BigNumber, number, number, number, string, string, string, string],
RequestedV3SlowFillEventObject
>;

// eslint-disable-next-line @typescript-eslint/no-namespace
export declare namespace V3SpokePoolInterface {
type V3RelayExecutionEventInfoStruct = {
Expand Down

0 comments on commit a8bfeca

Please sign in to comment.