@onekeyfe/onekey-cosmos-provider 2.2.7-alpha.0 → 2.2.7-alpha.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.
|
@@ -37,6 +37,7 @@ export type CosmosRequest = {
|
|
|
37
37
|
'verifyArbitrary': (chainId: string, signer: string, data: string | Uint8Array, signature: StdSignature) => Promise<boolean>;
|
|
38
38
|
'signEthereum': (chainId: string, signer: string, data: string | Uint8Array, type: EthSignType) => Promise<string>;
|
|
39
39
|
'getChainInfosWithoutEndpoints': () => Promise<ChainInfoWithoutEndpoints[]>;
|
|
40
|
+
'getChainInfoWithoutEndpoints': (chainId: string) => Promise<ChainInfoWithoutEndpoints>;
|
|
40
41
|
};
|
|
41
42
|
export type PROVIDER_EVENTS_STRINGS = keyof typeof PROVIDER_EVENTS;
|
|
42
43
|
export interface IProviderCosmos {
|
|
@@ -108,5 +109,6 @@ declare class ProviderCosmos extends ProviderCosmosBase implements IProviderCosm
|
|
|
108
109
|
getOfflineSignerOnlyAmino(chainId: string): OfflineAminoSigner;
|
|
109
110
|
getOfflineSignerAuto(chainId: string): Promise<OfflineAminoSigner | OfflineDirectSigner>;
|
|
110
111
|
getChainInfosWithoutEndpoints(): Promise<ChainInfoWithoutEndpoints[]>;
|
|
112
|
+
getChainInfoWithoutEndpoints(chainId: string): Promise<ChainInfoWithoutEndpoints>;
|
|
111
113
|
}
|
|
112
114
|
export { ProviderCosmos };
|
|
@@ -296,5 +296,13 @@ class ProviderCosmos extends ProviderCosmosBase {
|
|
|
296
296
|
});
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
|
+
getChainInfoWithoutEndpoints(chainId) {
|
|
300
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
301
|
+
return this._callBridge({
|
|
302
|
+
method: 'getChainInfoWithoutEndpoints',
|
|
303
|
+
params: chainId,
|
|
304
|
+
});
|
|
305
|
+
});
|
|
306
|
+
}
|
|
299
307
|
}
|
|
300
308
|
export { ProviderCosmos };
|
|
@@ -302,5 +302,13 @@ class ProviderCosmos extends ProviderCosmosBase_1.ProviderCosmosBase {
|
|
|
302
302
|
});
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
|
+
getChainInfoWithoutEndpoints(chainId) {
|
|
306
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
307
|
+
return this._callBridge({
|
|
308
|
+
method: 'getChainInfoWithoutEndpoints',
|
|
309
|
+
params: chainId,
|
|
310
|
+
});
|
|
311
|
+
});
|
|
312
|
+
}
|
|
305
313
|
}
|
|
306
314
|
exports.ProviderCosmos = ProviderCosmos;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/onekey-cosmos-provider",
|
|
3
|
-
"version": "2.2.7-alpha.
|
|
3
|
+
"version": "2.2.7-alpha.2",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"cross-inpage-provider"
|
|
6
6
|
],
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@noble/hashes": "^1.3.0",
|
|
32
|
-
"@onekeyfe/cross-inpage-provider-core": "2.2.7-alpha.
|
|
33
|
-
"@onekeyfe/cross-inpage-provider-errors": "2.2.7-alpha.
|
|
34
|
-
"@onekeyfe/cross-inpage-provider-types": "2.2.7-alpha.
|
|
35
|
-
"@onekeyfe/extension-bridge-injected": "2.2.7-alpha.
|
|
32
|
+
"@onekeyfe/cross-inpage-provider-core": "2.2.7-alpha.2",
|
|
33
|
+
"@onekeyfe/cross-inpage-provider-errors": "2.2.7-alpha.2",
|
|
34
|
+
"@onekeyfe/cross-inpage-provider-types": "2.2.7-alpha.2",
|
|
35
|
+
"@onekeyfe/extension-bridge-injected": "2.2.7-alpha.2",
|
|
36
36
|
"eth-rpc-errors": "^4.0.3",
|
|
37
37
|
"lodash-es": "^4.17.21",
|
|
38
38
|
"long": "^5.2.1",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/lodash-es": "^4.17.12"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "ac22d6fa7cafe210d0afabf65c92ea7cea52e787"
|
|
45
45
|
}
|