Skip to content

Commit 5f49861

Browse files
authored
Fix wrong typings (#1238)
1 parent f3b6a29 commit 5f49861

File tree

10 files changed

+14
-14
lines changed

10 files changed

+14
-14
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
strategy:
1010
matrix:
11-
node-version: [18.x]
11+
node-version: [20.x]
1212

1313
steps:
1414
- uses: actions/checkout@v3

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
node-version: [18.x]
17+
node-version: [20.x]
1818

1919
steps:
2020
- uses: actions/checkout@v3

lib/agent/fixtures/swap-arbitrary-tokens/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export type SwapArbitraryTokensContract = {
2222
amountOut: string,
2323
deadline: number,
2424
amount: string,
25-
payload?: string,
25+
payload?: string | Uint8Array,
2626
token?: string,
2727
gatewayAddress?: string,
2828
gatewayBasisPoints?: string,

lib/agent/fixtures/swap-arbitrary-tokens/swapTokensAndStakeDev.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export type CreateSwapTokensAndStakeDevCaller = (
1717
amountOut: string,
1818
deadline: number,
1919
amount: string,
20-
payload?: string,
20+
payload?: string | Uint8Array,
2121
token?: string,
2222
gatewayAddress?: string,
2323
gatewayBasisPoints?: string,
@@ -34,7 +34,7 @@ export const createSwapTokensAndStakeDevCaller: CreateSwapTokensAndStakeDevCalle
3434
amountOut: string,
3535
deadline: number,
3636
amount: string,
37-
payload?: string,
37+
payload?: string | Uint8Array,
3838
token?: string,
3939
gatewayAddress?: string,
4040
gatewayBasisPoints?: string,

lib/agent/fixtures/swap/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export type SwapContract = {
1616
readonly swapEthAndStakeDevCaller: (
1717
propertyAddress: string,
1818
deadline: number,
19-
payload: string,
19+
payload: string | Uint8Array,
2020
overrides: FallbackableOverrides,
2121
gatewayAddress?: string,
2222
gatewayBasisPoints?: string,
@@ -25,7 +25,7 @@ export type SwapContract = {
2525
propertyAddress: string,
2626
amount: string,
2727
deadline: number,
28-
payload: string,
28+
payload: string | Uint8Array,
2929
overrides: FallbackableOverrides,
3030
gatewayAddress?: string,
3131
gatewayBasisPoints?: string,

lib/agent/fixtures/swap/swapEthAndStakeDev.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export type CreateSwapEthAndStakeDevCaller = (
1212
) => (
1313
propertyAddress: string,
1414
deadline: number,
15-
payload?: string,
15+
payload?: string | Uint8Array,
1616
overrides?: FallbackableOverrides,
1717
gatewayAddress?: string,
1818
gatewayBasisPoints?: string,
@@ -23,7 +23,7 @@ export const createSwapEthAndStakeDevCaller: CreateSwapEthAndStakeDevCaller =
2323
async (
2424
propertyAddress: string,
2525
deadline: number,
26-
payload?: string,
26+
payload?: string | Uint8Array,
2727
overrides?: FallbackableOverrides,
2828
gatewayAddress?: string,
2929
gatewayBasisPoints?: string,

lib/agent/fixtures/swap/swapEthAndStakeDevPolygon.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export type CreateSwapEthAndStakeDevPolygonCaller = (
1313
propertyAddress: string,
1414
amount: string,
1515
deadline: number,
16-
payload: string,
16+
payload: string | Uint8Array,
1717
overrides: FallbackableOverrides,
1818
gatewayAddress?: string,
1919
gatewayBasisPoints?: string,
@@ -26,7 +26,7 @@ export const createSwapEthAndStakeDevPolygonCaller: CreateSwapEthAndStakeDevPoly
2626
propertyAddress: string,
2727
amount: string,
2828
deadline: number,
29-
payload: string,
29+
payload: string | Uint8Array,
3030
overrides: FallbackableOverrides,
3131
gatewayAddress?: string,
3232
gatewayBasisPoints?: string,

lib/agent/positionsCreateWithAnyTokens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type Params = {
1919
readonly devAmountOut?: string
2020
readonly from?: string
2121
readonly overrides?: FallbackableOverrides
22-
readonly payload?: string
22+
readonly payload?: string | Uint8Array
2323
readonly deadline?: number
2424
readonly gatewayAddress?: string
2525
readonly gatewayBasisPoints?: number

lib/agent/positionsCreateWithEth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type PositionsCreateWithEth = (options: {
1212
readonly deadline?: number
1313
readonly gatewayAddress?: string
1414
readonly gatewayBasisPoints?: number
15-
readonly payload?: string
15+
readonly payload?: string | Uint8Array
1616
readonly overrides?: FallbackableOverrides
1717
}) => Promise<{
1818
readonly estimatedDev: string

lib/agent/positionsCreateWithEthForPolygon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type PositionsCreateWithEthForPolygon = (options: {
1515
readonly destination: string
1616
readonly from?: string
1717
readonly overrides?: FallbackableOverrides
18-
readonly payload?: string
18+
readonly payload?: string | Uint8Array
1919
readonly deadline?: number
2020
readonly gatewayAddress?: string
2121
readonly gatewayBasisPoints?: number

0 commit comments

Comments
 (0)