@sidhujag/sysweb3-keyring 1.0.498 → 1.0.500

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.
package/cjs/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;AACA,+DAAmE;AAkSnE,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,6CAAuB,CAAA;IACvB,2CAAqB,CAAA;IACrB,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;AACnB,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;AACA,+DAAmE;AAoPnE,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,6CAAuB,CAAA;IACvB,2CAAqB,CAAA;IACrB,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;AACnB,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sidhujag/sysweb3-keyring",
3
- "version": "1.0.498",
3
+ "version": "1.0.500",
4
4
  "description": "Keyring Manager for UTXO and Web3 Wallets",
5
5
  "main": "cjs/index.js",
6
6
  "types": "types/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  "@ledgerhq/logs": "^6.10.1",
20
20
  "@sidhujag/sysweb3-core": "^1.0.27",
21
21
  "@sidhujag/sysweb3-network": "^1.0.102",
22
- "@sidhujag/sysweb3-utils": "^1.1.243",
22
+ "@sidhujag/sysweb3-utils": "^1.1.244",
23
23
  "@trezor/connect-web": "^9.1.5",
24
24
  "@trezor/connect-webextension": "^9.6.2",
25
25
  "@trezor/utxo-lib": "^1.0.12",
@@ -40,6 +40,6 @@
40
40
  "zksync-ethers": "5"
41
41
  },
42
42
  "peerDependencies": {
43
- "syscoinjs-lib": "^1.0.244"
43
+ "syscoinjs-lib": "^1.0.246"
44
44
  }
45
45
  }
package/types/types.d.ts CHANGED
@@ -76,38 +76,6 @@ export interface IEthereumTransactions {
76
76
  web3Provider: CustomJsonRpcProvider | CustomL2JsonRpcProvider;
77
77
  getTxGasLimit: (tx: SimpleTransactionRequest) => Promise<ethers.BigNumber>;
78
78
  }
79
- /**
80
- * Error structure for Syscoin transaction operations.
81
- * This interface documents the error format that consumers (like Pali) should expect
82
- * when catching errors from ISyscoinTransactions methods.
83
- *
84
- * @example
85
- * try {
86
- * const result = await syscoinTransaction.getEstimateSysTransactionFee({...});
87
- * } catch (error: unknown) {
88
- * const sysError = error as ISyscoinTransactionError;
89
- * if (sysError.code === 'INSUFFICIENT_FUNDS') {
90
- * console.log(`Short by ${sysError.shortfall} SYS`);
91
- * }
92
- * }
93
- */
94
- export interface ISyscoinTransactionError {
95
- error: boolean;
96
- code: 'INSUFFICIENT_FUNDS' | 'INVALID_FEE_RATE' | 'INVALID_AMOUNT' | 'INVALID_MEMO' | 'INVALID_BLOB' | 'INVALID_OUTPUT_COUNT' | 'INVALID_ASSET_ALLOCATION' | 'INVALID_PARENT_NODES' | 'INVALID_TX_VALUE' | 'INVALID_RECEIPT_VALUE' | 'SUBTRACT_FEE_FAILED' | 'TRANSACTION_CREATION_FAILED' | 'TRANSACTION_SEND_FAILED';
97
- message: string;
98
- fee?: number;
99
- remainingFee?: number;
100
- shortfall?: number;
101
- details?: {
102
- inputTotal?: any;
103
- outputTotal?: any;
104
- requiredFee?: any;
105
- message?: string;
106
- markedOutputs?: number;
107
- removedOutputs?: number;
108
- guid?: string;
109
- };
110
- }
111
79
  export interface ISyscoinTransactions {
112
80
  getEstimateSysTransactionFee: ({ txOptions, amount, receivingAddress, feeRate, token, isMax, }: {
113
81
  amount: number;