diff --git a/package.json b/package.json index 9025c15..8f45926 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bnc-sdk", - "version": "4.6.3", + "version": "4.6.4", "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..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 @@ -115,8 +115,6 @@ export type System = 'ethereum' export type Network = | 'main' - | 'ropsten' - | 'rinkeby' | 'goerli' | 'xdai' | 'matic-main' @@ -130,7 +128,8 @@ export type Status = | 'cancel' | 'failed' | 'dropped' - | 'simulated' + | 'pending-simulation' + | 'stuck' export interface InputOutput { address: string diff --git a/yarn.lock b/yarn.lock index 5597999..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" @@ -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"