abel-ghost-sdk 0.0.4 → 0.0.6
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/AbelReaderSDK.d.ts +506 -17
- package/dist/generated/AbelReaderSDK.js +254 -2
- package/dist/index.d.ts +7 -1
- package/dist/index.js +23 -1
- package/package.json +1 -1
|
@@ -42,6 +42,22 @@ export type AssetTinyLabels = {
|
|
|
42
42
|
* Converts the ABI tuple representation of a AssetTinyLabels to the struct representation
|
|
43
43
|
*/
|
|
44
44
|
export declare function AssetTinyLabelsFromTuple(abiTuple: [string, string, number, string[]]): AssetTinyLabels;
|
|
45
|
+
export type BalanceInfo = {
|
|
46
|
+
balance: bigint;
|
|
47
|
+
minBalance: bigint;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Converts the ABI tuple representation of a BalanceInfo to the struct representation
|
|
51
|
+
*/
|
|
52
|
+
export declare function BalanceInfoFromTuple(abiTuple: [bigint, bigint]): BalanceInfo;
|
|
53
|
+
export type BlockTimeAndTc = {
|
|
54
|
+
ts: number;
|
|
55
|
+
tc: bigint;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Converts the ABI tuple representation of a BlockTimeAndTc to the struct representation
|
|
59
|
+
*/
|
|
60
|
+
export declare function BlockTimeAndTcFromTuple(abiTuple: [number, bigint]): BlockTimeAndTc;
|
|
45
61
|
/**
|
|
46
62
|
* Deploy-time template variables
|
|
47
63
|
*/
|
|
@@ -56,6 +72,9 @@ export type AbelReaderArgs = {
|
|
|
56
72
|
* The object representation of the arguments for each method
|
|
57
73
|
*/
|
|
58
74
|
obj: {
|
|
75
|
+
'getBalanceInfo(address[])(uint64,uint64)': {
|
|
76
|
+
accounts: string[];
|
|
77
|
+
};
|
|
59
78
|
'getAssetsTiny(uint64[],uint64)(string,string,uint8,string[])': {
|
|
60
79
|
assetIds: bigint[] | number[];
|
|
61
80
|
abelAppId: bigint | number;
|
|
@@ -63,21 +82,29 @@ export type AbelReaderArgs = {
|
|
|
63
82
|
'get_asset_labels(asset)string[]': {
|
|
64
83
|
assetId: bigint;
|
|
65
84
|
};
|
|
85
|
+
'getBlockTimesAndTc(uint64,uint64)(uint32,uint64)': {
|
|
86
|
+
firstRound: bigint | number;
|
|
87
|
+
lastRound: bigint | number;
|
|
88
|
+
};
|
|
66
89
|
};
|
|
67
90
|
/**
|
|
68
91
|
* The tuple representation of the arguments for each method
|
|
69
92
|
*/
|
|
70
93
|
tuple: {
|
|
94
|
+
'getBalanceInfo(address[])(uint64,uint64)': [accounts: string[]];
|
|
71
95
|
'getAssetsTiny(uint64[],uint64)(string,string,uint8,string[])': [assetIds: bigint[] | number[], abelAppId: bigint | number];
|
|
72
96
|
'get_asset_labels(asset)string[]': [assetId: bigint];
|
|
97
|
+
'getBlockTimesAndTc(uint64,uint64)(uint32,uint64)': [firstRound: bigint | number, lastRound: bigint | number];
|
|
73
98
|
};
|
|
74
99
|
};
|
|
75
100
|
/**
|
|
76
101
|
* The return type for each method
|
|
77
102
|
*/
|
|
78
103
|
export type AbelReaderReturns = {
|
|
104
|
+
'getBalanceInfo(address[])(uint64,uint64)': BalanceInfo;
|
|
79
105
|
'getAssetsTiny(uint64[],uint64)(string,string,uint8,string[])': AssetTinyLabels;
|
|
80
106
|
'get_asset_labels(asset)string[]': string[];
|
|
107
|
+
'getBlockTimesAndTc(uint64,uint64)(uint32,uint64)': BlockTimeAndTc;
|
|
81
108
|
};
|
|
82
109
|
/**
|
|
83
110
|
* Defines the types of available calls and state of the AbelReader smart contract.
|
|
@@ -86,7 +113,11 @@ export type AbelReaderTypes = {
|
|
|
86
113
|
/**
|
|
87
114
|
* Maps method signatures / names to their argument and return types.
|
|
88
115
|
*/
|
|
89
|
-
methods: Record<'
|
|
116
|
+
methods: Record<'getBalanceInfo(address[])(uint64,uint64)' | 'getBalanceInfo', {
|
|
117
|
+
argsObj: AbelReaderArgs['obj']['getBalanceInfo(address[])(uint64,uint64)'];
|
|
118
|
+
argsTuple: AbelReaderArgs['tuple']['getBalanceInfo(address[])(uint64,uint64)'];
|
|
119
|
+
returns: AbelReaderReturns['getBalanceInfo(address[])(uint64,uint64)'];
|
|
120
|
+
}> & Record<'getAssetsTiny(uint64[],uint64)(string,string,uint8,string[])' | 'getAssetsTiny', {
|
|
90
121
|
argsObj: AbelReaderArgs['obj']['getAssetsTiny(uint64[],uint64)(string,string,uint8,string[])'];
|
|
91
122
|
argsTuple: AbelReaderArgs['tuple']['getAssetsTiny(uint64[],uint64)(string,string,uint8,string[])'];
|
|
92
123
|
returns: AbelReaderReturns['getAssetsTiny(uint64[],uint64)(string,string,uint8,string[])'];
|
|
@@ -94,6 +125,10 @@ export type AbelReaderTypes = {
|
|
|
94
125
|
argsObj: AbelReaderArgs['obj']['get_asset_labels(asset)string[]'];
|
|
95
126
|
argsTuple: AbelReaderArgs['tuple']['get_asset_labels(asset)string[]'];
|
|
96
127
|
returns: AbelReaderReturns['get_asset_labels(asset)string[]'];
|
|
128
|
+
}> & Record<'getBlockTimesAndTc(uint64,uint64)(uint32,uint64)' | 'getBlockTimesAndTc', {
|
|
129
|
+
argsObj: AbelReaderArgs['obj']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)'];
|
|
130
|
+
argsTuple: AbelReaderArgs['tuple']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)'];
|
|
131
|
+
returns: AbelReaderReturns['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)'];
|
|
97
132
|
}>;
|
|
98
133
|
};
|
|
99
134
|
/**
|
|
@@ -122,7 +157,15 @@ export type MethodReturn<TSignature extends AbelReaderSignatures> = AbelReaderTy
|
|
|
122
157
|
/**
|
|
123
158
|
* Defines supported create method params for this smart contract
|
|
124
159
|
*/
|
|
125
|
-
export type AbelReaderCreateCallParams = Expand<CallParams<AbelReaderArgs['obj']['
|
|
160
|
+
export type AbelReaderCreateCallParams = Expand<CallParams<AbelReaderArgs['obj']['getBalanceInfo(address[])(uint64,uint64)'] | AbelReaderArgs['tuple']['getBalanceInfo(address[])(uint64,uint64)']> & {
|
|
161
|
+
method: 'getBalanceInfo';
|
|
162
|
+
} & {
|
|
163
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
164
|
+
} & CreateSchema> | Expand<CallParams<AbelReaderArgs['obj']['getBalanceInfo(address[])(uint64,uint64)'] | AbelReaderArgs['tuple']['getBalanceInfo(address[])(uint64,uint64)']> & {
|
|
165
|
+
method: 'getBalanceInfo(address[])(uint64,uint64)';
|
|
166
|
+
} & {
|
|
167
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
168
|
+
} & CreateSchema> | Expand<CallParams<AbelReaderArgs['obj']['getAssetsTiny(uint64[],uint64)(string,string,uint8,string[])'] | AbelReaderArgs['tuple']['getAssetsTiny(uint64[],uint64)(string,string,uint8,string[])']> & {
|
|
126
169
|
method: 'getAssetsTiny';
|
|
127
170
|
} & {
|
|
128
171
|
onComplete?: OnApplicationComplete.NoOpOC;
|
|
@@ -138,6 +181,14 @@ export type AbelReaderCreateCallParams = Expand<CallParams<AbelReaderArgs['obj']
|
|
|
138
181
|
method: 'get_asset_labels(asset)string[]';
|
|
139
182
|
} & {
|
|
140
183
|
onComplete?: OnApplicationComplete.NoOpOC;
|
|
184
|
+
} & CreateSchema> | Expand<CallParams<AbelReaderArgs['obj']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)'] | AbelReaderArgs['tuple']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)']> & {
|
|
185
|
+
method: 'getBlockTimesAndTc';
|
|
186
|
+
} & {
|
|
187
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
188
|
+
} & CreateSchema> | Expand<CallParams<AbelReaderArgs['obj']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)'] | AbelReaderArgs['tuple']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)']> & {
|
|
189
|
+
method: 'getBlockTimesAndTc(uint64,uint64)(uint32,uint64)';
|
|
190
|
+
} & {
|
|
191
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
141
192
|
} & CreateSchema>;
|
|
142
193
|
/**
|
|
143
194
|
* Defines supported update method params for this smart contract
|
|
@@ -202,6 +253,17 @@ export declare abstract class AbelReaderParamsFactory {
|
|
|
202
253
|
} & AppClientCompilationParams & {
|
|
203
254
|
onComplete?: OnApplicationComplete.NoOpOC | undefined;
|
|
204
255
|
};
|
|
256
|
+
/**
|
|
257
|
+
* Constructs create ABI call params for the AbelReader smart contract using the getBalanceInfo(address[])(uint64,uint64) ABI method
|
|
258
|
+
*
|
|
259
|
+
* @param params Parameters for the call
|
|
260
|
+
* @returns An `AppClientMethodCallParams` object for the call
|
|
261
|
+
*/
|
|
262
|
+
getBalanceInfo(params: CallParams<AbelReaderArgs['obj']['getBalanceInfo(address[])(uint64,uint64)'] | AbelReaderArgs['tuple']['getBalanceInfo(address[])(uint64,uint64)']> & AppClientCompilationParams & {
|
|
263
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
264
|
+
}): AppClientMethodCallParams & AppClientCompilationParams & {
|
|
265
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
266
|
+
};
|
|
205
267
|
/**
|
|
206
268
|
* Constructs create ABI call params for the AbelReader smart contract using the getAssetsTiny(uint64[],uint64)(string,string,uint8,string[]) ABI method
|
|
207
269
|
*
|
|
@@ -224,7 +286,25 @@ export declare abstract class AbelReaderParamsFactory {
|
|
|
224
286
|
}): AppClientMethodCallParams & AppClientCompilationParams & {
|
|
225
287
|
onComplete?: OnApplicationComplete.NoOpOC;
|
|
226
288
|
};
|
|
289
|
+
/**
|
|
290
|
+
* Constructs create ABI call params for the AbelReader smart contract using the getBlockTimesAndTc(uint64,uint64)(uint32,uint64) ABI method
|
|
291
|
+
*
|
|
292
|
+
* @param params Parameters for the call
|
|
293
|
+
* @returns An `AppClientMethodCallParams` object for the call
|
|
294
|
+
*/
|
|
295
|
+
getBlockTimesAndTc(params: CallParams<AbelReaderArgs['obj']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)'] | AbelReaderArgs['tuple']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)']> & AppClientCompilationParams & {
|
|
296
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
297
|
+
}): AppClientMethodCallParams & AppClientCompilationParams & {
|
|
298
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
299
|
+
};
|
|
227
300
|
};
|
|
301
|
+
/**
|
|
302
|
+
* Constructs a no op call for the getBalanceInfo(address[])(uint64,uint64) ABI method
|
|
303
|
+
*
|
|
304
|
+
* @param params Parameters for the call
|
|
305
|
+
* @returns An `AppClientMethodCallParams` object for the call
|
|
306
|
+
*/
|
|
307
|
+
static getBalanceInfo(params: CallParams<AbelReaderArgs['obj']['getBalanceInfo(address[])(uint64,uint64)'] | AbelReaderArgs['tuple']['getBalanceInfo(address[])(uint64,uint64)']> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
|
|
228
308
|
/**
|
|
229
309
|
* Constructs a no op call for the getAssetsTiny(uint64[],uint64)(string,string,uint8,string[]) ABI method
|
|
230
310
|
*
|
|
@@ -239,6 +319,13 @@ export declare abstract class AbelReaderParamsFactory {
|
|
|
239
319
|
* @returns An `AppClientMethodCallParams` object for the call
|
|
240
320
|
*/
|
|
241
321
|
static getAssetLabels(params: CallParams<AbelReaderArgs['obj']['get_asset_labels(asset)string[]'] | AbelReaderArgs['tuple']['get_asset_labels(asset)string[]']> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
|
|
322
|
+
/**
|
|
323
|
+
* Constructs a no op call for the getBlockTimesAndTc(uint64,uint64)(uint32,uint64) ABI method
|
|
324
|
+
*
|
|
325
|
+
* @param params Parameters for the call
|
|
326
|
+
* @returns An `AppClientMethodCallParams` object for the call
|
|
327
|
+
*/
|
|
328
|
+
static getBlockTimesAndTc(params: CallParams<AbelReaderArgs['obj']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)'] | AbelReaderArgs['tuple']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)']> & CallOnComplete): AppClientMethodCallParams & CallOnComplete;
|
|
242
329
|
}
|
|
243
330
|
/**
|
|
244
331
|
* A factory to create and deploy one or more instance of the AbelReader smart contract and to create one or more app clients to interact with those (or other) app instances
|
|
@@ -319,20 +406,17 @@ declare class AbelReaderFactory {
|
|
|
319
406
|
appAddress: Address;
|
|
320
407
|
createdRound: bigint;
|
|
321
408
|
updatedRound: bigint;
|
|
322
|
-
/**
|
|
323
|
-
* Methods to access state for the current AbelReader app
|
|
324
|
-
*/
|
|
325
409
|
createdMetadata: import("@algorandfoundation/algokit-utils/types/app").AppDeployMetadata;
|
|
326
410
|
deleted: boolean;
|
|
327
411
|
name: string;
|
|
328
412
|
version: string;
|
|
329
413
|
deletable?: boolean | undefined;
|
|
330
414
|
updatable?: boolean | undefined;
|
|
331
|
-
groupId: string;
|
|
332
|
-
|
|
333
|
-
returns?: ABIReturn[] | undefined; /**
|
|
334
|
-
* Add a getAssetsTiny(uint64[],uint64)(string,string,uint8,string[]) method call against the AbelReader contract
|
|
415
|
+
groupId: string; /**
|
|
416
|
+
* Send calls to the current app
|
|
335
417
|
*/
|
|
418
|
+
txIds: string[];
|
|
419
|
+
returns?: ABIReturn[] | undefined;
|
|
336
420
|
confirmations: modelsv2.PendingTransactionResponse[];
|
|
337
421
|
transactions: Transaction[];
|
|
338
422
|
confirmation: modelsv2.PendingTransactionResponse;
|
|
@@ -388,6 +472,106 @@ declare class AbelReaderFactory {
|
|
|
388
472
|
* Gets available create methods
|
|
389
473
|
*/
|
|
390
474
|
create: {
|
|
475
|
+
/**
|
|
476
|
+
* Creates a new instance of the AbelReader smart contract using the getBalanceInfo(address[])(uint64,uint64) ABI method.
|
|
477
|
+
*
|
|
478
|
+
* @param params The params for the smart contract call
|
|
479
|
+
* @returns The create params
|
|
480
|
+
*/
|
|
481
|
+
getBalanceInfo: (params: CallParams<AbelReaderArgs['obj']['getBalanceInfo(address[])(uint64,uint64)'] | AbelReaderArgs['tuple']['getBalanceInfo(address[])(uint64,uint64)']> & AppClientCompilationParams & CreateSchema & {
|
|
482
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
483
|
+
}) => Promise<{
|
|
484
|
+
deployTimeParams: import("@algorandfoundation/algokit-utils/types/app").TealTemplateParams | undefined;
|
|
485
|
+
schema: {
|
|
486
|
+
globalInts: number;
|
|
487
|
+
globalByteSlices: number;
|
|
488
|
+
localInts: number;
|
|
489
|
+
localByteSlices: number;
|
|
490
|
+
};
|
|
491
|
+
approvalProgram: Uint8Array;
|
|
492
|
+
clearStateProgram: Uint8Array;
|
|
493
|
+
maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
494
|
+
note?: string | Uint8Array | undefined;
|
|
495
|
+
signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined;
|
|
496
|
+
onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
497
|
+
rejectVersion?: number | undefined;
|
|
498
|
+
lease?: string | Uint8Array | undefined;
|
|
499
|
+
rekeyTo?: string | Address | undefined;
|
|
500
|
+
staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
501
|
+
extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
502
|
+
validityWindow?: number | bigint | undefined;
|
|
503
|
+
firstValidRound?: bigint | undefined;
|
|
504
|
+
lastValidRound?: bigint | undefined;
|
|
505
|
+
accountReferences?: (string | Address)[] | undefined;
|
|
506
|
+
appReferences?: bigint[] | undefined;
|
|
507
|
+
assetReferences?: bigint[] | undefined;
|
|
508
|
+
boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined;
|
|
509
|
+
accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined;
|
|
510
|
+
sender?: string | Address | undefined;
|
|
511
|
+
method: string;
|
|
512
|
+
args?: (import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
513
|
+
updatable?: boolean | undefined;
|
|
514
|
+
deletable?: boolean | undefined;
|
|
515
|
+
extraProgramPages?: number | undefined;
|
|
516
|
+
} & {
|
|
517
|
+
sender: Address;
|
|
518
|
+
signer: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined;
|
|
519
|
+
method: import("@algorandfoundation/algokit-utils/types/app-arc56").Arc56Method;
|
|
520
|
+
args: (import("algosdk").ABIValue | import("algosdk").TransactionWithSigner | Transaction | Promise<Transaction> | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<import("@algorandfoundation/algokit-utils/types/composer").AppMethodCallParams> | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{
|
|
521
|
+
sender: string | Address;
|
|
522
|
+
maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
523
|
+
note?: string | Uint8Array | undefined;
|
|
524
|
+
args?: Uint8Array[] | undefined;
|
|
525
|
+
signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined;
|
|
526
|
+
onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
527
|
+
rejectVersion?: number | undefined;
|
|
528
|
+
lease?: string | Uint8Array | undefined;
|
|
529
|
+
rekeyTo?: string | Address | undefined;
|
|
530
|
+
staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
531
|
+
extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
532
|
+
validityWindow?: number | bigint | undefined;
|
|
533
|
+
firstValidRound?: bigint | undefined;
|
|
534
|
+
lastValidRound?: bigint | undefined;
|
|
535
|
+
accountReferences?: (string | Address)[] | undefined;
|
|
536
|
+
appReferences?: bigint[] | undefined;
|
|
537
|
+
assetReferences?: bigint[] | undefined;
|
|
538
|
+
boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined;
|
|
539
|
+
accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined;
|
|
540
|
+
approvalProgram: string | Uint8Array;
|
|
541
|
+
clearStateProgram: string | Uint8Array;
|
|
542
|
+
schema?: {
|
|
543
|
+
globalInts: number;
|
|
544
|
+
globalByteSlices: number;
|
|
545
|
+
localInts: number;
|
|
546
|
+
localByteSlices: number;
|
|
547
|
+
} | undefined;
|
|
548
|
+
extraProgramPages?: number | undefined;
|
|
549
|
+
}> | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{
|
|
550
|
+
sender: string | Address;
|
|
551
|
+
signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined;
|
|
552
|
+
rekeyTo?: string | Address | undefined;
|
|
553
|
+
note?: string | Uint8Array | undefined;
|
|
554
|
+
lease?: string | Uint8Array | undefined;
|
|
555
|
+
staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
556
|
+
extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
557
|
+
maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
558
|
+
validityWindow?: number | bigint | undefined;
|
|
559
|
+
firstValidRound?: bigint | undefined;
|
|
560
|
+
lastValidRound?: bigint | undefined;
|
|
561
|
+
appId: bigint;
|
|
562
|
+
onComplete?: OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
563
|
+
args?: Uint8Array[] | undefined;
|
|
564
|
+
accountReferences?: (string | Address)[] | undefined;
|
|
565
|
+
appReferences?: bigint[] | undefined;
|
|
566
|
+
assetReferences?: bigint[] | undefined;
|
|
567
|
+
boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined;
|
|
568
|
+
accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined;
|
|
569
|
+
rejectVersion?: number | undefined;
|
|
570
|
+
approvalProgram: string | Uint8Array;
|
|
571
|
+
clearStateProgram: string | Uint8Array;
|
|
572
|
+
}> | undefined)[] | undefined;
|
|
573
|
+
onComplete: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC;
|
|
574
|
+
}>;
|
|
391
575
|
/**
|
|
392
576
|
* Creates a new instance of the AbelReader smart contract using the getAssetsTiny(uint64[],uint64)(string,string,uint8,string[]) ABI method.
|
|
393
577
|
*
|
|
@@ -472,9 +656,6 @@ declare class AbelReaderFactory {
|
|
|
472
656
|
extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
473
657
|
maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
474
658
|
validityWindow?: number | bigint | undefined;
|
|
475
|
-
/**
|
|
476
|
-
* Converts the ABI tuple representation of a AssetTinyLabels to the struct representation
|
|
477
|
-
*/
|
|
478
659
|
firstValidRound?: bigint | undefined;
|
|
479
660
|
lastValidRound?: bigint | undefined;
|
|
480
661
|
appId: bigint;
|
|
@@ -575,9 +756,106 @@ declare class AbelReaderFactory {
|
|
|
575
756
|
extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
576
757
|
maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
577
758
|
validityWindow?: number | bigint | undefined;
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
759
|
+
firstValidRound?: bigint | undefined;
|
|
760
|
+
lastValidRound?: bigint | undefined;
|
|
761
|
+
appId: bigint;
|
|
762
|
+
onComplete?: OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
763
|
+
args?: Uint8Array[] | undefined;
|
|
764
|
+
accountReferences?: (string | Address)[] | undefined;
|
|
765
|
+
appReferences?: bigint[] | undefined;
|
|
766
|
+
assetReferences?: bigint[] | undefined;
|
|
767
|
+
boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined;
|
|
768
|
+
accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined;
|
|
769
|
+
rejectVersion?: number | undefined;
|
|
770
|
+
approvalProgram: string | Uint8Array;
|
|
771
|
+
clearStateProgram: string | Uint8Array;
|
|
772
|
+
}> | undefined)[] | undefined;
|
|
773
|
+
onComplete: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC;
|
|
774
|
+
}>;
|
|
775
|
+
/**
|
|
776
|
+
* Creates a new instance of the AbelReader smart contract using the getBlockTimesAndTc(uint64,uint64)(uint32,uint64) ABI method.
|
|
777
|
+
*
|
|
778
|
+
* @param params The params for the smart contract call
|
|
779
|
+
* @returns The create params
|
|
780
|
+
*/
|
|
781
|
+
getBlockTimesAndTc: (params: CallParams<AbelReaderArgs['obj']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)'] | AbelReaderArgs['tuple']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)']> & AppClientCompilationParams & CreateSchema & {
|
|
782
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
783
|
+
}) => Promise<{
|
|
784
|
+
deployTimeParams: import("@algorandfoundation/algokit-utils/types/app").TealTemplateParams | undefined;
|
|
785
|
+
schema: {
|
|
786
|
+
globalInts: number;
|
|
787
|
+
globalByteSlices: number;
|
|
788
|
+
localInts: number;
|
|
789
|
+
localByteSlices: number;
|
|
790
|
+
};
|
|
791
|
+
approvalProgram: Uint8Array;
|
|
792
|
+
clearStateProgram: Uint8Array;
|
|
793
|
+
maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
794
|
+
note?: string | Uint8Array | undefined;
|
|
795
|
+
signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined;
|
|
796
|
+
onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
797
|
+
rejectVersion?: number | undefined;
|
|
798
|
+
lease?: string | Uint8Array | undefined;
|
|
799
|
+
rekeyTo?: string | Address | undefined;
|
|
800
|
+
staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
801
|
+
extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
802
|
+
validityWindow?: number | bigint | undefined;
|
|
803
|
+
firstValidRound?: bigint | undefined;
|
|
804
|
+
lastValidRound?: bigint | undefined;
|
|
805
|
+
accountReferences?: (string | Address)[] | undefined;
|
|
806
|
+
appReferences?: bigint[] | undefined;
|
|
807
|
+
assetReferences?: bigint[] | undefined;
|
|
808
|
+
boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined;
|
|
809
|
+
accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined;
|
|
810
|
+
sender?: string | Address | undefined;
|
|
811
|
+
method: string;
|
|
812
|
+
args?: (import("algosdk").ABIValue | import("@algorandfoundation/algokit-utils/types/app-arc56").ABIStruct | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
813
|
+
updatable?: boolean | undefined;
|
|
814
|
+
deletable?: boolean | undefined;
|
|
815
|
+
extraProgramPages?: number | undefined;
|
|
816
|
+
} & {
|
|
817
|
+
sender: Address;
|
|
818
|
+
signer: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined;
|
|
819
|
+
method: import("@algorandfoundation/algokit-utils/types/app-arc56").Arc56Method;
|
|
820
|
+
args: (import("algosdk").ABIValue | import("algosdk").TransactionWithSigner | Transaction | Promise<Transaction> | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<import("@algorandfoundation/algokit-utils/types/composer").AppMethodCallParams> | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{
|
|
821
|
+
sender: string | Address;
|
|
822
|
+
maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
823
|
+
note?: string | Uint8Array | undefined;
|
|
824
|
+
args?: Uint8Array[] | undefined;
|
|
825
|
+
signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined;
|
|
826
|
+
onComplete?: OnApplicationComplete.NoOpOC | OnApplicationComplete.OptInOC | OnApplicationComplete.CloseOutOC | OnApplicationComplete.UpdateApplicationOC | OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
827
|
+
rejectVersion?: number | undefined;
|
|
828
|
+
lease?: string | Uint8Array | undefined;
|
|
829
|
+
rekeyTo?: string | Address | undefined;
|
|
830
|
+
staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
831
|
+
extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
832
|
+
validityWindow?: number | bigint | undefined;
|
|
833
|
+
firstValidRound?: bigint | undefined;
|
|
834
|
+
lastValidRound?: bigint | undefined;
|
|
835
|
+
accountReferences?: (string | Address)[] | undefined;
|
|
836
|
+
appReferences?: bigint[] | undefined;
|
|
837
|
+
assetReferences?: bigint[] | undefined;
|
|
838
|
+
boxReferences?: (import("@algorandfoundation/algokit-utils/types/app-manager").BoxReference | import("@algorandfoundation/algokit-utils/types/app-manager").BoxIdentifier)[] | undefined;
|
|
839
|
+
accessReferences?: import("@algorandfoundation/algokit-utils/types/app-manager").ResourceReference[] | undefined;
|
|
840
|
+
approvalProgram: string | Uint8Array;
|
|
841
|
+
clearStateProgram: string | Uint8Array;
|
|
842
|
+
schema?: {
|
|
843
|
+
globalInts: number;
|
|
844
|
+
globalByteSlices: number;
|
|
845
|
+
localInts: number;
|
|
846
|
+
localByteSlices: number;
|
|
847
|
+
} | undefined;
|
|
848
|
+
extraProgramPages?: number | undefined;
|
|
849
|
+
}> | import("@algorandfoundation/algokit-utils/types/composer").AppMethodCall<{
|
|
850
|
+
sender: string | Address;
|
|
851
|
+
signer?: TransactionSigner | import("@algorandfoundation/algokit-utils/types/account").TransactionSignerAccount | undefined;
|
|
852
|
+
rekeyTo?: string | Address | undefined;
|
|
853
|
+
note?: string | Uint8Array | undefined;
|
|
854
|
+
lease?: string | Uint8Array | undefined;
|
|
855
|
+
staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
856
|
+
extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
857
|
+
maxFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
858
|
+
validityWindow?: number | bigint | undefined;
|
|
581
859
|
firstValidRound?: bigint | undefined;
|
|
582
860
|
lastValidRound?: bigint | undefined;
|
|
583
861
|
appId: bigint;
|
|
@@ -615,7 +893,6 @@ declare class AbelReaderFactory {
|
|
|
615
893
|
rekeyTo?: string | Address | undefined;
|
|
616
894
|
staticFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
617
895
|
extraFee?: import("@algorandfoundation/algokit-utils/types/amount").AlgoAmount | undefined;
|
|
618
|
-
/** A reference to the underlying `AlgorandClient` this app client is using. */
|
|
619
896
|
validityWindow?: number | bigint | undefined;
|
|
620
897
|
firstValidRound?: bigint | undefined;
|
|
621
898
|
lastValidRound?: bigint | undefined;
|
|
@@ -675,6 +952,19 @@ declare class AbelReaderFactory {
|
|
|
675
952
|
* Gets available create methods
|
|
676
953
|
*/
|
|
677
954
|
create: {
|
|
955
|
+
/**
|
|
956
|
+
* Creates a new instance of the AbelReader smart contract using the getBalanceInfo(address[])(uint64,uint64) ABI method.
|
|
957
|
+
*
|
|
958
|
+
* @param params The params for the smart contract call
|
|
959
|
+
* @returns The create transaction
|
|
960
|
+
*/
|
|
961
|
+
getBalanceInfo: (params: CallParams<AbelReaderArgs['obj']['getBalanceInfo(address[])(uint64,uint64)'] | AbelReaderArgs['tuple']['getBalanceInfo(address[])(uint64,uint64)']> & AppClientCompilationParams & CreateSchema & {
|
|
962
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
963
|
+
}) => Promise<{
|
|
964
|
+
transactions: Transaction[];
|
|
965
|
+
methodCalls: Map<number, import("algosdk").ABIMethod>;
|
|
966
|
+
signers: Map<number, TransactionSigner>;
|
|
967
|
+
}>;
|
|
678
968
|
/**
|
|
679
969
|
* Creates a new instance of the AbelReader smart contract using the getAssetsTiny(uint64[],uint64)(string,string,uint8,string[]) ABI method.
|
|
680
970
|
*
|
|
@@ -701,6 +991,19 @@ declare class AbelReaderFactory {
|
|
|
701
991
|
methodCalls: Map<number, import("algosdk").ABIMethod>;
|
|
702
992
|
signers: Map<number, TransactionSigner>;
|
|
703
993
|
}>;
|
|
994
|
+
/**
|
|
995
|
+
* Creates a new instance of the AbelReader smart contract using the getBlockTimesAndTc(uint64,uint64)(uint32,uint64) ABI method.
|
|
996
|
+
*
|
|
997
|
+
* @param params The params for the smart contract call
|
|
998
|
+
* @returns The create transaction
|
|
999
|
+
*/
|
|
1000
|
+
getBlockTimesAndTc: (params: CallParams<AbelReaderArgs['obj']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)'] | AbelReaderArgs['tuple']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)']> & AppClientCompilationParams & CreateSchema & {
|
|
1001
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1002
|
+
}) => Promise<{
|
|
1003
|
+
transactions: Transaction[];
|
|
1004
|
+
methodCalls: Map<number, import("algosdk").ABIMethod>;
|
|
1005
|
+
signers: Map<number, TransactionSigner>;
|
|
1006
|
+
}>;
|
|
704
1007
|
};
|
|
705
1008
|
};
|
|
706
1009
|
/**
|
|
@@ -711,6 +1014,31 @@ declare class AbelReaderFactory {
|
|
|
711
1014
|
* Gets available create methods
|
|
712
1015
|
*/
|
|
713
1016
|
create: {
|
|
1017
|
+
/**
|
|
1018
|
+
* Creates a new instance of the AbelReader smart contract using an ABI method call using the getBalanceInfo(address[])(uint64,uint64) ABI method.
|
|
1019
|
+
*
|
|
1020
|
+
* @param params The params for the smart contract call
|
|
1021
|
+
* @returns The create result
|
|
1022
|
+
*/
|
|
1023
|
+
getBalanceInfo: (params: CallParams<AbelReaderArgs['obj']['getBalanceInfo(address[])(uint64,uint64)'] | AbelReaderArgs['tuple']['getBalanceInfo(address[])(uint64,uint64)']> & AppClientCompilationParams & CreateSchema & SendParams & {
|
|
1024
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1025
|
+
}) => Promise<{
|
|
1026
|
+
result: {
|
|
1027
|
+
return: BalanceInfo | undefined;
|
|
1028
|
+
compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
|
|
1029
|
+
compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
|
|
1030
|
+
appId: bigint;
|
|
1031
|
+
groupId: string;
|
|
1032
|
+
txIds: string[];
|
|
1033
|
+
returns?: ABIReturn[] | undefined;
|
|
1034
|
+
confirmations: modelsv2.PendingTransactionResponse[];
|
|
1035
|
+
transactions: Transaction[];
|
|
1036
|
+
confirmation: modelsv2.PendingTransactionResponse;
|
|
1037
|
+
transaction: Transaction;
|
|
1038
|
+
appAddress: Address;
|
|
1039
|
+
};
|
|
1040
|
+
appClient: AbelReaderClient;
|
|
1041
|
+
}>;
|
|
714
1042
|
/**
|
|
715
1043
|
* Creates a new instance of the AbelReader smart contract using an ABI method call using the getAssetsTiny(uint64[],uint64)(string,string,uint8,string[]) ABI method.
|
|
716
1044
|
*
|
|
@@ -761,6 +1089,31 @@ declare class AbelReaderFactory {
|
|
|
761
1089
|
};
|
|
762
1090
|
appClient: AbelReaderClient;
|
|
763
1091
|
}>;
|
|
1092
|
+
/**
|
|
1093
|
+
* Creates a new instance of the AbelReader smart contract using an ABI method call using the getBlockTimesAndTc(uint64,uint64)(uint32,uint64) ABI method.
|
|
1094
|
+
*
|
|
1095
|
+
* @param params The params for the smart contract call
|
|
1096
|
+
* @returns The create result
|
|
1097
|
+
*/
|
|
1098
|
+
getBlockTimesAndTc: (params: CallParams<AbelReaderArgs['obj']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)'] | AbelReaderArgs['tuple']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)']> & AppClientCompilationParams & CreateSchema & SendParams & {
|
|
1099
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1100
|
+
}) => Promise<{
|
|
1101
|
+
result: {
|
|
1102
|
+
return: BlockTimeAndTc | undefined;
|
|
1103
|
+
compiledApproval?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
|
|
1104
|
+
compiledClear?: import("@algorandfoundation/algokit-utils/types/app").CompiledTeal | undefined;
|
|
1105
|
+
appId: bigint;
|
|
1106
|
+
groupId: string;
|
|
1107
|
+
txIds: string[];
|
|
1108
|
+
returns?: ABIReturn[] | undefined;
|
|
1109
|
+
confirmations: modelsv2.PendingTransactionResponse[];
|
|
1110
|
+
transactions: Transaction[];
|
|
1111
|
+
confirmation: modelsv2.PendingTransactionResponse;
|
|
1112
|
+
transaction: Transaction;
|
|
1113
|
+
appAddress: Address;
|
|
1114
|
+
};
|
|
1115
|
+
appClient: AbelReaderClient;
|
|
1116
|
+
}>;
|
|
764
1117
|
};
|
|
765
1118
|
};
|
|
766
1119
|
}
|
|
@@ -871,6 +1224,17 @@ declare class AbelReaderClient {
|
|
|
871
1224
|
* @returns The clearState result
|
|
872
1225
|
*/
|
|
873
1226
|
clearState: (params?: Expand<AppClientBareCallParams>) => import("@algorandfoundation/algokit-utils/types/composer").AppCallParams;
|
|
1227
|
+
/**
|
|
1228
|
+
* Makes a call to the AbelReader smart contract using the `getBalanceInfo(address[])(uint64,uint64)` ABI method.
|
|
1229
|
+
*
|
|
1230
|
+
* This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
|
|
1231
|
+
*
|
|
1232
|
+
* @param params The params for the smart contract call
|
|
1233
|
+
* @returns The call params
|
|
1234
|
+
*/
|
|
1235
|
+
getBalanceInfo: (params: CallParams<AbelReaderArgs['obj']['getBalanceInfo(address[])(uint64,uint64)'] | AbelReaderArgs['tuple']['getBalanceInfo(address[])(uint64,uint64)']> & {
|
|
1236
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1237
|
+
}) => Promise<AppCallMethodCall>;
|
|
874
1238
|
/**
|
|
875
1239
|
* Makes a call to the AbelReader smart contract using the `getAssetsTiny(uint64[],uint64)(string,string,uint8,string[])` ABI method.
|
|
876
1240
|
*
|
|
@@ -893,6 +1257,17 @@ declare class AbelReaderClient {
|
|
|
893
1257
|
getAssetLabels: (params: CallParams<AbelReaderArgs['obj']['get_asset_labels(asset)string[]'] | AbelReaderArgs['tuple']['get_asset_labels(asset)string[]']> & {
|
|
894
1258
|
onComplete?: OnApplicationComplete.NoOpOC;
|
|
895
1259
|
}) => Promise<AppCallMethodCall>;
|
|
1260
|
+
/**
|
|
1261
|
+
* Makes a call to the AbelReader smart contract using the `getBlockTimesAndTc(uint64,uint64)(uint32,uint64)` ABI method.
|
|
1262
|
+
*
|
|
1263
|
+
* This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
|
|
1264
|
+
*
|
|
1265
|
+
* @param params The params for the smart contract call
|
|
1266
|
+
* @returns The call params
|
|
1267
|
+
*/
|
|
1268
|
+
getBlockTimesAndTc: (params: CallParams<AbelReaderArgs['obj']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)'] | AbelReaderArgs['tuple']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)']> & {
|
|
1269
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1270
|
+
}) => Promise<AppCallMethodCall>;
|
|
896
1271
|
};
|
|
897
1272
|
/**
|
|
898
1273
|
* Create transactions for the current app
|
|
@@ -929,6 +1304,21 @@ declare class AbelReaderClient {
|
|
|
929
1304
|
* @returns The clearState result
|
|
930
1305
|
*/
|
|
931
1306
|
clearState: (params?: Expand<AppClientBareCallParams>) => Promise<Transaction>;
|
|
1307
|
+
/**
|
|
1308
|
+
* Makes a call to the AbelReader smart contract using the `getBalanceInfo(address[])(uint64,uint64)` ABI method.
|
|
1309
|
+
*
|
|
1310
|
+
* This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
|
|
1311
|
+
*
|
|
1312
|
+
* @param params The params for the smart contract call
|
|
1313
|
+
* @returns The call transaction
|
|
1314
|
+
*/
|
|
1315
|
+
getBalanceInfo: (params: CallParams<AbelReaderArgs['obj']['getBalanceInfo(address[])(uint64,uint64)'] | AbelReaderArgs['tuple']['getBalanceInfo(address[])(uint64,uint64)']> & {
|
|
1316
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1317
|
+
}) => Promise<{
|
|
1318
|
+
transactions: Transaction[];
|
|
1319
|
+
methodCalls: Map<number, import("algosdk").ABIMethod>;
|
|
1320
|
+
signers: Map<number, TransactionSigner>;
|
|
1321
|
+
}>;
|
|
932
1322
|
/**
|
|
933
1323
|
* Makes a call to the AbelReader smart contract using the `getAssetsTiny(uint64[],uint64)(string,string,uint8,string[])` ABI method.
|
|
934
1324
|
*
|
|
@@ -959,6 +1349,21 @@ declare class AbelReaderClient {
|
|
|
959
1349
|
methodCalls: Map<number, import("algosdk").ABIMethod>;
|
|
960
1350
|
signers: Map<number, TransactionSigner>;
|
|
961
1351
|
}>;
|
|
1352
|
+
/**
|
|
1353
|
+
* Makes a call to the AbelReader smart contract using the `getBlockTimesAndTc(uint64,uint64)(uint32,uint64)` ABI method.
|
|
1354
|
+
*
|
|
1355
|
+
* This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
|
|
1356
|
+
*
|
|
1357
|
+
* @param params The params for the smart contract call
|
|
1358
|
+
* @returns The call transaction
|
|
1359
|
+
*/
|
|
1360
|
+
getBlockTimesAndTc: (params: CallParams<AbelReaderArgs['obj']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)'] | AbelReaderArgs['tuple']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)']> & {
|
|
1361
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1362
|
+
}) => Promise<{
|
|
1363
|
+
transactions: Transaction[];
|
|
1364
|
+
methodCalls: Map<number, import("algosdk").ABIMethod>;
|
|
1365
|
+
signers: Map<number, TransactionSigner>;
|
|
1366
|
+
}>;
|
|
962
1367
|
};
|
|
963
1368
|
/**
|
|
964
1369
|
* Send calls to the current app
|
|
@@ -1024,6 +1429,26 @@ declare class AbelReaderClient {
|
|
|
1024
1429
|
transaction: Transaction;
|
|
1025
1430
|
return?: ABIReturn | undefined;
|
|
1026
1431
|
}>;
|
|
1432
|
+
/**
|
|
1433
|
+
* Makes a call to the AbelReader smart contract using the `getBalanceInfo(address[])(uint64,uint64)` ABI method.
|
|
1434
|
+
*
|
|
1435
|
+
* This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
|
|
1436
|
+
*
|
|
1437
|
+
* @param params The params for the smart contract call
|
|
1438
|
+
* @returns The call result
|
|
1439
|
+
*/
|
|
1440
|
+
getBalanceInfo: (params: CallParams<AbelReaderArgs['obj']['getBalanceInfo(address[])(uint64,uint64)'] | AbelReaderArgs['tuple']['getBalanceInfo(address[])(uint64,uint64)']> & SendParams & {
|
|
1441
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1442
|
+
}) => Promise<{
|
|
1443
|
+
return: BalanceInfo | undefined;
|
|
1444
|
+
returns?: ABIReturn[] | undefined;
|
|
1445
|
+
groupId: string;
|
|
1446
|
+
txIds: string[];
|
|
1447
|
+
confirmations: modelsv2.PendingTransactionResponse[];
|
|
1448
|
+
transactions: Transaction[];
|
|
1449
|
+
confirmation: modelsv2.PendingTransactionResponse;
|
|
1450
|
+
transaction: Transaction;
|
|
1451
|
+
}>;
|
|
1027
1452
|
/**
|
|
1028
1453
|
* Makes a call to the AbelReader smart contract using the `getAssetsTiny(uint64[],uint64)(string,string,uint8,string[])` ABI method.
|
|
1029
1454
|
*
|
|
@@ -1064,6 +1489,26 @@ declare class AbelReaderClient {
|
|
|
1064
1489
|
confirmation: modelsv2.PendingTransactionResponse;
|
|
1065
1490
|
transaction: Transaction;
|
|
1066
1491
|
}>;
|
|
1492
|
+
/**
|
|
1493
|
+
* Makes a call to the AbelReader smart contract using the `getBlockTimesAndTc(uint64,uint64)(uint32,uint64)` ABI method.
|
|
1494
|
+
*
|
|
1495
|
+
* This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
|
|
1496
|
+
*
|
|
1497
|
+
* @param params The params for the smart contract call
|
|
1498
|
+
* @returns The call result
|
|
1499
|
+
*/
|
|
1500
|
+
getBlockTimesAndTc: (params: CallParams<AbelReaderArgs['obj']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)'] | AbelReaderArgs['tuple']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)']> & SendParams & {
|
|
1501
|
+
onComplete?: OnApplicationComplete.NoOpOC;
|
|
1502
|
+
}) => Promise<{
|
|
1503
|
+
return: BlockTimeAndTc | undefined;
|
|
1504
|
+
returns?: ABIReturn[] | undefined;
|
|
1505
|
+
groupId: string;
|
|
1506
|
+
txIds: string[];
|
|
1507
|
+
confirmations: modelsv2.PendingTransactionResponse[];
|
|
1508
|
+
transactions: Transaction[];
|
|
1509
|
+
confirmation: modelsv2.PendingTransactionResponse;
|
|
1510
|
+
transaction: Transaction;
|
|
1511
|
+
}>;
|
|
1067
1512
|
};
|
|
1068
1513
|
/**
|
|
1069
1514
|
* Clone this app client with different params
|
|
@@ -1072,6 +1517,15 @@ declare class AbelReaderClient {
|
|
|
1072
1517
|
* @returns A new app client with the altered params
|
|
1073
1518
|
*/
|
|
1074
1519
|
clone(params: CloneAppClientParams): AbelReaderClient;
|
|
1520
|
+
/**
|
|
1521
|
+
* Makes a readonly (simulated) call to the AbelReader smart contract using the `getBalanceInfo(address[])(uint64,uint64)` ABI method.
|
|
1522
|
+
*
|
|
1523
|
+
* This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
|
|
1524
|
+
*
|
|
1525
|
+
* @param params The params for the smart contract call
|
|
1526
|
+
* @returns The call result
|
|
1527
|
+
*/
|
|
1528
|
+
getBalanceInfo(params: CallParams<AbelReaderArgs['obj']['getBalanceInfo(address[])(uint64,uint64)'] | AbelReaderArgs['tuple']['getBalanceInfo(address[])(uint64,uint64)']>): Promise<BalanceInfo>;
|
|
1075
1529
|
/**
|
|
1076
1530
|
* Makes a readonly (simulated) call to the AbelReader smart contract using the `getAssetsTiny(uint64[],uint64)(string,string,uint8,string[])` ABI method.
|
|
1077
1531
|
*
|
|
@@ -1090,6 +1544,15 @@ declare class AbelReaderClient {
|
|
|
1090
1544
|
* @returns The call result
|
|
1091
1545
|
*/
|
|
1092
1546
|
getAssetLabels(params: CallParams<AbelReaderArgs['obj']['get_asset_labels(asset)string[]'] | AbelReaderArgs['tuple']['get_asset_labels(asset)string[]']>): Promise<string[]>;
|
|
1547
|
+
/**
|
|
1548
|
+
* Makes a readonly (simulated) call to the AbelReader smart contract using the `getBlockTimesAndTc(uint64,uint64)(uint32,uint64)` ABI method.
|
|
1549
|
+
*
|
|
1550
|
+
* This method is a readonly method; calling it with onComplete of NoOp will result in a simulated transaction rather than a real transaction.
|
|
1551
|
+
*
|
|
1552
|
+
* @param params The params for the smart contract call
|
|
1553
|
+
* @returns The call result
|
|
1554
|
+
*/
|
|
1555
|
+
getBlockTimesAndTc(params: CallParams<AbelReaderArgs['obj']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)'] | AbelReaderArgs['tuple']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)']>): Promise<BlockTimeAndTc>;
|
|
1093
1556
|
/**
|
|
1094
1557
|
* Methods to access state for the current AbelReader app
|
|
1095
1558
|
*/
|
|
@@ -1097,6 +1560,14 @@ declare class AbelReaderClient {
|
|
|
1097
1560
|
newGroup(): AbelReaderComposer;
|
|
1098
1561
|
}
|
|
1099
1562
|
export type AbelReaderComposer<TReturns extends [...any[]] = []> = {
|
|
1563
|
+
/**
|
|
1564
|
+
* Calls the getBalanceInfo(address[])(uint64,uint64) ABI method.
|
|
1565
|
+
*
|
|
1566
|
+
* @param args The arguments for the contract call
|
|
1567
|
+
* @param params Any additional parameters for the call
|
|
1568
|
+
* @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
|
|
1569
|
+
*/
|
|
1570
|
+
getBalanceInfo(params?: CallParams<AbelReaderArgs['obj']['getBalanceInfo(address[])(uint64,uint64)'] | AbelReaderArgs['tuple']['getBalanceInfo(address[])(uint64,uint64)']>): AbelReaderComposer<[...TReturns, AbelReaderReturns['getBalanceInfo(address[])(uint64,uint64)'] | undefined]>;
|
|
1100
1571
|
/**
|
|
1101
1572
|
* Calls the getAssetsTiny(uint64[],uint64)(string,string,uint8,string[]) ABI method.
|
|
1102
1573
|
*
|
|
@@ -1113,6 +1584,14 @@ export type AbelReaderComposer<TReturns extends [...any[]] = []> = {
|
|
|
1113
1584
|
* @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
|
|
1114
1585
|
*/
|
|
1115
1586
|
getAssetLabels(params?: CallParams<AbelReaderArgs['obj']['get_asset_labels(asset)string[]'] | AbelReaderArgs['tuple']['get_asset_labels(asset)string[]']>): AbelReaderComposer<[...TReturns, AbelReaderReturns['get_asset_labels(asset)string[]'] | undefined]>;
|
|
1587
|
+
/**
|
|
1588
|
+
* Calls the getBlockTimesAndTc(uint64,uint64)(uint32,uint64) ABI method.
|
|
1589
|
+
*
|
|
1590
|
+
* @param args The arguments for the contract call
|
|
1591
|
+
* @param params Any additional parameters for the call
|
|
1592
|
+
* @returns The typed transaction composer so you can fluently chain multiple calls or call execute to execute all queued up transactions
|
|
1593
|
+
*/
|
|
1594
|
+
getBlockTimesAndTc(params?: CallParams<AbelReaderArgs['obj']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)'] | AbelReaderArgs['tuple']['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)']>): AbelReaderComposer<[...TReturns, AbelReaderReturns['getBlockTimesAndTc(uint64,uint64)(uint32,uint64)'] | undefined]>;
|
|
1116
1595
|
/**
|
|
1117
1596
|
* Gets available update methods
|
|
1118
1597
|
*/
|
|
@@ -1203,15 +1682,25 @@ declare class GhostBase {
|
|
|
1203
1682
|
}
|
|
1204
1683
|
export declare class AbelReaderSDK extends GhostBase {
|
|
1205
1684
|
constructor(args: ConstructorParameters<typeof GhostBase>[0]);
|
|
1685
|
+
getBalanceInfo({ methodArgsOrArgsArray, extraMethodCallArgs, extraSimulateArgs, }: {
|
|
1686
|
+
methodArgsOrArgsArray: Methods['getBalanceInfo']['argsObj'] | Methods['getBalanceInfo']['argsObj'][];
|
|
1687
|
+
extraMethodCallArgs?: ExtraMethodCallArgs | ExtraMethodCallArgs[];
|
|
1688
|
+
extraSimulateArgs?: RawSimulateOptions;
|
|
1689
|
+
}): Promise<Methods['getBalanceInfo']['returns'][]>;
|
|
1206
1690
|
getAssetsTiny({ methodArgsOrArgsArray, extraMethodCallArgs, extraSimulateArgs, }: {
|
|
1207
1691
|
methodArgsOrArgsArray: Methods['getAssetsTiny']['argsObj'] | Methods['getAssetsTiny']['argsObj'][];
|
|
1208
1692
|
extraMethodCallArgs?: ExtraMethodCallArgs | ExtraMethodCallArgs[];
|
|
1209
1693
|
extraSimulateArgs?: RawSimulateOptions;
|
|
1210
1694
|
}): Promise<Methods['getAssetsTiny']['returns'][]>;
|
|
1211
|
-
|
|
1695
|
+
getAssetLabels({ methodArgsOrArgsArray, extraMethodCallArgs, extraSimulateArgs, }: {
|
|
1212
1696
|
methodArgsOrArgsArray: Methods['get_asset_labels']['argsObj'] | Methods['get_asset_labels']['argsObj'][];
|
|
1213
1697
|
extraMethodCallArgs?: ExtraMethodCallArgs | ExtraMethodCallArgs[];
|
|
1214
1698
|
extraSimulateArgs?: RawSimulateOptions;
|
|
1215
1699
|
}): Promise<Methods['get_asset_labels']['returns'][]>;
|
|
1700
|
+
getBlockTimesAndTc({ methodArgsOrArgsArray, extraMethodCallArgs, extraSimulateArgs, }: {
|
|
1701
|
+
methodArgsOrArgsArray: Methods['getBlockTimesAndTc']['argsObj'] | Methods['getBlockTimesAndTc']['argsObj'][];
|
|
1702
|
+
extraMethodCallArgs?: ExtraMethodCallArgs | ExtraMethodCallArgs[];
|
|
1703
|
+
extraSimulateArgs?: RawSimulateOptions;
|
|
1704
|
+
}): Promise<Methods['getBlockTimesAndTc']['returns'][]>;
|
|
1216
1705
|
}
|
|
1217
1706
|
export {};
|