Skip to content

Commit c4bad32

Browse files
api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 10.1.4
1 parent b5d4f3d commit c4bad32

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+140
-131
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## master
44

5+
- api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 10.1.4
56
- phishing 0.20.3
67
- hw-{ledger, ledger-transports}, keyring, networks, util, util-crypto, x-{bigint, fetch, global, randomvalues, textdecoder, textencoder, ws} 11.1.1
78
- api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 10.1.3

api-augment/packageInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

22

3-
export const packageInfo = { name: '@polkadot/api-augment', path: new URL(import.meta.url).pathname, type: 'deno', version: '10.1.3' };
3+
export const packageInfo = { name: '@polkadot/api-augment', path: new URL(import.meta.url).pathname, type: 'deno', version: '10.1.4' };

api-base/packageInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

22

3-
export const packageInfo = { name: '@polkadot/api-base', path: new URL(import.meta.url).pathname, type: 'deno', version: '10.1.3' };
3+
export const packageInfo = { name: '@polkadot/api-base', path: new URL(import.meta.url).pathname, type: 'deno', version: '10.1.4' };

api-base/types/base.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,16 @@ export interface PaginationOptions<A = unknown> {
5050
startKey?: string;
5151
}
5252

53-
export type DecorateMethod<ApiType extends ApiTypes, T = any> =
53+
export type DecorateMethod<_ApiType extends ApiTypes, T = any> =
5454
<M extends (...args: any[]) => Observable<any>>(method: M, options?: DecorateMethodOptions) => T;
5555

5656
type AsCodec<R extends Codec | any> = R extends Codec
5757
? R
5858
: Codec;
5959

6060
export type ReturnCodec<F extends AnyFunction> = AsCodec<ObsInnerType<ReturnType<F>>>;
61+
62+
export interface EmptyBase<_> {
63+
// this is use to allow use to have unused vars in augmented interfaces,
64+
// so intentionally left empty
65+
}

api-base/types/calls.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
import type { Observable } from 'https://esm.sh/rxjs@7.8.0';
33
import type { AnyFunction, Codec, DefinitionCallNamed } from 'https://deno.land/x/polkadot/types/types/index.ts';
4-
import type { ApiTypes, ReturnCodec } from './base.ts';
4+
import type { ApiTypes, EmptyBase, ReturnCodec } from './base.ts';
55

66
export type DecoratedCallBase<ApiType extends ApiTypes, F extends AnyFunction = (...args: any[]) => Observable<Codec>> =
77
ApiType extends 'rxjs'
@@ -14,7 +14,7 @@ export type AugmentedCall<ApiType extends ApiTypes, F extends AnyFunction = (...
1414
};
1515

1616

17-
export interface AugmentedCalls<ApiType extends ApiTypes> {
17+
export interface AugmentedCalls<ApiType extends ApiTypes> extends EmptyBase<ApiType> {
1818
// augmented
1919
}
2020

api-base/types/consts.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11

22
import type { PalletConstantMetadataLatest } from 'https://deno.land/x/polkadot/types/interfaces/index.ts';
33
import type { Codec } from 'https://deno.land/x/polkadot/types/types/index.ts';
4-
import type { ApiTypes } from './base.ts';
4+
import type { ApiTypes, EmptyBase } from './base.ts';
55

6-
export interface AugmentedConst<ApiType extends ApiTypes> {
6+
export interface AugmentedConst<_ extends ApiTypes> {
77
meta: PalletConstantMetadataLatest;
88
}
99

1010

11-
export interface AugmentedConsts<ApiType extends ApiTypes> {
11+
export interface AugmentedConsts<ApiType extends ApiTypes> extends EmptyBase<ApiType> {
1212
// augmented
1313
}
1414

api-base/types/errors.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

22
import type { IsError } from 'https://deno.land/x/polkadot/types/metadata/decorate/types.ts';
3-
import type { ApiTypes } from './base.ts';
3+
import type { ApiTypes, EmptyBase } from './base.ts';
44

5-
export type AugmentedError<ApiType extends ApiTypes> = IsError;
5+
export type AugmentedError<_ extends ApiTypes> = IsError;
66

77

8-
export interface AugmentedErrors<ApiType extends ApiTypes> {
8+
export interface AugmentedErrors<ApiType extends ApiTypes> extends EmptyBase<ApiType> {
99
// augmented
1010
}
1111

api-base/types/events.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

22
import type { IsEvent } from 'https://deno.land/x/polkadot/types/metadata/decorate/types.ts';
33
import type { AnyTuple } from 'https://deno.land/x/polkadot/types/types/index.ts';
4-
import type { ApiTypes } from './base.ts';
4+
import type { ApiTypes, EmptyBase } from './base.ts';
55

6-
export type AugmentedEvent<ApiType extends ApiTypes, T extends AnyTuple = AnyTuple, N = unknown> = IsEvent<T, N>;
6+
export type AugmentedEvent<_ extends ApiTypes, T extends AnyTuple = AnyTuple, N = unknown> = IsEvent<T, N>;
77

88

9-
export interface AugmentedEvents<ApiType extends ApiTypes> {
9+
export interface AugmentedEvents<ApiType extends ApiTypes> extends EmptyBase<ApiType> {
1010
// augmented
1111
}
1212

api-base/types/storage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { StorageKey, u64 } from 'https://deno.land/x/polkadot/types/mod.ts'
44
import type { Hash } from 'https://deno.land/x/polkadot/types/interfaces/index.ts';
55
import type { StorageEntry } from 'https://deno.land/x/polkadot/types/primitive/types.ts';
66
import type { AnyFunction, AnyTuple, Callback, Codec, IStorageKey } from 'https://deno.land/x/polkadot/types/types/index.ts';
7-
import type { ApiTypes, DropLast, MethodResult, PaginationOptions, PromiseOrObs, ReturnCodec, UnsubscribePromise } from './base.ts';
7+
import type { ApiTypes, DropLast, EmptyBase, MethodResult, PaginationOptions, PromiseOrObs, ReturnCodec, UnsubscribePromise } from './base.ts';
88

99
interface StorageEntryObservableMulti<R extends Codec = Codec> {
1010
<T extends Codec = R>(args: (unknown[] | unknown)[]): Observable<T[]>;
@@ -109,7 +109,7 @@ export type AugmentedQueryAt<ApiType extends ApiTypes, F extends AnyFunction, A
109109
export type AugmentedQueryDoubleMap<ApiType extends ApiTypes, F extends AnyFunction, A extends AnyTuple = AnyTuple> = AugmentedQuery<ApiType, F, A>;
110110

111111

112-
export interface AugmentedQueries<ApiType extends ApiTypes> {
112+
export interface AugmentedQueries<ApiType extends ApiTypes> extends EmptyBase<ApiType> {
113113
// augmented
114114
}
115115

api-base/types/submittable.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import type { Observable } from 'https://esm.sh/rxjs@7.8.0';
33
import type { AccountId, Address, ApplyExtrinsicResult, BlockNumber, Call, DispatchError, DispatchInfo, EventRecord, Extrinsic, ExtrinsicStatus, Hash, RuntimeDispatchInfo } from 'https://deno.land/x/polkadot/types/interfaces/index.ts';
44
import type { AnyFunction, AnyNumber, AnyTuple, Callback, CallBase, Codec, IExtrinsicEra, IKeyringPair, ISubmittableResult, Signer } from 'https://deno.land/x/polkadot/types/types/index.ts';
5-
import type { ApiTypes, PromiseOrObs } from './base.ts';
5+
import type { ApiTypes, EmptyBase, PromiseOrObs } from './base.ts';
66

77
export type AugmentedSubmittable<T extends AnyFunction, A extends AnyTuple = AnyTuple> = T & CallBase<A>;
88

@@ -78,7 +78,7 @@ export interface SubmittableExtrinsicFunction<ApiType extends ApiTypes, A extend
7878
}
7979

8080

81-
export interface AugmentedSubmittables<ApiType extends ApiTypes> {
81+
export interface AugmentedSubmittables<ApiType extends ApiTypes> extends EmptyBase<ApiType> {
8282
// augmented
8383
}
8484

0 commit comments

Comments
 (0)