@portal-hq/provider 0.2.30 → 0.2.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/types.d.ts +10 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portal-hq/provider",
3
- "version": "0.2.30",
3
+ "version": "0.2.32",
4
4
  "license": "MIT",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/esm/index",
@@ -19,7 +19,7 @@
19
19
  "test": "jest"
20
20
  },
21
21
  "dependencies": {
22
- "@portal-hq/utils": "^0.2.30"
22
+ "@portal-hq/utils": "^0.2.32"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@babel/preset-typescript": "^7.18.6",
package/types.d.ts CHANGED
@@ -69,12 +69,21 @@ export interface SignResult {
69
69
 
70
70
  export interface SignerOptions { }
71
71
 
72
- export interface SigningRequestParams {
72
+ export interface Eip1559 {
73
+ gasLimit?: string
74
+ maxPriorityFeePerGas?: string
75
+ maxFeePerGas?: string
76
+ [key: string]: any
77
+ }
78
+
79
+ export interface LegacyTx {
73
80
  gasLimit?: string
74
81
  gasPrice?: string
75
82
  [key: string]: any
76
83
  }
77
84
 
85
+ export type SigningRequestParams = Eip1559 | LegacyTx
86
+
78
87
  export interface SigningResponse {
79
88
  data: string
80
89
  error?: string