@keplr-wallet/types 0.11.23 → 0.11.24-y.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.
package/LICENSE CHANGED
@@ -1,4 +1,6 @@
1
- License: Apache2.0
1
+ License: Apache2.0 (Extension) / All rights reserved (Mobile)
2
+
3
+ ## Keplr Extension License:
2
4
 
3
5
  Apache License
4
6
  Version 2.0, January 2004
@@ -200,4 +202,8 @@ License: Apache2.0
200
202
  distributed under the License is distributed on an "AS IS" BASIS,
201
203
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202
204
  See the License for the specific language governing permissions and
203
- limitations under the License.
205
+ limitations under the License.
206
+
207
+ ## Keplr Mobile License
208
+
209
+ Copyright (c) 2021 Chainapsis Inc. All rights reserved.
@@ -57,3 +57,4 @@ export interface ChainInfo {
57
57
  readonly beta?: boolean;
58
58
  readonly chainSymbolImageUrl?: string;
59
59
  }
60
+ export declare type ChainInfoWithoutEndpoints = Omit<ChainInfo, "rest" | "rpc" | "nodeProvider">;
@@ -1,4 +1,4 @@
1
- import { ChainInfo } from "../chain-info";
1
+ import { ChainInfo, ChainInfoWithoutEndpoints } from "../chain-info";
2
2
  import { EthSignType } from "../ethereum";
3
3
  import { BroadcastMode, AminoSignResponse, StdSignDoc, OfflineAminoSigner, StdSignature, DirectSignResponse, OfflineDirectSigner } from "../cosmjs";
4
4
  import { SecretUtils } from "secretjs/types/enigmautils";
@@ -11,6 +11,15 @@ export interface Key {
11
11
  readonly bech32Address: string;
12
12
  readonly isNanoLedger: boolean;
13
13
  }
14
+ export declare type ICNSAdr36Signatures = {
15
+ chainId: string;
16
+ bech32Prefix: string;
17
+ bech32Address: string;
18
+ addressHash: "cosmos" | "ethereum";
19
+ pubKey: Uint8Array;
20
+ signatureSalt: number;
21
+ signature: Uint8Array;
22
+ }[];
14
23
  export declare type KeplrMode = "core" | "extension" | "mobile-web" | "walletconnect";
15
24
  export interface KeplrIntereactionOptions {
16
25
  readonly sign?: KeplrSignOptions;
@@ -44,6 +53,7 @@ export interface Keplr {
44
53
  accountNumber?: Long | null;
45
54
  }, signOptions?: KeplrSignOptions): Promise<DirectSignResponse>;
46
55
  sendTx(chainId: string, tx: Uint8Array, mode: BroadcastMode): Promise<Uint8Array>;
56
+ signICNSAdr36(chainId: string, contractAddress: string, owner: string, username: string, addressChainIds: string[]): Promise<ICNSAdr36Signatures>;
47
57
  signArbitrary(chainId: string, signer: string, data: string | Uint8Array): Promise<StdSignature>;
48
58
  verifyArbitrary(chainId: string, signer: string, data: string | Uint8Array, signature: StdSignature): Promise<boolean>;
49
59
  signEthereum(chainId: string, signer: string, data: string | Uint8Array, type: EthSignType): Promise<Uint8Array>;
@@ -78,4 +88,5 @@ export interface Keplr {
78
88
  domain: Record<string, any>;
79
89
  primaryType: string;
80
90
  }, signDoc: StdSignDoc, signOptions?: KeplrSignOptions): Promise<AminoSignResponse>;
91
+ getChainInfosWithoutEndpoints(): Promise<ChainInfoWithoutEndpoints[]>;
81
92
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keplr-wallet/types",
3
- "version": "0.11.23",
3
+ "version": "0.11.24-y.0",
4
4
  "main": "build/index.js",
5
5
  "author": "chainapsis",
6
6
  "license": "Apache-2.0",
@@ -21,5 +21,5 @@
21
21
  "long": "^4.0.0",
22
22
  "secretjs": "0.17.7"
23
23
  },
24
- "gitHead": "b45b3dc6cf58a7b4415d8ef524d0ff81e67ac44c"
24
+ "gitHead": "aaaebc021dfa246a49515cb46cf063f94b848107"
25
25
  }
package/src/chain-info.ts CHANGED
@@ -62,3 +62,8 @@ export interface ChainInfo {
62
62
 
63
63
  readonly chainSymbolImageUrl?: string;
64
64
  }
65
+
66
+ export type ChainInfoWithoutEndpoints = Omit<
67
+ ChainInfo,
68
+ "rest" | "rpc" | "nodeProvider"
69
+ >;
@@ -1,4 +1,4 @@
1
- import { ChainInfo } from "../chain-info";
1
+ import { ChainInfo, ChainInfoWithoutEndpoints } from "../chain-info";
2
2
  import { EthSignType } from "../ethereum";
3
3
  import {
4
4
  BroadcastMode,
@@ -25,6 +25,16 @@ export interface Key {
25
25
  readonly isNanoLedger: boolean;
26
26
  }
27
27
 
28
+ export type ICNSAdr36Signatures = {
29
+ chainId: string;
30
+ bech32Prefix: string;
31
+ bech32Address: string;
32
+ addressHash: "cosmos" | "ethereum";
33
+ pubKey: Uint8Array;
34
+ signatureSalt: number;
35
+ signature: Uint8Array;
36
+ }[];
37
+
28
38
  export type KeplrMode = "core" | "extension" | "mobile-web" | "walletconnect";
29
39
 
30
40
  export interface KeplrIntereactionOptions {
@@ -81,6 +91,14 @@ export interface Keplr {
81
91
  mode: BroadcastMode
82
92
  ): Promise<Uint8Array>;
83
93
 
94
+ signICNSAdr36(
95
+ chainId: string,
96
+ contractAddress: string,
97
+ owner: string,
98
+ username: string,
99
+ addressChainIds: string[]
100
+ ): Promise<ICNSAdr36Signatures>;
101
+
84
102
  signArbitrary(
85
103
  chainId: string,
86
104
  signer: string,
@@ -160,4 +178,6 @@ export interface Keplr {
160
178
  signDoc: StdSignDoc,
161
179
  signOptions?: KeplrSignOptions
162
180
  ): Promise<AminoSignResponse>;
181
+
182
+ getChainInfosWithoutEndpoints(): Promise<ChainInfoWithoutEndpoints[]>;
163
183
  }