@chainlink/cre-sdk 1.9.0 → 1.10.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/dist/generated/capabilities/blockchain/evm/v1alpha/client_pb.js +1 -1
- package/dist/generated/capabilities/blockchain/solana/v1alpha/client_pb.d.ts +268 -0
- package/dist/generated/capabilities/blockchain/solana/v1alpha/client_pb.js +90 -0
- package/dist/generated-sdk/capabilities/blockchain/evm/v1alpha/client_sdk_gen.d.ts +10 -13
- package/dist/generated-sdk/capabilities/blockchain/evm/v1alpha/client_sdk_gen.js +0 -4
- package/dist/generated-sdk/capabilities/blockchain/solana/v1alpha/client_sdk_gen.d.ts +42 -0
- package/dist/generated-sdk/capabilities/blockchain/solana/v1alpha/client_sdk_gen.js +82 -0
- package/dist/generated-sdk/capabilities/internal/consensus/v1alpha/consensus_sdk_gen.d.ts +3 -2
- package/dist/generated-sdk/capabilities/networking/confidentialhttp/v1alpha/client_sdk_gen.d.ts +2 -1
- package/dist/generated-sdk/capabilities/networking/http/v1alpha/client_sdk_gen.d.ts +3 -2
- package/dist/generated-sdk/capabilities/networking/http/v1alpha/http_sdk_gen.d.ts +2 -1
- package/dist/generated-sdk/capabilities/scheduler/cron/v1/cron_sdk_gen.d.ts +2 -1
- package/dist/pb.d.ts +1 -0
- package/dist/pb.js +1 -0
- package/dist/sdk/cre/index.d.ts +4 -0
- package/dist/sdk/cre/index.js +5 -0
- package/dist/sdk/impl/runtime-impl.d.ts +3 -0
- package/dist/sdk/impl/runtime-impl.js +9 -4
- package/dist/sdk/index.d.ts +1 -0
- package/dist/sdk/index.js +1 -0
- package/dist/sdk/test/generated/capabilities/blockchain/solana/v1alpha/solana_mock_gen.d.ts +17 -0
- package/dist/sdk/test/generated/capabilities/blockchain/solana/v1alpha/solana_mock_gen.js +53 -0
- package/dist/sdk/test/generated/index.d.ts +1 -0
- package/dist/sdk/test/generated/index.js +1 -0
- package/dist/sdk/testutils/test-runtime.js +9 -1
- package/dist/sdk/types/global.d.ts +6 -0
- package/dist/sdk/utils/capabilities/blockchain/blockchain-helpers.js +3 -2
- package/dist/sdk/utils/capabilities/confidentialhttp/confidential-http-helpers.d.ts +43 -0
- package/dist/sdk/utils/capabilities/confidentialhttp/confidential-http-helpers.js +58 -0
- package/dist/sdk/utils/capabilities/http/http-helpers.d.ts +20 -6
- package/dist/sdk/utils/capabilities/http/http-helpers.js +23 -4
- package/dist/sdk/utils/safe-integer.d.ts +8 -0
- package/dist/sdk/utils/safe-integer.js +15 -0
- package/dist/sdk/utils/types/no-excess.d.ts +32 -0
- package/dist/sdk/utils/types/no-excess.js +1 -0
- package/dist/sdk/utils/values/value.js +3 -4
- package/dist/sdk/wasm/host-bindings.d.ts +39 -0
- package/dist/sdk/wasm/host-bindings.js +2 -1
- package/dist/sdk/wasm/runtime.js +3 -0
- package/package.json +4 -3
- package/scripts/src/generate-sdks.ts +6 -0
|
@@ -10,7 +10,7 @@ import { file_values_v1_values } from '../../../../values/v1/values_pb';
|
|
|
10
10
|
*/
|
|
11
11
|
export const file_capabilities_blockchain_evm_v1alpha_client =
|
|
12
12
|
/*@__PURE__*/
|
|
13
|
-
fileDesc('
|
|
13
|
+
fileDesc('CjBjYXBhYmlsaXRpZXMvYmxvY2tjaGFpbi9ldm0vdjFhbHBoYS9jbGllbnQucHJvdG8SI2NhcGFiaWxpdGllcy5ibG9ja2NoYWluLmV2bS52MWFscGhhIh0KC1RvcGljVmFsdWVzEg4KBnZhbHVlcxgBIAMoDCK4AQoXRmlsdGVyTG9nVHJpZ2dlclJlcXVlc3QSEQoJYWRkcmVzc2VzGAEgAygMEkAKBnRvcGljcxgCIAMoCzIwLmNhcGFiaWxpdGllcy5ibG9ja2NoYWluLmV2bS52MWFscGhhLlRvcGljVmFsdWVzEkgKCmNvbmZpZGVuY2UYAyABKA4yNC5jYXBhYmlsaXRpZXMuYmxvY2tjaGFpbi5ldm0udjFhbHBoYS5Db25maWRlbmNlTGV2ZWwiego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kKDWpvdmF5LW1haW5uZXQQtcPEmqGA35IVChkKDWpvdmF5LXRlc3RuZXQQ5M+KhN6y3o4NChsKD21lZ2FldGgtbWFpbm5ldBDqlbbIvOSmyFQKHgoRbWVnYWV0aC10ZXN0bmV0LTIQ443eiLGP/ZP9AQokChdwaGFyb3MtYXRsYW50aWMtdGVzdG5ldBDMme3gzryvtN8BChoKDnBoYXJvcy1tYWlubmV0EMjBh571782hbAobCg5wbGFzbWEtbWFpbm5ldBD4m/HR2snVxoEBChoKDnBsYXNtYS10ZXN0bmV0ENWbv6XDtJmHNwobCg9wb2x5Z29uLW1haW5uZXQQsavk8JqShp04CiEKFHBvbHlnb24tdGVzdG5ldC1hbW95EM2P1t/xx5D64QEKJAoYcHJpdmF0ZS10ZXN0bmV0LWFuZGVzaXRlENSmmKXBj9z8XwoZCg1zb25pYy1tYWlubmV0ENGy5e3ZoLKdFwoZCg1zb25pYy10ZXN0bmV0EMiI+9S0xvq8GAoYCgt0YWMtdGVzdG5ldBDV243j+5+T14MBChsKDnhsYXllci10ZXN0bmV0EMm+obStzLzdjQFC5QEKJ2NvbS5jYXBhYmlsaXRpZXMuYmxvY2tjaGFpbi5ldm0udjFhbHBoYUILQ2xpZW50UHJvdG9QAaICA0NCRaoCI0NhcGFiaWxpdGllcy5CbG9ja2NoYWluLkV2bS5WMWFscGhhygIjQ2FwYWJpbGl0aWVzXEJsb2NrY2hhaW5cRXZtXFYxYWxwaGHiAi9DYXBhYmlsaXRpZXNcQmxvY2tjaGFpblxFdm1cVjFhbHBoYVxHUEJNZXRhZGF0YeoCJkNhcGFiaWxpdGllczo6QmxvY2tjaGFpbjo6RXZtOjpWMWFscGhhYgZwcm90bzM', [file_sdk_v1alpha_sdk, file_tools_generator_v1alpha_cre_metadata, file_values_v1_values]);
|
|
14
14
|
/**
|
|
15
15
|
* Describes the message capabilities.blockchain.evm.v1alpha.TopicValues.
|
|
16
16
|
* Use `create(TopicValuesSchema)` to create a new message.
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import type { Message } from '@bufbuild/protobuf';
|
|
2
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from '@bufbuild/protobuf/codegenv2';
|
|
3
|
+
import type { ReportResponse, ReportResponseJson } from '../../../../sdk/v1alpha/sdk_pb';
|
|
4
|
+
/**
|
|
5
|
+
* Describes the file capabilities/blockchain/solana/v1alpha/client.proto.
|
|
6
|
+
*/
|
|
7
|
+
export declare const file_capabilities_blockchain_solana_v1alpha_client: GenFile;
|
|
8
|
+
/**
|
|
9
|
+
* Compute budget configuration when submitting txs.
|
|
10
|
+
*
|
|
11
|
+
* @generated from message capabilities.blockchain.solana.v1alpha.ComputeConfig
|
|
12
|
+
*/
|
|
13
|
+
export type ComputeConfig = Message<'capabilities.blockchain.solana.v1alpha.ComputeConfig'> & {
|
|
14
|
+
/**
|
|
15
|
+
* max CUs (approx per-tx limit)
|
|
16
|
+
*
|
|
17
|
+
* @generated from field: uint32 compute_limit = 1;
|
|
18
|
+
*/
|
|
19
|
+
computeLimit: number;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Compute budget configuration when submitting txs.
|
|
23
|
+
*
|
|
24
|
+
* @generated from message capabilities.blockchain.solana.v1alpha.ComputeConfig
|
|
25
|
+
*/
|
|
26
|
+
export type ComputeConfigJson = {
|
|
27
|
+
/**
|
|
28
|
+
* max CUs (approx per-tx limit)
|
|
29
|
+
*
|
|
30
|
+
* @generated from field: uint32 compute_limit = 1;
|
|
31
|
+
*/
|
|
32
|
+
computeLimit?: number;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Describes the message capabilities.blockchain.solana.v1alpha.ComputeConfig.
|
|
36
|
+
* Use `create(ComputeConfigSchema)` to create a new message.
|
|
37
|
+
*/
|
|
38
|
+
export declare const ComputeConfigSchema: GenMessage<ComputeConfig, {
|
|
39
|
+
jsonType: ComputeConfigJson;
|
|
40
|
+
}>;
|
|
41
|
+
/**
|
|
42
|
+
* All metas are non-signers.
|
|
43
|
+
*
|
|
44
|
+
* @generated from message capabilities.blockchain.solana.v1alpha.AccountMeta
|
|
45
|
+
*/
|
|
46
|
+
export type AccountMeta = Message<'capabilities.blockchain.solana.v1alpha.AccountMeta'> & {
|
|
47
|
+
/**
|
|
48
|
+
* 32 bytes account public key
|
|
49
|
+
*
|
|
50
|
+
* @generated from field: bytes public_key = 1;
|
|
51
|
+
*/
|
|
52
|
+
publicKey: Uint8Array;
|
|
53
|
+
/**
|
|
54
|
+
* write flag
|
|
55
|
+
*
|
|
56
|
+
* @generated from field: bool is_writable = 2;
|
|
57
|
+
*/
|
|
58
|
+
isWritable: boolean;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* All metas are non-signers.
|
|
62
|
+
*
|
|
63
|
+
* @generated from message capabilities.blockchain.solana.v1alpha.AccountMeta
|
|
64
|
+
*/
|
|
65
|
+
export type AccountMetaJson = {
|
|
66
|
+
/**
|
|
67
|
+
* 32 bytes account public key
|
|
68
|
+
*
|
|
69
|
+
* @generated from field: bytes public_key = 1;
|
|
70
|
+
*/
|
|
71
|
+
publicKey?: string;
|
|
72
|
+
/**
|
|
73
|
+
* write flag
|
|
74
|
+
*
|
|
75
|
+
* @generated from field: bool is_writable = 2;
|
|
76
|
+
*/
|
|
77
|
+
isWritable?: boolean;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Describes the message capabilities.blockchain.solana.v1alpha.AccountMeta.
|
|
81
|
+
* Use `create(AccountMetaSchema)` to create a new message.
|
|
82
|
+
*/
|
|
83
|
+
export declare const AccountMetaSchema: GenMessage<AccountMeta, {
|
|
84
|
+
jsonType: AccountMetaJson;
|
|
85
|
+
}>;
|
|
86
|
+
/**
|
|
87
|
+
* @generated from message capabilities.blockchain.solana.v1alpha.WriteReportRequest
|
|
88
|
+
*/
|
|
89
|
+
export type WriteReportRequest = Message<'capabilities.blockchain.solana.v1alpha.WriteReportRequest'> & {
|
|
90
|
+
/**
|
|
91
|
+
* accounts that are required by the receiver to accept the report
|
|
92
|
+
*
|
|
93
|
+
* @generated from field: repeated capabilities.blockchain.solana.v1alpha.AccountMeta remaining_accounts = 1;
|
|
94
|
+
*/
|
|
95
|
+
remainingAccounts: AccountMeta[];
|
|
96
|
+
/**
|
|
97
|
+
* 32 bytes receiver
|
|
98
|
+
*
|
|
99
|
+
* @generated from field: bytes receiver = 2;
|
|
100
|
+
*/
|
|
101
|
+
receiver: Uint8Array;
|
|
102
|
+
/**
|
|
103
|
+
* @generated from field: optional capabilities.blockchain.solana.v1alpha.ComputeConfig compute_config = 3;
|
|
104
|
+
*/
|
|
105
|
+
computeConfig?: ComputeConfig;
|
|
106
|
+
/**
|
|
107
|
+
* @generated from field: sdk.v1alpha.ReportResponse report = 4;
|
|
108
|
+
*/
|
|
109
|
+
report?: ReportResponse;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* @generated from message capabilities.blockchain.solana.v1alpha.WriteReportRequest
|
|
113
|
+
*/
|
|
114
|
+
export type WriteReportRequestJson = {
|
|
115
|
+
/**
|
|
116
|
+
* accounts that are required by the receiver to accept the report
|
|
117
|
+
*
|
|
118
|
+
* @generated from field: repeated capabilities.blockchain.solana.v1alpha.AccountMeta remaining_accounts = 1;
|
|
119
|
+
*/
|
|
120
|
+
remainingAccounts?: AccountMetaJson[];
|
|
121
|
+
/**
|
|
122
|
+
* 32 bytes receiver
|
|
123
|
+
*
|
|
124
|
+
* @generated from field: bytes receiver = 2;
|
|
125
|
+
*/
|
|
126
|
+
receiver?: string;
|
|
127
|
+
/**
|
|
128
|
+
* @generated from field: optional capabilities.blockchain.solana.v1alpha.ComputeConfig compute_config = 3;
|
|
129
|
+
*/
|
|
130
|
+
computeConfig?: ComputeConfigJson;
|
|
131
|
+
/**
|
|
132
|
+
* @generated from field: sdk.v1alpha.ReportResponse report = 4;
|
|
133
|
+
*/
|
|
134
|
+
report?: ReportResponseJson;
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Describes the message capabilities.blockchain.solana.v1alpha.WriteReportRequest.
|
|
138
|
+
* Use `create(WriteReportRequestSchema)` to create a new message.
|
|
139
|
+
*/
|
|
140
|
+
export declare const WriteReportRequestSchema: GenMessage<WriteReportRequest, {
|
|
141
|
+
jsonType: WriteReportRequestJson;
|
|
142
|
+
}>;
|
|
143
|
+
/**
|
|
144
|
+
* @generated from message capabilities.blockchain.solana.v1alpha.WriteReportReply
|
|
145
|
+
*/
|
|
146
|
+
export type WriteReportReply = Message<'capabilities.blockchain.solana.v1alpha.WriteReportReply'> & {
|
|
147
|
+
/**
|
|
148
|
+
* @generated from field: capabilities.blockchain.solana.v1alpha.TxStatus tx_status = 1;
|
|
149
|
+
*/
|
|
150
|
+
txStatus: TxStatus;
|
|
151
|
+
/**
|
|
152
|
+
* @generated from field: optional capabilities.blockchain.solana.v1alpha.ReceiverContractExecutionStatus receiver_contract_execution_status = 2;
|
|
153
|
+
*/
|
|
154
|
+
receiverContractExecutionStatus?: ReceiverContractExecutionStatus;
|
|
155
|
+
/**
|
|
156
|
+
* @generated from field: optional bytes tx_signature = 3;
|
|
157
|
+
*/
|
|
158
|
+
txSignature?: Uint8Array;
|
|
159
|
+
/**
|
|
160
|
+
* @generated from field: optional uint64 transaction_fee = 4 [jstype = JS_NORMAL];
|
|
161
|
+
*/
|
|
162
|
+
transactionFee?: bigint;
|
|
163
|
+
/**
|
|
164
|
+
* @generated from field: optional string error_message = 5;
|
|
165
|
+
*/
|
|
166
|
+
errorMessage?: string;
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* @generated from message capabilities.blockchain.solana.v1alpha.WriteReportReply
|
|
170
|
+
*/
|
|
171
|
+
export type WriteReportReplyJson = {
|
|
172
|
+
/**
|
|
173
|
+
* @generated from field: capabilities.blockchain.solana.v1alpha.TxStatus tx_status = 1;
|
|
174
|
+
*/
|
|
175
|
+
txStatus?: TxStatusJson;
|
|
176
|
+
/**
|
|
177
|
+
* @generated from field: optional capabilities.blockchain.solana.v1alpha.ReceiverContractExecutionStatus receiver_contract_execution_status = 2;
|
|
178
|
+
*/
|
|
179
|
+
receiverContractExecutionStatus?: ReceiverContractExecutionStatusJson;
|
|
180
|
+
/**
|
|
181
|
+
* @generated from field: optional bytes tx_signature = 3;
|
|
182
|
+
*/
|
|
183
|
+
txSignature?: string;
|
|
184
|
+
/**
|
|
185
|
+
* @generated from field: optional uint64 transaction_fee = 4 [jstype = JS_NORMAL];
|
|
186
|
+
*/
|
|
187
|
+
transactionFee?: string;
|
|
188
|
+
/**
|
|
189
|
+
* @generated from field: optional string error_message = 5;
|
|
190
|
+
*/
|
|
191
|
+
errorMessage?: string;
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* Describes the message capabilities.blockchain.solana.v1alpha.WriteReportReply.
|
|
195
|
+
* Use `create(WriteReportReplySchema)` to create a new message.
|
|
196
|
+
*/
|
|
197
|
+
export declare const WriteReportReplySchema: GenMessage<WriteReportReply, {
|
|
198
|
+
jsonType: WriteReportReplyJson;
|
|
199
|
+
}>;
|
|
200
|
+
/**
|
|
201
|
+
* Transaction execution status returned by submitters/simulations.
|
|
202
|
+
*
|
|
203
|
+
* @generated from enum capabilities.blockchain.solana.v1alpha.TxStatus
|
|
204
|
+
*/
|
|
205
|
+
export declare enum TxStatus {
|
|
206
|
+
/**
|
|
207
|
+
* unrecoverable failure
|
|
208
|
+
*
|
|
209
|
+
* @generated from enum value: TX_STATUS_FATAL = 0;
|
|
210
|
+
*/
|
|
211
|
+
FATAL = 0,
|
|
212
|
+
/**
|
|
213
|
+
* not executed / dropped
|
|
214
|
+
*
|
|
215
|
+
* @generated from enum value: TX_STATUS_ABORTED = 1;
|
|
216
|
+
*/
|
|
217
|
+
ABORTED = 1,
|
|
218
|
+
/**
|
|
219
|
+
* executed successfully
|
|
220
|
+
*
|
|
221
|
+
* @generated from enum value: TX_STATUS_SUCCESS = 2;
|
|
222
|
+
*/
|
|
223
|
+
SUCCESS = 2
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Transaction execution status returned by submitters/simulations.
|
|
227
|
+
*
|
|
228
|
+
* @generated from enum capabilities.blockchain.solana.v1alpha.TxStatus
|
|
229
|
+
*/
|
|
230
|
+
export type TxStatusJson = 'TX_STATUS_FATAL' | 'TX_STATUS_ABORTED' | 'TX_STATUS_SUCCESS';
|
|
231
|
+
/**
|
|
232
|
+
* Describes the enum capabilities.blockchain.solana.v1alpha.TxStatus.
|
|
233
|
+
*/
|
|
234
|
+
export declare const TxStatusSchema: GenEnum<TxStatus, TxStatusJson>;
|
|
235
|
+
/**
|
|
236
|
+
* @generated from enum capabilities.blockchain.solana.v1alpha.ReceiverContractExecutionStatus
|
|
237
|
+
*/
|
|
238
|
+
export declare enum ReceiverContractExecutionStatus {
|
|
239
|
+
/**
|
|
240
|
+
* @generated from enum value: RECEIVER_CONTRACT_EXECUTION_STATUS_SUCCESS = 0;
|
|
241
|
+
*/
|
|
242
|
+
SUCCESS = 0,
|
|
243
|
+
/**
|
|
244
|
+
* @generated from enum value: RECEIVER_CONTRACT_EXECUTION_STATUS_REVERTED = 1;
|
|
245
|
+
*/
|
|
246
|
+
REVERTED = 1
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* @generated from enum capabilities.blockchain.solana.v1alpha.ReceiverContractExecutionStatus
|
|
250
|
+
*/
|
|
251
|
+
export type ReceiverContractExecutionStatusJson = 'RECEIVER_CONTRACT_EXECUTION_STATUS_SUCCESS' | 'RECEIVER_CONTRACT_EXECUTION_STATUS_REVERTED';
|
|
252
|
+
/**
|
|
253
|
+
* Describes the enum capabilities.blockchain.solana.v1alpha.ReceiverContractExecutionStatus.
|
|
254
|
+
*/
|
|
255
|
+
export declare const ReceiverContractExecutionStatusSchema: GenEnum<ReceiverContractExecutionStatus, ReceiverContractExecutionStatusJson>;
|
|
256
|
+
/**
|
|
257
|
+
* @generated from service capabilities.blockchain.solana.v1alpha.Client
|
|
258
|
+
*/
|
|
259
|
+
export declare const Client: GenService<{
|
|
260
|
+
/**
|
|
261
|
+
* @generated from rpc capabilities.blockchain.solana.v1alpha.Client.WriteReport
|
|
262
|
+
*/
|
|
263
|
+
writeReport: {
|
|
264
|
+
methodKind: 'unary';
|
|
265
|
+
input: typeof WriteReportRequestSchema;
|
|
266
|
+
output: typeof WriteReportReplySchema;
|
|
267
|
+
};
|
|
268
|
+
}>;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v2.6.3 with parameter "target=ts,import_extension=none,json_types=true,keep_empty_files=false"
|
|
2
|
+
// @generated from file capabilities/blockchain/solana/v1alpha/client.proto (package capabilities.blockchain.solana.v1alpha, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from '@bufbuild/protobuf/codegenv2';
|
|
5
|
+
import { file_sdk_v1alpha_sdk } from '../../../../sdk/v1alpha/sdk_pb';
|
|
6
|
+
import { file_tools_generator_v1alpha_cre_metadata } from '../../../../tools/generator/v1alpha/cre_metadata_pb';
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file capabilities/blockchain/solana/v1alpha/client.proto.
|
|
9
|
+
*/
|
|
10
|
+
export const file_capabilities_blockchain_solana_v1alpha_client =
|
|
11
|
+
/*@__PURE__*/
|
|
12
|
+
fileDesc('CjNjYXBhYmlsaXRpZXMvYmxvY2tjaGFpbi9zb2xhbmEvdjFhbHBoYS9jbGllbnQucHJvdG8SJmNhcGFiaWxpdGllcy5ibG9ja2NoYWluLnNvbGFuYS52MWFscGhhIiYKDUNvbXB1dGVDb25maWcSFQoNY29tcHV0ZV9saW1pdBgBIAEoDSI2CgtBY2NvdW50TWV0YRISCgpwdWJsaWNfa2V5GAEgASgMEhMKC2lzX3dyaXRhYmxlGAIgASgIIosCChJXcml0ZVJlcG9ydFJlcXVlc3QSTwoScmVtYWluaW5nX2FjY291bnRzGAEgAygLMjMuY2FwYWJpbGl0aWVzLmJsb2NrY2hhaW4uc29sYW5hLn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QoGQ2xpZW50EoMBCgtXcml0ZVJlcG9ydBI6LmNhcGFiaWxpdGllcy5ibG9ja2NoYWluLnNvbGFuYS52MWFscGhhLldyaXRlUmVwb3J0UmVxdWVzdBo4LmNhcGFiaWxpdGllcy5ibG9ja2NoYWluLnNvbGFuYS52MWFscGhhLldyaXRlUmVwb3J0UmVwbHkaRYK1GEEIARIMc29sYW5hQDEuMC4wGi8KDUNoYWluU2VsZWN0b3ISHhIcChoKDXNvbGFuYS1kZXZuZXQQ3++Mp6n8sfbjAUL0AQoqY29tLmNhcGFiaWxpdGllcy5ibG9ja2NoYWluLnNvbGFuYS52MWFscGhhQgtDbGllbnRQcm90b1ABogIDQ0JTqgImQ2FwYWJpbGl0aWVzLkJsb2NrY2hhaW4uU29sYW5hLlYxYWxwaGHKAiZDYXBhYmlsaXRpZXNcQmxvY2tjaGFpblxTb2xhbmFcVjFhbHBoYeICMkNhcGFiaWxpdGllc1xCbG9ja2NoYWluXFNvbGFuYVxWMWFscGhhXEdQQk1ldGFkYXRh6gIpQ2FwYWJpbGl0aWVzOjpCbG9ja2NoYWluOjpTb2xhbmE6OlYxYWxwaGFiBnByb3RvMw', [file_sdk_v1alpha_sdk, file_tools_generator_v1alpha_cre_metadata]);
|
|
13
|
+
/**
|
|
14
|
+
* Describes the message capabilities.blockchain.solana.v1alpha.ComputeConfig.
|
|
15
|
+
* Use `create(ComputeConfigSchema)` to create a new message.
|
|
16
|
+
*/
|
|
17
|
+
export const ComputeConfigSchema =
|
|
18
|
+
/*@__PURE__*/
|
|
19
|
+
messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 0);
|
|
20
|
+
/**
|
|
21
|
+
* Describes the message capabilities.blockchain.solana.v1alpha.AccountMeta.
|
|
22
|
+
* Use `create(AccountMetaSchema)` to create a new message.
|
|
23
|
+
*/
|
|
24
|
+
export const AccountMetaSchema =
|
|
25
|
+
/*@__PURE__*/
|
|
26
|
+
messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 1);
|
|
27
|
+
/**
|
|
28
|
+
* Describes the message capabilities.blockchain.solana.v1alpha.WriteReportRequest.
|
|
29
|
+
* Use `create(WriteReportRequestSchema)` to create a new message.
|
|
30
|
+
*/
|
|
31
|
+
export const WriteReportRequestSchema = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 2);
|
|
32
|
+
/**
|
|
33
|
+
* Describes the message capabilities.blockchain.solana.v1alpha.WriteReportReply.
|
|
34
|
+
* Use `create(WriteReportReplySchema)` to create a new message.
|
|
35
|
+
*/
|
|
36
|
+
export const WriteReportReplySchema = /*@__PURE__*/ messageDesc(file_capabilities_blockchain_solana_v1alpha_client, 3);
|
|
37
|
+
/**
|
|
38
|
+
* Transaction execution status returned by submitters/simulations.
|
|
39
|
+
*
|
|
40
|
+
* @generated from enum capabilities.blockchain.solana.v1alpha.TxStatus
|
|
41
|
+
*/
|
|
42
|
+
export var TxStatus;
|
|
43
|
+
(function (TxStatus) {
|
|
44
|
+
/**
|
|
45
|
+
* unrecoverable failure
|
|
46
|
+
*
|
|
47
|
+
* @generated from enum value: TX_STATUS_FATAL = 0;
|
|
48
|
+
*/
|
|
49
|
+
TxStatus[TxStatus["FATAL"] = 0] = "FATAL";
|
|
50
|
+
/**
|
|
51
|
+
* not executed / dropped
|
|
52
|
+
*
|
|
53
|
+
* @generated from enum value: TX_STATUS_ABORTED = 1;
|
|
54
|
+
*/
|
|
55
|
+
TxStatus[TxStatus["ABORTED"] = 1] = "ABORTED";
|
|
56
|
+
/**
|
|
57
|
+
* executed successfully
|
|
58
|
+
*
|
|
59
|
+
* @generated from enum value: TX_STATUS_SUCCESS = 2;
|
|
60
|
+
*/
|
|
61
|
+
TxStatus[TxStatus["SUCCESS"] = 2] = "SUCCESS";
|
|
62
|
+
})(TxStatus || (TxStatus = {}));
|
|
63
|
+
/**
|
|
64
|
+
* Describes the enum capabilities.blockchain.solana.v1alpha.TxStatus.
|
|
65
|
+
*/
|
|
66
|
+
export const TxStatusSchema =
|
|
67
|
+
/*@__PURE__*/
|
|
68
|
+
enumDesc(file_capabilities_blockchain_solana_v1alpha_client, 0);
|
|
69
|
+
/**
|
|
70
|
+
* @generated from enum capabilities.blockchain.solana.v1alpha.ReceiverContractExecutionStatus
|
|
71
|
+
*/
|
|
72
|
+
export var ReceiverContractExecutionStatus;
|
|
73
|
+
(function (ReceiverContractExecutionStatus) {
|
|
74
|
+
/**
|
|
75
|
+
* @generated from enum value: RECEIVER_CONTRACT_EXECUTION_STATUS_SUCCESS = 0;
|
|
76
|
+
*/
|
|
77
|
+
ReceiverContractExecutionStatus[ReceiverContractExecutionStatus["SUCCESS"] = 0] = "SUCCESS";
|
|
78
|
+
/**
|
|
79
|
+
* @generated from enum value: RECEIVER_CONTRACT_EXECUTION_STATUS_REVERTED = 1;
|
|
80
|
+
*/
|
|
81
|
+
ReceiverContractExecutionStatus[ReceiverContractExecutionStatus["REVERTED"] = 1] = "REVERTED";
|
|
82
|
+
})(ReceiverContractExecutionStatus || (ReceiverContractExecutionStatus = {}));
|
|
83
|
+
/**
|
|
84
|
+
* Describes the enum capabilities.blockchain.solana.v1alpha.ReceiverContractExecutionStatus.
|
|
85
|
+
*/
|
|
86
|
+
export const ReceiverContractExecutionStatusSchema = /*@__PURE__*/ enumDesc(file_capabilities_blockchain_solana_v1alpha_client, 1);
|
|
87
|
+
/**
|
|
88
|
+
* @generated from service capabilities.blockchain.solana.v1alpha.Client
|
|
89
|
+
*/
|
|
90
|
+
export const Client = /*@__PURE__*/ serviceDesc(file_capabilities_blockchain_solana_v1alpha_client, 0);
|
|
@@ -3,6 +3,7 @@ import { type BalanceAtReply, type BalanceAtRequest, type BalanceAtRequestJson,
|
|
|
3
3
|
import type { Runtime } from '../../../../../sdk';
|
|
4
4
|
import { Report } from '../../../../../sdk/report';
|
|
5
5
|
import type { Trigger } from '../../../../../sdk/utils/triggers/trigger-interface';
|
|
6
|
+
import type { CapabilityInput, NoExcess } from '../../../../../sdk/utils/types/no-excess';
|
|
6
7
|
export type WriteCreReportRequest = {
|
|
7
8
|
receiver: Uint8Array;
|
|
8
9
|
report?: Report;
|
|
@@ -32,8 +33,6 @@ export declare class ClientCapability {
|
|
|
32
33
|
static readonly CAPABILITY_VERSION = "1.0.0";
|
|
33
34
|
/** Available ChainSelector values */
|
|
34
35
|
static readonly SUPPORTED_CHAIN_SELECTORS: {
|
|
35
|
-
readonly 'adi-mainnet': 4059281736450291836n;
|
|
36
|
-
readonly 'adi-testnet': 9418205736192840573n;
|
|
37
36
|
readonly 'apechain-testnet-curtis': 9900119385908781505n;
|
|
38
37
|
readonly 'arc-testnet': 3034092155422581607n;
|
|
39
38
|
readonly 'avalanche-mainnet': 6433500567565415381n;
|
|
@@ -41,7 +40,6 @@ export declare class ClientCapability {
|
|
|
41
40
|
readonly 'binance_smart_chain-mainnet': 11344663589394136015n;
|
|
42
41
|
readonly 'binance_smart_chain-testnet': 13264668187771770619n;
|
|
43
42
|
readonly 'celo-mainnet': 1346049177634351622n;
|
|
44
|
-
readonly 'celo-sepolia': 3761762704474186180n;
|
|
45
43
|
readonly 'cronos-testnet': 2995292832068775165n;
|
|
46
44
|
readonly 'dtcc-testnet-andesite': 15513093881969820114n;
|
|
47
45
|
readonly 'ethereum-mainnet': 5009297550715157269n;
|
|
@@ -81,36 +79,35 @@ export declare class ClientCapability {
|
|
|
81
79
|
readonly 'polygon-mainnet': 4051577828743386545n;
|
|
82
80
|
readonly 'polygon-testnet-amoy': 16281711391670634445n;
|
|
83
81
|
readonly 'private-testnet-andesite': 6915682381028791124n;
|
|
84
|
-
readonly 'private-testnet-rhyolite': 604447335222770945n;
|
|
85
82
|
readonly 'sonic-mainnet': 1673871237479749969n;
|
|
86
83
|
readonly 'sonic-testnet': 1763698235108410440n;
|
|
87
84
|
readonly 'tac-testnet': 9488606126177218005n;
|
|
88
85
|
readonly 'xlayer-testnet': 10212741611335999305n;
|
|
89
86
|
};
|
|
90
87
|
constructor(ChainSelector: bigint);
|
|
91
|
-
callContract(runtime: Runtime<unknown>, input: CallContractRequest
|
|
88
|
+
callContract<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, CallContractRequest, CallContractRequestJson>): {
|
|
92
89
|
result: () => CallContractReply;
|
|
93
90
|
};
|
|
94
|
-
filterLogs(runtime: Runtime<unknown>, input: FilterLogsRequest
|
|
91
|
+
filterLogs<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, FilterLogsRequest, FilterLogsRequestJson>): {
|
|
95
92
|
result: () => FilterLogsReply;
|
|
96
93
|
};
|
|
97
|
-
balanceAt(runtime: Runtime<unknown>, input: BalanceAtRequest
|
|
94
|
+
balanceAt<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, BalanceAtRequest, BalanceAtRequestJson>): {
|
|
98
95
|
result: () => BalanceAtReply;
|
|
99
96
|
};
|
|
100
|
-
estimateGas(runtime: Runtime<unknown>, input: EstimateGasRequest
|
|
97
|
+
estimateGas<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, EstimateGasRequest, EstimateGasRequestJson>): {
|
|
101
98
|
result: () => EstimateGasReply;
|
|
102
99
|
};
|
|
103
|
-
getTransactionByHash(runtime: Runtime<unknown>, input: GetTransactionByHashRequest
|
|
100
|
+
getTransactionByHash<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, GetTransactionByHashRequest, GetTransactionByHashRequestJson>): {
|
|
104
101
|
result: () => GetTransactionByHashReply;
|
|
105
102
|
};
|
|
106
|
-
getTransactionReceipt(runtime: Runtime<unknown>, input: GetTransactionReceiptRequest
|
|
103
|
+
getTransactionReceipt<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, GetTransactionReceiptRequest, GetTransactionReceiptRequestJson>): {
|
|
107
104
|
result: () => GetTransactionReceiptReply;
|
|
108
105
|
};
|
|
109
|
-
headerByNumber(runtime: Runtime<unknown>, input: HeaderByNumberRequest
|
|
106
|
+
headerByNumber<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, HeaderByNumberRequest, HeaderByNumberRequestJson>): {
|
|
110
107
|
result: () => HeaderByNumberReply;
|
|
111
108
|
};
|
|
112
|
-
logTrigger(config: FilterLogTriggerRequestJson): ClientLogTrigger;
|
|
113
|
-
writeReport(runtime: Runtime<unknown>, input: WriteCreReportRequest
|
|
109
|
+
logTrigger<TConfig extends FilterLogTriggerRequestJson>(config: NoExcess<TConfig, FilterLogTriggerRequestJson>): ClientLogTrigger;
|
|
110
|
+
writeReport<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, WriteCreReportRequest, WriteCreReportRequestJson>): {
|
|
114
111
|
result: () => WriteReportReply;
|
|
115
112
|
};
|
|
116
113
|
}
|
|
@@ -42,8 +42,6 @@ export class ClientCapability {
|
|
|
42
42
|
static CAPABILITY_VERSION = '1.0.0';
|
|
43
43
|
/** Available ChainSelector values */
|
|
44
44
|
static SUPPORTED_CHAIN_SELECTORS = {
|
|
45
|
-
'adi-mainnet': 4059281736450291836n,
|
|
46
|
-
'adi-testnet': 9418205736192840573n,
|
|
47
45
|
'apechain-testnet-curtis': 9900119385908781505n,
|
|
48
46
|
'arc-testnet': 3034092155422581607n,
|
|
49
47
|
'avalanche-mainnet': 6433500567565415381n,
|
|
@@ -51,7 +49,6 @@ export class ClientCapability {
|
|
|
51
49
|
'binance_smart_chain-mainnet': 11344663589394136015n,
|
|
52
50
|
'binance_smart_chain-testnet': 13264668187771770619n,
|
|
53
51
|
'celo-mainnet': 1346049177634351622n,
|
|
54
|
-
'celo-sepolia': 3761762704474186180n,
|
|
55
52
|
'cronos-testnet': 2995292832068775165n,
|
|
56
53
|
'dtcc-testnet-andesite': 15513093881969820114n,
|
|
57
54
|
'ethereum-mainnet': 5009297550715157269n,
|
|
@@ -91,7 +88,6 @@ export class ClientCapability {
|
|
|
91
88
|
'polygon-mainnet': 4051577828743386545n,
|
|
92
89
|
'polygon-testnet-amoy': 16281711391670634445n,
|
|
93
90
|
'private-testnet-andesite': 6915682381028791124n,
|
|
94
|
-
'private-testnet-rhyolite': 604447335222770945n,
|
|
95
91
|
'sonic-mainnet': 1673871237479749969n,
|
|
96
92
|
'sonic-testnet': 1763698235108410440n,
|
|
97
93
|
'tac-testnet': 9488606126177218005n,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type AccountMeta, type AccountMetaJson, type ComputeConfig, type ComputeConfigJson, type WriteReportReply, type WriteReportRequest } from '../../../../../generated/capabilities/blockchain/solana/v1alpha/client_pb';
|
|
2
|
+
import type { Runtime } from '../../../../../sdk';
|
|
3
|
+
import { Report } from '../../../../../sdk/report';
|
|
4
|
+
import type { CapabilityInput } from '../../../../../sdk/utils/types/no-excess';
|
|
5
|
+
export type WriteCreReportRequest = {
|
|
6
|
+
remainingAccounts: AccountMeta[];
|
|
7
|
+
receiver: Uint8Array;
|
|
8
|
+
computeConfig?: ComputeConfig;
|
|
9
|
+
report?: Report;
|
|
10
|
+
$report: true;
|
|
11
|
+
};
|
|
12
|
+
export type WriteCreReportRequestJson = {
|
|
13
|
+
remainingAccounts: AccountMetaJson[];
|
|
14
|
+
receiver: string;
|
|
15
|
+
computeConfig?: ComputeConfigJson;
|
|
16
|
+
report?: Report;
|
|
17
|
+
};
|
|
18
|
+
export declare function x_generatedCodeOnly_wrap_WriteCreReportRequest(input: WriteReportRequest): WriteCreReportRequest;
|
|
19
|
+
export declare function createWriteCreReportRequest(input: WriteCreReportRequestJson): WriteCreReportRequest;
|
|
20
|
+
export declare function x_generatedCodeOnly_unwrap_WriteCreReportRequest(input: WriteCreReportRequest): WriteReportRequest;
|
|
21
|
+
/**
|
|
22
|
+
* Client Capability
|
|
23
|
+
*
|
|
24
|
+
* Capability ID: solana@1.0.0
|
|
25
|
+
* Capability Name: solana
|
|
26
|
+
* Capability Version: 1.0.0
|
|
27
|
+
*/
|
|
28
|
+
export declare class ClientCapability {
|
|
29
|
+
private readonly ChainSelector;
|
|
30
|
+
/** The capability ID for this service */
|
|
31
|
+
static readonly CAPABILITY_ID = "solana@1.0.0";
|
|
32
|
+
static readonly CAPABILITY_NAME = "solana";
|
|
33
|
+
static readonly CAPABILITY_VERSION = "1.0.0";
|
|
34
|
+
/** Available ChainSelector values */
|
|
35
|
+
static readonly SUPPORTED_CHAIN_SELECTORS: {
|
|
36
|
+
readonly 'solana-devnet': 16423721717087811551n;
|
|
37
|
+
};
|
|
38
|
+
constructor(ChainSelector: bigint);
|
|
39
|
+
writeReport<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, WriteCreReportRequest, WriteCreReportRequestJson>): {
|
|
40
|
+
result: () => WriteReportReply;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { create, fromJson } from '@bufbuild/protobuf';
|
|
2
|
+
import { AccountMetaSchema, ComputeConfigSchema, WriteReportReplySchema, WriteReportRequestSchema, } from '../../../../../generated/capabilities/blockchain/solana/v1alpha/client_pb';
|
|
3
|
+
import { ReportResponseSchema, } from '../../../../../generated/sdk/v1alpha/sdk_pb';
|
|
4
|
+
import { Report } from '../../../../../sdk/report';
|
|
5
|
+
import { hexToBytes } from '../../../../../sdk/utils/hex-utils';
|
|
6
|
+
export function x_generatedCodeOnly_wrap_WriteCreReportRequest(input) {
|
|
7
|
+
return {
|
|
8
|
+
remainingAccounts: input.remainingAccounts,
|
|
9
|
+
receiver: input.receiver,
|
|
10
|
+
computeConfig: input.computeConfig,
|
|
11
|
+
report: input.report !== undefined ? new Report(input.report) : undefined,
|
|
12
|
+
$report: true,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export function createWriteCreReportRequest(input) {
|
|
16
|
+
return {
|
|
17
|
+
remainingAccounts: (input.remainingAccounts ?? []).map((v) => fromJson(AccountMetaSchema, v)),
|
|
18
|
+
receiver: hexToBytes(input.receiver),
|
|
19
|
+
computeConfig: input.computeConfig !== undefined
|
|
20
|
+
? fromJson(ComputeConfigSchema, input.computeConfig)
|
|
21
|
+
: undefined,
|
|
22
|
+
report: input.report,
|
|
23
|
+
$report: true,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export function x_generatedCodeOnly_unwrap_WriteCreReportRequest(input) {
|
|
27
|
+
return create(WriteReportRequestSchema, {
|
|
28
|
+
remainingAccounts: input.remainingAccounts,
|
|
29
|
+
receiver: input.receiver,
|
|
30
|
+
computeConfig: input.computeConfig,
|
|
31
|
+
report: input.report !== undefined ? input.report.x_generatedCodeOnly_unwrap() : undefined,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Client Capability
|
|
36
|
+
*
|
|
37
|
+
* Capability ID: solana@1.0.0
|
|
38
|
+
* Capability Name: solana
|
|
39
|
+
* Capability Version: 1.0.0
|
|
40
|
+
*/
|
|
41
|
+
export class ClientCapability {
|
|
42
|
+
ChainSelector;
|
|
43
|
+
/** The capability ID for this service */
|
|
44
|
+
static CAPABILITY_ID = 'solana@1.0.0';
|
|
45
|
+
static CAPABILITY_NAME = 'solana';
|
|
46
|
+
static CAPABILITY_VERSION = '1.0.0';
|
|
47
|
+
/** Available ChainSelector values */
|
|
48
|
+
static SUPPORTED_CHAIN_SELECTORS = {
|
|
49
|
+
'solana-devnet': 16423721717087811551n,
|
|
50
|
+
};
|
|
51
|
+
constructor(ChainSelector) {
|
|
52
|
+
this.ChainSelector = ChainSelector;
|
|
53
|
+
}
|
|
54
|
+
writeReport(runtime, input) {
|
|
55
|
+
// Handle input conversion - unwrap if it's a wrapped type, convert from JSON if needed
|
|
56
|
+
let payload;
|
|
57
|
+
// Check if it's a wrapped type by looking for the $report property
|
|
58
|
+
if (input.$report) {
|
|
59
|
+
// It's a wrapped type, unwrap it
|
|
60
|
+
payload = x_generatedCodeOnly_unwrap_WriteCreReportRequest(input);
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
// It's wrapped JSON, convert using create function
|
|
64
|
+
payload = x_generatedCodeOnly_unwrap_WriteCreReportRequest(createWriteCreReportRequest(input));
|
|
65
|
+
}
|
|
66
|
+
// Include all labels in capability ID for routing when specified
|
|
67
|
+
const capabilityId = `${ClientCapability.CAPABILITY_NAME}:ChainSelector:${this.ChainSelector}@${ClientCapability.CAPABILITY_VERSION}`;
|
|
68
|
+
const capabilityResponse = runtime.callCapability({
|
|
69
|
+
capabilityId,
|
|
70
|
+
method: 'WriteReport',
|
|
71
|
+
payload,
|
|
72
|
+
inputSchema: WriteReportRequestSchema,
|
|
73
|
+
outputSchema: WriteReportReplySchema,
|
|
74
|
+
});
|
|
75
|
+
return {
|
|
76
|
+
result: () => {
|
|
77
|
+
const result = capabilityResponse.result();
|
|
78
|
+
return result;
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -2,6 +2,7 @@ import { type ReportRequest, type ReportRequestJson, type SimpleConsensusInputs,
|
|
|
2
2
|
import { type Value } from '../../../../../generated/values/v1/values_pb';
|
|
3
3
|
import type { Runtime } from '../../../../../sdk';
|
|
4
4
|
import { Report } from '../../../../../sdk/report';
|
|
5
|
+
import type { CapabilityInput } from '../../../../../sdk/utils/types/no-excess';
|
|
5
6
|
/**
|
|
6
7
|
* Consensus Capability
|
|
7
8
|
*
|
|
@@ -14,10 +15,10 @@ export declare class ConsensusCapability {
|
|
|
14
15
|
static readonly CAPABILITY_ID = "consensus@1.0.0-alpha";
|
|
15
16
|
static readonly CAPABILITY_NAME = "consensus";
|
|
16
17
|
static readonly CAPABILITY_VERSION = "1.0.0-alpha";
|
|
17
|
-
simple(runtime: Runtime<unknown>, input: SimpleConsensusInputs
|
|
18
|
+
simple<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, SimpleConsensusInputs, SimpleConsensusInputsJson>): {
|
|
18
19
|
result: () => Value;
|
|
19
20
|
};
|
|
20
|
-
report(runtime: Runtime<unknown>, input: ReportRequest
|
|
21
|
+
report<TInput>(runtime: Runtime<unknown>, input: CapabilityInput<TInput, ReportRequest, ReportRequestJson>): {
|
|
21
22
|
result: () => Report;
|
|
22
23
|
};
|
|
23
24
|
}
|