@ocap/client 1.18.91 → 1.18.93
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/base.js +1 -1
- package/dist/browser.d.ts +72 -70
- package/dist/bundle.js +1 -1
- package/dist/report.html +2 -2
- package/dist/schema/graphql.json +297 -0
- package/dist/schema/graphql.txt +2 -2
- package/dist/types.js +74 -0
- package/dist/types.js.map +1 -1
- package/docs/QUERIES.md +46 -0
- package/docs/README.md +97 -0
- package/lib/base.js +1 -1
- package/lib/node.d.ts +72 -70
- package/lib/schema/graphql.json +297 -0
- package/lib/schema/graphql.txt +2 -2
- package/lib/types.js +74 -0
- package/lib/types.js.map +1 -1
- package/package.json +12 -12
package/dist/browser.d.ts
CHANGED
|
@@ -66,139 +66,103 @@ declare class GraphQLClient {
|
|
|
66
66
|
sendAccountMigrateTx(
|
|
67
67
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AccountMigrateTx>>,
|
|
68
68
|
extra?: any
|
|
69
|
-
): Promise<
|
|
69
|
+
): Promise<string>;
|
|
70
70
|
sendAcquireAssetV2Tx(
|
|
71
71
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AcquireAssetV2Tx>>,
|
|
72
72
|
extra?: any
|
|
73
|
-
): Promise<
|
|
73
|
+
): Promise<string>;
|
|
74
74
|
sendAcquireAssetV3Tx(
|
|
75
75
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AcquireAssetV3Tx>>,
|
|
76
76
|
extra?: any
|
|
77
|
-
): Promise<
|
|
77
|
+
): Promise<string>;
|
|
78
78
|
sendClaimBlockRewardTx(
|
|
79
79
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimBlockRewardTx>>,
|
|
80
80
|
extra?: any
|
|
81
|
-
): Promise<
|
|
82
|
-
sendClaimStakeTx(
|
|
83
|
-
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimStakeTx>>,
|
|
84
|
-
extra?: any
|
|
85
|
-
): Promise<GraphQLClient.ResponseSendTx>;
|
|
81
|
+
): Promise<string>;
|
|
82
|
+
sendClaimStakeTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimStakeTx>>, extra?: any): Promise<string>;
|
|
86
83
|
sendCloseRollupTx(
|
|
87
84
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CloseRollupTx>>,
|
|
88
85
|
extra?: any
|
|
89
|
-
): Promise<
|
|
86
|
+
): Promise<string>;
|
|
90
87
|
sendConsumeAssetTx(
|
|
91
88
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ConsumeAssetTx>>,
|
|
92
89
|
extra?: any
|
|
93
|
-
): Promise<
|
|
90
|
+
): Promise<string>;
|
|
94
91
|
sendCreateAssetTx(
|
|
95
92
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateAssetTx>>,
|
|
96
93
|
extra?: any
|
|
97
|
-
): Promise<
|
|
94
|
+
): Promise<string>;
|
|
98
95
|
sendCreateFactoryTx(
|
|
99
96
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateFactoryTx>>,
|
|
100
97
|
extra?: any
|
|
101
|
-
): Promise<
|
|
98
|
+
): Promise<string>;
|
|
102
99
|
sendCreateRollupBlockTx(
|
|
103
100
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateRollupBlockTx>>,
|
|
104
101
|
extra?: any
|
|
105
|
-
): Promise<
|
|
102
|
+
): Promise<string>;
|
|
106
103
|
sendCreateRollupTx(
|
|
107
104
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateRollupTx>>,
|
|
108
105
|
extra?: any
|
|
109
|
-
): Promise<
|
|
106
|
+
): Promise<string>;
|
|
110
107
|
sendCreateTokenTx(
|
|
111
108
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateTokenTx>>,
|
|
112
109
|
extra?: any
|
|
113
|
-
): Promise<
|
|
114
|
-
sendDeclareTx(
|
|
115
|
-
|
|
116
|
-
extra?: any
|
|
117
|
-
): Promise<GraphQLClient.ResponseSendTx>;
|
|
118
|
-
sendDelegateTx(
|
|
119
|
-
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DelegateTx>>,
|
|
120
|
-
extra?: any
|
|
121
|
-
): Promise<GraphQLClient.ResponseSendTx>;
|
|
110
|
+
): Promise<string>;
|
|
111
|
+
sendDeclareTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DeclareTx>>, extra?: any): Promise<string>;
|
|
112
|
+
sendDelegateTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DelegateTx>>, extra?: any): Promise<string>;
|
|
122
113
|
sendDepositTokenV2Tx(
|
|
123
114
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DepositTokenV2Tx>>,
|
|
124
115
|
extra?: any
|
|
125
|
-
): Promise<
|
|
126
|
-
sendExchangeTx(
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
): Promise<GraphQLClient.ResponseSendTx>;
|
|
130
|
-
sendExchangeV2Tx(
|
|
131
|
-
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ExchangeV2Tx>>,
|
|
132
|
-
extra?: any
|
|
133
|
-
): Promise<GraphQLClient.ResponseSendTx>;
|
|
134
|
-
sendJoinRollupTx(
|
|
135
|
-
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.JoinRollupTx>>,
|
|
136
|
-
extra?: any
|
|
137
|
-
): Promise<GraphQLClient.ResponseSendTx>;
|
|
116
|
+
): Promise<string>;
|
|
117
|
+
sendExchangeTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ExchangeTx>>, extra?: any): Promise<string>;
|
|
118
|
+
sendExchangeV2Tx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ExchangeV2Tx>>, extra?: any): Promise<string>;
|
|
119
|
+
sendJoinRollupTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.JoinRollupTx>>, extra?: any): Promise<string>;
|
|
138
120
|
sendLeaveRollupTx(
|
|
139
121
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.LeaveRollupTx>>,
|
|
140
122
|
extra?: any
|
|
141
|
-
): Promise<
|
|
123
|
+
): Promise<string>;
|
|
142
124
|
sendMigrateRollupTx(
|
|
143
125
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MigrateRollupTx>>,
|
|
144
126
|
extra?: any
|
|
145
|
-
): Promise<
|
|
146
|
-
sendMintAssetTx(
|
|
147
|
-
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintAssetTx>>,
|
|
148
|
-
extra?: any
|
|
149
|
-
): Promise<GraphQLClient.ResponseSendTx>;
|
|
127
|
+
): Promise<string>;
|
|
128
|
+
sendMintAssetTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintAssetTx>>, extra?: any): Promise<string>;
|
|
150
129
|
sendPauseRollupTx(
|
|
151
130
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.PauseRollupTx>>,
|
|
152
131
|
extra?: any
|
|
153
|
-
): Promise<
|
|
132
|
+
): Promise<string>;
|
|
154
133
|
sendResumeRollupTx(
|
|
155
134
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ResumeRollupTx>>,
|
|
156
135
|
extra?: any
|
|
157
|
-
): Promise<
|
|
136
|
+
): Promise<string>;
|
|
158
137
|
sendRevokeDelegateTx(
|
|
159
138
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.RevokeDelegateTx>>,
|
|
160
139
|
extra?: any
|
|
161
|
-
): Promise<
|
|
140
|
+
): Promise<string>;
|
|
162
141
|
sendRevokeStakeTx(
|
|
163
142
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.RevokeStakeTx>>,
|
|
164
143
|
extra?: any
|
|
165
|
-
): Promise<
|
|
166
|
-
sendSlashStakeTx(
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
): Promise<
|
|
170
|
-
|
|
171
|
-
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.StakeTx>>,
|
|
172
|
-
extra?: any
|
|
173
|
-
): Promise<GraphQLClient.ResponseSendTx>;
|
|
174
|
-
sendTransferTx(
|
|
175
|
-
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferTx>>,
|
|
176
|
-
extra?: any
|
|
177
|
-
): Promise<GraphQLClient.ResponseSendTx>;
|
|
178
|
-
sendTransferV2Tx(
|
|
179
|
-
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferV2Tx>>,
|
|
180
|
-
extra?: any
|
|
181
|
-
): Promise<GraphQLClient.ResponseSendTx>;
|
|
182
|
-
sendTransferV3Tx(
|
|
183
|
-
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferV3Tx>>,
|
|
184
|
-
extra?: any
|
|
185
|
-
): Promise<GraphQLClient.ResponseSendTx>;
|
|
144
|
+
): Promise<string>;
|
|
145
|
+
sendSlashStakeTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.SlashStakeTx>>, extra?: any): Promise<string>;
|
|
146
|
+
sendStakeTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.StakeTx>>, extra?: any): Promise<string>;
|
|
147
|
+
sendTransferTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferTx>>, extra?: any): Promise<string>;
|
|
148
|
+
sendTransferV2Tx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferV2Tx>>, extra?: any): Promise<string>;
|
|
149
|
+
sendTransferV3Tx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferV3Tx>>, extra?: any): Promise<string>;
|
|
186
150
|
sendUpdateAssetTx(
|
|
187
151
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateAssetTx>>,
|
|
188
152
|
extra?: any
|
|
189
|
-
): Promise<
|
|
153
|
+
): Promise<string>;
|
|
190
154
|
sendUpdateRollupTx(
|
|
191
155
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateRollupTx>>,
|
|
192
156
|
extra?: any
|
|
193
|
-
): Promise<
|
|
157
|
+
): Promise<string>;
|
|
194
158
|
sendUpgradeNodeTx(
|
|
195
159
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpgradeNodeTx>>,
|
|
196
160
|
extra?: any
|
|
197
|
-
): Promise<
|
|
161
|
+
): Promise<string>;
|
|
198
162
|
sendWithdrawTokenV2Tx(
|
|
199
163
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.WithdrawTokenV2Tx>>,
|
|
200
164
|
extra?: any
|
|
201
|
-
): Promise<
|
|
165
|
+
): Promise<string>;
|
|
202
166
|
encodeAccountMigrateTx(
|
|
203
167
|
param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AccountMigrateTx>>
|
|
204
168
|
): Promise<GraphQLClient.EncodeTxResult>;
|
|
@@ -528,6 +492,9 @@ declare class GraphQLClient {
|
|
|
528
492
|
listRollupValidators(
|
|
529
493
|
params: PartialDeep<GraphQLClient.ListRollupValidatorsParams>
|
|
530
494
|
): Promise<GraphQLClient.GraphQLClient.ResponseListRollupValidators>;
|
|
495
|
+
listDelegations(
|
|
496
|
+
params: PartialDeep<GraphQLClient.ListDelegationsParams>
|
|
497
|
+
): Promise<GraphQLClient.GraphQLClient.ResponseListDelegations>;
|
|
531
498
|
search(params: PartialDeep<GraphQLClient.SearchParams>): Promise<GraphQLClient.GraphQLClient.ResponseSearch>;
|
|
532
499
|
estimateGas(
|
|
533
500
|
params: PartialDeep<GraphQLClient.EstimateGasParams>
|
|
@@ -839,6 +806,13 @@ declare namespace GraphQLClient {
|
|
|
839
806
|
numInvalidTxsFilter: GraphQLClient.RangeFilterInput;
|
|
840
807
|
}
|
|
841
808
|
|
|
809
|
+
interface RequestListDelegationsInput {
|
|
810
|
+
paging: GraphQLClient.PageInput;
|
|
811
|
+
from: string;
|
|
812
|
+
to: string;
|
|
813
|
+
timeFilter: GraphQLClient.TimeFilterInput;
|
|
814
|
+
}
|
|
815
|
+
|
|
842
816
|
interface RequestListFactoriesInput {
|
|
843
817
|
paging: GraphQLClient.PageInput;
|
|
844
818
|
ownerAddress: string;
|
|
@@ -1479,6 +1453,21 @@ declare namespace GraphQLClient {
|
|
|
1479
1453
|
numInvalidTxs: string;
|
|
1480
1454
|
}
|
|
1481
1455
|
|
|
1456
|
+
interface IndexedDelegationState {
|
|
1457
|
+
address: string;
|
|
1458
|
+
from: string;
|
|
1459
|
+
to: string;
|
|
1460
|
+
genesisTime: string;
|
|
1461
|
+
renaissanceTime: string;
|
|
1462
|
+
ops: GraphQLClient.IndexedDelegationState_OpsEntry[];
|
|
1463
|
+
data: GraphQLClient.Any;
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
interface IndexedDelegationState_OpsEntry {
|
|
1467
|
+
key: string;
|
|
1468
|
+
value: GraphQLClient.DelegateOpState;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1482
1471
|
interface IndexedFactoryInput {
|
|
1483
1472
|
value: string;
|
|
1484
1473
|
tokens: GraphQLClient.IndexedTokenInput[];
|
|
@@ -1907,6 +1896,12 @@ declare namespace GraphQLClient {
|
|
|
1907
1896
|
blocks: GraphQLClient.IndexedBlock[];
|
|
1908
1897
|
}
|
|
1909
1898
|
|
|
1899
|
+
interface ResponseListDelegations {
|
|
1900
|
+
code: string;
|
|
1901
|
+
page: GraphQLClient.PageInfo;
|
|
1902
|
+
delegations: GraphQLClient.IndexedDelegationState[];
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1910
1905
|
interface ResponseListFactories {
|
|
1911
1906
|
code: string;
|
|
1912
1907
|
page: GraphQLClient.PageInfo;
|
|
@@ -2502,6 +2497,13 @@ declare namespace GraphQLClient {
|
|
|
2502
2497
|
rollupAddress: string;
|
|
2503
2498
|
}
|
|
2504
2499
|
|
|
2500
|
+
interface ListDelegationsParams {
|
|
2501
|
+
from: string;
|
|
2502
|
+
to: string;
|
|
2503
|
+
paging: GraphQLClient.PageInput;
|
|
2504
|
+
timeFilter: GraphQLClient.TimeFilterInput;
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2505
2507
|
interface SearchParams {
|
|
2506
2508
|
paging: GraphQLClient.PageInput;
|
|
2507
2509
|
keyword: string;
|