decentralcardgame-cardchain-client-ts 0.0.37 → 0.0.38
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/client.js +2 -2
- package/index.d.ts +8 -8
- package/index.js +3 -3
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -34,7 +34,7 @@ export class IgniteClient extends EventEmitter {
|
|
|
34
34
|
this.setMaxListeners(0);
|
|
35
35
|
this.signer = signer;
|
|
36
36
|
const classConstructor = this.constructor;
|
|
37
|
-
classConstructor.plugins.forEach(
|
|
37
|
+
classConstructor.plugins.forEach(plugin => {
|
|
38
38
|
const pluginInstance = plugin(this);
|
|
39
39
|
Object.assign(this, pluginInstance.module);
|
|
40
40
|
if (this.registry) {
|
|
@@ -122,7 +122,7 @@ export class IgniteClient extends EventEmitter {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
await window.keplr.enable(chainId);
|
|
125
|
-
this.signer = window.keplr.
|
|
125
|
+
this.signer = await window.keplr.getOfflineSignerAuto(chainId);
|
|
126
126
|
this.emit("signer-changed", this.signer);
|
|
127
127
|
}
|
|
128
128
|
catch (e) {
|
package/index.d.ts
CHANGED
|
@@ -161,14 +161,6 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{
|
|
|
161
161
|
registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
|
|
162
162
|
updateTX(client: IgniteClient): void;
|
|
163
163
|
};
|
|
164
|
-
} & {
|
|
165
|
-
CosmosNftV_1Beta_1: {
|
|
166
|
-
query: ReturnType<typeof import("./cosmos.nft.v1beta1").queryClient>;
|
|
167
|
-
tx: ReturnType<typeof import("./cosmos.nft.v1beta1").txClient>;
|
|
168
|
-
structure: Record<string, unknown>;
|
|
169
|
-
registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
|
|
170
|
-
updateTX(client: IgniteClient): void;
|
|
171
|
-
};
|
|
172
164
|
} & {
|
|
173
165
|
CosmosCircuitV_1: {
|
|
174
166
|
query: ReturnType<typeof import("./cosmos.circuit.v1").queryClient>;
|
|
@@ -233,6 +225,14 @@ declare const Client: typeof IgniteClient & import("./helpers").Constructor<{
|
|
|
233
225
|
registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
|
|
234
226
|
updateTX(client: IgniteClient): void;
|
|
235
227
|
};
|
|
228
|
+
} & {
|
|
229
|
+
CosmosNftV_1Beta_1: {
|
|
230
|
+
query: ReturnType<typeof import("./cosmos.nft.v1beta1").queryClient>;
|
|
231
|
+
tx: ReturnType<typeof import("./cosmos.nft.v1beta1").txClient>;
|
|
232
|
+
structure: Record<string, unknown>;
|
|
233
|
+
registry: Array<[string, import("@cosmjs/proto-signing").GeneratedType]>;
|
|
234
|
+
updateTX(client: IgniteClient): void;
|
|
235
|
+
};
|
|
236
236
|
} & {
|
|
237
237
|
CosmosUpgradeV_1Beta_1: {
|
|
238
238
|
query: ReturnType<typeof import("./cosmos.upgrade.v1beta1").queryClient>;
|
package/index.js
CHANGED
|
@@ -22,7 +22,6 @@ import { IgntModule as CosmosStakingV_1Beta_1, msgTypes as CosmosStakingV_1Beta_
|
|
|
22
22
|
import { IgntModule as CosmosTxV_1Beta_1, msgTypes as CosmosTxV_1Beta_1MsgTypes } from './cosmos.tx.v1beta1';
|
|
23
23
|
import { IgntModule as CosmosVestingV_1Beta_1, msgTypes as CosmosVestingV_1Beta_1MsgTypes } from './cosmos.vesting.v1beta1';
|
|
24
24
|
import { IgntModule as CosmosFeegrantV_1Beta_1, msgTypes as CosmosFeegrantV_1Beta_1MsgTypes } from './cosmos.feegrant.v1beta1';
|
|
25
|
-
import { IgntModule as CosmosNftV_1Beta_1, msgTypes as CosmosNftV_1Beta_1MsgTypes } from './cosmos.nft.v1beta1';
|
|
26
25
|
import { IgntModule as CosmosCircuitV_1, msgTypes as CosmosCircuitV_1MsgTypes } from './cosmos.circuit.v1';
|
|
27
26
|
import { IgntModule as IbcApplicationsFeeV_1, msgTypes as IbcApplicationsFeeV_1MsgTypes } from './ibc.applications.fee.v1';
|
|
28
27
|
import { IgntModule as IbcApplicationsInterchainAccountsControllerV_1, msgTypes as IbcApplicationsInterchainAccountsControllerV_1MsgTypes } from './ibc.applications.interchain_accounts.controller.v1';
|
|
@@ -31,10 +30,11 @@ import { IgntModule as IbcApplicationsTransferV_1, msgTypes as IbcApplicationsTr
|
|
|
31
30
|
import { IgntModule as IbcCoreChannelV_1, msgTypes as IbcCoreChannelV_1MsgTypes } from './ibc.core.channel.v1';
|
|
32
31
|
import { IgntModule as IbcCoreClientV_1, msgTypes as IbcCoreClientV_1MsgTypes } from './ibc.core.client.v1';
|
|
33
32
|
import { IgntModule as IbcCoreConnectionV_1, msgTypes as IbcCoreConnectionV_1MsgTypes } from './ibc.core.connection.v1';
|
|
33
|
+
import { IgntModule as CosmosNftV_1Beta_1, msgTypes as CosmosNftV_1Beta_1MsgTypes } from './cosmos.nft.v1beta1';
|
|
34
34
|
import { IgntModule as CosmosUpgradeV_1Beta_1, msgTypes as CosmosUpgradeV_1Beta_1MsgTypes } from './cosmos.upgrade.v1beta1';
|
|
35
35
|
import { IgntModule as CosmosEvidenceV_1Beta_1, msgTypes as CosmosEvidenceV_1Beta_1MsgTypes } from './cosmos.evidence.v1beta1';
|
|
36
36
|
const Client = IgniteClient.plugin([
|
|
37
|
-
CardchainCardchain, CardchainFeatureflag, CosmosAuthV_1Beta_1, CosmosAuthzV_1Beta_1, CosmosBankV_1Beta_1, CosmosBaseNodeV_1Beta_1, CosmosBaseTendermintV_1Beta_1, CosmosConsensusV_1, CosmosCrisisV_1Beta_1, CosmosDistributionV_1Beta_1, CosmosGovV_1, CosmosGovV_1Beta_1, CosmosGroupV_1, CosmosMintV_1Beta_1, CosmosParamsV_1Beta_1, CosmosSlashingV_1Beta_1, CosmosStakingV_1Beta_1, CosmosTxV_1Beta_1, CosmosVestingV_1Beta_1, CosmosFeegrantV_1Beta_1,
|
|
37
|
+
CardchainCardchain, CardchainFeatureflag, CosmosAuthV_1Beta_1, CosmosAuthzV_1Beta_1, CosmosBankV_1Beta_1, CosmosBaseNodeV_1Beta_1, CosmosBaseTendermintV_1Beta_1, CosmosConsensusV_1, CosmosCrisisV_1Beta_1, CosmosDistributionV_1Beta_1, CosmosGovV_1, CosmosGovV_1Beta_1, CosmosGroupV_1, CosmosMintV_1Beta_1, CosmosParamsV_1Beta_1, CosmosSlashingV_1Beta_1, CosmosStakingV_1Beta_1, CosmosTxV_1Beta_1, CosmosVestingV_1Beta_1, CosmosFeegrantV_1Beta_1, CosmosCircuitV_1, IbcApplicationsFeeV_1, IbcApplicationsInterchainAccountsControllerV_1, IbcApplicationsInterchainAccountsHostV_1, IbcApplicationsTransferV_1, IbcCoreChannelV_1, IbcCoreClientV_1, IbcCoreConnectionV_1, CosmosNftV_1Beta_1, CosmosUpgradeV_1Beta_1, CosmosEvidenceV_1Beta_1
|
|
38
38
|
]);
|
|
39
39
|
const registry = new Registry([
|
|
40
40
|
...CardchainCardchainMsgTypes,
|
|
@@ -57,7 +57,6 @@ const registry = new Registry([
|
|
|
57
57
|
...CosmosTxV_1Beta_1MsgTypes,
|
|
58
58
|
...CosmosVestingV_1Beta_1MsgTypes,
|
|
59
59
|
...CosmosFeegrantV_1Beta_1MsgTypes,
|
|
60
|
-
...CosmosNftV_1Beta_1MsgTypes,
|
|
61
60
|
...CosmosCircuitV_1MsgTypes,
|
|
62
61
|
...IbcApplicationsFeeV_1MsgTypes,
|
|
63
62
|
...IbcApplicationsInterchainAccountsControllerV_1MsgTypes,
|
|
@@ -66,6 +65,7 @@ const registry = new Registry([
|
|
|
66
65
|
...IbcCoreChannelV_1MsgTypes,
|
|
67
66
|
...IbcCoreClientV_1MsgTypes,
|
|
68
67
|
...IbcCoreConnectionV_1MsgTypes,
|
|
68
|
+
...CosmosNftV_1Beta_1MsgTypes,
|
|
69
69
|
...CosmosUpgradeV_1Beta_1MsgTypes,
|
|
70
70
|
...CosmosEvidenceV_1Beta_1MsgTypes,
|
|
71
71
|
]);
|
package/package.json
CHANGED