polkadot-api 1.9.7 → 1.9.8

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/bin/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { getCli, ink, update, remove, generate, add } from '@polkadot-api/cli';
3
3
 
4
- var version = "1.9.7";
4
+ var version = "1.9.8";
5
5
 
6
6
  getCli({
7
7
  add,
package/dist/index.d.ts CHANGED
@@ -46,15 +46,14 @@ type ChainDefinition = {
46
46
  };
47
47
  type BuildTuple<L extends number, E, R extends Array<E>> = R["length"] extends L ? R : BuildTuple<L, E, [E, ...R]>;
48
48
  type UnwrapFixedSizeArray<T extends Array<any>> = T extends [] | [any, ...any[]] ? T : T extends FixedSizeArray<infer L, infer E> ? number extends L ? T : BuildTuple<L, E, []> : T;
49
- type RemapKeys<Key extends Array<any>, Opaque> = {
49
+ type ApplyOpaque<Key extends Array<any>, Opaque> = {
50
50
  [K in keyof Key]: K extends Opaque ? OpaqueKeyHash : Key[K];
51
51
  };
52
- type ApplyOpaque<Key extends Array<any>, Opaque> = RemapKeys<UnwrapFixedSizeArray<Key>, Opaque>;
53
52
  type ExtractStorage<T extends DescriptorEntry<StorageDescriptor<any, any, any, any>>> = {
54
53
  [K in keyof T]: {
55
54
  [KK in keyof T[K]]: T[K][KK] extends StorageDescriptor<infer Key, infer Value, infer Optional, infer Opaque> ? {
56
- KeyArgs: Key;
57
- KeyArgsOut: ApplyOpaque<Key, Opaque>;
55
+ KeyArgs: UnwrapFixedSizeArray<Key>;
56
+ KeyArgsOut: ApplyOpaque<UnwrapFixedSizeArray<Key>, Opaque>;
58
57
  Value: Value;
59
58
  IsOptional: Optional;
60
59
  } : unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polkadot-api",
3
- "version": "1.9.7",
3
+ "version": "1.9.8",
4
4
  "author": "Josep M Sobrepere (https://github.com/josepot)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -192,24 +192,24 @@
192
192
  },
193
193
  "dependencies": {
194
194
  "@rx-state/core": "^0.1.4",
195
- "@polkadot-api/cli": "0.11.4",
196
- "@polkadot-api/ink-contracts": "0.2.6",
195
+ "@polkadot-api/cli": "0.11.5",
197
196
  "@polkadot-api/json-rpc-provider": "0.0.4",
197
+ "@polkadot-api/ink-contracts": "0.2.6",
198
198
  "@polkadot-api/known-chains": "0.7.2",
199
- "@polkadot-api/metadata-builders": "0.10.2",
200
199
  "@polkadot-api/logs-provider": "0.0.6",
201
200
  "@polkadot-api/metadata-compatibility": "0.1.16",
201
+ "@polkadot-api/metadata-builders": "0.10.2",
202
202
  "@polkadot-api/observable-client": "0.8.4",
203
203
  "@polkadot-api/pjs-signer": "0.6.5",
204
204
  "@polkadot-api/polkadot-sdk-compat": "2.3.2",
205
205
  "@polkadot-api/polkadot-signer": "0.1.6",
206
- "@polkadot-api/signer": "0.1.15",
207
206
  "@polkadot-api/sm-provider": "0.1.7",
208
207
  "@polkadot-api/smoldot": "0.3.8",
209
- "@polkadot-api/substrate-client": "0.3.0",
208
+ "@polkadot-api/signer": "0.1.15",
210
209
  "@polkadot-api/substrate-bindings": "0.11.1",
211
- "@polkadot-api/utils": "0.1.2",
212
- "@polkadot-api/ws-provider": "0.4.0"
210
+ "@polkadot-api/substrate-client": "0.3.0",
211
+ "@polkadot-api/ws-provider": "0.4.0",
212
+ "@polkadot-api/utils": "0.1.2"
213
213
  },
214
214
  "devDependencies": {
215
215
  "rxjs": "^7.8.2",