Skip to content

Commit

Permalink
fix(deps): update dep @0x/subproviders@^6.5.4->^8.0.1
Browse files Browse the repository at this point in the history
Bump @0x/subproviders in packages:
- keystone-connector
- keystone-subprovider

Vendor unexported interface PartialTxParams
  • Loading branch information
legobeat committed May 12, 2024
1 parent 90ee66c commit 3f0fc84
Show file tree
Hide file tree
Showing 4 changed files with 471 additions and 3,193 deletions.
2 changes: 1 addition & 1 deletion packages/keystone-connector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"url": "https://github.com/KeystoneHQ/keystone-airgaped-base/issues"
},
"dependencies": {
"@0x/subproviders": "^6.5.4",
"@0x/subproviders": "^8.0.1",
"@keystonehq/keystone-subprovider": "^0.19.2",
"@web3-react/abstract-connector": "^6.0.7",
"@web3-react/types": "^6.0.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/keystone-subprovider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"testEnvironment": "node"
},
"dependencies": {
"@0x/subproviders": "^6.5.4",
"@0x/subproviders": "^8.0.1",
"@ethereumjs/common": "^3.0.2",
"@ethereumjs/rlp": "^4.0.1",
"@ethereumjs/tx": "^4.0.2",
Expand Down
19 changes: 18 additions & 1 deletion packages/keystone-subprovider/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { assert } from "@0x/assert";
import { PartialTxParams } from "@0x/subproviders";
import { BaseWalletSubprovider } from "./baseWalletSubprovider";
import sdk, { SupportedResult } from "@keystonehq/sdk";
import { Common, Hardfork } from "@ethereumjs/common";
Expand All @@ -26,6 +25,24 @@ type KeystoneSubproviderConfigs = {

type EIP1559TxParams = FeeMarketEIP1559TxData & { from: string };

// From @0xproject/subproviders v8.0.1
export interface PartialTxParams {
nonce: string;
gasPrice?: string;
maxFeePerGas?: string;
maxPriorityFeePerGas?: string;
gas: string;
to: string;
from: string;
value?: string;
data?: string;
type?: number;
accessList?: Array<{
address: string;
storageKeys: string[];
}>;
}

export default class KeystoneSubprovider extends BaseWalletSubprovider {
private readonly _networkId: number;
private readonly keystoneSdk: any;
Expand Down
Loading

0 comments on commit 3f0fc84

Please sign in to comment.