From aa45e9327443d285e05a5d072fa4e969287558c0 Mon Sep 17 00:00:00 2001 From: Georgi Tsonev Date: Fri, 31 May 2024 13:54:56 +0300 Subject: [PATCH 1/2] fix: fix TxExecutionStatus import --- packages/providers/src/failover-rpc-provider.ts | 2 +- packages/providers/src/json-rpc-provider.ts | 2 +- packages/providers/src/provider.ts | 2 +- packages/types/src/provider/index.ts | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/providers/src/failover-rpc-provider.ts b/packages/providers/src/failover-rpc-provider.ts index 4729f89c06..dbcf225b57 100644 --- a/packages/providers/src/failover-rpc-provider.ts +++ b/packages/providers/src/failover-rpc-provider.ts @@ -30,7 +30,7 @@ import { } from '@near-js/types'; import { SignedTransaction } from '@near-js/transactions'; import { Provider } from './provider'; -import { TxExecutionStatus } from '@near-js/types/src/provider/protocol'; +import { TxExecutionStatus } from '@near-js/types'; /** * Client class to interact with the [NEAR RPC API](https://docs.near.org/api/rpc/introduction). diff --git a/packages/providers/src/json-rpc-provider.ts b/packages/providers/src/json-rpc-provider.ts index 6710868af4..c12ed55f53 100644 --- a/packages/providers/src/json-rpc-provider.ts +++ b/packages/providers/src/json-rpc-provider.ts @@ -42,7 +42,7 @@ import { import { exponentialBackoff } from './exponential-backoff'; import { Provider } from './provider'; import { ConnectionInfo, fetchJson } from './fetch_json'; -import { TxExecutionStatus } from '@near-js/types/src/provider/protocol'; +import { TxExecutionStatus } from '@near-js/types'; /** @hidden */ // Default number of retries before giving up on a request. diff --git a/packages/providers/src/provider.ts b/packages/providers/src/provider.ts index f17af6df45..1b9846ed9e 100644 --- a/packages/providers/src/provider.ts +++ b/packages/providers/src/provider.ts @@ -25,7 +25,7 @@ import { RpcQueryRequest, EpochValidatorInfo, } from '@near-js/types'; -import { TxExecutionStatus } from '@near-js/types/src/provider/protocol'; +import { TxExecutionStatus } from '@near-js/types'; /** @hidden */ export abstract class Provider { diff --git a/packages/types/src/provider/index.ts b/packages/types/src/provider/index.ts index ccd62e39cb..d22b4125a6 100644 --- a/packages/types/src/provider/index.ts +++ b/packages/types/src/provider/index.ts @@ -36,6 +36,7 @@ export { SyncInfo, TotalWeight, Transaction as ProviderTransaction, + TxExecutionStatus } from './protocol'; export { CallFunctionRequest, From ecdf1741fb692e71202c541c5b3692790baa65f0 Mon Sep 17 00:00:00 2001 From: Georgi Tsonev Date: Fri, 31 May 2024 13:56:02 +0300 Subject: [PATCH 2/2] chore: add a changeset file --- .changeset/khaki-paws-bow.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changeset/khaki-paws-bow.md diff --git a/.changeset/khaki-paws-bow.md b/.changeset/khaki-paws-bow.md new file mode 100644 index 0000000000..dd20d862b7 --- /dev/null +++ b/.changeset/khaki-paws-bow.md @@ -0,0 +1,6 @@ +--- +"@near-js/providers": patch +"@near-js/types": patch +--- + +Fix TxExecutionStatus import.