@iota/graphql-transport 0.14.0 → 0.15.0
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/CHANGELOG.md +44 -0
- package/README.md +2 -2
- package/dist/cjs/generated/queries.d.ts +22 -70
- package/dist/cjs/generated/queries.d.ts.map +1 -0
- package/dist/cjs/generated/queries.js +8 -28
- package/dist/cjs/generated/queries.js.map +2 -2
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/mappers/bcs.d.ts +1 -0
- package/dist/cjs/mappers/bcs.d.ts.map +1 -0
- package/dist/cjs/mappers/checkpoint.d.ts +1 -0
- package/dist/cjs/mappers/checkpoint.d.ts.map +1 -0
- package/dist/cjs/mappers/display.d.ts +1 -0
- package/dist/cjs/mappers/display.d.ts.map +1 -0
- package/dist/cjs/mappers/move.d.ts +1 -0
- package/dist/cjs/mappers/move.d.ts.map +1 -0
- package/dist/cjs/mappers/object.d.ts +1 -0
- package/dist/cjs/mappers/object.d.ts.map +1 -0
- package/dist/cjs/mappers/owner.d.ts +1 -0
- package/dist/cjs/mappers/owner.d.ts.map +1 -0
- package/dist/cjs/mappers/stakes.d.ts +1 -0
- package/dist/cjs/mappers/stakes.d.ts.map +1 -0
- package/dist/cjs/mappers/transaction-block.d.ts +1 -0
- package/dist/cjs/mappers/transaction-block.d.ts.map +1 -0
- package/dist/cjs/mappers/util.d.ts +1 -0
- package/dist/cjs/mappers/util.d.ts.map +1 -0
- package/dist/cjs/mappers/validator.d.ts +1 -0
- package/dist/cjs/mappers/validator.d.ts.map +1 -0
- package/dist/cjs/mappers/validator.js +2 -2
- package/dist/cjs/mappers/validator.js.map +2 -2
- package/dist/cjs/methods.d.ts +1 -0
- package/dist/cjs/methods.d.ts.map +1 -0
- package/dist/cjs/methods.js +24 -15
- package/dist/cjs/methods.js.map +2 -2
- package/dist/cjs/transport.d.ts +4 -1
- package/dist/cjs/transport.d.ts.map +1 -0
- package/dist/cjs/transport.js +34 -30
- package/dist/cjs/transport.js.map +2 -2
- package/dist/esm/generated/queries.d.ts +22 -70
- package/dist/esm/generated/queries.d.ts.map +1 -0
- package/dist/esm/generated/queries.js +8 -28
- package/dist/esm/generated/queries.js.map +2 -2
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/mappers/bcs.d.ts +1 -0
- package/dist/esm/mappers/bcs.d.ts.map +1 -0
- package/dist/esm/mappers/checkpoint.d.ts +1 -0
- package/dist/esm/mappers/checkpoint.d.ts.map +1 -0
- package/dist/esm/mappers/display.d.ts +1 -0
- package/dist/esm/mappers/display.d.ts.map +1 -0
- package/dist/esm/mappers/move.d.ts +1 -0
- package/dist/esm/mappers/move.d.ts.map +1 -0
- package/dist/esm/mappers/object.d.ts +1 -0
- package/dist/esm/mappers/object.d.ts.map +1 -0
- package/dist/esm/mappers/owner.d.ts +1 -0
- package/dist/esm/mappers/owner.d.ts.map +1 -0
- package/dist/esm/mappers/stakes.d.ts +1 -0
- package/dist/esm/mappers/stakes.d.ts.map +1 -0
- package/dist/esm/mappers/transaction-block.d.ts +1 -0
- package/dist/esm/mappers/transaction-block.d.ts.map +1 -0
- package/dist/esm/mappers/util.d.ts +1 -0
- package/dist/esm/mappers/util.d.ts.map +1 -0
- package/dist/esm/mappers/validator.d.ts +1 -0
- package/dist/esm/mappers/validator.d.ts.map +1 -0
- package/dist/esm/mappers/validator.js +2 -2
- package/dist/esm/mappers/validator.js.map +2 -2
- package/dist/esm/methods.d.ts +1 -0
- package/dist/esm/methods.d.ts.map +1 -0
- package/dist/esm/methods.js +30 -16
- package/dist/esm/methods.js.map +2 -2
- package/dist/esm/transport.d.ts +4 -1
- package/dist/esm/transport.d.ts.map +1 -0
- package/dist/esm/transport.js +34 -30
- package/dist/esm/transport.js.map +2 -2
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @iota/graphql-transport
|
|
2
2
|
|
|
3
|
+
## 0.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 0be1d8d: Add a new RequestInspector API to look into requests and responses of an IotaClient
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 331b7ab: Refreshed the README with up to date APIs, examples and more.
|
|
12
|
+
- adea573: Enable declarationMap in TS packages
|
|
13
|
+
- 1359874: Add fallback values to getBalance call if there is no balance for the requested
|
|
14
|
+
address.
|
|
15
|
+
- f116b86: fix undefined exchangeRatesId and stakingPoolId
|
|
16
|
+
- Updated dependencies [fe97265]
|
|
17
|
+
- Updated dependencies [d2ed95a]
|
|
18
|
+
- Updated dependencies [379dd4b]
|
|
19
|
+
- Updated dependencies [1a2b37f]
|
|
20
|
+
- Updated dependencies [1a2b37f]
|
|
21
|
+
- Updated dependencies [66d0c0d]
|
|
22
|
+
- Updated dependencies [9c6137c]
|
|
23
|
+
- Updated dependencies [331b7ab]
|
|
24
|
+
- Updated dependencies [adea573]
|
|
25
|
+
- Updated dependencies [bd1fa0b]
|
|
26
|
+
- Updated dependencies [1a2b37f]
|
|
27
|
+
- Updated dependencies [3f80310]
|
|
28
|
+
- Updated dependencies [2a9a1df]
|
|
29
|
+
- Updated dependencies [c74bcc2]
|
|
30
|
+
- Updated dependencies [045acb2]
|
|
31
|
+
- Updated dependencies [999224b]
|
|
32
|
+
- Updated dependencies [1a2b37f]
|
|
33
|
+
- Updated dependencies [f3d9079]
|
|
34
|
+
- Updated dependencies [7849d0e]
|
|
35
|
+
- Updated dependencies [045acb2]
|
|
36
|
+
- Updated dependencies [bd1fa0b]
|
|
37
|
+
- Updated dependencies [1a2b37f]
|
|
38
|
+
- Updated dependencies [045acb2]
|
|
39
|
+
- Updated dependencies [0be1d8d]
|
|
40
|
+
- Updated dependencies [235a8d7]
|
|
41
|
+
- Updated dependencies [46171b1]
|
|
42
|
+
- Updated dependencies [9d88461]
|
|
43
|
+
- Updated dependencies [045acb2]
|
|
44
|
+
- @iota/iota-sdk@1.12.0
|
|
45
|
+
- @iota/bcs@1.6.0
|
|
46
|
+
|
|
3
47
|
## 0.14.0
|
|
4
48
|
|
|
5
49
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -15,11 +15,11 @@ npm install --save @iota/graphql-transport
|
|
|
15
15
|
|
|
16
16
|
```ts
|
|
17
17
|
import { IotaClientGraphQLTransport } from '@iota/graphql-transport';
|
|
18
|
-
import { getFullnodeUrl, IotaClient } from '@iota/iota-sdk/client';
|
|
18
|
+
import { getFullnodeUrl, getGraphQLUrl, IotaClient } from '@iota/iota-sdk/client';
|
|
19
19
|
|
|
20
20
|
const client = new IotaClient({
|
|
21
21
|
transport: new IotaClientGraphQLTransport({
|
|
22
|
-
url: '
|
|
22
|
+
url: getGraphQLUrl('testnet'),
|
|
23
23
|
// When specified, the transport will fallback to JSON RPC for unsupported method and parameters
|
|
24
24
|
fallbackFullNodeUrl: getFullnodeUrl('testnet'),
|
|
25
25
|
}),
|
|
@@ -6499,16 +6499,13 @@ export type GetCurrentEpochQuery = {
|
|
|
6499
6499
|
poolTokenBalance?: any | null;
|
|
6500
6500
|
projectUrl?: string | null;
|
|
6501
6501
|
rewardsPool?: any | null;
|
|
6502
|
+
stakingPoolId: any;
|
|
6502
6503
|
stakingPoolActivationEpoch?: any | null;
|
|
6503
6504
|
stakingPoolIotaBalance?: any | null;
|
|
6504
6505
|
votingPower?: number | null;
|
|
6505
|
-
|
|
6506
|
-
__typename?: '
|
|
6506
|
+
exchangeRatesTable?: {
|
|
6507
|
+
__typename?: 'Owner';
|
|
6507
6508
|
address: any;
|
|
6508
|
-
contents?: {
|
|
6509
|
-
__typename?: 'MoveValue';
|
|
6510
|
-
json: any;
|
|
6511
|
-
} | null;
|
|
6512
6509
|
} | null;
|
|
6513
6510
|
credentials?: {
|
|
6514
6511
|
__typename?: 'ValidatorCredentials';
|
|
@@ -6534,10 +6531,6 @@ export type GetCurrentEpochQuery = {
|
|
|
6534
6531
|
__typename?: 'MoveObject';
|
|
6535
6532
|
address: any;
|
|
6536
6533
|
} | null;
|
|
6537
|
-
stakingPool?: {
|
|
6538
|
-
__typename?: 'MoveObject';
|
|
6539
|
-
address: any;
|
|
6540
|
-
} | null;
|
|
6541
6534
|
address: {
|
|
6542
6535
|
__typename?: 'Address';
|
|
6543
6536
|
address: any;
|
|
@@ -6569,16 +6562,13 @@ export type GetCurrentEpochQuery = {
|
|
|
6569
6562
|
poolTokenBalance?: any | null;
|
|
6570
6563
|
projectUrl?: string | null;
|
|
6571
6564
|
rewardsPool?: any | null;
|
|
6565
|
+
stakingPoolId: any;
|
|
6572
6566
|
stakingPoolActivationEpoch?: any | null;
|
|
6573
6567
|
stakingPoolIotaBalance?: any | null;
|
|
6574
6568
|
votingPower?: number | null;
|
|
6575
|
-
|
|
6576
|
-
__typename?: '
|
|
6569
|
+
exchangeRatesTable?: {
|
|
6570
|
+
__typename?: 'Owner';
|
|
6577
6571
|
address: any;
|
|
6578
|
-
contents?: {
|
|
6579
|
-
__typename?: 'MoveValue';
|
|
6580
|
-
json: any;
|
|
6581
|
-
} | null;
|
|
6582
6572
|
} | null;
|
|
6583
6573
|
credentials?: {
|
|
6584
6574
|
__typename?: 'ValidatorCredentials';
|
|
@@ -6604,10 +6594,6 @@ export type GetCurrentEpochQuery = {
|
|
|
6604
6594
|
__typename?: 'MoveObject';
|
|
6605
6595
|
address: any;
|
|
6606
6596
|
} | null;
|
|
6607
|
-
stakingPool?: {
|
|
6608
|
-
__typename?: 'MoveObject';
|
|
6609
|
-
address: any;
|
|
6610
|
-
} | null;
|
|
6611
6597
|
address: {
|
|
6612
6598
|
__typename?: 'Address';
|
|
6613
6599
|
address: any;
|
|
@@ -6659,16 +6645,13 @@ export type PaginateEpochValidatorsQuery = {
|
|
|
6659
6645
|
poolTokenBalance?: any | null;
|
|
6660
6646
|
projectUrl?: string | null;
|
|
6661
6647
|
rewardsPool?: any | null;
|
|
6648
|
+
stakingPoolId: any;
|
|
6662
6649
|
stakingPoolActivationEpoch?: any | null;
|
|
6663
6650
|
stakingPoolIotaBalance?: any | null;
|
|
6664
6651
|
votingPower?: number | null;
|
|
6665
|
-
|
|
6666
|
-
__typename?: '
|
|
6652
|
+
exchangeRatesTable?: {
|
|
6653
|
+
__typename?: 'Owner';
|
|
6667
6654
|
address: any;
|
|
6668
|
-
contents?: {
|
|
6669
|
-
__typename?: 'MoveValue';
|
|
6670
|
-
json: any;
|
|
6671
|
-
} | null;
|
|
6672
6655
|
} | null;
|
|
6673
6656
|
credentials?: {
|
|
6674
6657
|
__typename?: 'ValidatorCredentials';
|
|
@@ -6694,10 +6677,6 @@ export type PaginateEpochValidatorsQuery = {
|
|
|
6694
6677
|
__typename?: 'MoveObject';
|
|
6695
6678
|
address: any;
|
|
6696
6679
|
} | null;
|
|
6697
|
-
stakingPool?: {
|
|
6698
|
-
__typename?: 'MoveObject';
|
|
6699
|
-
address: any;
|
|
6700
|
-
} | null;
|
|
6701
6680
|
address: {
|
|
6702
6681
|
__typename?: 'Address';
|
|
6703
6682
|
address: any;
|
|
@@ -6729,16 +6708,13 @@ export type PaginateEpochValidatorsQuery = {
|
|
|
6729
6708
|
poolTokenBalance?: any | null;
|
|
6730
6709
|
projectUrl?: string | null;
|
|
6731
6710
|
rewardsPool?: any | null;
|
|
6711
|
+
stakingPoolId: any;
|
|
6732
6712
|
stakingPoolActivationEpoch?: any | null;
|
|
6733
6713
|
stakingPoolIotaBalance?: any | null;
|
|
6734
6714
|
votingPower?: number | null;
|
|
6735
|
-
|
|
6736
|
-
__typename?: '
|
|
6715
|
+
exchangeRatesTable?: {
|
|
6716
|
+
__typename?: 'Owner';
|
|
6737
6717
|
address: any;
|
|
6738
|
-
contents?: {
|
|
6739
|
-
__typename?: 'MoveValue';
|
|
6740
|
-
json: any;
|
|
6741
|
-
} | null;
|
|
6742
6718
|
} | null;
|
|
6743
6719
|
credentials?: {
|
|
6744
6720
|
__typename?: 'ValidatorCredentials';
|
|
@@ -6764,10 +6740,6 @@ export type PaginateEpochValidatorsQuery = {
|
|
|
6764
6740
|
__typename?: 'MoveObject';
|
|
6765
6741
|
address: any;
|
|
6766
6742
|
} | null;
|
|
6767
|
-
stakingPool?: {
|
|
6768
|
-
__typename?: 'MoveObject';
|
|
6769
|
-
address: any;
|
|
6770
|
-
} | null;
|
|
6771
6743
|
address: {
|
|
6772
6744
|
__typename?: 'Address';
|
|
6773
6745
|
address: any;
|
|
@@ -6795,16 +6767,13 @@ export type Rpc_Validator_FieldsFragment = {
|
|
|
6795
6767
|
poolTokenBalance?: any | null;
|
|
6796
6768
|
projectUrl?: string | null;
|
|
6797
6769
|
rewardsPool?: any | null;
|
|
6770
|
+
stakingPoolId: any;
|
|
6798
6771
|
stakingPoolActivationEpoch?: any | null;
|
|
6799
6772
|
stakingPoolIotaBalance?: any | null;
|
|
6800
6773
|
votingPower?: number | null;
|
|
6801
|
-
|
|
6802
|
-
__typename?: '
|
|
6774
|
+
exchangeRatesTable?: {
|
|
6775
|
+
__typename?: 'Owner';
|
|
6803
6776
|
address: any;
|
|
6804
|
-
contents?: {
|
|
6805
|
-
__typename?: 'MoveValue';
|
|
6806
|
-
json: any;
|
|
6807
|
-
} | null;
|
|
6808
6777
|
} | null;
|
|
6809
6778
|
credentials?: {
|
|
6810
6779
|
__typename?: 'ValidatorCredentials';
|
|
@@ -6830,10 +6799,6 @@ export type Rpc_Validator_FieldsFragment = {
|
|
|
6830
6799
|
__typename?: 'MoveObject';
|
|
6831
6800
|
address: any;
|
|
6832
6801
|
} | null;
|
|
6833
|
-
stakingPool?: {
|
|
6834
|
-
__typename?: 'MoveObject';
|
|
6835
|
-
address: any;
|
|
6836
|
-
} | null;
|
|
6837
6802
|
address: {
|
|
6838
6803
|
__typename?: 'Address';
|
|
6839
6804
|
address: any;
|
|
@@ -7081,16 +7046,13 @@ export type GetLatestIotaSystemStateQuery = {
|
|
|
7081
7046
|
poolTokenBalance?: any | null;
|
|
7082
7047
|
projectUrl?: string | null;
|
|
7083
7048
|
rewardsPool?: any | null;
|
|
7049
|
+
stakingPoolId: any;
|
|
7084
7050
|
stakingPoolActivationEpoch?: any | null;
|
|
7085
7051
|
stakingPoolIotaBalance?: any | null;
|
|
7086
7052
|
votingPower?: number | null;
|
|
7087
|
-
|
|
7088
|
-
__typename?: '
|
|
7053
|
+
exchangeRatesTable?: {
|
|
7054
|
+
__typename?: 'Owner';
|
|
7089
7055
|
address: any;
|
|
7090
|
-
contents?: {
|
|
7091
|
-
__typename?: 'MoveValue';
|
|
7092
|
-
json: any;
|
|
7093
|
-
} | null;
|
|
7094
7056
|
} | null;
|
|
7095
7057
|
credentials?: {
|
|
7096
7058
|
__typename?: 'ValidatorCredentials';
|
|
@@ -7116,10 +7078,6 @@ export type GetLatestIotaSystemStateQuery = {
|
|
|
7116
7078
|
__typename?: 'MoveObject';
|
|
7117
7079
|
address: any;
|
|
7118
7080
|
} | null;
|
|
7119
|
-
stakingPool?: {
|
|
7120
|
-
__typename?: 'MoveObject';
|
|
7121
|
-
address: any;
|
|
7122
|
-
} | null;
|
|
7123
7081
|
address: {
|
|
7124
7082
|
__typename?: 'Address';
|
|
7125
7083
|
address: any;
|
|
@@ -7151,16 +7109,13 @@ export type GetLatestIotaSystemStateQuery = {
|
|
|
7151
7109
|
poolTokenBalance?: any | null;
|
|
7152
7110
|
projectUrl?: string | null;
|
|
7153
7111
|
rewardsPool?: any | null;
|
|
7112
|
+
stakingPoolId: any;
|
|
7154
7113
|
stakingPoolActivationEpoch?: any | null;
|
|
7155
7114
|
stakingPoolIotaBalance?: any | null;
|
|
7156
7115
|
votingPower?: number | null;
|
|
7157
|
-
|
|
7158
|
-
__typename?: '
|
|
7116
|
+
exchangeRatesTable?: {
|
|
7117
|
+
__typename?: 'Owner';
|
|
7159
7118
|
address: any;
|
|
7160
|
-
contents?: {
|
|
7161
|
-
__typename?: 'MoveValue';
|
|
7162
|
-
json: any;
|
|
7163
|
-
} | null;
|
|
7164
7119
|
} | null;
|
|
7165
7120
|
credentials?: {
|
|
7166
7121
|
__typename?: 'ValidatorCredentials';
|
|
@@ -7186,10 +7141,6 @@ export type GetLatestIotaSystemStateQuery = {
|
|
|
7186
7141
|
__typename?: 'MoveObject';
|
|
7187
7142
|
address: any;
|
|
7188
7143
|
} | null;
|
|
7189
|
-
stakingPool?: {
|
|
7190
|
-
__typename?: 'MoveObject';
|
|
7191
|
-
address: any;
|
|
7192
|
-
} | null;
|
|
7193
7144
|
address: {
|
|
7194
7145
|
__typename?: 'Address';
|
|
7195
7146
|
address: any;
|
|
@@ -9453,3 +9404,4 @@ export declare const MultiGetTransactionBlocksDocument: TypedDocumentString<Mult
|
|
|
9453
9404
|
export declare const PaginateTransactionBlockListsDocument: TypedDocumentString<PaginateTransactionBlockListsQuery, PaginateTransactionBlockListsQueryVariables>;
|
|
9454
9405
|
export declare const ViewDocument: TypedDocumentString<ViewQuery, ViewQueryVariables>;
|
|
9455
9406
|
export {};
|
|
9407
|
+
//# sourceMappingURL=queries.d.ts.map
|