@keplr-wallet/types 0.12.141 → 0.12.142-rc.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,5 @@
1
1
  export interface SecretUtils {
2
+ isNewApi: () => Promise<boolean>;
2
3
  getPubkey: () => Promise<Uint8Array>;
3
4
  decrypt: (ciphertext: Uint8Array, nonce: Uint8Array) => Promise<Uint8Array>;
4
5
  encrypt: (contractCodeHash: string, msg: object) => Promise<Uint8Array>;
@@ -101,6 +101,7 @@ export interface Keplr {
101
101
  getEnigmaTxEncryptionKey(chainId: string, nonce: Uint8Array): Promise<Uint8Array>;
102
102
  enigmaEncrypt(chainId: string, contractCodeHash: string, msg: object): Promise<Uint8Array>;
103
103
  enigmaDecrypt(chainId: string, ciphertext: Uint8Array, nonce: Uint8Array): Promise<Uint8Array>;
104
+ enigmaIsNewApi(chainId: string): Promise<boolean>;
104
105
  /**
105
106
  * Sign the sign doc with ethermint's EIP-712 format.
106
107
  * 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keplr-wallet/types",
3
- "version": "0.12.141",
3
+ "version": "0.12.142-rc.0",
4
4
  "main": "build/index.js",
5
5
  "author": "chainapsis",
6
6
  "license": "Apache-2.0",
@@ -21,5 +21,5 @@
21
21
  "peerDependencies": {
22
22
  "starknet": "^6"
23
23
  },
24
- "gitHead": "0ff90b9411ececfd95c8802152556706b24e76ae"
24
+ "gitHead": "2649b7c4533722a74939667687293a7050ae7e48"
25
25
  }
package/src/secretjs.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export interface SecretUtils {
2
+ isNewApi: () => Promise<boolean>;
2
3
  getPubkey: () => Promise<Uint8Array>;
3
4
  decrypt: (ciphertext: Uint8Array, nonce: Uint8Array) => Promise<Uint8Array>;
4
5
  encrypt: (
@@ -208,6 +208,7 @@ export interface Keplr {
208
208
  ciphertext: Uint8Array,
209
209
  nonce: Uint8Array
210
210
  ): Promise<Uint8Array>;
211
+ enigmaIsNewApi(chainId: string): Promise<boolean>;
211
212
 
212
213
  /**
213
214
  * Sign the sign doc with ethermint's EIP-712 format.