From 495b9d7c6e287bdd42de3be2d935178567ff1c54 Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 11 Jan 2023 09:30:59 +1100 Subject: [PATCH 1/5] Deprecate Rinkeby and Ropsten networks (#222) --- package.json | 2 +- src/defaults.ts | 4 +--- src/types.ts | 2 -- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 9025c15..c463173 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bnc-sdk", - "version": "4.6.3", + "version": "4.6.3-0.0.1", "description": "SDK to connect to the blocknative backend via a websocket connection", "keywords": [ "ethereum", diff --git a/src/defaults.ts b/src/defaults.ts index 657edaa..205d429 100644 --- a/src/defaults.ts +++ b/src/defaults.ts @@ -1,8 +1,6 @@ export const networks: { [key: string]: { [key: string]: string } } = { ethereum: { '1': 'main', - '3': 'ropsten', - '4': 'rinkeby', '5': 'goerli', '100': 'xdai', '137': 'matic-main', @@ -10,7 +8,7 @@ export const networks: { [key: string]: { [key: string]: string } } = { } } -export const DEPRECATED_NETWORK_IDS = [2, 42, 56, 250] +export const DEPRECATED_NETWORK_IDS = [2, 3, 4, 42, 56, 250] export const DEFAULT_RATE_LIMIT_RULES = { points: 150, diff --git a/src/types.ts b/src/types.ts index 0106233..a73be88 100644 --- a/src/types.ts +++ b/src/types.ts @@ -115,8 +115,6 @@ export type System = 'ethereum' export type Network = | 'main' - | 'ropsten' - | 'rinkeby' | 'goerli' | 'xdai' | 'matic-main' From 3743b91333e82fa5c786c9071078b058166a5ed0 Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 11 Jan 2023 09:36:03 +1100 Subject: [PATCH 2/5] Fixes incorrect types (#223) --- package.json | 2 +- src/types.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c463173..4ce3813 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bnc-sdk", - "version": "4.6.3-0.0.1", + "version": "4.6.3-0.0.2", "description": "SDK to connect to the blocknative backend via a websocket connection", "keywords": [ "ethereum", diff --git a/src/types.ts b/src/types.ts index a73be88..68c069d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -51,7 +51,7 @@ export interface EthereumTransactionData extends CommonTransactionData { from: string gas: number gasPrice?: string - gasUsed?: string + gasUsed?: number input: string nonce: number v: string @@ -128,7 +128,8 @@ export type Status = | 'cancel' | 'failed' | 'dropped' - | 'simulated' + | 'pending-simulation' + | 'stuck' export interface InputOutput { address: string From cec9a0461c47a281a46b8b57b9210e44084defab Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 11 Jan 2023 09:36:35 +1100 Subject: [PATCH 3/5] Bump json5 from 2.1.2 to 2.2.3 (#221) Bumps [json5](https://github.com/json5/json5) from 2.1.2 to 2.2.3. - [Release notes](https://github.com/json5/json5/releases) - [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md) - [Commits](https://github.com/json5/json5/compare/v2.1.2...v2.2.3) --- updated-dependencies: - dependency-name: json5 dependency-type: indirect ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/yarn.lock b/yarn.lock index 5597999..78e9eb5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2072,11 +2072,9 @@ json-stable-stringify-without-jsonify@^1.0.1: integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE= json5@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/json5/-/json5-2.1.2.tgz#43ef1f0af9835dd624751a6b7fa48874fb2d608e" - integrity sha512-MoUOQ4WdiN3yxhm7NEVJSJrieAo5hNSLQ5sj05OTRHPL9HOBy8u4Bu88jsC1jvqAdN+E1bJmsUcZH+1HQxliqQ== - dependencies: - minimist "^1.2.5" + version "2.2.3" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" + integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== jsonfile@^4.0.0: version "4.0.0" @@ -2221,11 +2219,6 @@ minimatch@^3.0.4: dependencies: brace-expansion "^1.1.7" -minimist@^1.2.5: - version "1.2.6" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44" - integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q== - mixin-deep@^1.2.0: version "1.3.2" resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" From eb91654b2935806b72b749c4bd6d0352e25f6973 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 11 Jan 2023 09:37:01 +1100 Subject: [PATCH 4/5] Bump decode-uri-component from 0.2.0 to 0.2.2 (#218) Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. - [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases) - [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2) --- updated-dependencies: - dependency-name: decode-uri-component dependency-type: indirect ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 78e9eb5..56e515d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1346,9 +1346,9 @@ debug@^4.0.1, debug@^4.1.0, debug@^4.1.1: ms "^2.1.1" decode-uri-component@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" - integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= + version "0.2.2" + resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9" + integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ== deep-is@^0.1.3: version "0.1.3" From a9a2af70d23fe3b749f640a51abbe16e61148998 Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 11 Jan 2023 09:38:01 +1100 Subject: [PATCH 5/5] Release 4.6.4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4ce3813..8f45926 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bnc-sdk", - "version": "4.6.3-0.0.2", + "version": "4.6.4", "description": "SDK to connect to the blocknative backend via a websocket connection", "keywords": [ "ethereum",