@storagehub/api-augment 0.2.3 → 0.2.4
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/dist/types/parachain/interfaces/augment-api-rpc.d.ts +5 -1
- package/dist/types/parachain/interfaces/augment-api-runtime.d.ts +4 -0
- package/dist/types/solochain-evm/interfaces/augment-api-rpc.d.ts +5 -1
- package/dist/types/solochain-evm/interfaces/augment-api-runtime.d.ts +4 -0
- package/package.json +2 -2
- package/src/parachain/interfaces/augment-api-rpc.ts +5 -0
- package/src/parachain/interfaces/augment-api-runtime.ts +4 -0
- package/src/solochain-evm/interfaces/augment-api-rpc.ts +5 -0
- package/src/solochain-evm/interfaces/augment-api-runtime.ts +4 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@polkadot/rpc-core/types/jsonrpc";
|
|
2
2
|
import type { AugmentedRpc } from "@polkadot/rpc-core/types";
|
|
3
3
|
import type { Metadata, StorageKey } from "@polkadot/types";
|
|
4
|
-
import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f64, u32, u64 } from "@polkadot/types-codec";
|
|
4
|
+
import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f64, u128, u32, u64 } from "@polkadot/types-codec";
|
|
5
5
|
import type { AnyNumber, Codec, ITuple } from "@polkadot/types-codec/types";
|
|
6
6
|
import type { ExtrinsicOrHash, ExtrinsicStatus } from "@polkadot/types/interfaces/author";
|
|
7
7
|
import type { EpochAuthorship } from "@polkadot/types/interfaces/babe";
|
|
@@ -620,6 +620,10 @@ declare module "@polkadot/rpc-core/types/jsonrpc" {
|
|
|
620
620
|
file_key?: any;
|
|
621
621
|
should_remove_file?: any;
|
|
622
622
|
} | string | Uint8Array)[]) => Observable<Bytes>>;
|
|
623
|
+
/**
|
|
624
|
+
* Get the current price per giga unit per tick from the payment streams pallet
|
|
625
|
+
**/
|
|
626
|
+
getCurrentPricePerGigaUnitPerTick: AugmentedRpc<() => Observable<u128>>;
|
|
623
627
|
/**
|
|
624
628
|
* Get the metadata of a file from the Forest storage.
|
|
625
629
|
**/
|
|
@@ -291,6 +291,10 @@ declare module "@polkadot/api-base/types/calls" {
|
|
|
291
291
|
};
|
|
292
292
|
/** 0x1078d7ac24a07b0e/1 */
|
|
293
293
|
paymentStreamsApi: {
|
|
294
|
+
/**
|
|
295
|
+
* Get the current price per giga unit per tick
|
|
296
|
+
**/
|
|
297
|
+
getCurrentPricePerGigaUnitPerTick: AugmentedCall<ApiType, () => Observable<Balance>>;
|
|
294
298
|
/**
|
|
295
299
|
* Get the Providers that have at least one payment stream with a specific user.
|
|
296
300
|
**/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@polkadot/rpc-core/types/jsonrpc";
|
|
2
2
|
import type { AugmentedRpc } from "@polkadot/rpc-core/types";
|
|
3
3
|
import type { Metadata, StorageKey } from "@polkadot/types";
|
|
4
|
-
import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f64, u32, u64 } from "@polkadot/types-codec";
|
|
4
|
+
import type { Bytes, HashMap, Json, Null, Option, Text, U256, U64, Vec, bool, f64, u128, u32, u64 } from "@polkadot/types-codec";
|
|
5
5
|
import type { AnyNumber, Codec, ITuple } from "@polkadot/types-codec/types";
|
|
6
6
|
import type { ExtrinsicOrHash, ExtrinsicStatus } from "@polkadot/types/interfaces/author";
|
|
7
7
|
import type { EpochAuthorship } from "@polkadot/types/interfaces/babe";
|
|
@@ -620,6 +620,10 @@ declare module "@polkadot/rpc-core/types/jsonrpc" {
|
|
|
620
620
|
file_key?: any;
|
|
621
621
|
should_remove_file?: any;
|
|
622
622
|
} | string | Uint8Array)[]) => Observable<Bytes>>;
|
|
623
|
+
/**
|
|
624
|
+
* Get the current price per giga unit per tick from the payment streams pallet
|
|
625
|
+
**/
|
|
626
|
+
getCurrentPricePerGigaUnitPerTick: AugmentedRpc<() => Observable<u128>>;
|
|
623
627
|
/**
|
|
624
628
|
* Get the metadata of a file from the Forest storage.
|
|
625
629
|
**/
|
|
@@ -330,6 +330,10 @@ declare module "@polkadot/api-base/types/calls" {
|
|
|
330
330
|
};
|
|
331
331
|
/** 0x1078d7ac24a07b0e/1 */
|
|
332
332
|
paymentStreamsApi: {
|
|
333
|
+
/**
|
|
334
|
+
* Get the current price per giga unit per tick
|
|
335
|
+
**/
|
|
336
|
+
getCurrentPricePerGigaUnitPerTick: AugmentedCall<ApiType, () => Observable<Balance>>;
|
|
333
337
|
/**
|
|
334
338
|
* Get the Providers that have at least one payment stream with a specific user.
|
|
335
339
|
**/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storagehub/api-augment",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@polkadot/types-codec": "^16.4.7",
|
|
35
35
|
"tsx": "4.20.5",
|
|
36
36
|
"typescript": "^5.9.2",
|
|
37
|
-
"@storagehub/types-bundle": "0.2.
|
|
37
|
+
"@storagehub/types-bundle": "0.2.4"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"scrape": "pnpm tsx scripts/scrapeMetadata.ts",
|
|
@@ -19,6 +19,7 @@ import type {
|
|
|
19
19
|
Vec,
|
|
20
20
|
bool,
|
|
21
21
|
f64,
|
|
22
|
+
u128,
|
|
22
23
|
u32,
|
|
23
24
|
u64
|
|
24
25
|
} from "@polkadot/types-codec";
|
|
@@ -1115,6 +1116,10 @@ declare module "@polkadot/rpc-core/types/jsonrpc" {
|
|
|
1115
1116
|
)[]
|
|
1116
1117
|
) => Observable<Bytes>
|
|
1117
1118
|
>;
|
|
1119
|
+
/**
|
|
1120
|
+
* Get the current price per giga unit per tick from the payment streams pallet
|
|
1121
|
+
**/
|
|
1122
|
+
getCurrentPricePerGigaUnitPerTick: AugmentedRpc<() => Observable<u128>>;
|
|
1118
1123
|
/**
|
|
1119
1124
|
* Get the metadata of a file from the Forest storage.
|
|
1120
1125
|
**/
|
|
@@ -487,6 +487,10 @@ declare module "@polkadot/api-base/types/calls" {
|
|
|
487
487
|
};
|
|
488
488
|
/** 0x1078d7ac24a07b0e/1 */
|
|
489
489
|
paymentStreamsApi: {
|
|
490
|
+
/**
|
|
491
|
+
* Get the current price per giga unit per tick
|
|
492
|
+
**/
|
|
493
|
+
getCurrentPricePerGigaUnitPerTick: AugmentedCall<ApiType, () => Observable<Balance>>;
|
|
490
494
|
/**
|
|
491
495
|
* Get the Providers that have at least one payment stream with a specific user.
|
|
492
496
|
**/
|
|
@@ -19,6 +19,7 @@ import type {
|
|
|
19
19
|
Vec,
|
|
20
20
|
bool,
|
|
21
21
|
f64,
|
|
22
|
+
u128,
|
|
22
23
|
u32,
|
|
23
24
|
u64
|
|
24
25
|
} from "@polkadot/types-codec";
|
|
@@ -1115,6 +1116,10 @@ declare module "@polkadot/rpc-core/types/jsonrpc" {
|
|
|
1115
1116
|
)[]
|
|
1116
1117
|
) => Observable<Bytes>
|
|
1117
1118
|
>;
|
|
1119
|
+
/**
|
|
1120
|
+
* Get the current price per giga unit per tick from the payment streams pallet
|
|
1121
|
+
**/
|
|
1122
|
+
getCurrentPricePerGigaUnitPerTick: AugmentedRpc<() => Observable<u128>>;
|
|
1118
1123
|
/**
|
|
1119
1124
|
* Get the metadata of a file from the Forest storage.
|
|
1120
1125
|
**/
|
|
@@ -598,6 +598,10 @@ declare module "@polkadot/api-base/types/calls" {
|
|
|
598
598
|
};
|
|
599
599
|
/** 0x1078d7ac24a07b0e/1 */
|
|
600
600
|
paymentStreamsApi: {
|
|
601
|
+
/**
|
|
602
|
+
* Get the current price per giga unit per tick
|
|
603
|
+
**/
|
|
604
|
+
getCurrentPricePerGigaUnitPerTick: AugmentedCall<ApiType, () => Observable<Balance>>;
|
|
601
605
|
/**
|
|
602
606
|
* Get the Providers that have at least one payment stream with a specific user.
|
|
603
607
|
**/
|