@keplr-wallet/types 0.12.313 → 0.13.1

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.
@@ -46,3 +46,8 @@ export interface EthereumSignResponse {
46
46
  signingData: Uint8Array;
47
47
  signature: Uint8Array;
48
48
  }
49
+ export declare enum EvmGasSimulationOutcome {
50
+ TX_SIMULATED = "tx-simulated",
51
+ TX_BUNDLE_SIMULATED = "tx-bundle-simulated",
52
+ APPROVAL_ONLY_SIMULATED = "approval-only-simulated"
53
+ }
package/build/ethereum.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EthTxStatus = exports.EthSignType = void 0;
3
+ exports.EvmGasSimulationOutcome = exports.EthTxStatus = exports.EthSignType = void 0;
4
4
  var EthSignType;
5
5
  (function (EthSignType) {
6
6
  EthSignType["MESSAGE"] = "message";
@@ -12,4 +12,10 @@ var EthTxStatus;
12
12
  EthTxStatus["Success"] = "0x1";
13
13
  EthTxStatus["Failure"] = "0x0";
14
14
  })(EthTxStatus = exports.EthTxStatus || (exports.EthTxStatus = {}));
15
+ var EvmGasSimulationOutcome;
16
+ (function (EvmGasSimulationOutcome) {
17
+ EvmGasSimulationOutcome["TX_SIMULATED"] = "tx-simulated";
18
+ EvmGasSimulationOutcome["TX_BUNDLE_SIMULATED"] = "tx-bundle-simulated";
19
+ EvmGasSimulationOutcome["APPROVAL_ONLY_SIMULATED"] = "approval-only-simulated";
20
+ })(EvmGasSimulationOutcome = exports.EvmGasSimulationOutcome || (exports.EvmGasSimulationOutcome = {}));
15
21
  //# sourceMappingURL=ethereum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ethereum.js","sourceRoot":"","sources":["../src/ethereum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,0CAA2B,CAAA;IAC3B,iCAAkB,CAAA;AACpB,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB;AAcD,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,8BAAe,CAAA;AACjB,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB"}
1
+ {"version":3,"file":"ethereum.js","sourceRoot":"","sources":["../src/ethereum.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,0CAA2B,CAAA;IAC3B,iCAAkB,CAAA;AACpB,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB;AAcD,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,8BAAe,CAAA;AACjB,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB;AAiCD,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,wDAA6B,CAAA;IAC7B,sEAA2C,CAAA;IAC3C,8EAAmD,CAAA;AACrD,CAAC,EAJW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAIlC"}
package/build/index.d.ts CHANGED
@@ -9,3 +9,5 @@ export * from "./cosmjs";
9
9
  export * from "./cosmjs-alt";
10
10
  export * from "./secretjs";
11
11
  export * from "./settled";
12
+ export * from "./json-rpc";
13
+ export * from "./swap";
package/build/index.js CHANGED
@@ -25,4 +25,6 @@ __exportStar(require("./cosmjs"), exports);
25
25
  __exportStar(require("./cosmjs-alt"), exports);
26
26
  __exportStar(require("./secretjs"), exports);
27
27
  __exportStar(require("./settled"), exports);
28
+ __exportStar(require("./json-rpc"), exports);
29
+ __exportStar(require("./swap"), exports);
28
30
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,2CAAyB;AACzB,6CAA2B;AAC3B,2CAAyB;AACzB,+CAA6B;AAC7B,6CAA2B;AAC3B,4CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B;AAC7B,2CAAyB;AACzB,2CAAyB;AACzB,6CAA2B;AAC3B,2CAAyB;AACzB,+CAA6B;AAC7B,6CAA2B;AAC3B,4CAA0B;AAC1B,6CAA2B;AAC3B,yCAAuB"}
@@ -0,0 +1,11 @@
1
+ export interface JsonRpcResponse<T, V extends string = "2.0"> {
2
+ jsonrpc: V;
3
+ id: number | string;
4
+ result?: T;
5
+ error?: JsonRpcError;
6
+ }
7
+ export interface JsonRpcError {
8
+ code: number;
9
+ message: string;
10
+ data?: unknown;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=json-rpc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json-rpc.js","sourceRoot":"","sources":["../src/json-rpc.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Swap provider enum for cross-chain swaps.
3
+ */
4
+ export declare enum SwapProvider {
5
+ SKIP = "skip",
6
+ SQUID = "squid"
7
+ }
package/build/swap.js ADDED
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SwapProvider = void 0;
4
+ /**
5
+ * Swap provider enum for cross-chain swaps.
6
+ */
7
+ var SwapProvider;
8
+ (function (SwapProvider) {
9
+ SwapProvider["SKIP"] = "skip";
10
+ SwapProvider["SQUID"] = "squid";
11
+ })(SwapProvider = exports.SwapProvider || (exports.SwapProvider = {}));
12
+ //# sourceMappingURL=swap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swap.js","sourceRoot":"","sources":["../src/swap.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,+BAAe,CAAA;AACjB,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keplr-wallet/types",
3
- "version": "0.12.313",
3
+ "version": "0.13.1",
4
4
  "main": "build/index.js",
5
5
  "author": "chainapsis",
6
6
  "license": "Apache-2.0",
@@ -25,5 +25,5 @@
25
25
  "peerDependencies": {
26
26
  "starknet": "^8"
27
27
  },
28
- "gitHead": "c840bcc533a30c8f43e7d875139db1ddcfb7e9f2"
28
+ "gitHead": "005bf5131f8612e3a773b864b673361ca9d9ab85"
29
29
  }
package/src/ethereum.ts CHANGED
@@ -51,3 +51,9 @@ export interface EthereumSignResponse {
51
51
  signingData: Uint8Array;
52
52
  signature: Uint8Array;
53
53
  }
54
+
55
+ export enum EvmGasSimulationOutcome {
56
+ TX_SIMULATED = "tx-simulated",
57
+ TX_BUNDLE_SIMULATED = "tx-bundle-simulated",
58
+ APPROVAL_ONLY_SIMULATED = "approval-only-simulated",
59
+ }
package/src/index.ts CHANGED
@@ -9,3 +9,5 @@ export * from "./cosmjs";
9
9
  export * from "./cosmjs-alt";
10
10
  export * from "./secretjs";
11
11
  export * from "./settled";
12
+ export * from "./json-rpc";
13
+ export * from "./swap";
@@ -0,0 +1,12 @@
1
+ export interface JsonRpcResponse<T, V extends string = "2.0"> {
2
+ jsonrpc: V;
3
+ id: number | string;
4
+ result?: T;
5
+ error?: JsonRpcError;
6
+ }
7
+
8
+ export interface JsonRpcError {
9
+ code: number;
10
+ message: string;
11
+ data?: unknown;
12
+ }
package/src/swap.ts ADDED
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Swap provider enum for cross-chain swaps.
3
+ */
4
+ export enum SwapProvider {
5
+ SKIP = "skip",
6
+ SQUID = "squid",
7
+ }