From e986ba7cb07a71b0b6098a6db7a221eeb8b1055f Mon Sep 17 00:00:00 2001 From: Marcos Date: Thu, 5 Oct 2023 13:17:20 -0300 Subject: [PATCH] enforce base package to build first --- examples/create-forked-network/index.js | 2 +- package.json | 2 +- packages/relay-signer/src/models/relayer.ts | 7 ++++++- packages/relay-signer/src/models/transactions.ts | 3 +-- packages/relay-signer/src/relayer.ts | 11 +++++++++-- 5 files changed, 18 insertions(+), 7 deletions(-) diff --git a/examples/create-forked-network/index.js b/examples/create-forked-network/index.js index d6663b3c..515d9ed5 100644 --- a/examples/create-forked-network/index.js +++ b/examples/create-forked-network/index.js @@ -11,7 +11,7 @@ async function main() { name: 'MyForkedNetwork', forkedNetwork: 'mainnet', rpcUrl: '', // Add your RPC URL here - }) + }); console.log(network); } diff --git a/package.json b/package.json index 694178b2..9ddba44e 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "nx-build-test-skip-cache": "pnpm run build-test --skip-nx-cache", "nx-test-skip-cache": "pnpm run test --skip-nx-cache", "build": "nx run-many -t build --parallel=1", - "build-test": "nx run-many -t style,build,test", + "build-test": "nx run-many -t style,build,test --projects=@openzeppelin/defender-base-client,* --parallel=false", "lint:check": "eslint 'packages/**/src/**/*.{js,ts}' --quiet", "lint:fix": "pnpm prettier:fix && pnpm lint:check && pnpm prettier:check", "prettier:check": "prettier --check '**/*.{js,ts,tsx}'", diff --git a/packages/relay-signer/src/models/relayer.ts b/packages/relay-signer/src/models/relayer.ts index 5bdeeba7..e747d281 100644 --- a/packages/relay-signer/src/models/relayer.ts +++ b/packages/relay-signer/src/models/relayer.ts @@ -1,6 +1,11 @@ import https from 'https'; import { Network } from '@openzeppelin/defender-sdk-base-client'; -import { ListTransactionsRequest, PaginatedTransactionResponse, RelayerTransaction, RelayerTransactionPayload } from './transactions'; +import { + ListTransactionsRequest, + PaginatedTransactionResponse, + RelayerTransaction, + RelayerTransactionPayload, +} from './transactions'; import { JsonRpcResponse, SignMessagePayload, SignTypedDataPayload, SignedMessagePayload } from './rpc'; // TODO Defender Address model for this diff --git a/packages/relay-signer/src/models/transactions.ts b/packages/relay-signer/src/models/transactions.ts index fe5bff30..a1238990 100644 --- a/packages/relay-signer/src/models/transactions.ts +++ b/packages/relay-signer/src/models/transactions.ts @@ -71,8 +71,7 @@ export type ListTransactionsRequest = { usePagination?: boolean; }; - export type PaginatedTransactionResponse = { items: RelayerTransaction[]; next?: string; -} \ No newline at end of file +}; diff --git a/packages/relay-signer/src/relayer.ts b/packages/relay-signer/src/relayer.ts index 19c3d171..93359bbe 100644 --- a/packages/relay-signer/src/relayer.ts +++ b/packages/relay-signer/src/relayer.ts @@ -1,6 +1,11 @@ import { IRelayer, RelayerGetResponse, RelayerParams } from './models/relayer'; import { JsonRpcResponse, SignMessagePayload, SignTypedDataPayload, SignedMessagePayload } from './models/rpc'; -import { ListTransactionsRequest, PaginatedTransactionResponse, RelayerTransaction, RelayerTransactionPayload } from './models/transactions'; +import { + ListTransactionsRequest, + PaginatedTransactionResponse, + RelayerTransaction, + RelayerTransactionPayload, +} from './models/transactions'; import { isApiCredentials, isActionCredentials, validatePayload } from './ethers/utils'; import { RelaySignerClient } from './api'; import { DefenderRelayProvider, DefenderRelaySigner, DefenderRelaySignerOptions } from './ethers'; @@ -66,7 +71,9 @@ export class Relayer implements IRelayer { return this.relayer.getTransaction(id); } - public listTransactions(criteria?: ListTransactionsRequest): Promise { + public listTransactions( + criteria?: ListTransactionsRequest, + ): Promise { return this.relayer.listTransactions(criteria); }