Skip to content

Commit

Permalink
Merge branch 'master' into npai/helper-v3
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaspai committed Feb 15, 2024
2 parents e3bd6af + 4e43e31 commit a7a700e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 13 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: CI
on: [push]
jobs:
build:
name: Builds
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: yarn install
- run: yarn build

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@across-protocol/sdk-v2",
"author": "UMA Team",
"version": "0.20.6",
"version": "0.21.0",
"license": "AGPL-3.0",
"homepage": "https://docs.across.to/v/developer-docs/developers/across-sdk",
"files": [
Expand Down
18 changes: 9 additions & 9 deletions src/clients/mocks/MockSpokePoolClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ export class MockSpokePoolClient extends SpokePoolClient {
recipient,
message,
updatableRelayData: {
recipient: fill.updatableRelayData?.recipient ?? recipient,
message: fill.updatableRelayData?.message ?? message,
relayerFeePct: fill.updatableRelayData?.relayerFeePct ?? relayerFeePct,
updatableRecipient: fill.updatableRelayData?.updatedRecipient ?? recipient,
updatableMessage: fill.updatableRelayData?.updatedMessage ?? message,
updatedRelayerFeePct: fill.updatableRelayData?.relayerFeePct ?? relayerFeePct,
isSlowRelay: fill.updatableRelayData?.isSlowRelay ?? false,
payoutAdjustmentPct: fill.updatableRelayData?.payoutAdjustmentPct ?? bnZero,
},
Expand Down Expand Up @@ -323,9 +323,9 @@ export class MockSpokePoolClient extends SpokePoolClient {
recipient,
message,
relayExecutionInfo: {
updatedRecipient: fill.relayExecutionInfo?.recipient ?? recipient,
updatedMessage: fill.relayExecutionInfo?.message ?? message,
updatedOutputAmount: fill.relayExecutionInfo?.outputAmount ?? outputAmount,
updatedRecipient: fill.relayExecutionInfo?.updatedRecipient ?? recipient,
updatedMessage: fill.relayExecutionInfo?.updatedMessage ?? message,
updatedOutputAmount: fill.relayExecutionInfo?.updatedOutputAmount ?? outputAmount,
fillType: fill.relayExecutionInfo?.fillType ?? FillType.FastFill,
},
};
Expand Down Expand Up @@ -392,9 +392,9 @@ export class MockSpokePoolClient extends SpokePoolClient {
relayer: ZERO_ADDRESS,
repaymentChainId: 0,
relayExecutionInfo: {
recipient: leaf.relayData.recipient,
outputAmount: leaf.updatedOutputAmount,
message: leaf.relayData.message,
updatedRecipient: leaf.relayData.recipient,
updatedOutputAmount: leaf.updatedOutputAmount,
updatedMessage: leaf.relayData.message,
fillType: FillType.SlowFill,
},
};
Expand Down
6 changes: 3 additions & 3 deletions src/interfaces/SpokePool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export type Deposit = V2Deposit | V3Deposit;
export type DepositWithBlock = V2DepositWithBlock | V3DepositWithBlock;

export interface RelayExecutionInfoCommon {
recipient: string;
message: string;
updatedRecipient: string;
updatedMessage: string;
}

export interface RelayExecutionInfo extends RelayExecutionInfoCommon {
Expand All @@ -89,7 +89,7 @@ export enum FillType {
}

export interface V3RelayExecutionEventInfo extends RelayExecutionInfoCommon {
outputAmount: BigNumber;
updatedOutputAmount: BigNumber;
fillType: FillType;
}

Expand Down

0 comments on commit a7a700e

Please sign in to comment.