@keplr-wallet/types 0.11.10-rc.1 → 0.11.10-rc.2

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.
@@ -58,6 +58,19 @@ 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
+ /**
62
+ * Sign the sign doc with ethermint's EIP-712 format.
63
+ * The difference from signEthereum(..., EthSignType.EIP712) is that this api returns a new sign doc changed by the user's fee setting and the signature for that sign doc.
64
+ * Encoding tx to EIP-712 format should be done on the side using this api.
65
+ * Not compatible with cosmjs.
66
+ * The returned signature is (r | s | v) format which used in ethereum.
67
+ * v should be 27 or 28 which is used in the ethereum mainnet regardless of chain.
68
+ * @param chainId
69
+ * @param signer
70
+ * @param eip712
71
+ * @param signDoc
72
+ * @param signOptions
73
+ */
61
74
  experimentalSignEIP712CosmosTx_v0(chainId: string, signer: string, eip712: {
62
75
  types: Record<string, {
63
76
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keplr-wallet/types",
3
- "version": "0.11.10-rc.1",
3
+ "version": "0.11.10-rc.2",
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": "673b8cdbddb3d4a07acff7934baac442275f5de0"
26
+ "gitHead": "962a31b4e7816978bd2a002db8d6f61aeebc1841"
27
27
  }
@@ -135,6 +135,19 @@ export interface Keplr {
135
135
  nonce: Uint8Array
136
136
  ): Promise<Uint8Array>;
137
137
 
138
+ /**
139
+ * Sign the sign doc with ethermint's EIP-712 format.
140
+ * The difference from signEthereum(..., EthSignType.EIP712) is that this api returns a new sign doc changed by the user's fee setting and the signature for that sign doc.
141
+ * Encoding tx to EIP-712 format should be done on the side using this api.
142
+ * Not compatible with cosmjs.
143
+ * The returned signature is (r | s | v) format which used in ethereum.
144
+ * v should be 27 or 28 which is used in the ethereum mainnet regardless of chain.
145
+ * @param chainId
146
+ * @param signer
147
+ * @param eip712
148
+ * @param signDoc
149
+ * @param signOptions
150
+ */
138
151
  experimentalSignEIP712CosmosTx_v0(
139
152
  chainId: string,
140
153
  signer: string,