@hashgraph/hedera-agent-kit 3.8.2-rc.1
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/LICENCE +190 -0
- package/README.md +310 -0
- package/dist/cjs/elizaos/index.d.ts +354 -0
- package/dist/cjs/elizaos/index.js +48415 -0
- package/dist/cjs/elizaos/index.js.map +1 -0
- package/dist/cjs/index.d.ts +1775 -0
- package/dist/cjs/index.js +5719 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/esm/elizaos/index.d.mts +354 -0
- package/dist/esm/elizaos/index.mjs +4999 -0
- package/dist/esm/elizaos/index.mjs.map +1 -0
- package/dist/esm/index.d.mts +1775 -0
- package/dist/esm/index.mjs +5652 -0
- package/dist/esm/index.mjs.map +1 -0
- package/package.json +93 -0
|
@@ -0,0 +1,1775 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
import z$1, { z } from 'zod';
|
|
3
|
+
import * as _hashgraph_sdk from '@hashgraph/sdk';
|
|
4
|
+
import { Client, Transaction, AccountId, TokenId, TopicId, ScheduleId, PublicKey, LedgerId, TokenSupplyType, TokenType, NftId, TokenNftAllowance, Hbar, Key, HbarAllowance, TokenAllowance as TokenAllowance$1, Timestamp, TransferTransaction, TokenAirdropTransaction, TokenUpdateTransaction, TopicCreateTransaction, TopicUpdateTransaction, TokenDissociateTransaction, AccountDeleteTransaction, TokenDeleteTransaction, TopicDeleteTransaction, ScheduleSignTransaction, ScheduleDeleteTransaction, TokenAssociateTransaction, AccountAllowanceApproveTransaction, AccountAllowanceDeleteTransaction } from '@hashgraph/sdk';
|
|
5
|
+
import Long from 'long';
|
|
6
|
+
import { StructuredTool, BaseToolkit, StructuredToolInterface } from '@langchain/core/tools';
|
|
7
|
+
import { CallbackManagerForToolRun } from '@langchain/core/callbacks/manager';
|
|
8
|
+
import { RunnableConfig } from '@langchain/core/runnables';
|
|
9
|
+
import { BaseMessage } from '@langchain/core/messages';
|
|
10
|
+
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
11
|
+
import { Tool as Tool$1, LanguageModelMiddleware } from 'ai';
|
|
12
|
+
|
|
13
|
+
type TopicMessagesQueryParams = {
|
|
14
|
+
topicId: string;
|
|
15
|
+
lowerTimestamp: string;
|
|
16
|
+
upperTimestamp: string;
|
|
17
|
+
limit: number;
|
|
18
|
+
};
|
|
19
|
+
type TopicMessage = {
|
|
20
|
+
topicId: string;
|
|
21
|
+
message: string;
|
|
22
|
+
consensus_timestamp: string;
|
|
23
|
+
};
|
|
24
|
+
type TopicMessagesResponse = {
|
|
25
|
+
topicId: string;
|
|
26
|
+
messages: TopicMessage[];
|
|
27
|
+
};
|
|
28
|
+
type TopicInfo = {
|
|
29
|
+
topic_id?: string;
|
|
30
|
+
memo?: string | null;
|
|
31
|
+
admin_key?: {
|
|
32
|
+
_type?: string;
|
|
33
|
+
key?: string;
|
|
34
|
+
} | null;
|
|
35
|
+
submit_key?: {
|
|
36
|
+
_type?: string;
|
|
37
|
+
key?: string;
|
|
38
|
+
} | null;
|
|
39
|
+
auto_renew_account?: string | null;
|
|
40
|
+
auto_renew_period?: number | null;
|
|
41
|
+
created_timestamp?: string | null;
|
|
42
|
+
deleted?: boolean;
|
|
43
|
+
sequence_number?: number | null;
|
|
44
|
+
running_hash?: string | null;
|
|
45
|
+
running_hash_version?: number | null;
|
|
46
|
+
};
|
|
47
|
+
type TokenBalance = {
|
|
48
|
+
automatic_association: boolean;
|
|
49
|
+
created_timestamp: string;
|
|
50
|
+
token_id: string;
|
|
51
|
+
freeze_status: string;
|
|
52
|
+
kyc_status: string;
|
|
53
|
+
balance: number;
|
|
54
|
+
decimals: number;
|
|
55
|
+
symbol: string;
|
|
56
|
+
};
|
|
57
|
+
type TokenBalancesResponse = {
|
|
58
|
+
tokens: TokenBalance[];
|
|
59
|
+
};
|
|
60
|
+
type NftBalance = {
|
|
61
|
+
account_id: string;
|
|
62
|
+
created_timestamp: string;
|
|
63
|
+
delegating_spender: string | null;
|
|
64
|
+
deleted: boolean;
|
|
65
|
+
metadata: string;
|
|
66
|
+
modified_timestamp: string;
|
|
67
|
+
serial_number: number;
|
|
68
|
+
spender: string | null;
|
|
69
|
+
token_id: string;
|
|
70
|
+
};
|
|
71
|
+
type NftBalanceResponse = {
|
|
72
|
+
nfts: NftBalance[];
|
|
73
|
+
links: {
|
|
74
|
+
next: string | null;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
type AccountResponse = {
|
|
78
|
+
accountId: string;
|
|
79
|
+
accountPublicKey: string;
|
|
80
|
+
balance: AccountBalanceResponse;
|
|
81
|
+
evmAddress: string;
|
|
82
|
+
};
|
|
83
|
+
type AccountBalanceResponse = {
|
|
84
|
+
balance: BigNumber;
|
|
85
|
+
timestamp: string;
|
|
86
|
+
tokens: TokenBalance[];
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* This type matches responses from Hedera Mirror Node API
|
|
90
|
+
*/
|
|
91
|
+
type TokenInfo = {
|
|
92
|
+
token_id?: string;
|
|
93
|
+
name: string;
|
|
94
|
+
symbol: string;
|
|
95
|
+
type?: string;
|
|
96
|
+
memo?: string;
|
|
97
|
+
decimals: string;
|
|
98
|
+
initial_supply?: string;
|
|
99
|
+
total_supply?: string;
|
|
100
|
+
max_supply?: string;
|
|
101
|
+
supply_type?: string;
|
|
102
|
+
treasury_account_id?: string;
|
|
103
|
+
auto_renew_account?: string;
|
|
104
|
+
auto_renew_period?: number;
|
|
105
|
+
deleted: boolean;
|
|
106
|
+
freeze_default?: boolean;
|
|
107
|
+
pause_status?: string;
|
|
108
|
+
created_timestamp?: string;
|
|
109
|
+
modified_timestamp?: string;
|
|
110
|
+
expiry_timestamp?: number;
|
|
111
|
+
admin_key?: {
|
|
112
|
+
_type: string;
|
|
113
|
+
key: string;
|
|
114
|
+
} | null;
|
|
115
|
+
supply_key?: {
|
|
116
|
+
_type: string;
|
|
117
|
+
key: string;
|
|
118
|
+
} | null;
|
|
119
|
+
kyc_key?: {
|
|
120
|
+
_type: string;
|
|
121
|
+
key: string;
|
|
122
|
+
} | null;
|
|
123
|
+
freeze_key?: {
|
|
124
|
+
_type: string;
|
|
125
|
+
key: string;
|
|
126
|
+
} | null;
|
|
127
|
+
wipe_key?: {
|
|
128
|
+
_type: string;
|
|
129
|
+
key: string;
|
|
130
|
+
} | null;
|
|
131
|
+
pause_key?: {
|
|
132
|
+
_type: string;
|
|
133
|
+
key: string;
|
|
134
|
+
} | null;
|
|
135
|
+
fee_schedule_key?: {
|
|
136
|
+
_type: string;
|
|
137
|
+
key: string;
|
|
138
|
+
} | null;
|
|
139
|
+
metadata_key?: {
|
|
140
|
+
_type: string;
|
|
141
|
+
key: string;
|
|
142
|
+
} | null;
|
|
143
|
+
metadata?: string;
|
|
144
|
+
custom_fees?: {
|
|
145
|
+
created_timestamp: string;
|
|
146
|
+
fixed_fees: any[];
|
|
147
|
+
fractional_fees: any[];
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
type TransferData = {
|
|
151
|
+
account: string;
|
|
152
|
+
amount: number;
|
|
153
|
+
is_approval: boolean;
|
|
154
|
+
};
|
|
155
|
+
type TransactionData = {
|
|
156
|
+
batch_key: string | null;
|
|
157
|
+
bytes: string | null;
|
|
158
|
+
charged_tx_fee: number;
|
|
159
|
+
consensus_timestamp: string;
|
|
160
|
+
entity_id: string;
|
|
161
|
+
max_fee: string;
|
|
162
|
+
max_custom_fees: any[];
|
|
163
|
+
memo_base64: string;
|
|
164
|
+
name: string;
|
|
165
|
+
nft_transfers: any[];
|
|
166
|
+
node: string;
|
|
167
|
+
nonce: number;
|
|
168
|
+
parent_consensus_timestamp: string | null;
|
|
169
|
+
result: string;
|
|
170
|
+
scheduled: boolean;
|
|
171
|
+
staking_reward_transfers: any[];
|
|
172
|
+
token_transfers: any[];
|
|
173
|
+
transaction_hash: string;
|
|
174
|
+
transaction_id: string;
|
|
175
|
+
transfers: TransferData[];
|
|
176
|
+
valid_duration_seconds: string;
|
|
177
|
+
valid_start_timestamp: string;
|
|
178
|
+
};
|
|
179
|
+
type TransactionDetailsResponse = {
|
|
180
|
+
transactions: TransactionData[];
|
|
181
|
+
};
|
|
182
|
+
interface ContractInfo {
|
|
183
|
+
admin_key?: {
|
|
184
|
+
description?: string;
|
|
185
|
+
_type?: string;
|
|
186
|
+
example?: string;
|
|
187
|
+
key?: string;
|
|
188
|
+
} | null;
|
|
189
|
+
auto_renew_account?: string | null;
|
|
190
|
+
auto_renew_period?: number | null;
|
|
191
|
+
contract_id?: string | null;
|
|
192
|
+
created_timestamp?: string | null;
|
|
193
|
+
deleted?: boolean;
|
|
194
|
+
evm_address?: string;
|
|
195
|
+
expiration_timestamp?: string | null;
|
|
196
|
+
file_id?: string | null;
|
|
197
|
+
max_automatic_token_associations?: number | null;
|
|
198
|
+
memo?: string;
|
|
199
|
+
nonce?: number | null;
|
|
200
|
+
obtainer_id?: string | null;
|
|
201
|
+
permanent_removal?: boolean | null;
|
|
202
|
+
proxy_account_id?: string | null;
|
|
203
|
+
timestamp?: {
|
|
204
|
+
description?: string;
|
|
205
|
+
from: string;
|
|
206
|
+
to?: string | null;
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
type ExchangeRate = {
|
|
210
|
+
hbar_equivalent: number;
|
|
211
|
+
cent_equivalent: number;
|
|
212
|
+
expiration_time: number;
|
|
213
|
+
};
|
|
214
|
+
type ExchangeRateResponse = {
|
|
215
|
+
current_rate: ExchangeRate;
|
|
216
|
+
next_rate: ExchangeRate;
|
|
217
|
+
timestamp: string;
|
|
218
|
+
};
|
|
219
|
+
interface TokenAirdropsResponse {
|
|
220
|
+
airdrops: TokenAirdrop[];
|
|
221
|
+
links: Links;
|
|
222
|
+
}
|
|
223
|
+
interface TokenAirdrop {
|
|
224
|
+
amount: number;
|
|
225
|
+
receiver_id: string | null;
|
|
226
|
+
sender_id: string | null;
|
|
227
|
+
serial_number: number | null;
|
|
228
|
+
timestamp: TimestampRange;
|
|
229
|
+
token_id: string | null;
|
|
230
|
+
}
|
|
231
|
+
interface TimestampRange {
|
|
232
|
+
from: string;
|
|
233
|
+
to: string | null;
|
|
234
|
+
}
|
|
235
|
+
interface Links {
|
|
236
|
+
next: string | null;
|
|
237
|
+
}
|
|
238
|
+
interface TokenAllowanceResponse {
|
|
239
|
+
allowances: TokenAllowance[];
|
|
240
|
+
links: {
|
|
241
|
+
next: string | null;
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
interface TokenAllowance {
|
|
245
|
+
amount: number;
|
|
246
|
+
amount_granted: number;
|
|
247
|
+
owner: string;
|
|
248
|
+
spender: string;
|
|
249
|
+
timestamp: {
|
|
250
|
+
from: string;
|
|
251
|
+
to: string | null;
|
|
252
|
+
};
|
|
253
|
+
token_id: string;
|
|
254
|
+
}
|
|
255
|
+
interface ScheduledTransactionDetailsResponse {
|
|
256
|
+
admin_key?: {
|
|
257
|
+
_type?: string;
|
|
258
|
+
key?: string;
|
|
259
|
+
} | null;
|
|
260
|
+
deleted: boolean;
|
|
261
|
+
consensus_timestamp: string;
|
|
262
|
+
creator_account_id: string;
|
|
263
|
+
executed_timestamp: string | null;
|
|
264
|
+
expiration_time: string | null;
|
|
265
|
+
memo: string;
|
|
266
|
+
payer_account_id: string;
|
|
267
|
+
schedule_id: string;
|
|
268
|
+
signatures: Array<{
|
|
269
|
+
consensus_timestamp: string;
|
|
270
|
+
public_key_prefix: string;
|
|
271
|
+
signature: string;
|
|
272
|
+
type: string;
|
|
273
|
+
}>;
|
|
274
|
+
transaction_body: string;
|
|
275
|
+
wait_for_expiry: boolean;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
interface IHederaMirrornodeService {
|
|
279
|
+
getAccount(accountId: string): Promise<AccountResponse>;
|
|
280
|
+
getAccountHbarBalance(accountId: string): Promise<BigNumber>;
|
|
281
|
+
getAccountTokenBalances(accountId: string, tokenId?: string): Promise<TokenBalancesResponse>;
|
|
282
|
+
getTopicMessages(queryParams: TopicMessagesQueryParams): Promise<TopicMessagesResponse>;
|
|
283
|
+
getTopicInfo(topicId: string): Promise<TopicInfo>;
|
|
284
|
+
getTokenInfo(tokenId: string): Promise<TokenInfo>;
|
|
285
|
+
getContractInfo(contractId: string): Promise<ContractInfo>;
|
|
286
|
+
getTransactionRecord(transactionId: string, nonce?: number): Promise<TransactionDetailsResponse>;
|
|
287
|
+
getExchangeRate(timestamp?: string): Promise<ExchangeRateResponse>;
|
|
288
|
+
getPendingAirdrops(accountId: string): Promise<TokenAirdropsResponse>;
|
|
289
|
+
getOutstandingAirdrops(accountId: string): Promise<TokenAirdropsResponse>;
|
|
290
|
+
getTokenAllowances(ownerAccountId: string, spenderAccountId: string): Promise<TokenAllowanceResponse>;
|
|
291
|
+
getAccountNfts(accountId: string): Promise<NftBalanceResponse>;
|
|
292
|
+
getScheduledTransactionDetails(scheduleId: string): Promise<ScheduledTransactionDetailsResponse>;
|
|
293
|
+
getBaseUrl(): string;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
type Tool = {
|
|
297
|
+
method: string;
|
|
298
|
+
name: string;
|
|
299
|
+
description: string;
|
|
300
|
+
parameters: z.ZodObject<any, any>;
|
|
301
|
+
execute: (client: Client, context: Context, params: any) => Promise<any>;
|
|
302
|
+
outputParser?: (rawOutput: string) => {
|
|
303
|
+
raw: any;
|
|
304
|
+
humanMessage: string;
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
interface Plugin {
|
|
309
|
+
name: string;
|
|
310
|
+
version?: string;
|
|
311
|
+
description?: string;
|
|
312
|
+
tools: (context: Context) => Tool[];
|
|
313
|
+
}
|
|
314
|
+
declare class PluginRegistry {
|
|
315
|
+
private plugins;
|
|
316
|
+
register(plugin: Plugin): void;
|
|
317
|
+
getPlugins(): Plugin[];
|
|
318
|
+
private loadCorePlugins;
|
|
319
|
+
private loadPlugins;
|
|
320
|
+
getTools(context: Context): Tool[];
|
|
321
|
+
clear(): void;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
declare enum AgentMode {
|
|
325
|
+
AUTONOMOUS = "autonomous",
|
|
326
|
+
RETURN_BYTES = "returnBytes"
|
|
327
|
+
}
|
|
328
|
+
type Context = {
|
|
329
|
+
accountId?: string;
|
|
330
|
+
accountPublicKey?: string;
|
|
331
|
+
mode?: AgentMode;
|
|
332
|
+
mirrornodeService?: IHederaMirrornodeService;
|
|
333
|
+
};
|
|
334
|
+
type Configuration = {
|
|
335
|
+
tools?: string[];
|
|
336
|
+
plugins?: Plugin[];
|
|
337
|
+
context?: Context;
|
|
338
|
+
mcpServers?: HederaMCPServer[];
|
|
339
|
+
};
|
|
340
|
+
declare enum HederaMCPServer {
|
|
341
|
+
HEDERION_MCP_MAINNET = "hederion-mcp-mainnet",
|
|
342
|
+
HGRAPH_MCP_MAINNET = "hgraph-mcp-mainnet"
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
declare class HederaAgentAPI {
|
|
346
|
+
client: Client;
|
|
347
|
+
context: Context;
|
|
348
|
+
tools: Tool[];
|
|
349
|
+
constructor(client: Client, context?: Context, tools?: Tool[]);
|
|
350
|
+
run(method: string, arg: unknown): Promise<string>;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
interface TxModeStrategy {
|
|
354
|
+
handle<T extends Transaction>(tx: T, client: Client, context: Context, postProcess?: (response: RawTransactionResponse) => unknown): Promise<unknown>;
|
|
355
|
+
}
|
|
356
|
+
interface RawTransactionResponse {
|
|
357
|
+
status: string;
|
|
358
|
+
accountId: AccountId | null;
|
|
359
|
+
tokenId: TokenId | null;
|
|
360
|
+
transactionId: string;
|
|
361
|
+
topicId: TopicId | null;
|
|
362
|
+
scheduleId: ScheduleId | null;
|
|
363
|
+
}
|
|
364
|
+
interface ExecuteStrategyResult {
|
|
365
|
+
raw: RawTransactionResponse;
|
|
366
|
+
humanMessage: string;
|
|
367
|
+
}
|
|
368
|
+
declare class ExecuteStrategy implements TxModeStrategy {
|
|
369
|
+
defaultPostProcess(response: RawTransactionResponse): string;
|
|
370
|
+
handle(tx: Transaction, client: Client, _context: Context, postProcess?: (response: RawTransactionResponse) => string): Promise<{
|
|
371
|
+
raw: RawTransactionResponse;
|
|
372
|
+
humanMessage: string;
|
|
373
|
+
}>;
|
|
374
|
+
}
|
|
375
|
+
declare const handleTransaction: (tx: Transaction, client: Client, context: Context, postProcess?: (response: RawTransactionResponse) => string) => Promise<{
|
|
376
|
+
bytes: Uint8Array<ArrayBufferLike>;
|
|
377
|
+
} | {
|
|
378
|
+
raw: RawTransactionResponse;
|
|
379
|
+
humanMessage: string;
|
|
380
|
+
}>;
|
|
381
|
+
|
|
382
|
+
declare class AccountResolver {
|
|
383
|
+
/**
|
|
384
|
+
* Gets the default account based on the agent mode and context.
|
|
385
|
+
* In RETURN_BYTES mode, prefers context.accountId (user's account).
|
|
386
|
+
* In AUTONOMOUS mode or when no context account, uses an operator account.
|
|
387
|
+
*/
|
|
388
|
+
static getDefaultAccount(context: Context, client: Client): string;
|
|
389
|
+
static getDefaultPublicKey(context: Context, client: Client): Promise<PublicKey>;
|
|
390
|
+
/**
|
|
391
|
+
* Resolves an account ID, using the provided account or falling back to the default.
|
|
392
|
+
*/
|
|
393
|
+
static resolveAccount(providedAccount: string | undefined, context: Context, client: Client): string;
|
|
394
|
+
/**
|
|
395
|
+
* Gets a description of which account will be used as default for prompts.
|
|
396
|
+
*/
|
|
397
|
+
static getDefaultAccountDescription(context: Context): string;
|
|
398
|
+
static isHederaAddress(address: string): boolean;
|
|
399
|
+
static getHederaEVMAddress(address: string, mirrorNode: IHederaMirrornodeService): Promise<string>;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
declare class PromptGenerator {
|
|
403
|
+
/**
|
|
404
|
+
* Generates a consistent context snippet for tool prompts.
|
|
405
|
+
*/
|
|
406
|
+
static getContextSnippet(context: Context): string;
|
|
407
|
+
static getAnyAddressParameterDescription(paramName: string, context: Context, isRequired?: boolean): string;
|
|
408
|
+
/**
|
|
409
|
+
* Generates a consistent description for optional account parameters.
|
|
410
|
+
*/
|
|
411
|
+
static getAccountParameterDescription(paramName: string, context: Context, isRequired?: boolean): string;
|
|
412
|
+
/**
|
|
413
|
+
* Generates consistent parameter usage instructions.
|
|
414
|
+
*/
|
|
415
|
+
static getParameterUsageInstructions(): string;
|
|
416
|
+
static getScheduledTransactionParamsDescription(context: Context): string;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Parse a transaction tool's JSON output into a normalized shape.
|
|
421
|
+
*
|
|
422
|
+
* Accepts a stringified JSON `rawOutput` produced by a transaction tool and
|
|
423
|
+
* returns a consistent `{ raw: any, humanMessage: string }` object.
|
|
424
|
+
*
|
|
425
|
+
* Behavior:
|
|
426
|
+
* - If `rawOutput` is not valid JSON, returns a `raw` object with
|
|
427
|
+
* `{ status: 'PARSE_ERROR', error, originalOutput }` and a generic error
|
|
428
|
+
* `humanMessage`.
|
|
429
|
+
* - If the parsed object has a top-level `bytes` field (RETURN_BYTES mode),
|
|
430
|
+
* the parsed object is returned as `raw` and a default human-friendly message
|
|
431
|
+
* is provided.
|
|
432
|
+
* - If the parsed object contains both `raw` and `humanMessage` (EXECUTE_TRANSACTION
|
|
433
|
+
* mode), any additional top-level fields are merged into the returned `raw`
|
|
434
|
+
* object so extra tool information is preserved.
|
|
435
|
+
* - For any other shape, returns a `PARSE_ERROR` indicating an unexpected format.
|
|
436
|
+
*
|
|
437
|
+
* @param rawOutput - JSON string output from a transaction tool
|
|
438
|
+
* @returns An object containing the untyped `raw` tool data and a `humanMessage`
|
|
439
|
+
*/
|
|
440
|
+
declare const transactionToolOutputParser: (rawOutput: string) => {
|
|
441
|
+
raw: any;
|
|
442
|
+
humanMessage: string;
|
|
443
|
+
};
|
|
444
|
+
/**
|
|
445
|
+
* A temporary, generic output parser for **all query tools**.
|
|
446
|
+
* * This function provides a basic, untyped parsing mechanism for the
|
|
447
|
+
* stringified JSON output from any query tool. It extracts the common
|
|
448
|
+
* `{ raw: any, humanMessage: string }` structure.
|
|
449
|
+
* * @remarks
|
|
450
|
+
* This is a temporary, "one-size-fits-all" solution.
|
|
451
|
+
* The long-term goal is to replace this with **specific, strongly-typed
|
|
452
|
+
* output parsers for each individual query tool**. This will allow
|
|
453
|
+
* for better compile-time type-checking and more robust handling of
|
|
454
|
+
* each tool's unique `raw` data structure (e.g., `AccountResponse`,
|
|
455
|
+
* `TokenInfoResponse`, etc.).
|
|
456
|
+
*
|
|
457
|
+
* @param rawOutput The stringified JSON content from a query tool's ToolMessage.
|
|
458
|
+
* @returns A JavaScript object with 'raw' and 'humanMessage' keys.
|
|
459
|
+
*/
|
|
460
|
+
declare const untypedQueryOutputParser: (rawOutput: string) => {
|
|
461
|
+
raw: any;
|
|
462
|
+
humanMessage: string;
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
declare const ERC20_FACTORY_ADDRESSES: Map<string, string>;
|
|
466
|
+
declare const ERC721_FACTORY_ADDRESSES: Map<string, string>;
|
|
467
|
+
declare const ERC20_FACTORY_ABI: string[];
|
|
468
|
+
declare const ERC721_FACTORY_ABI: string[];
|
|
469
|
+
declare const ERC20_TRANSFER_FUNCTION_NAME = "transfer";
|
|
470
|
+
declare const ERC20_TRANSFER_FUNCTION_ABI: string[];
|
|
471
|
+
declare const ERC721_TRANSFER_FUNCTION_NAME = "transferFrom";
|
|
472
|
+
declare const ERC721_TRANSFER_FUNCTION_ABI: string[];
|
|
473
|
+
declare const ERC721_MINT_FUNCTION_NAME = "safeMint";
|
|
474
|
+
declare const ERC721_MINT_FUNCTION_ABI: string[];
|
|
475
|
+
/**
|
|
476
|
+
* Get the ERC20 factory contract address for the specified network
|
|
477
|
+
* @param ledgerId - The Hedera network ledger ID
|
|
478
|
+
* @returns The factory contract address for the network
|
|
479
|
+
* @throws Error if the network is not supported
|
|
480
|
+
*/
|
|
481
|
+
declare function getERC20FactoryAddress(ledgerId: LedgerId): string;
|
|
482
|
+
/**
|
|
483
|
+
* Get the ERC721 factory contract address for the specified network
|
|
484
|
+
* @param ledgerId - The Hedera network ledger ID
|
|
485
|
+
* @returns The factory contract address for the network
|
|
486
|
+
* @throws Error if the network is not supported
|
|
487
|
+
*/
|
|
488
|
+
declare function getERC721FactoryAddress(ledgerId: LedgerId): string;
|
|
489
|
+
|
|
490
|
+
declare const getMirrornodeService: (mirrornodeService: IHederaMirrornodeService | undefined, ledgerId: LedgerId) => IHederaMirrornodeService;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* The implementation of TokenTransfer from @hashgraph/sdk is not correctly exported, so a local definition of the type is needed
|
|
494
|
+
*/
|
|
495
|
+
type TokenTransferMinimalParams = {
|
|
496
|
+
tokenId: string;
|
|
497
|
+
accountId: AccountId | string;
|
|
498
|
+
amount: Long | number;
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
declare const createFungibleTokenParametersNormalised: (_context?: Context) => z.ZodObject<{
|
|
502
|
+
schedulingParams: z.ZodOptional<z.ZodObject<{
|
|
503
|
+
isScheduled: z.ZodBoolean;
|
|
504
|
+
adminKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
505
|
+
payerAccountID: z.ZodOptional<z.ZodType<AccountId, z.ZodTypeDef, AccountId>>;
|
|
506
|
+
expirationTime: z.ZodOptional<z.ZodType<_hashgraph_sdk.Timestamp, z.ZodTypeDef, _hashgraph_sdk.Timestamp>>;
|
|
507
|
+
waitForExpiry: z.ZodOptional<z.ZodBoolean>;
|
|
508
|
+
}, "strip", z.ZodTypeAny, {
|
|
509
|
+
isScheduled: boolean;
|
|
510
|
+
adminKey?: PublicKey | undefined;
|
|
511
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
512
|
+
waitForExpiry?: boolean | undefined;
|
|
513
|
+
payerAccountID?: AccountId | undefined;
|
|
514
|
+
}, {
|
|
515
|
+
isScheduled: boolean;
|
|
516
|
+
adminKey?: PublicKey | undefined;
|
|
517
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
518
|
+
waitForExpiry?: boolean | undefined;
|
|
519
|
+
payerAccountID?: AccountId | undefined;
|
|
520
|
+
}>>;
|
|
521
|
+
} & {
|
|
522
|
+
tokenName: z.ZodString;
|
|
523
|
+
tokenSymbol: z.ZodString;
|
|
524
|
+
initialSupply: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
525
|
+
maxSupply: z.ZodOptional<z.ZodNumber>;
|
|
526
|
+
decimals: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
527
|
+
isSupplyKey: z.ZodOptional<z.ZodBoolean>;
|
|
528
|
+
} & {
|
|
529
|
+
treasuryAccountId: z.ZodString;
|
|
530
|
+
autoRenewAccountId: z.ZodOptional<z.ZodString>;
|
|
531
|
+
supplyKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
532
|
+
supplyType: z.ZodType<TokenSupplyType, z.ZodTypeDef, TokenSupplyType>;
|
|
533
|
+
adminKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
534
|
+
kycKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
535
|
+
freezeKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
536
|
+
wipeKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
537
|
+
pauseKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
538
|
+
metadataKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
539
|
+
tokenMemo: z.ZodOptional<z.ZodString>;
|
|
540
|
+
tokenType: z.ZodOptional<z.ZodType<TokenType, z.ZodTypeDef, TokenType>>;
|
|
541
|
+
}, "strip", z.ZodTypeAny, {
|
|
542
|
+
tokenName: string;
|
|
543
|
+
tokenSymbol: string;
|
|
544
|
+
initialSupply: number;
|
|
545
|
+
supplyType: TokenSupplyType;
|
|
546
|
+
decimals: number;
|
|
547
|
+
treasuryAccountId: string;
|
|
548
|
+
adminKey?: PublicKey | undefined;
|
|
549
|
+
schedulingParams?: {
|
|
550
|
+
isScheduled: boolean;
|
|
551
|
+
adminKey?: PublicKey | undefined;
|
|
552
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
553
|
+
waitForExpiry?: boolean | undefined;
|
|
554
|
+
payerAccountID?: AccountId | undefined;
|
|
555
|
+
} | undefined;
|
|
556
|
+
maxSupply?: number | undefined;
|
|
557
|
+
isSupplyKey?: boolean | undefined;
|
|
558
|
+
autoRenewAccountId?: string | undefined;
|
|
559
|
+
supplyKey?: PublicKey | undefined;
|
|
560
|
+
kycKey?: PublicKey | undefined;
|
|
561
|
+
freezeKey?: PublicKey | undefined;
|
|
562
|
+
wipeKey?: PublicKey | undefined;
|
|
563
|
+
pauseKey?: PublicKey | undefined;
|
|
564
|
+
metadataKey?: PublicKey | undefined;
|
|
565
|
+
tokenMemo?: string | undefined;
|
|
566
|
+
tokenType?: TokenType | undefined;
|
|
567
|
+
}, {
|
|
568
|
+
tokenName: string;
|
|
569
|
+
tokenSymbol: string;
|
|
570
|
+
supplyType: TokenSupplyType;
|
|
571
|
+
treasuryAccountId: string;
|
|
572
|
+
adminKey?: PublicKey | undefined;
|
|
573
|
+
schedulingParams?: {
|
|
574
|
+
isScheduled: boolean;
|
|
575
|
+
adminKey?: PublicKey | undefined;
|
|
576
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
577
|
+
waitForExpiry?: boolean | undefined;
|
|
578
|
+
payerAccountID?: AccountId | undefined;
|
|
579
|
+
} | undefined;
|
|
580
|
+
initialSupply?: number | undefined;
|
|
581
|
+
maxSupply?: number | undefined;
|
|
582
|
+
decimals?: number | undefined;
|
|
583
|
+
isSupplyKey?: boolean | undefined;
|
|
584
|
+
autoRenewAccountId?: string | undefined;
|
|
585
|
+
supplyKey?: PublicKey | undefined;
|
|
586
|
+
kycKey?: PublicKey | undefined;
|
|
587
|
+
freezeKey?: PublicKey | undefined;
|
|
588
|
+
wipeKey?: PublicKey | undefined;
|
|
589
|
+
pauseKey?: PublicKey | undefined;
|
|
590
|
+
metadataKey?: PublicKey | undefined;
|
|
591
|
+
tokenMemo?: string | undefined;
|
|
592
|
+
tokenType?: TokenType | undefined;
|
|
593
|
+
}>;
|
|
594
|
+
declare const createNonFungibleTokenParametersNormalised: (_context?: Context) => z.ZodObject<{
|
|
595
|
+
tokenName: z.ZodString;
|
|
596
|
+
tokenSymbol: z.ZodString;
|
|
597
|
+
treasuryAccountId: z.ZodOptional<z.ZodString>;
|
|
598
|
+
isSupplyKey: z.ZodOptional<z.ZodBoolean>;
|
|
599
|
+
schedulingParams: z.ZodOptional<z.ZodObject<{
|
|
600
|
+
isScheduled: z.ZodBoolean;
|
|
601
|
+
adminKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
602
|
+
payerAccountID: z.ZodOptional<z.ZodType<AccountId, z.ZodTypeDef, AccountId>>;
|
|
603
|
+
expirationTime: z.ZodOptional<z.ZodType<_hashgraph_sdk.Timestamp, z.ZodTypeDef, _hashgraph_sdk.Timestamp>>;
|
|
604
|
+
waitForExpiry: z.ZodOptional<z.ZodBoolean>;
|
|
605
|
+
}, "strip", z.ZodTypeAny, {
|
|
606
|
+
isScheduled: boolean;
|
|
607
|
+
adminKey?: PublicKey | undefined;
|
|
608
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
609
|
+
waitForExpiry?: boolean | undefined;
|
|
610
|
+
payerAccountID?: AccountId | undefined;
|
|
611
|
+
}, {
|
|
612
|
+
isScheduled: boolean;
|
|
613
|
+
adminKey?: PublicKey | undefined;
|
|
614
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
615
|
+
waitForExpiry?: boolean | undefined;
|
|
616
|
+
payerAccountID?: AccountId | undefined;
|
|
617
|
+
}>>;
|
|
618
|
+
} & {
|
|
619
|
+
autoRenewAccountId: z.ZodString;
|
|
620
|
+
supplyKey: z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>;
|
|
621
|
+
supplyType: z.ZodType<TokenSupplyType, z.ZodTypeDef, TokenSupplyType>;
|
|
622
|
+
maxSupply: z.ZodOptional<z.ZodNumber>;
|
|
623
|
+
tokenType: z.ZodDefault<z.ZodType<TokenType, z.ZodTypeDef, TokenType>>;
|
|
624
|
+
adminKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
625
|
+
kycKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
626
|
+
freezeKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
627
|
+
wipeKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
628
|
+
pauseKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
629
|
+
tokenMemo: z.ZodOptional<z.ZodString>;
|
|
630
|
+
}, "strip", z.ZodTypeAny, {
|
|
631
|
+
tokenName: string;
|
|
632
|
+
tokenSymbol: string;
|
|
633
|
+
supplyType: TokenSupplyType;
|
|
634
|
+
autoRenewAccountId: string;
|
|
635
|
+
supplyKey: PublicKey;
|
|
636
|
+
tokenType: TokenType;
|
|
637
|
+
adminKey?: PublicKey | undefined;
|
|
638
|
+
schedulingParams?: {
|
|
639
|
+
isScheduled: boolean;
|
|
640
|
+
adminKey?: PublicKey | undefined;
|
|
641
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
642
|
+
waitForExpiry?: boolean | undefined;
|
|
643
|
+
payerAccountID?: AccountId | undefined;
|
|
644
|
+
} | undefined;
|
|
645
|
+
maxSupply?: number | undefined;
|
|
646
|
+
treasuryAccountId?: string | undefined;
|
|
647
|
+
isSupplyKey?: boolean | undefined;
|
|
648
|
+
kycKey?: PublicKey | undefined;
|
|
649
|
+
freezeKey?: PublicKey | undefined;
|
|
650
|
+
wipeKey?: PublicKey | undefined;
|
|
651
|
+
pauseKey?: PublicKey | undefined;
|
|
652
|
+
tokenMemo?: string | undefined;
|
|
653
|
+
}, {
|
|
654
|
+
tokenName: string;
|
|
655
|
+
tokenSymbol: string;
|
|
656
|
+
supplyType: TokenSupplyType;
|
|
657
|
+
autoRenewAccountId: string;
|
|
658
|
+
supplyKey: PublicKey;
|
|
659
|
+
adminKey?: PublicKey | undefined;
|
|
660
|
+
schedulingParams?: {
|
|
661
|
+
isScheduled: boolean;
|
|
662
|
+
adminKey?: PublicKey | undefined;
|
|
663
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
664
|
+
waitForExpiry?: boolean | undefined;
|
|
665
|
+
payerAccountID?: AccountId | undefined;
|
|
666
|
+
} | undefined;
|
|
667
|
+
maxSupply?: number | undefined;
|
|
668
|
+
treasuryAccountId?: string | undefined;
|
|
669
|
+
isSupplyKey?: boolean | undefined;
|
|
670
|
+
kycKey?: PublicKey | undefined;
|
|
671
|
+
freezeKey?: PublicKey | undefined;
|
|
672
|
+
wipeKey?: PublicKey | undefined;
|
|
673
|
+
pauseKey?: PublicKey | undefined;
|
|
674
|
+
tokenMemo?: string | undefined;
|
|
675
|
+
tokenType?: TokenType | undefined;
|
|
676
|
+
}>;
|
|
677
|
+
declare const airdropFungibleTokenParametersNormalised: () => z.ZodObject<{
|
|
678
|
+
tokenTransfers: z.ZodType<TokenTransferMinimalParams[], z.ZodTypeDef, TokenTransferMinimalParams[]>;
|
|
679
|
+
}, "strip", z.ZodTypeAny, {
|
|
680
|
+
tokenTransfers: TokenTransferMinimalParams[];
|
|
681
|
+
}, {
|
|
682
|
+
tokenTransfers: TokenTransferMinimalParams[];
|
|
683
|
+
}>;
|
|
684
|
+
declare const mintFungibleTokenParametersNormalised: (_context?: Context) => z.ZodObject<Omit<{
|
|
685
|
+
schedulingParams: z.ZodOptional<z.ZodObject<{
|
|
686
|
+
isScheduled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
687
|
+
adminKey: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>>;
|
|
688
|
+
payerAccountId: z.ZodOptional<z.ZodString>;
|
|
689
|
+
expirationTime: z.ZodOptional<z.ZodString>;
|
|
690
|
+
waitForExpiry: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
691
|
+
}, "strip", z.ZodTypeAny, {
|
|
692
|
+
isScheduled: boolean;
|
|
693
|
+
adminKey: string | boolean;
|
|
694
|
+
waitForExpiry: boolean;
|
|
695
|
+
payerAccountId?: string | undefined;
|
|
696
|
+
expirationTime?: string | undefined;
|
|
697
|
+
}, {
|
|
698
|
+
isScheduled?: boolean | undefined;
|
|
699
|
+
adminKey?: string | boolean | undefined;
|
|
700
|
+
payerAccountId?: string | undefined;
|
|
701
|
+
expirationTime?: string | undefined;
|
|
702
|
+
waitForExpiry?: boolean | undefined;
|
|
703
|
+
}>>;
|
|
704
|
+
} & {
|
|
705
|
+
tokenId: z.ZodString;
|
|
706
|
+
amount: z.ZodNumber;
|
|
707
|
+
}, "schedulingParams"> & {
|
|
708
|
+
schedulingParams: z.ZodOptional<z.ZodObject<{
|
|
709
|
+
isScheduled: z.ZodBoolean;
|
|
710
|
+
adminKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
711
|
+
payerAccountID: z.ZodOptional<z.ZodType<AccountId, z.ZodTypeDef, AccountId>>;
|
|
712
|
+
expirationTime: z.ZodOptional<z.ZodType<_hashgraph_sdk.Timestamp, z.ZodTypeDef, _hashgraph_sdk.Timestamp>>;
|
|
713
|
+
waitForExpiry: z.ZodOptional<z.ZodBoolean>;
|
|
714
|
+
}, "strip", z.ZodTypeAny, {
|
|
715
|
+
isScheduled: boolean;
|
|
716
|
+
adminKey?: PublicKey | undefined;
|
|
717
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
718
|
+
waitForExpiry?: boolean | undefined;
|
|
719
|
+
payerAccountID?: AccountId | undefined;
|
|
720
|
+
}, {
|
|
721
|
+
isScheduled: boolean;
|
|
722
|
+
adminKey?: PublicKey | undefined;
|
|
723
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
724
|
+
waitForExpiry?: boolean | undefined;
|
|
725
|
+
payerAccountID?: AccountId | undefined;
|
|
726
|
+
}>>;
|
|
727
|
+
}, "strip", z.ZodTypeAny, {
|
|
728
|
+
amount: number;
|
|
729
|
+
tokenId: string;
|
|
730
|
+
schedulingParams?: {
|
|
731
|
+
isScheduled: boolean;
|
|
732
|
+
adminKey?: PublicKey | undefined;
|
|
733
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
734
|
+
waitForExpiry?: boolean | undefined;
|
|
735
|
+
payerAccountID?: AccountId | undefined;
|
|
736
|
+
} | undefined;
|
|
737
|
+
}, {
|
|
738
|
+
amount: number;
|
|
739
|
+
tokenId: string;
|
|
740
|
+
schedulingParams?: {
|
|
741
|
+
isScheduled: boolean;
|
|
742
|
+
adminKey?: PublicKey | undefined;
|
|
743
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
744
|
+
waitForExpiry?: boolean | undefined;
|
|
745
|
+
payerAccountID?: AccountId | undefined;
|
|
746
|
+
} | undefined;
|
|
747
|
+
}>;
|
|
748
|
+
declare const mintNonFungibleTokenParametersNormalised: (_context?: Context) => z.ZodObject<{
|
|
749
|
+
schedulingParams: z.ZodOptional<z.ZodObject<{
|
|
750
|
+
isScheduled: z.ZodBoolean;
|
|
751
|
+
adminKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
752
|
+
payerAccountID: z.ZodOptional<z.ZodType<AccountId, z.ZodTypeDef, AccountId>>;
|
|
753
|
+
expirationTime: z.ZodOptional<z.ZodType<_hashgraph_sdk.Timestamp, z.ZodTypeDef, _hashgraph_sdk.Timestamp>>;
|
|
754
|
+
waitForExpiry: z.ZodOptional<z.ZodBoolean>;
|
|
755
|
+
}, "strip", z.ZodTypeAny, {
|
|
756
|
+
isScheduled: boolean;
|
|
757
|
+
adminKey?: PublicKey | undefined;
|
|
758
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
759
|
+
waitForExpiry?: boolean | undefined;
|
|
760
|
+
payerAccountID?: AccountId | undefined;
|
|
761
|
+
}, {
|
|
762
|
+
isScheduled: boolean;
|
|
763
|
+
adminKey?: PublicKey | undefined;
|
|
764
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
765
|
+
waitForExpiry?: boolean | undefined;
|
|
766
|
+
payerAccountID?: AccountId | undefined;
|
|
767
|
+
}>>;
|
|
768
|
+
} & {
|
|
769
|
+
tokenId: z.ZodString;
|
|
770
|
+
metadata: z.ZodOptional<z.ZodArray<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>, "many">>;
|
|
771
|
+
}, "strip", z.ZodTypeAny, {
|
|
772
|
+
tokenId: string;
|
|
773
|
+
schedulingParams?: {
|
|
774
|
+
isScheduled: boolean;
|
|
775
|
+
adminKey?: PublicKey | undefined;
|
|
776
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
777
|
+
waitForExpiry?: boolean | undefined;
|
|
778
|
+
payerAccountID?: AccountId | undefined;
|
|
779
|
+
} | undefined;
|
|
780
|
+
metadata?: Uint8Array<ArrayBufferLike>[] | undefined;
|
|
781
|
+
}, {
|
|
782
|
+
tokenId: string;
|
|
783
|
+
schedulingParams?: {
|
|
784
|
+
isScheduled: boolean;
|
|
785
|
+
adminKey?: PublicKey | undefined;
|
|
786
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
787
|
+
waitForExpiry?: boolean | undefined;
|
|
788
|
+
payerAccountID?: AccountId | undefined;
|
|
789
|
+
} | undefined;
|
|
790
|
+
metadata?: Uint8Array<ArrayBufferLike>[] | undefined;
|
|
791
|
+
}>;
|
|
792
|
+
declare const deleteTokenParametersNormalised: (_context?: Context) => z.ZodObject<{
|
|
793
|
+
tokenId: z.ZodString;
|
|
794
|
+
}, "strip", z.ZodTypeAny, {
|
|
795
|
+
tokenId: string;
|
|
796
|
+
}, {
|
|
797
|
+
tokenId: string;
|
|
798
|
+
}>;
|
|
799
|
+
declare const updateTokenParametersNormalised: (_context?: Context) => z.ZodObject<{
|
|
800
|
+
tokenId: z.ZodType<TokenId, z.ZodTypeDef, TokenId>;
|
|
801
|
+
tokenName: z.ZodOptional<z.ZodString>;
|
|
802
|
+
tokenSymbol: z.ZodOptional<z.ZodString>;
|
|
803
|
+
tokenMemo: z.ZodOptional<z.ZodString>;
|
|
804
|
+
metadata: z.ZodOptional<z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>>;
|
|
805
|
+
treasuryAccountId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<AccountId, z.ZodTypeDef, AccountId>]>>;
|
|
806
|
+
autoRenewAccountId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<AccountId, z.ZodTypeDef, AccountId>]>>;
|
|
807
|
+
adminKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
808
|
+
supplyKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
809
|
+
wipeKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
810
|
+
freezeKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
811
|
+
kycKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
812
|
+
feeScheduleKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
813
|
+
pauseKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
814
|
+
metadataKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
815
|
+
}, "strip", z.ZodTypeAny, {
|
|
816
|
+
tokenId: TokenId;
|
|
817
|
+
adminKey?: PublicKey | undefined;
|
|
818
|
+
tokenName?: string | undefined;
|
|
819
|
+
tokenSymbol?: string | undefined;
|
|
820
|
+
treasuryAccountId?: string | AccountId | undefined;
|
|
821
|
+
autoRenewAccountId?: string | AccountId | undefined;
|
|
822
|
+
supplyKey?: PublicKey | undefined;
|
|
823
|
+
kycKey?: PublicKey | undefined;
|
|
824
|
+
freezeKey?: PublicKey | undefined;
|
|
825
|
+
wipeKey?: PublicKey | undefined;
|
|
826
|
+
pauseKey?: PublicKey | undefined;
|
|
827
|
+
metadataKey?: PublicKey | undefined;
|
|
828
|
+
tokenMemo?: string | undefined;
|
|
829
|
+
metadata?: Uint8Array<ArrayBufferLike> | undefined;
|
|
830
|
+
feeScheduleKey?: PublicKey | undefined;
|
|
831
|
+
}, {
|
|
832
|
+
tokenId: TokenId;
|
|
833
|
+
adminKey?: PublicKey | undefined;
|
|
834
|
+
tokenName?: string | undefined;
|
|
835
|
+
tokenSymbol?: string | undefined;
|
|
836
|
+
treasuryAccountId?: string | AccountId | undefined;
|
|
837
|
+
autoRenewAccountId?: string | AccountId | undefined;
|
|
838
|
+
supplyKey?: PublicKey | undefined;
|
|
839
|
+
kycKey?: PublicKey | undefined;
|
|
840
|
+
freezeKey?: PublicKey | undefined;
|
|
841
|
+
wipeKey?: PublicKey | undefined;
|
|
842
|
+
pauseKey?: PublicKey | undefined;
|
|
843
|
+
metadataKey?: PublicKey | undefined;
|
|
844
|
+
tokenMemo?: string | undefined;
|
|
845
|
+
metadata?: Uint8Array<ArrayBufferLike> | undefined;
|
|
846
|
+
feeScheduleKey?: PublicKey | undefined;
|
|
847
|
+
}>;
|
|
848
|
+
declare const associateTokenParametersNormalised: (_context?: Context) => z.ZodObject<{
|
|
849
|
+
accountId: z.ZodString;
|
|
850
|
+
tokenIds: z.ZodArray<z.ZodString, "many">;
|
|
851
|
+
}, "strip", z.ZodTypeAny, {
|
|
852
|
+
accountId: string;
|
|
853
|
+
tokenIds: string[];
|
|
854
|
+
}, {
|
|
855
|
+
accountId: string;
|
|
856
|
+
tokenIds: string[];
|
|
857
|
+
}>;
|
|
858
|
+
declare const dissociateTokenParametersNormalised: (_context?: Context) => z.ZodObject<{
|
|
859
|
+
transactionMemo: z.ZodOptional<z.ZodString>;
|
|
860
|
+
} & {
|
|
861
|
+
tokenIds: z.ZodArray<z.ZodType<TokenId, z.ZodTypeDef, TokenId>, "many">;
|
|
862
|
+
accountId: z.ZodType<AccountId, z.ZodTypeDef, AccountId>;
|
|
863
|
+
}, "strip", z.ZodTypeAny, {
|
|
864
|
+
accountId: AccountId;
|
|
865
|
+
tokenIds: TokenId[];
|
|
866
|
+
transactionMemo?: string | undefined;
|
|
867
|
+
}, {
|
|
868
|
+
accountId: AccountId;
|
|
869
|
+
tokenIds: TokenId[];
|
|
870
|
+
transactionMemo?: string | undefined;
|
|
871
|
+
}>;
|
|
872
|
+
declare const approveNftAllowanceParametersNormalised: (_context?: Context) => z.ZodObject<{
|
|
873
|
+
nftApprovals: z.ZodOptional<z.ZodArray<z.ZodType<TokenNftAllowance, z.ZodTypeDef, TokenNftAllowance>, "many">>;
|
|
874
|
+
transactionMemo: z.ZodOptional<z.ZodString>;
|
|
875
|
+
}, "strip", z.ZodTypeAny, {
|
|
876
|
+
transactionMemo?: string | undefined;
|
|
877
|
+
nftApprovals?: TokenNftAllowance[] | undefined;
|
|
878
|
+
}, {
|
|
879
|
+
transactionMemo?: string | undefined;
|
|
880
|
+
nftApprovals?: TokenNftAllowance[] | undefined;
|
|
881
|
+
}>;
|
|
882
|
+
declare const deleteNftAllowanceParametersNormalised: (_context?: Context) => z.ZodObject<{
|
|
883
|
+
nftWipes: z.ZodArray<z.ZodType<NftId, z.ZodTypeDef, NftId>, "many">;
|
|
884
|
+
ownerAccountId: z.ZodType<AccountId, z.ZodTypeDef, AccountId>;
|
|
885
|
+
transactionMemo: z.ZodOptional<z.ZodString>;
|
|
886
|
+
}, "strip", z.ZodTypeAny, {
|
|
887
|
+
ownerAccountId: AccountId;
|
|
888
|
+
nftWipes: NftId[];
|
|
889
|
+
transactionMemo?: string | undefined;
|
|
890
|
+
}, {
|
|
891
|
+
ownerAccountId: AccountId;
|
|
892
|
+
nftWipes: NftId[];
|
|
893
|
+
transactionMemo?: string | undefined;
|
|
894
|
+
}>;
|
|
895
|
+
declare const transferNonFungibleTokenWithAllowanceParametersNormalised: (_context: Context) => z.ZodObject<{
|
|
896
|
+
sourceAccountId: z.ZodType<AccountId, z.ZodTypeDef, AccountId>;
|
|
897
|
+
transactionMemo: z.ZodOptional<z.ZodString>;
|
|
898
|
+
transfers: z.ZodArray<z.ZodObject<{
|
|
899
|
+
nftId: z.ZodType<NftId, z.ZodTypeDef, NftId>;
|
|
900
|
+
receiver: z.ZodType<AccountId, z.ZodTypeDef, AccountId>;
|
|
901
|
+
}, "strip", z.ZodTypeAny, {
|
|
902
|
+
nftId: NftId;
|
|
903
|
+
receiver: AccountId;
|
|
904
|
+
}, {
|
|
905
|
+
nftId: NftId;
|
|
906
|
+
receiver: AccountId;
|
|
907
|
+
}>, "many">;
|
|
908
|
+
}, "strip", z.ZodTypeAny, {
|
|
909
|
+
sourceAccountId: AccountId;
|
|
910
|
+
transfers: {
|
|
911
|
+
nftId: NftId;
|
|
912
|
+
receiver: AccountId;
|
|
913
|
+
}[];
|
|
914
|
+
transactionMemo?: string | undefined;
|
|
915
|
+
}, {
|
|
916
|
+
sourceAccountId: AccountId;
|
|
917
|
+
transfers: {
|
|
918
|
+
nftId: NftId;
|
|
919
|
+
receiver: AccountId;
|
|
920
|
+
}[];
|
|
921
|
+
transactionMemo?: string | undefined;
|
|
922
|
+
}>;
|
|
923
|
+
declare const transferNonFungibleTokenParametersNormalised: (_context: Context) => z.ZodObject<{
|
|
924
|
+
schedulingParams: z.ZodOptional<z.ZodObject<{
|
|
925
|
+
isScheduled: z.ZodBoolean;
|
|
926
|
+
adminKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
927
|
+
payerAccountID: z.ZodOptional<z.ZodType<AccountId, z.ZodTypeDef, AccountId>>;
|
|
928
|
+
expirationTime: z.ZodOptional<z.ZodType<_hashgraph_sdk.Timestamp, z.ZodTypeDef, _hashgraph_sdk.Timestamp>>;
|
|
929
|
+
waitForExpiry: z.ZodOptional<z.ZodBoolean>;
|
|
930
|
+
}, "strip", z.ZodTypeAny, {
|
|
931
|
+
isScheduled: boolean;
|
|
932
|
+
adminKey?: PublicKey | undefined;
|
|
933
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
934
|
+
waitForExpiry?: boolean | undefined;
|
|
935
|
+
payerAccountID?: AccountId | undefined;
|
|
936
|
+
}, {
|
|
937
|
+
isScheduled: boolean;
|
|
938
|
+
adminKey?: PublicKey | undefined;
|
|
939
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
940
|
+
waitForExpiry?: boolean | undefined;
|
|
941
|
+
payerAccountID?: AccountId | undefined;
|
|
942
|
+
}>>;
|
|
943
|
+
} & {
|
|
944
|
+
senderAccountId: z.ZodType<AccountId, z.ZodTypeDef, AccountId>;
|
|
945
|
+
transactionMemo: z.ZodOptional<z.ZodString>;
|
|
946
|
+
transfers: z.ZodArray<z.ZodObject<{
|
|
947
|
+
nftId: z.ZodType<NftId, z.ZodTypeDef, NftId>;
|
|
948
|
+
receiver: z.ZodType<AccountId, z.ZodTypeDef, AccountId>;
|
|
949
|
+
}, "strip", z.ZodTypeAny, {
|
|
950
|
+
nftId: NftId;
|
|
951
|
+
receiver: AccountId;
|
|
952
|
+
}, {
|
|
953
|
+
nftId: NftId;
|
|
954
|
+
receiver: AccountId;
|
|
955
|
+
}>, "many">;
|
|
956
|
+
}, "strip", z.ZodTypeAny, {
|
|
957
|
+
transfers: {
|
|
958
|
+
nftId: NftId;
|
|
959
|
+
receiver: AccountId;
|
|
960
|
+
}[];
|
|
961
|
+
senderAccountId: AccountId;
|
|
962
|
+
schedulingParams?: {
|
|
963
|
+
isScheduled: boolean;
|
|
964
|
+
adminKey?: PublicKey | undefined;
|
|
965
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
966
|
+
waitForExpiry?: boolean | undefined;
|
|
967
|
+
payerAccountID?: AccountId | undefined;
|
|
968
|
+
} | undefined;
|
|
969
|
+
transactionMemo?: string | undefined;
|
|
970
|
+
}, {
|
|
971
|
+
transfers: {
|
|
972
|
+
nftId: NftId;
|
|
973
|
+
receiver: AccountId;
|
|
974
|
+
}[];
|
|
975
|
+
senderAccountId: AccountId;
|
|
976
|
+
schedulingParams?: {
|
|
977
|
+
isScheduled: boolean;
|
|
978
|
+
adminKey?: PublicKey | undefined;
|
|
979
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
980
|
+
waitForExpiry?: boolean | undefined;
|
|
981
|
+
payerAccountID?: AccountId | undefined;
|
|
982
|
+
} | undefined;
|
|
983
|
+
transactionMemo?: string | undefined;
|
|
984
|
+
}>;
|
|
985
|
+
declare const transferFungibleTokenWithAllowanceParametersNormalised: (context?: Context) => z.ZodObject<{
|
|
986
|
+
schedulingParams: z.ZodOptional<z.ZodObject<{
|
|
987
|
+
isScheduled: z.ZodBoolean;
|
|
988
|
+
adminKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
989
|
+
payerAccountID: z.ZodOptional<z.ZodType<AccountId, z.ZodTypeDef, AccountId>>;
|
|
990
|
+
expirationTime: z.ZodOptional<z.ZodType<_hashgraph_sdk.Timestamp, z.ZodTypeDef, _hashgraph_sdk.Timestamp>>;
|
|
991
|
+
waitForExpiry: z.ZodOptional<z.ZodBoolean>;
|
|
992
|
+
}, "strip", z.ZodTypeAny, {
|
|
993
|
+
isScheduled: boolean;
|
|
994
|
+
adminKey?: PublicKey | undefined;
|
|
995
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
996
|
+
waitForExpiry?: boolean | undefined;
|
|
997
|
+
payerAccountID?: AccountId | undefined;
|
|
998
|
+
}, {
|
|
999
|
+
isScheduled: boolean;
|
|
1000
|
+
adminKey?: PublicKey | undefined;
|
|
1001
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1002
|
+
waitForExpiry?: boolean | undefined;
|
|
1003
|
+
payerAccountID?: AccountId | undefined;
|
|
1004
|
+
}>>;
|
|
1005
|
+
} & {
|
|
1006
|
+
tokenId: z.ZodString;
|
|
1007
|
+
tokenTransfers: z.ZodType<TokenTransferMinimalParams[], z.ZodTypeDef, TokenTransferMinimalParams[]>;
|
|
1008
|
+
approvedTransfer: z.ZodObject<{
|
|
1009
|
+
ownerAccountId: z.ZodString;
|
|
1010
|
+
amount: z.ZodNumber;
|
|
1011
|
+
}, "strip", z.ZodTypeAny, {
|
|
1012
|
+
amount: number;
|
|
1013
|
+
ownerAccountId: string;
|
|
1014
|
+
}, {
|
|
1015
|
+
amount: number;
|
|
1016
|
+
ownerAccountId: string;
|
|
1017
|
+
}>;
|
|
1018
|
+
transactionMemo: z.ZodOptional<z.ZodString>;
|
|
1019
|
+
}, "strip", z.ZodTypeAny, {
|
|
1020
|
+
tokenId: string;
|
|
1021
|
+
tokenTransfers: TokenTransferMinimalParams[];
|
|
1022
|
+
approvedTransfer: {
|
|
1023
|
+
amount: number;
|
|
1024
|
+
ownerAccountId: string;
|
|
1025
|
+
};
|
|
1026
|
+
schedulingParams?: {
|
|
1027
|
+
isScheduled: boolean;
|
|
1028
|
+
adminKey?: PublicKey | undefined;
|
|
1029
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1030
|
+
waitForExpiry?: boolean | undefined;
|
|
1031
|
+
payerAccountID?: AccountId | undefined;
|
|
1032
|
+
} | undefined;
|
|
1033
|
+
transactionMemo?: string | undefined;
|
|
1034
|
+
}, {
|
|
1035
|
+
tokenId: string;
|
|
1036
|
+
tokenTransfers: TokenTransferMinimalParams[];
|
|
1037
|
+
approvedTransfer: {
|
|
1038
|
+
amount: number;
|
|
1039
|
+
ownerAccountId: string;
|
|
1040
|
+
};
|
|
1041
|
+
schedulingParams?: {
|
|
1042
|
+
isScheduled: boolean;
|
|
1043
|
+
adminKey?: PublicKey | undefined;
|
|
1044
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1045
|
+
waitForExpiry?: boolean | undefined;
|
|
1046
|
+
payerAccountID?: AccountId | undefined;
|
|
1047
|
+
} | undefined;
|
|
1048
|
+
transactionMemo?: string | undefined;
|
|
1049
|
+
}>;
|
|
1050
|
+
|
|
1051
|
+
declare const transferHbarParametersNormalised: (context?: Context) => z.ZodObject<{
|
|
1052
|
+
schedulingParams: z.ZodOptional<z.ZodObject<{
|
|
1053
|
+
isScheduled: z.ZodBoolean;
|
|
1054
|
+
adminKey: z.ZodOptional<z.ZodType<_hashgraph_sdk.PublicKey, z.ZodTypeDef, _hashgraph_sdk.PublicKey>>;
|
|
1055
|
+
payerAccountID: z.ZodOptional<z.ZodType<AccountId, z.ZodTypeDef, AccountId>>;
|
|
1056
|
+
expirationTime: z.ZodOptional<z.ZodType<_hashgraph_sdk.Timestamp, z.ZodTypeDef, _hashgraph_sdk.Timestamp>>;
|
|
1057
|
+
waitForExpiry: z.ZodOptional<z.ZodBoolean>;
|
|
1058
|
+
}, "strip", z.ZodTypeAny, {
|
|
1059
|
+
isScheduled: boolean;
|
|
1060
|
+
adminKey?: _hashgraph_sdk.PublicKey | undefined;
|
|
1061
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1062
|
+
waitForExpiry?: boolean | undefined;
|
|
1063
|
+
payerAccountID?: AccountId | undefined;
|
|
1064
|
+
}, {
|
|
1065
|
+
isScheduled: boolean;
|
|
1066
|
+
adminKey?: _hashgraph_sdk.PublicKey | undefined;
|
|
1067
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1068
|
+
waitForExpiry?: boolean | undefined;
|
|
1069
|
+
payerAccountID?: AccountId | undefined;
|
|
1070
|
+
}>>;
|
|
1071
|
+
} & {
|
|
1072
|
+
hbarTransfers: z.ZodArray<z.ZodObject<{
|
|
1073
|
+
accountId: z.ZodUnion<[z.ZodString, z.ZodType<AccountId, z.ZodTypeDef, AccountId>]>;
|
|
1074
|
+
amount: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodType<Hbar, z.ZodTypeDef, Hbar>, z.ZodType<Long, z.ZodTypeDef, Long>, z.ZodType<BigNumber, z.ZodTypeDef, BigNumber>]>;
|
|
1075
|
+
}, "strip", z.ZodTypeAny, {
|
|
1076
|
+
accountId: string | AccountId;
|
|
1077
|
+
amount: string | number | BigNumber | Long | Hbar;
|
|
1078
|
+
}, {
|
|
1079
|
+
accountId: string | AccountId;
|
|
1080
|
+
amount: string | number | BigNumber | Long | Hbar;
|
|
1081
|
+
}>, "many">;
|
|
1082
|
+
transactionMemo: z.ZodOptional<z.ZodString>;
|
|
1083
|
+
}, "strip", z.ZodTypeAny, {
|
|
1084
|
+
hbarTransfers: {
|
|
1085
|
+
accountId: string | AccountId;
|
|
1086
|
+
amount: string | number | BigNumber | Long | Hbar;
|
|
1087
|
+
}[];
|
|
1088
|
+
schedulingParams?: {
|
|
1089
|
+
isScheduled: boolean;
|
|
1090
|
+
adminKey?: _hashgraph_sdk.PublicKey | undefined;
|
|
1091
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1092
|
+
waitForExpiry?: boolean | undefined;
|
|
1093
|
+
payerAccountID?: AccountId | undefined;
|
|
1094
|
+
} | undefined;
|
|
1095
|
+
transactionMemo?: string | undefined;
|
|
1096
|
+
}, {
|
|
1097
|
+
hbarTransfers: {
|
|
1098
|
+
accountId: string | AccountId;
|
|
1099
|
+
amount: string | number | BigNumber | Long | Hbar;
|
|
1100
|
+
}[];
|
|
1101
|
+
schedulingParams?: {
|
|
1102
|
+
isScheduled: boolean;
|
|
1103
|
+
adminKey?: _hashgraph_sdk.PublicKey | undefined;
|
|
1104
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1105
|
+
waitForExpiry?: boolean | undefined;
|
|
1106
|
+
payerAccountID?: AccountId | undefined;
|
|
1107
|
+
} | undefined;
|
|
1108
|
+
transactionMemo?: string | undefined;
|
|
1109
|
+
}>;
|
|
1110
|
+
declare const createAccountParametersNormalised: (_context?: Context) => z.ZodObject<{
|
|
1111
|
+
schedulingParams: z.ZodOptional<z.ZodObject<{
|
|
1112
|
+
isScheduled: z.ZodBoolean;
|
|
1113
|
+
adminKey: z.ZodOptional<z.ZodType<_hashgraph_sdk.PublicKey, z.ZodTypeDef, _hashgraph_sdk.PublicKey>>;
|
|
1114
|
+
payerAccountID: z.ZodOptional<z.ZodType<AccountId, z.ZodTypeDef, AccountId>>;
|
|
1115
|
+
expirationTime: z.ZodOptional<z.ZodType<_hashgraph_sdk.Timestamp, z.ZodTypeDef, _hashgraph_sdk.Timestamp>>;
|
|
1116
|
+
waitForExpiry: z.ZodOptional<z.ZodBoolean>;
|
|
1117
|
+
}, "strip", z.ZodTypeAny, {
|
|
1118
|
+
isScheduled: boolean;
|
|
1119
|
+
adminKey?: _hashgraph_sdk.PublicKey | undefined;
|
|
1120
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1121
|
+
waitForExpiry?: boolean | undefined;
|
|
1122
|
+
payerAccountID?: AccountId | undefined;
|
|
1123
|
+
}, {
|
|
1124
|
+
isScheduled: boolean;
|
|
1125
|
+
adminKey?: _hashgraph_sdk.PublicKey | undefined;
|
|
1126
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1127
|
+
waitForExpiry?: boolean | undefined;
|
|
1128
|
+
payerAccountID?: AccountId | undefined;
|
|
1129
|
+
}>>;
|
|
1130
|
+
} & {
|
|
1131
|
+
accountMemo: z.ZodOptional<z.ZodString>;
|
|
1132
|
+
initialBalance: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1133
|
+
key: z.ZodOptional<z.ZodType<Key, z.ZodTypeDef, Key>>;
|
|
1134
|
+
maxAutomaticTokenAssociations: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodType<Long, z.ZodTypeDef, Long>]>>;
|
|
1135
|
+
}, "strip", z.ZodTypeAny, {
|
|
1136
|
+
schedulingParams?: {
|
|
1137
|
+
isScheduled: boolean;
|
|
1138
|
+
adminKey?: _hashgraph_sdk.PublicKey | undefined;
|
|
1139
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1140
|
+
waitForExpiry?: boolean | undefined;
|
|
1141
|
+
payerAccountID?: AccountId | undefined;
|
|
1142
|
+
} | undefined;
|
|
1143
|
+
accountMemo?: string | undefined;
|
|
1144
|
+
initialBalance?: string | number | undefined;
|
|
1145
|
+
maxAutomaticTokenAssociations?: number | Long | undefined;
|
|
1146
|
+
key?: Key | undefined;
|
|
1147
|
+
}, {
|
|
1148
|
+
schedulingParams?: {
|
|
1149
|
+
isScheduled: boolean;
|
|
1150
|
+
adminKey?: _hashgraph_sdk.PublicKey | undefined;
|
|
1151
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1152
|
+
waitForExpiry?: boolean | undefined;
|
|
1153
|
+
payerAccountID?: AccountId | undefined;
|
|
1154
|
+
} | undefined;
|
|
1155
|
+
accountMemo?: string | undefined;
|
|
1156
|
+
initialBalance?: string | number | undefined;
|
|
1157
|
+
maxAutomaticTokenAssociations?: number | Long | undefined;
|
|
1158
|
+
key?: Key | undefined;
|
|
1159
|
+
}>;
|
|
1160
|
+
declare const deleteAccountParametersNormalised: (_context?: Context) => z.ZodObject<{
|
|
1161
|
+
accountId: z.ZodType<AccountId, z.ZodTypeDef, AccountId>;
|
|
1162
|
+
transferAccountId: z.ZodType<AccountId, z.ZodTypeDef, AccountId>;
|
|
1163
|
+
}, "strip", z.ZodTypeAny, {
|
|
1164
|
+
accountId: AccountId;
|
|
1165
|
+
transferAccountId: AccountId;
|
|
1166
|
+
}, {
|
|
1167
|
+
accountId: AccountId;
|
|
1168
|
+
transferAccountId: AccountId;
|
|
1169
|
+
}>;
|
|
1170
|
+
declare const updateAccountParametersNormalised: (_context?: Context) => z.ZodObject<{
|
|
1171
|
+
schedulingParams: z.ZodOptional<z.ZodObject<{
|
|
1172
|
+
isScheduled: z.ZodBoolean;
|
|
1173
|
+
adminKey: z.ZodOptional<z.ZodType<_hashgraph_sdk.PublicKey, z.ZodTypeDef, _hashgraph_sdk.PublicKey>>;
|
|
1174
|
+
payerAccountID: z.ZodOptional<z.ZodType<AccountId, z.ZodTypeDef, AccountId>>;
|
|
1175
|
+
expirationTime: z.ZodOptional<z.ZodType<_hashgraph_sdk.Timestamp, z.ZodTypeDef, _hashgraph_sdk.Timestamp>>;
|
|
1176
|
+
waitForExpiry: z.ZodOptional<z.ZodBoolean>;
|
|
1177
|
+
}, "strip", z.ZodTypeAny, {
|
|
1178
|
+
isScheduled: boolean;
|
|
1179
|
+
adminKey?: _hashgraph_sdk.PublicKey | undefined;
|
|
1180
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1181
|
+
waitForExpiry?: boolean | undefined;
|
|
1182
|
+
payerAccountID?: AccountId | undefined;
|
|
1183
|
+
}, {
|
|
1184
|
+
isScheduled: boolean;
|
|
1185
|
+
adminKey?: _hashgraph_sdk.PublicKey | undefined;
|
|
1186
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1187
|
+
waitForExpiry?: boolean | undefined;
|
|
1188
|
+
payerAccountID?: AccountId | undefined;
|
|
1189
|
+
}>>;
|
|
1190
|
+
} & {
|
|
1191
|
+
accountId: z.ZodType<AccountId, z.ZodTypeDef, AccountId>;
|
|
1192
|
+
maxAutomaticTokenAssociations: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodType<Long, z.ZodTypeDef, Long>]>>;
|
|
1193
|
+
stakedAccountId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<AccountId, z.ZodTypeDef, AccountId>]>>;
|
|
1194
|
+
accountMemo: z.ZodOptional<z.ZodString>;
|
|
1195
|
+
declineStakingReward: z.ZodOptional<z.ZodBoolean>;
|
|
1196
|
+
}, "strip", z.ZodTypeAny, {
|
|
1197
|
+
accountId: AccountId;
|
|
1198
|
+
schedulingParams?: {
|
|
1199
|
+
isScheduled: boolean;
|
|
1200
|
+
adminKey?: _hashgraph_sdk.PublicKey | undefined;
|
|
1201
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1202
|
+
waitForExpiry?: boolean | undefined;
|
|
1203
|
+
payerAccountID?: AccountId | undefined;
|
|
1204
|
+
} | undefined;
|
|
1205
|
+
accountMemo?: string | undefined;
|
|
1206
|
+
maxAutomaticTokenAssociations?: number | Long | undefined;
|
|
1207
|
+
stakedAccountId?: string | AccountId | undefined;
|
|
1208
|
+
declineStakingReward?: boolean | undefined;
|
|
1209
|
+
}, {
|
|
1210
|
+
accountId: AccountId;
|
|
1211
|
+
schedulingParams?: {
|
|
1212
|
+
isScheduled: boolean;
|
|
1213
|
+
adminKey?: _hashgraph_sdk.PublicKey | undefined;
|
|
1214
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1215
|
+
waitForExpiry?: boolean | undefined;
|
|
1216
|
+
payerAccountID?: AccountId | undefined;
|
|
1217
|
+
} | undefined;
|
|
1218
|
+
accountMemo?: string | undefined;
|
|
1219
|
+
maxAutomaticTokenAssociations?: number | Long | undefined;
|
|
1220
|
+
stakedAccountId?: string | AccountId | undefined;
|
|
1221
|
+
declineStakingReward?: boolean | undefined;
|
|
1222
|
+
}>;
|
|
1223
|
+
declare const signScheduleTransactionParameters: (_context?: Context) => z.ZodObject<{
|
|
1224
|
+
scheduleId: z.ZodString;
|
|
1225
|
+
}, "strip", z.ZodTypeAny, {
|
|
1226
|
+
scheduleId: string;
|
|
1227
|
+
}, {
|
|
1228
|
+
scheduleId: string;
|
|
1229
|
+
}>;
|
|
1230
|
+
declare const scheduleDeleteTransactionParameters: (_context?: Context) => z.ZodObject<{
|
|
1231
|
+
scheduleId: z.ZodString;
|
|
1232
|
+
}, "strip", z.ZodTypeAny, {
|
|
1233
|
+
scheduleId: string;
|
|
1234
|
+
}, {
|
|
1235
|
+
scheduleId: string;
|
|
1236
|
+
}>;
|
|
1237
|
+
declare const approveHbarAllowanceParametersNormalised: (_context?: Context) => z.ZodObject<{
|
|
1238
|
+
hbarApprovals: z.ZodOptional<z.ZodArray<z.ZodType<HbarAllowance, z.ZodTypeDef, HbarAllowance>, "many">>;
|
|
1239
|
+
transactionMemo: z.ZodOptional<z.ZodString>;
|
|
1240
|
+
}, "strip", z.ZodTypeAny, {
|
|
1241
|
+
transactionMemo?: string | undefined;
|
|
1242
|
+
hbarApprovals?: HbarAllowance[] | undefined;
|
|
1243
|
+
}, {
|
|
1244
|
+
transactionMemo?: string | undefined;
|
|
1245
|
+
hbarApprovals?: HbarAllowance[] | undefined;
|
|
1246
|
+
}>;
|
|
1247
|
+
declare const approveTokenAllowanceParametersNormalised: (_context?: Context) => z.ZodObject<{
|
|
1248
|
+
tokenApprovals: z.ZodOptional<z.ZodArray<z.ZodType<TokenAllowance$1, z.ZodTypeDef, TokenAllowance$1>, "many">>;
|
|
1249
|
+
transactionMemo: z.ZodOptional<z.ZodString>;
|
|
1250
|
+
}, "strip", z.ZodTypeAny, {
|
|
1251
|
+
transactionMemo?: string | undefined;
|
|
1252
|
+
tokenApprovals?: TokenAllowance$1[] | undefined;
|
|
1253
|
+
}, {
|
|
1254
|
+
transactionMemo?: string | undefined;
|
|
1255
|
+
tokenApprovals?: TokenAllowance$1[] | undefined;
|
|
1256
|
+
}>;
|
|
1257
|
+
declare const transferHbarWithAllowanceParametersNormalised: (_context?: Context) => z.ZodObject<{
|
|
1258
|
+
hbarTransfers: z.ZodArray<z.ZodObject<{
|
|
1259
|
+
accountId: z.ZodUnion<[z.ZodString, z.ZodType<AccountId, z.ZodTypeDef, AccountId>]>;
|
|
1260
|
+
amount: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodType<Hbar, z.ZodTypeDef, Hbar>, z.ZodType<Long, z.ZodTypeDef, Long>, z.ZodType<BigNumber, z.ZodTypeDef, BigNumber>]>;
|
|
1261
|
+
}, "strip", z.ZodTypeAny, {
|
|
1262
|
+
accountId: string | AccountId;
|
|
1263
|
+
amount: string | number | BigNumber | Long | Hbar;
|
|
1264
|
+
}, {
|
|
1265
|
+
accountId: string | AccountId;
|
|
1266
|
+
amount: string | number | BigNumber | Long | Hbar;
|
|
1267
|
+
}>, "many">;
|
|
1268
|
+
hbarApprovedTransfer: z.ZodObject<{
|
|
1269
|
+
ownerAccountId: z.ZodType<AccountId, z.ZodTypeDef, AccountId>;
|
|
1270
|
+
amount: z.ZodType<Hbar, z.ZodTypeDef, Hbar>;
|
|
1271
|
+
}, "strip", z.ZodTypeAny, {
|
|
1272
|
+
amount: Hbar;
|
|
1273
|
+
ownerAccountId: AccountId;
|
|
1274
|
+
}, {
|
|
1275
|
+
amount: Hbar;
|
|
1276
|
+
ownerAccountId: AccountId;
|
|
1277
|
+
}>;
|
|
1278
|
+
transactionMemo: z.ZodOptional<z.ZodString>;
|
|
1279
|
+
}, "strip", z.ZodTypeAny, {
|
|
1280
|
+
hbarTransfers: {
|
|
1281
|
+
accountId: string | AccountId;
|
|
1282
|
+
amount: string | number | BigNumber | Long | Hbar;
|
|
1283
|
+
}[];
|
|
1284
|
+
hbarApprovedTransfer: {
|
|
1285
|
+
amount: Hbar;
|
|
1286
|
+
ownerAccountId: AccountId;
|
|
1287
|
+
};
|
|
1288
|
+
transactionMemo?: string | undefined;
|
|
1289
|
+
}, {
|
|
1290
|
+
hbarTransfers: {
|
|
1291
|
+
accountId: string | AccountId;
|
|
1292
|
+
amount: string | number | BigNumber | Long | Hbar;
|
|
1293
|
+
}[];
|
|
1294
|
+
hbarApprovedTransfer: {
|
|
1295
|
+
amount: Hbar;
|
|
1296
|
+
ownerAccountId: AccountId;
|
|
1297
|
+
};
|
|
1298
|
+
transactionMemo?: string | undefined;
|
|
1299
|
+
}>;
|
|
1300
|
+
|
|
1301
|
+
declare const createTopicParametersNormalised: (_context?: Context) => z.ZodObject<{
|
|
1302
|
+
isSubmitKey: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1303
|
+
topicMemo: z.ZodOptional<z.ZodString>;
|
|
1304
|
+
transactionMemo: z.ZodOptional<z.ZodString>;
|
|
1305
|
+
} & {
|
|
1306
|
+
autoRenewAccountId: z.ZodString;
|
|
1307
|
+
submitKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
1308
|
+
adminKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
1309
|
+
}, "strip", z.ZodTypeAny, {
|
|
1310
|
+
autoRenewAccountId: string;
|
|
1311
|
+
isSubmitKey: boolean;
|
|
1312
|
+
adminKey?: PublicKey | undefined;
|
|
1313
|
+
transactionMemo?: string | undefined;
|
|
1314
|
+
topicMemo?: string | undefined;
|
|
1315
|
+
submitKey?: PublicKey | undefined;
|
|
1316
|
+
}, {
|
|
1317
|
+
autoRenewAccountId: string;
|
|
1318
|
+
adminKey?: PublicKey | undefined;
|
|
1319
|
+
transactionMemo?: string | undefined;
|
|
1320
|
+
isSubmitKey?: boolean | undefined;
|
|
1321
|
+
topicMemo?: string | undefined;
|
|
1322
|
+
submitKey?: PublicKey | undefined;
|
|
1323
|
+
}>;
|
|
1324
|
+
declare const submitTopicMessageParametersNormalised: (_context?: Context) => z.ZodObject<Omit<{
|
|
1325
|
+
schedulingParams: z.ZodOptional<z.ZodObject<{
|
|
1326
|
+
isScheduled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1327
|
+
adminKey: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodString]>>>;
|
|
1328
|
+
payerAccountId: z.ZodOptional<z.ZodString>;
|
|
1329
|
+
expirationTime: z.ZodOptional<z.ZodString>;
|
|
1330
|
+
waitForExpiry: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1331
|
+
}, "strip", z.ZodTypeAny, {
|
|
1332
|
+
isScheduled: boolean;
|
|
1333
|
+
adminKey: string | boolean;
|
|
1334
|
+
waitForExpiry: boolean;
|
|
1335
|
+
payerAccountId?: string | undefined;
|
|
1336
|
+
expirationTime?: string | undefined;
|
|
1337
|
+
}, {
|
|
1338
|
+
isScheduled?: boolean | undefined;
|
|
1339
|
+
adminKey?: string | boolean | undefined;
|
|
1340
|
+
payerAccountId?: string | undefined;
|
|
1341
|
+
expirationTime?: string | undefined;
|
|
1342
|
+
waitForExpiry?: boolean | undefined;
|
|
1343
|
+
}>>;
|
|
1344
|
+
} & {
|
|
1345
|
+
topicId: z.ZodString;
|
|
1346
|
+
message: z.ZodString;
|
|
1347
|
+
transactionMemo: z.ZodOptional<z.ZodString>;
|
|
1348
|
+
}, "schedulingParams"> & {
|
|
1349
|
+
schedulingParams: z.ZodOptional<z.ZodObject<{
|
|
1350
|
+
isScheduled: z.ZodBoolean;
|
|
1351
|
+
adminKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
1352
|
+
payerAccountID: z.ZodOptional<z.ZodType<AccountId, z.ZodTypeDef, AccountId>>;
|
|
1353
|
+
expirationTime: z.ZodOptional<z.ZodType<_hashgraph_sdk.Timestamp, z.ZodTypeDef, _hashgraph_sdk.Timestamp>>;
|
|
1354
|
+
waitForExpiry: z.ZodOptional<z.ZodBoolean>;
|
|
1355
|
+
}, "strip", z.ZodTypeAny, {
|
|
1356
|
+
isScheduled: boolean;
|
|
1357
|
+
adminKey?: PublicKey | undefined;
|
|
1358
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1359
|
+
waitForExpiry?: boolean | undefined;
|
|
1360
|
+
payerAccountID?: AccountId | undefined;
|
|
1361
|
+
}, {
|
|
1362
|
+
isScheduled: boolean;
|
|
1363
|
+
adminKey?: PublicKey | undefined;
|
|
1364
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1365
|
+
waitForExpiry?: boolean | undefined;
|
|
1366
|
+
payerAccountID?: AccountId | undefined;
|
|
1367
|
+
}>>;
|
|
1368
|
+
}, "strip", z.ZodTypeAny, {
|
|
1369
|
+
message: string;
|
|
1370
|
+
topicId: string;
|
|
1371
|
+
schedulingParams?: {
|
|
1372
|
+
isScheduled: boolean;
|
|
1373
|
+
adminKey?: PublicKey | undefined;
|
|
1374
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1375
|
+
waitForExpiry?: boolean | undefined;
|
|
1376
|
+
payerAccountID?: AccountId | undefined;
|
|
1377
|
+
} | undefined;
|
|
1378
|
+
transactionMemo?: string | undefined;
|
|
1379
|
+
}, {
|
|
1380
|
+
message: string;
|
|
1381
|
+
topicId: string;
|
|
1382
|
+
schedulingParams?: {
|
|
1383
|
+
isScheduled: boolean;
|
|
1384
|
+
adminKey?: PublicKey | undefined;
|
|
1385
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1386
|
+
waitForExpiry?: boolean | undefined;
|
|
1387
|
+
payerAccountID?: AccountId | undefined;
|
|
1388
|
+
} | undefined;
|
|
1389
|
+
transactionMemo?: string | undefined;
|
|
1390
|
+
}>;
|
|
1391
|
+
declare const deleteTopicParametersNormalised: (_context?: Context) => z.ZodObject<{
|
|
1392
|
+
topicId: z.ZodString;
|
|
1393
|
+
}, "strip", z.ZodTypeAny, {
|
|
1394
|
+
topicId: string;
|
|
1395
|
+
}, {
|
|
1396
|
+
topicId: string;
|
|
1397
|
+
}>;
|
|
1398
|
+
declare const updateTopicParametersNormalised: (_context?: Context) => z.ZodObject<{
|
|
1399
|
+
topicId: z.ZodType<TopicId, z.ZodTypeDef, TopicId>;
|
|
1400
|
+
topicMemo: z.ZodOptional<z.ZodString>;
|
|
1401
|
+
adminKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
1402
|
+
submitKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
1403
|
+
autoRenewAccountId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<AccountId, z.ZodTypeDef, AccountId>]>>;
|
|
1404
|
+
autoRenewPeriod: z.ZodOptional<z.ZodNumber>;
|
|
1405
|
+
expirationTime: z.ZodOptional<z.ZodType<Date, z.ZodTypeDef, Date>>;
|
|
1406
|
+
}, "strip", z.ZodTypeAny, {
|
|
1407
|
+
topicId: TopicId;
|
|
1408
|
+
adminKey?: PublicKey | undefined;
|
|
1409
|
+
expirationTime?: Date | undefined;
|
|
1410
|
+
autoRenewAccountId?: string | AccountId | undefined;
|
|
1411
|
+
topicMemo?: string | undefined;
|
|
1412
|
+
submitKey?: PublicKey | undefined;
|
|
1413
|
+
autoRenewPeriod?: number | undefined;
|
|
1414
|
+
}, {
|
|
1415
|
+
topicId: TopicId;
|
|
1416
|
+
adminKey?: PublicKey | undefined;
|
|
1417
|
+
expirationTime?: Date | undefined;
|
|
1418
|
+
autoRenewAccountId?: string | AccountId | undefined;
|
|
1419
|
+
topicMemo?: string | undefined;
|
|
1420
|
+
submitKey?: PublicKey | undefined;
|
|
1421
|
+
autoRenewPeriod?: number | undefined;
|
|
1422
|
+
}>;
|
|
1423
|
+
|
|
1424
|
+
declare const contractExecuteTransactionParametersNormalised: (context?: Context) => z.ZodObject<{
|
|
1425
|
+
schedulingParams: z.ZodOptional<z.ZodObject<{
|
|
1426
|
+
isScheduled: z.ZodBoolean;
|
|
1427
|
+
adminKey: z.ZodOptional<z.ZodType<_hashgraph_sdk.PublicKey, z.ZodTypeDef, _hashgraph_sdk.PublicKey>>;
|
|
1428
|
+
payerAccountID: z.ZodOptional<z.ZodType<_hashgraph_sdk.AccountId, z.ZodTypeDef, _hashgraph_sdk.AccountId>>;
|
|
1429
|
+
expirationTime: z.ZodOptional<z.ZodType<_hashgraph_sdk.Timestamp, z.ZodTypeDef, _hashgraph_sdk.Timestamp>>;
|
|
1430
|
+
waitForExpiry: z.ZodOptional<z.ZodBoolean>;
|
|
1431
|
+
}, "strip", z.ZodTypeAny, {
|
|
1432
|
+
isScheduled: boolean;
|
|
1433
|
+
adminKey?: _hashgraph_sdk.PublicKey | undefined;
|
|
1434
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1435
|
+
waitForExpiry?: boolean | undefined;
|
|
1436
|
+
payerAccountID?: _hashgraph_sdk.AccountId | undefined;
|
|
1437
|
+
}, {
|
|
1438
|
+
isScheduled: boolean;
|
|
1439
|
+
adminKey?: _hashgraph_sdk.PublicKey | undefined;
|
|
1440
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1441
|
+
waitForExpiry?: boolean | undefined;
|
|
1442
|
+
payerAccountID?: _hashgraph_sdk.AccountId | undefined;
|
|
1443
|
+
}>>;
|
|
1444
|
+
} & {
|
|
1445
|
+
contractId: z.ZodString;
|
|
1446
|
+
functionParameters: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
|
|
1447
|
+
gas: z.ZodNumber;
|
|
1448
|
+
} & {
|
|
1449
|
+
payableAmount: z.ZodOptional<z.ZodNumber>;
|
|
1450
|
+
}, "strip", z.ZodTypeAny, {
|
|
1451
|
+
contractId: string;
|
|
1452
|
+
functionParameters: Uint8Array<ArrayBufferLike>;
|
|
1453
|
+
gas: number;
|
|
1454
|
+
schedulingParams?: {
|
|
1455
|
+
isScheduled: boolean;
|
|
1456
|
+
adminKey?: _hashgraph_sdk.PublicKey | undefined;
|
|
1457
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1458
|
+
waitForExpiry?: boolean | undefined;
|
|
1459
|
+
payerAccountID?: _hashgraph_sdk.AccountId | undefined;
|
|
1460
|
+
} | undefined;
|
|
1461
|
+
payableAmount?: number | undefined;
|
|
1462
|
+
}, {
|
|
1463
|
+
contractId: string;
|
|
1464
|
+
functionParameters: Uint8Array<ArrayBufferLike>;
|
|
1465
|
+
gas: number;
|
|
1466
|
+
schedulingParams?: {
|
|
1467
|
+
isScheduled: boolean;
|
|
1468
|
+
adminKey?: _hashgraph_sdk.PublicKey | undefined;
|
|
1469
|
+
expirationTime?: _hashgraph_sdk.Timestamp | undefined;
|
|
1470
|
+
waitForExpiry?: boolean | undefined;
|
|
1471
|
+
payerAccountID?: _hashgraph_sdk.AccountId | undefined;
|
|
1472
|
+
} | undefined;
|
|
1473
|
+
payableAmount?: number | undefined;
|
|
1474
|
+
}>;
|
|
1475
|
+
|
|
1476
|
+
declare const optionalScheduledTransactionParamsNormalised: (_context: Context) => z.ZodObject<{
|
|
1477
|
+
schedulingParams: z.ZodOptional<z.ZodObject<{
|
|
1478
|
+
isScheduled: z.ZodBoolean;
|
|
1479
|
+
adminKey: z.ZodOptional<z.ZodType<PublicKey, z.ZodTypeDef, PublicKey>>;
|
|
1480
|
+
payerAccountID: z.ZodOptional<z.ZodType<AccountId, z.ZodTypeDef, AccountId>>;
|
|
1481
|
+
expirationTime: z.ZodOptional<z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>>;
|
|
1482
|
+
waitForExpiry: z.ZodOptional<z.ZodBoolean>;
|
|
1483
|
+
}, "strip", z.ZodTypeAny, {
|
|
1484
|
+
isScheduled: boolean;
|
|
1485
|
+
adminKey?: PublicKey | undefined;
|
|
1486
|
+
expirationTime?: Timestamp | undefined;
|
|
1487
|
+
waitForExpiry?: boolean | undefined;
|
|
1488
|
+
payerAccountID?: AccountId | undefined;
|
|
1489
|
+
}, {
|
|
1490
|
+
isScheduled: boolean;
|
|
1491
|
+
adminKey?: PublicKey | undefined;
|
|
1492
|
+
expirationTime?: Timestamp | undefined;
|
|
1493
|
+
waitForExpiry?: boolean | undefined;
|
|
1494
|
+
payerAccountID?: AccountId | undefined;
|
|
1495
|
+
}>>;
|
|
1496
|
+
}, "strip", z.ZodTypeAny, {
|
|
1497
|
+
schedulingParams?: {
|
|
1498
|
+
isScheduled: boolean;
|
|
1499
|
+
adminKey?: PublicKey | undefined;
|
|
1500
|
+
expirationTime?: Timestamp | undefined;
|
|
1501
|
+
waitForExpiry?: boolean | undefined;
|
|
1502
|
+
payerAccountID?: AccountId | undefined;
|
|
1503
|
+
} | undefined;
|
|
1504
|
+
}, {
|
|
1505
|
+
schedulingParams?: {
|
|
1506
|
+
isScheduled: boolean;
|
|
1507
|
+
adminKey?: PublicKey | undefined;
|
|
1508
|
+
expirationTime?: Timestamp | undefined;
|
|
1509
|
+
waitForExpiry?: boolean | undefined;
|
|
1510
|
+
payerAccountID?: AccountId | undefined;
|
|
1511
|
+
} | undefined;
|
|
1512
|
+
}>;
|
|
1513
|
+
|
|
1514
|
+
declare class HederaBuilder {
|
|
1515
|
+
static createFungibleToken(params: z$1.infer<ReturnType<typeof createFungibleTokenParametersNormalised>>): Transaction;
|
|
1516
|
+
static createNonFungibleToken(params: z$1.infer<ReturnType<typeof createNonFungibleTokenParametersNormalised>>): Transaction;
|
|
1517
|
+
static transferHbar(params: z$1.infer<ReturnType<typeof transferHbarParametersNormalised>>): Transaction;
|
|
1518
|
+
static transferNonFungibleTokenWithAllowance(params: z$1.infer<ReturnType<typeof transferNonFungibleTokenWithAllowanceParametersNormalised>>): TransferTransaction;
|
|
1519
|
+
static transferNonFungibleToken(params: z$1.infer<ReturnType<typeof transferNonFungibleTokenParametersNormalised>>): Transaction;
|
|
1520
|
+
static transferHbarWithAllowance(params: z$1.infer<ReturnType<typeof transferHbarWithAllowanceParametersNormalised>>): TransferTransaction;
|
|
1521
|
+
static airdropFungibleToken(params: z$1.infer<ReturnType<typeof airdropFungibleTokenParametersNormalised>>): TokenAirdropTransaction;
|
|
1522
|
+
static transferFungibleTokenWithAllowance(params: z$1.infer<ReturnType<typeof transferFungibleTokenWithAllowanceParametersNormalised>>): Transaction;
|
|
1523
|
+
static updateToken(params: z$1.infer<ReturnType<typeof updateTokenParametersNormalised>>): TokenUpdateTransaction;
|
|
1524
|
+
static createTopic(params: z$1.infer<ReturnType<typeof createTopicParametersNormalised>>): TopicCreateTransaction;
|
|
1525
|
+
static submitTopicMessage(params: z$1.infer<ReturnType<typeof submitTopicMessageParametersNormalised>>): Transaction;
|
|
1526
|
+
static updateTopic(params: z$1.infer<ReturnType<typeof updateTopicParametersNormalised>>): TopicUpdateTransaction;
|
|
1527
|
+
static executeTransaction(params: z$1.infer<ReturnType<typeof contractExecuteTransactionParametersNormalised>>): Transaction;
|
|
1528
|
+
static mintFungibleToken(params: z$1.infer<ReturnType<typeof mintFungibleTokenParametersNormalised>>): Transaction;
|
|
1529
|
+
static mintNonFungibleToken(params: z$1.infer<ReturnType<typeof mintNonFungibleTokenParametersNormalised>>): Transaction;
|
|
1530
|
+
static dissociateToken(params: z$1.infer<ReturnType<typeof dissociateTokenParametersNormalised>>): TokenDissociateTransaction;
|
|
1531
|
+
static createAccount(params: z$1.infer<ReturnType<typeof createAccountParametersNormalised>>): Transaction;
|
|
1532
|
+
static deleteAccount(params: z$1.infer<ReturnType<typeof deleteAccountParametersNormalised>>): AccountDeleteTransaction;
|
|
1533
|
+
static updateAccount(params: z$1.infer<ReturnType<typeof updateAccountParametersNormalised>>): Transaction;
|
|
1534
|
+
static deleteToken(params: z$1.infer<ReturnType<typeof deleteTokenParametersNormalised>>): TokenDeleteTransaction;
|
|
1535
|
+
static deleteTopic(params: z$1.infer<ReturnType<typeof deleteTopicParametersNormalised>>): TopicDeleteTransaction;
|
|
1536
|
+
static signScheduleTransaction(params: z$1.infer<ReturnType<typeof signScheduleTransactionParameters>>): ScheduleSignTransaction;
|
|
1537
|
+
static deleteScheduleTransaction(params: z$1.infer<ReturnType<typeof scheduleDeleteTransactionParameters>>): ScheduleDeleteTransaction;
|
|
1538
|
+
static associateToken(params: z$1.infer<ReturnType<typeof associateTokenParametersNormalised>>): TokenAssociateTransaction;
|
|
1539
|
+
private static buildAccountAllowanceApproveTx;
|
|
1540
|
+
static approveHbarAllowance(params: z$1.infer<ReturnType<typeof approveHbarAllowanceParametersNormalised>>): AccountAllowanceApproveTransaction;
|
|
1541
|
+
static approveNftAllowance(params: z$1.infer<ReturnType<typeof approveNftAllowanceParametersNormalised>>): AccountAllowanceApproveTransaction;
|
|
1542
|
+
static deleteNftAllowance(params: z$1.infer<ReturnType<typeof deleteNftAllowanceParametersNormalised>>): AccountAllowanceDeleteTransaction;
|
|
1543
|
+
static approveTokenAllowance(params: z$1.infer<ReturnType<typeof approveTokenAllowanceParametersNormalised>>): AccountAllowanceApproveTransaction;
|
|
1544
|
+
static maybeWrapInSchedule(tx: Transaction, schedulingParams?: z$1.infer<ReturnType<typeof optionalScheduledTransactionParamsNormalised>>['schedulingParams']): Transaction;
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
declare class HederaAgentKitTool extends StructuredTool {
|
|
1548
|
+
hederaAPI: HederaAgentAPI;
|
|
1549
|
+
method: string;
|
|
1550
|
+
name: string;
|
|
1551
|
+
description: string;
|
|
1552
|
+
schema: z.ZodObject<any, any>;
|
|
1553
|
+
responseParsingFunction?: (response: any) => {};
|
|
1554
|
+
constructor(HederaAgentKitAPI: HederaAgentAPI, method: string, description: string, schema: z.ZodObject<any, any>, responseParsingFunction?: (response: any) => {});
|
|
1555
|
+
_call(arg: z.output<typeof this.schema>, _runManager?: CallbackManagerForToolRun, _parentConfig?: RunnableConfig): Promise<any>;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
declare class HederaLangchainToolkit implements BaseToolkit {
|
|
1559
|
+
private _hederaAgentKit;
|
|
1560
|
+
private _configuration;
|
|
1561
|
+
tools: HederaAgentKitTool[];
|
|
1562
|
+
constructor({ client, configuration }: {
|
|
1563
|
+
client: Client;
|
|
1564
|
+
configuration: Configuration;
|
|
1565
|
+
});
|
|
1566
|
+
getTools(): HederaAgentKitTool[];
|
|
1567
|
+
/**
|
|
1568
|
+
* Asynchronously loads tools from configured MCP servers.
|
|
1569
|
+
* This allows for explicit loading of external tools independent of the core HAK tools.
|
|
1570
|
+
*/
|
|
1571
|
+
getMcpTools(): Promise<StructuredToolInterface[]>;
|
|
1572
|
+
getHederaAgentKitAPI(): HederaAgentAPI;
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
/**
|
|
1576
|
+
* This interface defines the shape of the object response from the agent.
|
|
1577
|
+
*/
|
|
1578
|
+
interface AgentResponse {
|
|
1579
|
+
messages: BaseMessage[];
|
|
1580
|
+
}
|
|
1581
|
+
type ParsingFunction = (content: string) => {};
|
|
1582
|
+
declare class ResponseParserService {
|
|
1583
|
+
processedMessageIds: Set<string>;
|
|
1584
|
+
tools: HederaAgentKitTool[];
|
|
1585
|
+
parsingMap: Map<string, ParsingFunction>;
|
|
1586
|
+
constructor(tools: HederaAgentKitTool[]);
|
|
1587
|
+
/**
|
|
1588
|
+
* Creates a map of tool names to their respective parsing functions.
|
|
1589
|
+
*/
|
|
1590
|
+
createParsingMap(tools: HederaAgentKitTool[]): Map<string, ParsingFunction>;
|
|
1591
|
+
/**
|
|
1592
|
+
* Type guard to check if a message is a ToolMessage.
|
|
1593
|
+
* We check for `type === 'tool'` and the properties that a ToolMessage has.
|
|
1594
|
+
*/
|
|
1595
|
+
private isToolMessage;
|
|
1596
|
+
/**
|
|
1597
|
+
* Parses all new ToolMessages in the response and returns an array of
|
|
1598
|
+
* structured data objects from the tool calls.
|
|
1599
|
+
*/
|
|
1600
|
+
parseNewToolMessages(response: AgentResponse): any[];
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
declare class HederaMCPToolkit extends McpServer {
|
|
1604
|
+
private _hederaAgentKit;
|
|
1605
|
+
constructor({ client, configuration }: {
|
|
1606
|
+
client: Client;
|
|
1607
|
+
configuration: Configuration;
|
|
1608
|
+
});
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
declare class HederaAIToolkit {
|
|
1612
|
+
private _hedera;
|
|
1613
|
+
private _configuration;
|
|
1614
|
+
tools: {
|
|
1615
|
+
[key: string]: Tool$1;
|
|
1616
|
+
};
|
|
1617
|
+
constructor({ client, configuration }: {
|
|
1618
|
+
client: Client;
|
|
1619
|
+
configuration: Configuration;
|
|
1620
|
+
});
|
|
1621
|
+
/**
|
|
1622
|
+
* Asynchronously loads tools from configured MCP servers.
|
|
1623
|
+
* This allows for explicit loading of external tools independent of the core HAK tools.
|
|
1624
|
+
*/
|
|
1625
|
+
getMcpTools(): Promise<Record<string, Tool$1>>;
|
|
1626
|
+
middleware(): LanguageModelMiddleware;
|
|
1627
|
+
getTools(): {
|
|
1628
|
+
[key: string]: Tool$1;
|
|
1629
|
+
};
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
declare const coreTokenPlugin: Plugin;
|
|
1633
|
+
declare const coreTokenPluginToolNames: {
|
|
1634
|
+
readonly AIRDROP_FUNGIBLE_TOKEN_TOOL: "airdrop_fungible_token_tool";
|
|
1635
|
+
readonly CREATE_FUNGIBLE_TOKEN_TOOL: "create_fungible_token_tool";
|
|
1636
|
+
readonly MINT_FUNGIBLE_TOKEN_TOOL: "mint_fungible_token_tool";
|
|
1637
|
+
readonly CREATE_NON_FUNGIBLE_TOKEN_TOOL: "create_non_fungible_token_tool";
|
|
1638
|
+
readonly MINT_NON_FUNGIBLE_TOKEN_TOOL: "mint_non_fungible_token_tool";
|
|
1639
|
+
readonly APPROVE_NFT_ALLOWANCE_TOOL: "approve_nft_allowance_tool";
|
|
1640
|
+
readonly DELETE_NFT_ALLOWANCE_TOOL: "delete_non_fungible_token_allowance_tool";
|
|
1641
|
+
readonly DISSOCIATE_TOKEN_TOOL: "dissociate_token_tool";
|
|
1642
|
+
readonly ASSOCIATE_TOKEN_TOOL: "associate_token_tool";
|
|
1643
|
+
readonly UPDATE_TOKEN_TOOL: "update_token_tool";
|
|
1644
|
+
readonly TRANSFER_NON_FUNGIBLE_TOKEN_WITH_ALLOWANCE_TOOL: "transfer_non_fungible_token_with_allowance_tool";
|
|
1645
|
+
readonly TRANSFER_NON_FUNGIBLE_TOKEN_TOOL: "transfer_non_fungible_token_tool";
|
|
1646
|
+
readonly TRANSFER_FUNGIBLE_TOKEN_WITH_ALLOWANCE_TOOL: "transfer_fungible_token_with_allowance_tool";
|
|
1647
|
+
};
|
|
1648
|
+
|
|
1649
|
+
declare const coreAccountPlugin: Plugin;
|
|
1650
|
+
declare const coreAccountPluginToolNames: {
|
|
1651
|
+
readonly TRANSFER_HBAR_TOOL: "transfer_hbar_tool";
|
|
1652
|
+
readonly APPROVE_HBAR_ALLOWANCE_TOOL: "approve_hbar_allowance_tool";
|
|
1653
|
+
readonly DELETE_HBAR_ALLOWANCE_TOOL: "delete_hbar_allowance_tool";
|
|
1654
|
+
readonly CREATE_ACCOUNT_TOOL: "create_account_tool";
|
|
1655
|
+
readonly DELETE_ACCOUNT_TOOL: "delete_account_tool";
|
|
1656
|
+
readonly UPDATE_ACCOUNT_TOOL: "update_account_tool";
|
|
1657
|
+
readonly SIGN_SCHEDULE_TRANSACTION_TOOL: "sign_schedule_transaction_tool";
|
|
1658
|
+
readonly SCHEDULE_DELETE_TOOL: "schedule_delete_tool";
|
|
1659
|
+
readonly APPROVE_TOKEN_ALLOWANCE_TOOL: "approve_token_allowance_tool";
|
|
1660
|
+
readonly DELETE_TOKEN_ALLOWANCE_TOOL: "delete_token_allowance_tool";
|
|
1661
|
+
readonly TRANSFER_HBAR_WITH_ALLOWANCE_TOOL: "transfer_hbar_with_allowance_tool";
|
|
1662
|
+
};
|
|
1663
|
+
|
|
1664
|
+
declare const coreConsensusPlugin: Plugin;
|
|
1665
|
+
declare const coreConsensusPluginToolNames: {
|
|
1666
|
+
readonly CREATE_TOPIC_TOOL: "create_topic_tool";
|
|
1667
|
+
readonly SUBMIT_TOPIC_MESSAGE_TOOL: "submit_topic_message_tool";
|
|
1668
|
+
readonly DELETE_TOPIC_TOOL: "delete_topic_tool";
|
|
1669
|
+
readonly UPDATE_TOPIC_TOOL: "update_topic_tool";
|
|
1670
|
+
};
|
|
1671
|
+
|
|
1672
|
+
/**
|
|
1673
|
+
* @deprecated This plugin is deprecated. Use the specific query plugins instead:
|
|
1674
|
+
* - coreAccountQueryPlugin for account-related queries
|
|
1675
|
+
* - coreTokenQueryPlugin for token-related queries
|
|
1676
|
+
* - coreConsensusQueryPlugin for consensus-related queries
|
|
1677
|
+
* This export will be removed in a future version.
|
|
1678
|
+
*/
|
|
1679
|
+
declare const coreQueriesPlugin: Plugin;
|
|
1680
|
+
/**
|
|
1681
|
+
* @deprecated Use the specific query plugin tool names instead:
|
|
1682
|
+
* - coreAccountQueryPluginToolNames for account-related query tools
|
|
1683
|
+
* - coreTokenQueryPluginToolNames for token-related query tools
|
|
1684
|
+
* - coreConsensusQueryPluginToolNames for consensus-related query tools
|
|
1685
|
+
* This export will be removed in a future version.
|
|
1686
|
+
*/
|
|
1687
|
+
declare const coreQueriesPluginToolNames: {
|
|
1688
|
+
readonly GET_HBAR_BALANCE_QUERY_TOOL: "get_hbar_balance_query_tool";
|
|
1689
|
+
readonly GET_ACCOUNT_QUERY_TOOL: "get_account_query_tool";
|
|
1690
|
+
readonly GET_ACCOUNT_TOKEN_BALANCES_QUERY_TOOL: "get_account_token_balances_query_tool";
|
|
1691
|
+
readonly GET_TOPIC_MESSAGES_QUERY_TOOL: "get_topic_messages_query_tool";
|
|
1692
|
+
readonly GET_TOKEN_INFO_QUERY_TOOL: "get_token_info_query_tool";
|
|
1693
|
+
};
|
|
1694
|
+
|
|
1695
|
+
declare const coreMiscQueriesPlugin: Plugin;
|
|
1696
|
+
declare const coreMiscQueriesPluginsToolNames: {
|
|
1697
|
+
readonly GET_EXCHANGE_RATE_TOOL: "get_exchange_rate_tool";
|
|
1698
|
+
};
|
|
1699
|
+
|
|
1700
|
+
declare const coreEVMPlugin: Plugin;
|
|
1701
|
+
declare const coreEVMPluginToolNames: {
|
|
1702
|
+
readonly TRANSFER_ERC721_TOOL: "transfer_erc721_tool";
|
|
1703
|
+
readonly MINT_ERC721_TOOL: "mint_erc721_tool";
|
|
1704
|
+
readonly CREATE_ERC20_TOOL: "create_erc20_tool";
|
|
1705
|
+
readonly TRANSFER_ERC20_TOOL: "transfer_erc20_tool";
|
|
1706
|
+
readonly CREATE_ERC721_TOOL: "create_erc721_tool";
|
|
1707
|
+
};
|
|
1708
|
+
|
|
1709
|
+
declare const coreAccountQueryPlugin: Plugin;
|
|
1710
|
+
declare const coreAccountQueryPluginToolNames: {
|
|
1711
|
+
readonly GET_HBAR_BALANCE_QUERY_TOOL: "get_hbar_balance_query_tool";
|
|
1712
|
+
readonly GET_ACCOUNT_QUERY_TOOL: "get_account_query_tool";
|
|
1713
|
+
readonly GET_ACCOUNT_TOKEN_BALANCES_QUERY_TOOL: "get_account_token_balances_query_tool";
|
|
1714
|
+
};
|
|
1715
|
+
|
|
1716
|
+
declare const coreTokenQueryPlugin: Plugin;
|
|
1717
|
+
declare const coreTokenQueryPluginToolNames: {
|
|
1718
|
+
readonly GET_TOKEN_INFO_QUERY_TOOL: "get_token_info_query_tool";
|
|
1719
|
+
readonly GET_PENDING_AIRDROP_TOOL: "get_pending_airdrop_tool";
|
|
1720
|
+
};
|
|
1721
|
+
|
|
1722
|
+
declare const coreConsensusQueryPlugin: Plugin;
|
|
1723
|
+
declare const coreConsensusQueryPluginToolNames: {
|
|
1724
|
+
readonly GET_TOPIC_MESSAGES_QUERY_TOOL: "get_topic_messages_query_tool";
|
|
1725
|
+
readonly GET_TOPIC_INFO_QUERY_TOOL: "get_topic_info_query_tool";
|
|
1726
|
+
};
|
|
1727
|
+
|
|
1728
|
+
declare const coreEVMQueryPlugin: Plugin;
|
|
1729
|
+
declare const coreEVMQueryPluginToolNames: {
|
|
1730
|
+
readonly GET_CONTRACT_INFO_QUERY_TOOL: "get_contract_info_query_tool";
|
|
1731
|
+
};
|
|
1732
|
+
|
|
1733
|
+
declare const coreTransactionQueryPlugin: Plugin;
|
|
1734
|
+
declare const coreTransactionQueryPluginToolNames: {
|
|
1735
|
+
readonly GET_TRANSACTION_RECORD_QUERY_TOOL: "get_transaction_record_query_tool";
|
|
1736
|
+
};
|
|
1737
|
+
|
|
1738
|
+
/**
|
|
1739
|
+
* @deprecated Use coreTokenPlugin instead. This export will be removed in a future version.
|
|
1740
|
+
*/
|
|
1741
|
+
declare const coreHTSPlugin: Plugin;
|
|
1742
|
+
/**
|
|
1743
|
+
* @deprecated Use coreTokenPluginToolNames instead. This export will be removed in a future version.
|
|
1744
|
+
*/
|
|
1745
|
+
declare const coreHTSPluginToolNames: {
|
|
1746
|
+
readonly AIRDROP_FUNGIBLE_TOKEN_TOOL: "airdrop_fungible_token_tool";
|
|
1747
|
+
readonly CREATE_FUNGIBLE_TOKEN_TOOL: "create_fungible_token_tool";
|
|
1748
|
+
readonly MINT_FUNGIBLE_TOKEN_TOOL: "mint_fungible_token_tool";
|
|
1749
|
+
readonly CREATE_NON_FUNGIBLE_TOKEN_TOOL: "create_non_fungible_token_tool";
|
|
1750
|
+
readonly MINT_NON_FUNGIBLE_TOKEN_TOOL: "mint_non_fungible_token_tool";
|
|
1751
|
+
readonly APPROVE_NFT_ALLOWANCE_TOOL: "approve_nft_allowance_tool";
|
|
1752
|
+
readonly DELETE_NFT_ALLOWANCE_TOOL: "delete_non_fungible_token_allowance_tool";
|
|
1753
|
+
readonly DISSOCIATE_TOKEN_TOOL: "dissociate_token_tool";
|
|
1754
|
+
readonly ASSOCIATE_TOKEN_TOOL: "associate_token_tool";
|
|
1755
|
+
readonly UPDATE_TOKEN_TOOL: "update_token_tool";
|
|
1756
|
+
readonly TRANSFER_NON_FUNGIBLE_TOKEN_WITH_ALLOWANCE_TOOL: "transfer_non_fungible_token_with_allowance_tool";
|
|
1757
|
+
readonly TRANSFER_NON_FUNGIBLE_TOKEN_TOOL: "transfer_non_fungible_token_tool";
|
|
1758
|
+
readonly TRANSFER_FUNGIBLE_TOKEN_WITH_ALLOWANCE_TOOL: "transfer_fungible_token_with_allowance_tool";
|
|
1759
|
+
};
|
|
1760
|
+
/**
|
|
1761
|
+
* @deprecated Use coreEVMPlugin instead. This export will be removed in a future version.
|
|
1762
|
+
*/
|
|
1763
|
+
declare const coreSCSPlugin: Plugin;
|
|
1764
|
+
/**
|
|
1765
|
+
* @deprecated Use coreEVMPluginToolNames instead. This export will be removed in a future version.
|
|
1766
|
+
*/
|
|
1767
|
+
declare const coreSCSPluginToolNames: {
|
|
1768
|
+
readonly TRANSFER_ERC721_TOOL: "transfer_erc721_tool";
|
|
1769
|
+
readonly MINT_ERC721_TOOL: "mint_erc721_tool";
|
|
1770
|
+
readonly CREATE_ERC20_TOOL: "create_erc20_tool";
|
|
1771
|
+
readonly TRANSFER_ERC20_TOOL: "transfer_erc20_tool";
|
|
1772
|
+
readonly CREATE_ERC721_TOOL: "create_erc721_tool";
|
|
1773
|
+
};
|
|
1774
|
+
|
|
1775
|
+
export { AccountResolver, AgentMode, type Configuration, type Context, ERC20_FACTORY_ABI, ERC20_FACTORY_ADDRESSES, ERC20_TRANSFER_FUNCTION_ABI, ERC20_TRANSFER_FUNCTION_NAME, ERC721_FACTORY_ABI, ERC721_FACTORY_ADDRESSES, ERC721_MINT_FUNCTION_ABI, ERC721_MINT_FUNCTION_NAME, ERC721_TRANSFER_FUNCTION_ABI, ERC721_TRANSFER_FUNCTION_NAME, ExecuteStrategy, type ExecuteStrategyResult, HederaAIToolkit, HederaBuilder, HederaLangchainToolkit, HederaMCPServer, HederaMCPToolkit, type IHederaMirrornodeService, type Plugin, PluginRegistry, PromptGenerator, type RawTransactionResponse, ResponseParserService, type Tool, contractExecuteTransactionParametersNormalised, coreAccountPlugin, coreAccountPluginToolNames, coreAccountQueryPlugin, coreAccountQueryPluginToolNames, coreConsensusPlugin, coreConsensusPluginToolNames, coreConsensusQueryPlugin, coreConsensusQueryPluginToolNames, coreEVMPlugin, coreEVMPluginToolNames, coreEVMQueryPlugin, coreEVMQueryPluginToolNames, coreHTSPlugin, coreHTSPluginToolNames, coreMiscQueriesPlugin, coreMiscQueriesPluginsToolNames, coreQueriesPlugin, coreQueriesPluginToolNames, coreSCSPlugin, coreSCSPluginToolNames, coreTokenPlugin, coreTokenPluginToolNames, coreTokenQueryPlugin, coreTokenQueryPluginToolNames, coreTransactionQueryPlugin, coreTransactionQueryPluginToolNames, getERC20FactoryAddress, getERC721FactoryAddress, getMirrornodeService, handleTransaction, transactionToolOutputParser, untypedQueryOutputParser };
|