@keplr-wallet/types 0.11.9-rc.0 → 0.11.10-rc.0

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.
@@ -1,5 +1,5 @@
1
1
  export declare enum EthSignType {
2
2
  MESSAGE = "message",
3
3
  TRANSACTION = "transaction",
4
- BYTE64 = "byte64"
4
+ EIP712 = "eip-712"
5
5
  }
package/build/ethereum.js CHANGED
@@ -5,6 +5,6 @@ var EthSignType;
5
5
  (function (EthSignType) {
6
6
  EthSignType["MESSAGE"] = "message";
7
7
  EthSignType["TRANSACTION"] = "transaction";
8
- EthSignType["BYTE64"] = "byte64";
8
+ EthSignType["EIP712"] = "eip-712";
9
9
  })(EthSignType = exports.EthSignType || (exports.EthSignType = {}));
10
10
  //# 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,gCAAiB,CAAA;AACnB,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB"}
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"}
@@ -58,4 +58,12 @@ export interface Keplr {
58
58
  getEnigmaTxEncryptionKey(chainId: string, nonce: Uint8Array): Promise<Uint8Array>;
59
59
  enigmaEncrypt(chainId: string, contractCodeHash: string, msg: object): Promise<Uint8Array>;
60
60
  enigmaDecrypt(chainId: string, ciphertext: Uint8Array, nonce: Uint8Array): Promise<Uint8Array>;
61
+ experimentalSignEIP712CosmosTx_v0(chainId: string, signer: string, eip712: {
62
+ types: Record<string, {
63
+ name: string;
64
+ type: string;
65
+ }[] | undefined>;
66
+ domain: Record<string, any>;
67
+ primaryType: string;
68
+ }, signDoc: StdSignDoc, signOptions?: KeplrSignOptions): Promise<AminoSignResponse>;
61
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keplr-wallet/types",
3
- "version": "0.11.9-rc.0",
3
+ "version": "0.11.10-rc.0",
4
4
  "main": "build/index.js",
5
5
  "author": "chainapsis",
6
6
  "license": "Apache-2.0",
@@ -23,5 +23,5 @@
23
23
  "long": "^4.0.0",
24
24
  "secretjs": "0.17.7"
25
25
  },
26
- "gitHead": "7736fb369364baabbaf0c04cfeb0bef66ea8c30c"
26
+ "gitHead": "c0f881eb944a37b7d41bbfe0d6f25a8baee7bb8d"
27
27
  }
package/src/ethereum.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export enum EthSignType {
2
2
  MESSAGE = "message",
3
3
  TRANSACTION = "transaction",
4
- BYTE64 = "byte64",
4
+ EIP712 = "eip-712",
5
5
  }
@@ -134,4 +134,16 @@ export interface Keplr {
134
134
  ciphertext: Uint8Array,
135
135
  nonce: Uint8Array
136
136
  ): Promise<Uint8Array>;
137
+
138
+ experimentalSignEIP712CosmosTx_v0(
139
+ chainId: string,
140
+ signer: string,
141
+ eip712: {
142
+ types: Record<string, { name: string; type: string }[] | undefined>;
143
+ domain: Record<string, any>;
144
+ primaryType: string;
145
+ },
146
+ signDoc: StdSignDoc,
147
+ signOptions?: KeplrSignOptions
148
+ ): Promise<AminoSignResponse>;
137
149
  }