@algorandfoundation/algokit-utils 1.0.0-beta.39 → 1.0.0-beta.40
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/README.md +8 -1
- package/account.d.ts +10 -9
- package/account.d.ts.map +1 -1
- package/account.js +11 -10
- package/account.js.map +1 -1
- package/amount.d.ts +3 -3
- package/amount.js +3 -3
- package/app-client.d.ts +14 -0
- package/app-client.d.ts.map +1 -0
- package/app-client.js +19 -0
- package/app-client.js.map +1 -0
- package/{deploy-app.d.ts → app-deploy.d.ts} +8 -5
- package/{deploy-app.d.ts.map → app-deploy.d.ts.map} +1 -1
- package/{deploy-app.js → app-deploy.js} +12 -9
- package/app-deploy.js.map +1 -0
- package/app.d.ts +32 -9
- package/app.d.ts.map +1 -1
- package/app.js +37 -13
- package/app.js.map +1 -1
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js +2 -2
- package/index.js.map +1 -1
- package/indexer-lookup.d.ts +2 -2
- package/indexer-lookup.js +4 -4
- package/indexer-lookup.js.map +1 -1
- package/localnet.d.ts +5 -5
- package/localnet.js +5 -5
- package/package.json +1 -1
- package/testing/account.d.ts +2 -2
- package/testing/account.js +2 -2
- package/testing/fixtures/algorand-fixture.d.ts +6 -2
- package/testing/fixtures/algorand-fixture.d.ts.map +1 -1
- package/testing/fixtures/algorand-fixture.js +14 -5
- package/testing/fixtures/algorand-fixture.js.map +1 -1
- package/testing/test-logger.d.ts +3 -1
- package/testing/test-logger.d.ts.map +1 -1
- package/testing/test-logger.js +3 -1
- package/testing/test-logger.js.map +1 -1
- package/testing/transaction-logger.d.ts +4 -4
- package/testing/transaction-logger.d.ts.map +1 -1
- package/testing/transaction-logger.js +4 -4
- package/testing/transaction-logger.js.map +1 -1
- package/transaction.d.ts +17 -23
- package/transaction.d.ts.map +1 -1
- package/transaction.js +26 -16
- package/transaction.js.map +1 -1
- package/transfer.d.ts +4 -3
- package/transfer.d.ts.map +1 -1
- package/transfer.js +10 -8
- package/transfer.js.map +1 -1
- package/types/account.d.ts +1 -1
- package/types/account.d.ts.map +1 -1
- package/types/algod.d.ts +6 -6
- package/types/algod.d.ts.map +1 -1
- package/types/amount.d.ts +6 -2
- package/types/amount.d.ts.map +1 -1
- package/types/amount.js +6 -2
- package/types/amount.js.map +1 -1
- package/types/{application-client.d.ts → app-client.d.ts} +25 -20
- package/types/app-client.d.ts.map +1 -0
- package/types/{application-client.js → app-client.js} +17 -15
- package/types/app-client.js.map +1 -0
- package/types/{appspec.d.ts → app-spec.d.ts} +4 -4
- package/types/app-spec.d.ts.map +1 -0
- package/types/{appspec.js → app-spec.js} +2 -2
- package/types/app-spec.js.map +1 -0
- package/types/app.d.ts +15 -23
- package/types/app.d.ts.map +1 -1
- package/types/app.js.map +1 -1
- package/types/indexer.d.ts +41 -41
- package/types/indexer.d.ts.map +1 -1
- package/types/indexer.js +1 -1
- package/types/indexer.js.map +1 -1
- package/types/testing.d.ts +9 -9
- package/types/testing.d.ts.map +1 -1
- package/types/transaction.d.ts +37 -10
- package/types/transaction.d.ts.map +1 -1
- package/types/transfer.d.ts +7 -7
- package/types/transfer.d.ts.map +1 -1
- package/application-client.d.ts +0 -10
- package/application-client.d.ts.map +0 -1
- package/application-client.js +0 -15
- package/application-client.js.map +0 -1
- package/deploy-app.js.map +0 -1
- package/types/application-client.d.ts.map +0 -1
- package/types/application-client.js.map +0 -1
- package/types/appspec.d.ts.map +0 -1
- package/types/appspec.js.map +0 -1
package/types/indexer.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TransactionType } from 'algosdk';
|
|
2
2
|
import { TealKeyValue } from 'algosdk/dist/types/client/v2/algod/models/types';
|
|
3
|
-
/** Indexer result for a transaction search,
|
|
3
|
+
/** Indexer result for a transaction search, https://developer.algorand.org/docs/rest-apis/indexer/#get-v2transactions */
|
|
4
4
|
export interface TransactionSearchResults {
|
|
5
5
|
/** Round at which the results were computed. */
|
|
6
6
|
'current-round': number;
|
|
@@ -9,14 +9,14 @@ export interface TransactionSearchResults {
|
|
|
9
9
|
/** The returned transactions */
|
|
10
10
|
transactions: TransactionResult[];
|
|
11
11
|
}
|
|
12
|
-
/** Indexer result for an account lookup,
|
|
12
|
+
/** Indexer result for an account lookup, https://developer.algorand.org/docs/rest-apis/indexer/#get-v2accountsaccount-id */
|
|
13
13
|
export interface AccountLookupResult {
|
|
14
14
|
/** Round at which the results were computed. */
|
|
15
15
|
'current-round': number;
|
|
16
16
|
/** The returned account */
|
|
17
17
|
account: AccountResult;
|
|
18
18
|
}
|
|
19
|
-
/** Indexer result for an account's asset holdings,
|
|
19
|
+
/** Indexer result for an account's asset holdings, https://developer.algorand.org/docs/rest-apis/indexer/#get-v2accountsaccount-idassets */
|
|
20
20
|
export interface AssetsLookupResult {
|
|
21
21
|
/** Round at which the results were computed. */
|
|
22
22
|
'current-round': number;
|
|
@@ -25,7 +25,7 @@ export interface AssetsLookupResult {
|
|
|
25
25
|
/** The returned asset holdings */
|
|
26
26
|
assets: AssetHolding[];
|
|
27
27
|
}
|
|
28
|
-
/** Indexer result for an account's created assets,
|
|
28
|
+
/** Indexer result for an account's created assets, https://developer.algorand.org/docs/rest-apis/indexer/#get-v2accountsaccount-idcreated-assets */
|
|
29
29
|
export interface AssetsCreatedLookupResult {
|
|
30
30
|
/** Round at which the results were computed. */
|
|
31
31
|
'current-round': number;
|
|
@@ -34,7 +34,7 @@ export interface AssetsCreatedLookupResult {
|
|
|
34
34
|
/** The returned assets */
|
|
35
35
|
assets: AssetResult[];
|
|
36
36
|
}
|
|
37
|
-
/** Indexer result for an account's created applications,
|
|
37
|
+
/** Indexer result for an account's created applications, https://developer.algorand.org/docs/rest-apis/indexer/#get-v2accountsaccount-idcreated-applications */
|
|
38
38
|
export interface ApplicationCreatedLookupResult {
|
|
39
39
|
/** Round at which the results were computed. */
|
|
40
40
|
'current-round': number;
|
|
@@ -43,28 +43,28 @@ export interface ApplicationCreatedLookupResult {
|
|
|
43
43
|
/** The returned applications */
|
|
44
44
|
applications: ApplicationResult[];
|
|
45
45
|
}
|
|
46
|
-
/** Indexer result for an asset lookup,
|
|
46
|
+
/** Indexer result for an asset lookup, https://developer.algorand.org/docs/rest-apis/indexer/#get-v2assetsasset-id */
|
|
47
47
|
export interface AssetLookupResult {
|
|
48
48
|
/** Round at which the results were computed. */
|
|
49
49
|
'current-round': number;
|
|
50
50
|
/** The returned asset */
|
|
51
51
|
asset: AssetResult;
|
|
52
52
|
}
|
|
53
|
-
/** Indexer result for a transaction lookup,
|
|
53
|
+
/** Indexer result for a transaction lookup, https://developer.algorand.org/docs/rest-apis/indexer/#get-v2transactionstxid */
|
|
54
54
|
export interface TransactionLookupResult {
|
|
55
55
|
/** Round at which the results were computed. */
|
|
56
56
|
'current-round': number;
|
|
57
57
|
/** The returned transaction */
|
|
58
58
|
transaction: TransactionResult;
|
|
59
59
|
}
|
|
60
|
-
/** Indexer result for an application lookup,
|
|
60
|
+
/** Indexer result for an application lookup, https://developer.algorand.org/docs/rest-apis/indexer/#get-v2applicationsapplication-id */
|
|
61
61
|
export interface ApplicationLookupResult {
|
|
62
62
|
/** Round at which the results were computed. */
|
|
63
63
|
'current-round': number;
|
|
64
64
|
/** The returned application */
|
|
65
65
|
application: ApplicationResult;
|
|
66
66
|
}
|
|
67
|
-
/** Indexer result for a transaction,
|
|
67
|
+
/** Indexer result for a transaction, https://developer.algorand.org/docs/rest-apis/indexer/#transaction */
|
|
68
68
|
export interface TransactionResult extends Record<string, any> {
|
|
69
69
|
/** Transaction ID */
|
|
70
70
|
id: string;
|
|
@@ -102,25 +102,25 @@ export interface TransactionResult extends Record<string, any> {
|
|
|
102
102
|
'intra-round-offset'?: number;
|
|
103
103
|
/** Signature of the transaction */
|
|
104
104
|
signature?: TransactionSignature;
|
|
105
|
-
/** If the transaction is an `appl` transaction this will be populated
|
|
105
|
+
/** If the transaction is an `appl` transaction this will be populated see `tx-type` */
|
|
106
106
|
'application-transaction'?: ApplicationTransactionResult;
|
|
107
107
|
/** If the transaction is an `appl` transaction that resulted in an application creation then this
|
|
108
108
|
* specifies the application index (ID) of that application.
|
|
109
109
|
*/
|
|
110
110
|
'created-application-index'?: number;
|
|
111
|
-
/** If the transaction is an `acfg` transaction this will be populated
|
|
111
|
+
/** If the transaction is an `acfg` transaction this will be populated see `tx-type` */
|
|
112
112
|
'asset-config-transaction': AssetConfigTransactionResult;
|
|
113
113
|
/** If the transaction is an `acfg` transaction that resulted in an asset creation then this
|
|
114
114
|
* specifies the asset index (ID) of that asset.
|
|
115
115
|
*/
|
|
116
116
|
'created-asset-index'?: number;
|
|
117
|
-
/** If the transaction is an `afrz` transaction this will be populated
|
|
117
|
+
/** If the transaction is an `afrz` transaction this will be populated see `tx-type` */
|
|
118
118
|
'asset-freeze-transaction'?: AssetFreezeTransactionResult;
|
|
119
|
-
/** If the transaction is an `axfer` transaction this will be populated
|
|
119
|
+
/** If the transaction is an `axfer` transaction this will be populated see `tx-type` */
|
|
120
120
|
'asset-transfer-transaction'?: AssetTransferTransactionResult;
|
|
121
|
-
/** If the transaction is a `keyreg` transaction this will be populated
|
|
121
|
+
/** If the transaction is a `keyreg` transaction this will be populated see `tx-type` */
|
|
122
122
|
'keyreg-transaction'?: KeyRegistrationTransactionResult;
|
|
123
|
-
/** If the transaction is a `pay` transaction this will be populated
|
|
123
|
+
/** If the transaction is a `pay` transaction this will be populated see `tx-type` */
|
|
124
124
|
'payment-transaction'?: PaymentTransactionResult;
|
|
125
125
|
/** [sgnr] this is included with signed transactions when the signing address does not equal the sender.
|
|
126
126
|
* The backend can use this to ensure that auth addr is equal to the accounts auth addr.
|
|
@@ -162,7 +162,7 @@ export interface TransactionResult extends Record<string, any> {
|
|
|
162
162
|
/** [rc] rewards applied to close-remainder-to account. */
|
|
163
163
|
'close-rewards'?: number;
|
|
164
164
|
}
|
|
165
|
-
/** Account information at a given round
|
|
165
|
+
/** Account information at a given round https://developer.algorand.org/docs/rest-apis/indexer/#account */
|
|
166
166
|
export interface AccountResult extends Record<string, any> {
|
|
167
167
|
/** the account public key */
|
|
168
168
|
address: string;
|
|
@@ -237,7 +237,7 @@ export interface AccountResult extends Record<string, any> {
|
|
|
237
237
|
/** The count of all assets (AssetParams objects) created by this account. */
|
|
238
238
|
'total-created-assets': number;
|
|
239
239
|
}
|
|
240
|
-
/** Fields for a payment transaction
|
|
240
|
+
/** Fields for a payment transaction https://developer.algorand.org/docs/rest-apis/indexer/#transactionpayment */
|
|
241
241
|
export interface PaymentTransactionResult {
|
|
242
242
|
/** [amt] number of MicroAlgos intended to be transferred. */
|
|
243
243
|
amount: number;
|
|
@@ -248,7 +248,7 @@ export interface PaymentTransactionResult {
|
|
|
248
248
|
/** [rcv] receiver's address. */
|
|
249
249
|
receiver: string;
|
|
250
250
|
}
|
|
251
|
-
/** Fields for an application transaction
|
|
251
|
+
/** Fields for an application transaction https://developer.algorand.org/docs/rest-apis/indexer/#transactionapplication */
|
|
252
252
|
export interface ApplicationTransactionResult extends Omit<ApplicationParams, 'creator' | 'global-state'> {
|
|
253
253
|
/** [apat] List of accounts in addition to the sender that may be accessed from the application's approval-program and clear-state-program. */
|
|
254
254
|
accounts?: string[];
|
|
@@ -264,7 +264,7 @@ export interface ApplicationTransactionResult extends Omit<ApplicationParams, 'c
|
|
|
264
264
|
'on-completion': ApplicationOnComplete;
|
|
265
265
|
}
|
|
266
266
|
/** Fields for asset allocation, re-configuration, and destruction.
|
|
267
|
-
*
|
|
267
|
+
* https://developer.algorand.org/docs/rest-apis/indexer/#transactionassetconfig
|
|
268
268
|
*
|
|
269
269
|
* A zero value for asset-id indicates asset creation. A zero value for the params indicates asset destruction.
|
|
270
270
|
*/
|
|
@@ -274,7 +274,7 @@ export interface AssetConfigTransactionResult {
|
|
|
274
274
|
/** [apar] the parameters for the asset. */
|
|
275
275
|
params: AssetParams;
|
|
276
276
|
}
|
|
277
|
-
/** Fields for an asset freeze transaction.
|
|
277
|
+
/** Fields for an asset freeze transaction. https://developer.algorand.org/docs/rest-apis/indexer/#transactionassetfreeze */
|
|
278
278
|
export interface AssetFreezeTransactionResult {
|
|
279
279
|
/** [fadd] Address of the account whose asset is being frozen or thawed. */
|
|
280
280
|
address: string;
|
|
@@ -283,7 +283,7 @@ export interface AssetFreezeTransactionResult {
|
|
|
283
283
|
/** [afrz] The new freeze status. */
|
|
284
284
|
'new-freeze-status': boolean;
|
|
285
285
|
}
|
|
286
|
-
/** Fields for an asset transfer transaction.
|
|
286
|
+
/** Fields for an asset transfer transaction. https://developer.algorand.org/docs/rest-apis/indexer/#transactionassettransfer */
|
|
287
287
|
export interface AssetTransferTransactionResult {
|
|
288
288
|
/** [aamt] Amount of asset to transfer. A zero amount transferred to self allocates that asset in the account's Assets map. */
|
|
289
289
|
amount: number;
|
|
@@ -298,7 +298,7 @@ export interface AssetTransferTransactionResult {
|
|
|
298
298
|
/** [asnd] The effective sender during a clawback transactions. If this is not a zero value, the real transaction sender must be the Clawback address from the AssetParams. */
|
|
299
299
|
sender?: string;
|
|
300
300
|
}
|
|
301
|
-
/** Fields for a `keyreg` transaction
|
|
301
|
+
/** Fields for a `keyreg` transaction https://developer.algorand.org/docs/rest-apis/indexer/#transactionkeyreg */
|
|
302
302
|
export interface KeyRegistrationTransactionResult {
|
|
303
303
|
/** [nonpart] Mark the account as participating or non-participating. */
|
|
304
304
|
'non-participation'?: boolean;
|
|
@@ -324,7 +324,7 @@ export interface KeyRegistrationTransactionResult {
|
|
|
324
324
|
*/
|
|
325
325
|
'vote-participation-key'?: string;
|
|
326
326
|
}
|
|
327
|
-
/** Specifies both the unique identifier and the parameters for an asset.
|
|
327
|
+
/** Specifies both the unique identifier and the parameters for an asset. https://developer.algorand.org/docs/rest-apis/indexer/#asset */
|
|
328
328
|
export interface AssetResult {
|
|
329
329
|
/** Unique asset identifier. */
|
|
330
330
|
index: number;
|
|
@@ -347,7 +347,7 @@ export interface ApplicationResult {
|
|
|
347
347
|
deleted?: boolean;
|
|
348
348
|
'deleted-at-round'?: number;
|
|
349
349
|
}
|
|
350
|
-
/** Validation signature associated with some data. Only one of the signatures should be provided.
|
|
350
|
+
/** Validation signature associated with some data. Only one of the signatures should be provided. https://developer.algorand.org/docs/rest-apis/indexer/#transactionsignature */
|
|
351
351
|
export interface TransactionSignature {
|
|
352
352
|
/** Logicsig signature */
|
|
353
353
|
logicsig: LogicTransactionSignature;
|
|
@@ -361,9 +361,9 @@ export interface TransactionSignature {
|
|
|
361
361
|
}
|
|
362
362
|
/** [lsig] Programatic transaction signature.
|
|
363
363
|
*
|
|
364
|
-
*
|
|
364
|
+
* https://developer.algorand.org/docs/rest-apis/indexer/#transactionsignaturelogicsig
|
|
365
365
|
*
|
|
366
|
-
*
|
|
366
|
+
* https://developer.algorand.org/docs/get-details/transactions/signatures/#logic-signatures
|
|
367
367
|
*/
|
|
368
368
|
export interface LogicTransactionSignature {
|
|
369
369
|
/** [arg] Logic arguments, base64 encoded. */
|
|
@@ -375,15 +375,15 @@ export interface LogicTransactionSignature {
|
|
|
375
375
|
* *Pattern:* `"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"`
|
|
376
376
|
*/
|
|
377
377
|
logic: string;
|
|
378
|
-
/** The signature of the multisig the logic signature delegating the logicsig.
|
|
378
|
+
/** The signature of the multisig the logic signature delegating the logicsig. https://developer.algorand.org/docs/get-details/dapps/smart-contracts/smartsigs/modes/#delegated-approval */
|
|
379
379
|
'multisig-signature'?: MultisigTransactionSignature;
|
|
380
|
-
/** [sig] Standard ed25519 signature delegating the logicsig.
|
|
380
|
+
/** [sig] Standard ed25519 signature delegating the logicsig. https://developer.algorand.org/docs/get-details/dapps/smart-contracts/smartsigs/modes/#delegated-approval
|
|
381
381
|
*
|
|
382
382
|
* *Pattern:* `"^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==\|[A-Za-z0-9+/]{3}=)?$"`
|
|
383
383
|
*/
|
|
384
384
|
signature?: string;
|
|
385
385
|
}
|
|
386
|
-
/** [msig] structure holding multiple subsignatures.
|
|
386
|
+
/** [msig] structure holding multiple subsignatures. https://developer.algorand.org/docs/rest-apis/indexer/#transactionsignaturemultisig */
|
|
387
387
|
export interface MultisigTransactionSignature {
|
|
388
388
|
/** [subsig] Holds pairs of public key and signatures. */
|
|
389
389
|
subsignature: MultisigTransactionSubSignature;
|
|
@@ -392,7 +392,7 @@ export interface MultisigTransactionSignature {
|
|
|
392
392
|
/** [v] The version of the multisig */
|
|
393
393
|
version: number;
|
|
394
394
|
}
|
|
395
|
-
/** Sub-signature for a multisig signature
|
|
395
|
+
/** Sub-signature for a multisig signature https://developer.algorand.org/docs/rest-apis/indexer/#transactionsignaturemultisigsubsignature */
|
|
396
396
|
export interface MultisigTransactionSubSignature {
|
|
397
397
|
/** [pk] The public key of the account making the signature
|
|
398
398
|
*
|
|
@@ -405,7 +405,7 @@ export interface MultisigTransactionSubSignature {
|
|
|
405
405
|
*/
|
|
406
406
|
signature: string;
|
|
407
407
|
}
|
|
408
|
-
/** Represents a TEAL value delta.
|
|
408
|
+
/** Represents a TEAL value delta. https://developer.algorand.org/docs/rest-apis/indexer/#evaldelta */
|
|
409
409
|
export interface EvalDelta {
|
|
410
410
|
/** [at] delta action. */
|
|
411
411
|
action: number;
|
|
@@ -414,7 +414,7 @@ export interface EvalDelta {
|
|
|
414
414
|
/** [ui] uint value. */
|
|
415
415
|
uint?: number;
|
|
416
416
|
}
|
|
417
|
-
/** Stores the global information associated with an application
|
|
417
|
+
/** Stores the global information associated with an application https://developer.algorand.org/docs/rest-apis/indexer/#applicationparams */
|
|
418
418
|
export interface ApplicationParams {
|
|
419
419
|
/** The address that created this application. This is the address where the parameters and global state for this application can be found. */
|
|
420
420
|
creator: string;
|
|
@@ -440,15 +440,15 @@ export interface ApplicationParams {
|
|
|
440
440
|
'clear-state-program': string;
|
|
441
441
|
/** [epp] the amount of extra program pages available to this app. */
|
|
442
442
|
'extra-program-pages'?: number;
|
|
443
|
-
/** [
|
|
443
|
+
/** [gs] global schema */
|
|
444
444
|
'global-state': TealKeyValue[];
|
|
445
|
-
/** [
|
|
445
|
+
/** [gsch] global schema */
|
|
446
446
|
'global-state-schema'?: StateSchema;
|
|
447
|
-
/** [
|
|
447
|
+
/** [lsch] local schema */
|
|
448
448
|
'local-state-schema'?: StateSchema;
|
|
449
449
|
}
|
|
450
450
|
/** Represents a [apls] local-state or [apgs] global-state schema.
|
|
451
|
-
*
|
|
451
|
+
* https://developer.algorand.org/docs/rest-apis/indexer/#stateschema
|
|
452
452
|
*
|
|
453
453
|
* These schemas determine how much storage may be used in a local-state or global-state for an application.
|
|
454
454
|
*
|
|
@@ -460,7 +460,7 @@ export interface StateSchema {
|
|
|
460
460
|
/** Maximum number of TEAL uints that may be stored in the key/value store. */
|
|
461
461
|
'num-uint': number;
|
|
462
462
|
}
|
|
463
|
-
/** Defines the what additional actions occur with the transaction
|
|
463
|
+
/** Defines the what additional actions occur with the transaction https://developer.algorand.org/docs/rest-apis/indexer/#oncompletion */
|
|
464
464
|
export declare enum ApplicationOnComplete {
|
|
465
465
|
noop = "noop",
|
|
466
466
|
optin = "optin",
|
|
@@ -469,7 +469,7 @@ export declare enum ApplicationOnComplete {
|
|
|
469
469
|
update = "update",
|
|
470
470
|
delete = "delete"
|
|
471
471
|
}
|
|
472
|
-
/** AssetParams specifies the parameters for an asset.
|
|
472
|
+
/** AssetParams specifies the parameters for an asset. https://developer.algorand.org/docs/rest-apis/indexer/#assetparams */
|
|
473
473
|
export interface AssetParams {
|
|
474
474
|
/**
|
|
475
475
|
* The address that created this asset. This is the address where the parameters
|
|
@@ -561,7 +561,7 @@ export declare enum AccountStatus {
|
|
|
561
561
|
/** Indicates that the associated account is neither a delegator nor a delegate */
|
|
562
562
|
NotParticipating = "NotParticipating"
|
|
563
563
|
}
|
|
564
|
-
/** AccountParticipation describes the parameters used by this account in consensus protocol.
|
|
564
|
+
/** AccountParticipation describes the parameters used by this account in consensus protocol. https://developer.algorand.org/docs/rest-apis/indexer/#accountparticipation */
|
|
565
565
|
export interface AccountParticipation {
|
|
566
566
|
/** [sel] Selection public key (if any) currently registered for this round.
|
|
567
567
|
*
|
|
@@ -585,7 +585,7 @@ export interface AccountParticipation {
|
|
|
585
585
|
*/
|
|
586
586
|
'vote-participation-key': string;
|
|
587
587
|
}
|
|
588
|
-
/** Stores local state associated with an application.
|
|
588
|
+
/** Stores local state associated with an application. https://developer.algorand.org/docs/rest-apis/indexer/#applicationlocalstate */
|
|
589
589
|
export interface AppLocalState {
|
|
590
590
|
/** Round when account closed out of the application. */
|
|
591
591
|
'closed-out-at-round'?: number;
|
|
@@ -600,7 +600,7 @@ export interface AppLocalState {
|
|
|
600
600
|
/** [hsch] schema. */
|
|
601
601
|
schema: StateSchema;
|
|
602
602
|
}
|
|
603
|
-
/** Describes an asset held by an account.
|
|
603
|
+
/** Describes an asset held by an account. https://developer.algorand.org/docs/rest-apis/indexer/#assetholding */
|
|
604
604
|
export interface AssetHolding {
|
|
605
605
|
/**
|
|
606
606
|
* (a) number of units held.
|
package/types/indexer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexer.d.ts","sourceRoot":"","sources":["../../src/types/indexer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAA;AAE9E,
|
|
1
|
+
{"version":3,"file":"indexer.d.ts","sourceRoot":"","sources":["../../src/types/indexer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iDAAiD,CAAA;AAE9E,yHAAyH;AACzH,MAAM,WAAW,wBAAwB;IACvC,gDAAgD;IAChD,eAAe,EAAE,MAAM,CAAA;IACvB,mGAAmG;IACnG,YAAY,EAAE,MAAM,CAAA;IACpB,gCAAgC;IAChC,YAAY,EAAE,i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AAqD;IACrD,EAAE,EAAE,MAAM,CAAA;IACV,qBAAqB;IACrB,WAAW,CAAC,EAAE,YAAY,EAAE,CAAA;IAC5B,yDAAyD;IACzD,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,qBAAqB;IACrB,MAAM,EAAE,WAAW,CAAA;CACpB;AAED,iHAAiH;AACjH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB,8EAA8E;IAC9E,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IACpB,oEAAoE;IACpE,mBAAmB,EAAE,MAAM,CAAA;IAC3B,sEAAsE;IACtE,oBAAoB,EAAE,MAAM,CAAA;CAC7B"}
|
package/types/indexer.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AccountStatus = exports.SignatureType = exports.ApplicationOnComplete = void 0;
|
|
4
|
-
/** Defines the what additional actions occur with the transaction
|
|
4
|
+
/** Defines the what additional actions occur with the transaction https://developer.algorand.org/docs/rest-apis/indexer/#oncompletion */
|
|
5
5
|
var ApplicationOnComplete;
|
|
6
6
|
(function (ApplicationOnComplete) {
|
|
7
7
|
ApplicationOnComplete["noop"] = "noop";
|
package/types/indexer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexer.js","sourceRoot":"","sources":["../../src/types/indexer.ts"],"names":[],"mappings":";;;AA0eA,
|
|
1
|
+
{"version":3,"file":"indexer.js","sourceRoot":"","sources":["../../src/types/indexer.ts"],"names":[],"mappings":";;;AA0eA,yIAAyI;AACzI,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAC/B,sCAAa,CAAA;IACb,wCAAe,CAAA;IACf,8CAAqB,CAAA;IACrB,wCAAe,CAAA;IACf,0CAAiB,CAAA;IACjB,0CAAiB,CAAA;AACnB,CAAC,EAPW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAOhC;AA6ED,2CAA2C;AAC3C,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,uBAAuB;IACvB,4BAAW,CAAA;IACX,eAAe;IACf,8BAAa,CAAA;IACb,sBAAsB;IACtB,8BAAa,CAAA;AACf,CAAC,EAPW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAOxB;AAED,uCAAuC;AACvC,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,yDAAyD;IACzD,oCAAmB,CAAA;IACnB,gFAAgF;IAChF,kCAAiB,CAAA;IACjB,kFAAkF;IAClF,sDAAqC,CAAA;AACvC,CAAC,EAPW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAOxB"}
|
package/types/testing.d.ts
CHANGED
|
@@ -8,25 +8,25 @@ import { TransactionLookupResult } from './indexer';
|
|
|
8
8
|
* Test automation context.
|
|
9
9
|
*/
|
|
10
10
|
export interface AlgorandTestAutomationContext {
|
|
11
|
-
/** Algod client instance that will log transactions in
|
|
11
|
+
/** Algod client instance that will log transactions in `transactionLogger` */
|
|
12
12
|
algod: Algodv2;
|
|
13
13
|
/** Indexer client instance */
|
|
14
14
|
indexer: Indexer;
|
|
15
15
|
/** KMD client instance */
|
|
16
16
|
kmd: Kmd;
|
|
17
|
-
/** Transaction logger that will log transaction IDs for all transactions issued by
|
|
17
|
+
/** Transaction logger that will log transaction IDs for all transactions issued by `algod` */
|
|
18
18
|
transactionLogger: TransactionLogger;
|
|
19
19
|
/** Default, funded test account that is ephemerally created */
|
|
20
20
|
testAccount: Account;
|
|
21
21
|
/** Generate and fund an additional ephemerally created account */
|
|
22
22
|
generateAccount: (params: GetTestAccountParams) => Promise<Account>;
|
|
23
|
-
/** Wait for the indexer to catch up with all transactions logged by
|
|
23
|
+
/** Wait for the indexer to catch up with all transactions logged by `transactionLogger` */
|
|
24
24
|
waitForIndexer: () => Promise<void>;
|
|
25
25
|
/** Wait for the indexer to catch up with the given transaction ID */
|
|
26
26
|
waitForIndexerTransaction: (transactionId: string) => Promise<TransactionLookupResult>;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
* Parameters for the
|
|
29
|
+
* Parameters for the `getTestAccount` function.
|
|
30
30
|
*/
|
|
31
31
|
export interface GetTestAccountParams {
|
|
32
32
|
/** Initial funds to ensure the account has */
|
|
@@ -36,11 +36,11 @@ export interface GetTestAccountParams {
|
|
|
36
36
|
}
|
|
37
37
|
/** Configuration for creating an Algorand testing fixture. */
|
|
38
38
|
export interface AlgorandFixtureConfig {
|
|
39
|
-
/** An optional algod client, if not specified then it will create one against default LocalNet. */
|
|
39
|
+
/** An optional algod client, if not specified then it will create one against environment variables defined network (if present) or default LocalNet. */
|
|
40
40
|
algod?: Algodv2;
|
|
41
|
-
/** An optional indexer client, if not specified then it will create one against default LocalNet. */
|
|
41
|
+
/** An optional indexer client, if not specified then it will create one against environment variables defined network (if present) or default LocalNet. */
|
|
42
42
|
indexer?: Indexer;
|
|
43
|
-
/** An optional kmd client, if not specified then it will create one against default LocalNet. */
|
|
43
|
+
/** An optional kmd client, if not specified then it will create one against environment variables defined network (if present) or default LocalNet. */
|
|
44
44
|
kmd?: Kmd;
|
|
45
45
|
/** The amount of funds to allocate to the default testing account, if not specified then it will get 10 ALGOs. */
|
|
46
46
|
testAccountFunding?: AlgoAmount;
|
|
@@ -58,7 +58,7 @@ export interface AlgorandFixture {
|
|
|
58
58
|
*/
|
|
59
59
|
get context(): AlgorandTestAutomationContext;
|
|
60
60
|
/**
|
|
61
|
-
* Testing framework agnostic handler method to run before each test to prepare the
|
|
61
|
+
* Testing framework agnostic handler method to run before each test to prepare the `context` for that test.
|
|
62
62
|
*/
|
|
63
63
|
beforeEach: () => Promise<void>;
|
|
64
64
|
}
|
|
@@ -78,7 +78,7 @@ export interface AlgoKitLogCaptureFixture {
|
|
|
78
78
|
/** The test logger instance for the current test */
|
|
79
79
|
get testLogger(): TestLogger;
|
|
80
80
|
/**
|
|
81
|
-
* Testing framework agnostic handler method to run before each test to prepare the
|
|
81
|
+
* Testing framework agnostic handler method to run before each test to prepare the `testLogger` for that test.
|
|
82
82
|
*/
|
|
83
83
|
beforeEach: () => void;
|
|
84
84
|
/**
|
package/types/testing.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../src/types/testing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAA;AAEnD;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../src/types/testing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAA;AAEnD;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,8EAA8E;IAC9E,KAAK,EAAE,OAAO,CA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C,yCAAyC;IACzC,IAAI,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;CAC3B;AAED,MAAM,WAAW,wBAAwB;IACvC,oDAAoD;IACpD,IAAI,UAAU,IAAI,UAAU,CAAA;IAC5B;;OAEG;IACH,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB;;OAEG;IACH,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB"}
|
package/types/transaction.d.ts
CHANGED
|
@@ -2,9 +2,10 @@ import { Account, AtomicTransactionComposer, LogicSigAccount, Transaction } from
|
|
|
2
2
|
import { MultisigAccount, SigningAccount, TransactionSignerAccount } from './account';
|
|
3
3
|
import { PendingTransactionResponse } from './algod';
|
|
4
4
|
import { AlgoAmount } from './amount';
|
|
5
|
+
import { ABIReturn } from './app';
|
|
5
6
|
export type TransactionNote = Uint8Array | TransactionNoteData | Arc2TransactionNote;
|
|
6
7
|
export type TransactionNoteData = string | null | undefined | number | any[] | Record<string, any>;
|
|
7
|
-
/** ARC-0002 compatible transaction note components
|
|
8
|
+
/** ARC-0002 compatible transaction note components https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0002.md */
|
|
8
9
|
export type Arc2TransactionNote = {
|
|
9
10
|
dAppName: string;
|
|
10
11
|
format: 'm' | 'b' | 'u';
|
|
@@ -17,11 +18,11 @@ export type Arc2TransactionNote = {
|
|
|
17
18
|
/** The sending configuration for a transaction */
|
|
18
19
|
export interface SendTransactionParams {
|
|
19
20
|
/** Whether to skip signing and sending the transaction to the chain (default: transaction signed and sent to chain, unless `atc` specified)
|
|
20
|
-
*
|
|
21
|
+
* and instead just return the raw transaction, e.g. so you can add it to a group of transactions */
|
|
21
22
|
skipSending?: boolean;
|
|
22
23
|
/** Whether to skip waiting for the submitted transaction (only relevant if `skipSending` is `false` or unset) */
|
|
23
24
|
skipWaiting?: boolean;
|
|
24
|
-
/** An optional
|
|
25
|
+
/** An optional `AtomicTransactionComposer` to add the transaction to, if specified then `skipSending: undefined` has the same effect as `skipSending: true` */
|
|
25
26
|
atc?: AtomicTransactionComposer;
|
|
26
27
|
/** Whether to suppress log messages from transaction send, default: do not suppress */
|
|
27
28
|
suppressLog?: boolean;
|
|
@@ -39,20 +40,46 @@ export interface SendTransactionResult {
|
|
|
39
40
|
/** The response if the transaction was sent and waited for */
|
|
40
41
|
confirmation?: PendingTransactionResponse;
|
|
41
42
|
}
|
|
43
|
+
/** The result of preparing and/or sending multiple transactions */
|
|
44
|
+
export interface SendTransactionResults {
|
|
45
|
+
/** The transactions that have been prepared and/or sent */
|
|
46
|
+
transactions: Transaction[];
|
|
47
|
+
/** The responses if the transactions were sent and waited for,
|
|
48
|
+
* the index of the confirmation will match the index of the underlying transaction
|
|
49
|
+
*/
|
|
50
|
+
confirmations?: PendingTransactionResponse[];
|
|
51
|
+
}
|
|
52
|
+
/** The result of preparing and/or sending multiple transactions using an `AtomicTransactionComposer` */
|
|
53
|
+
export interface SendAtomicTransactionComposerResults extends SendTransactionResults {
|
|
54
|
+
/** base64 encoded representation of the group ID of the atomic group */
|
|
55
|
+
groupId: string;
|
|
56
|
+
/** The transaction IDs that have been prepared and/or sent */
|
|
57
|
+
txIds: string[];
|
|
58
|
+
/** If ABI method(s) were called the processed return values */
|
|
59
|
+
returns?: ABIReturn[];
|
|
60
|
+
}
|
|
42
61
|
/** The result of sending and confirming a transaction */
|
|
43
62
|
export interface ConfirmedTransactionResult extends SendTransactionResult {
|
|
44
63
|
/** The response from sending and waiting for the transaction */
|
|
45
64
|
confirmation: PendingTransactionResponse;
|
|
46
65
|
}
|
|
47
66
|
/** The result of sending and confirming one or more transactions, but where there is a primary transaction of interest */
|
|
48
|
-
export interface ConfirmedTransactionResults extends SendTransactionResult {
|
|
49
|
-
/** The transactions */
|
|
50
|
-
transactions: Transaction[];
|
|
67
|
+
export interface ConfirmedTransactionResults extends SendTransactionResult, SendTransactionResults {
|
|
51
68
|
/** The response from sending and waiting for the primary transaction */
|
|
52
69
|
confirmation: PendingTransactionResponse;
|
|
53
70
|
/** The response from sending and waiting for the transactions */
|
|
54
71
|
confirmations: PendingTransactionResponse[];
|
|
55
72
|
}
|
|
73
|
+
/** Core account abstraction when signing/sending transactions
|
|
74
|
+
*
|
|
75
|
+
* This type is used across the entire AlgoKit Utils library and allows you to pass through
|
|
76
|
+
* many types of accounts, including:
|
|
77
|
+
* * `Account` - The in-built `algosdk.Account` type for mnemonic accounts
|
|
78
|
+
* * `SigningAccount` - An AlgoKit Utils class that wraps Account to provide support for rekeyed accounts
|
|
79
|
+
* * `LogicSigAccount` - The in-built `algosdk.LogicSigAccount` type for logic signatures
|
|
80
|
+
* * `MultisigAccount` - An AlgoKit Utils class that wraps a multisig account and provides mechanisms to get a multisig account
|
|
81
|
+
* * `TransactionSignerAccount` - An AlgoKitUtils class that wraps the in-built `algosdk.TransactionSigner` along with the sender address
|
|
82
|
+
*/
|
|
56
83
|
export type SendTransactionFrom = Account | SigningAccount | LogicSigAccount | MultisigAccount | TransactionSignerAccount;
|
|
57
84
|
/** Defines an unsigned transaction that will appear in a group of transactions along with its signing information */
|
|
58
85
|
export interface TransactionToSign {
|
|
@@ -62,22 +89,22 @@ export interface TransactionToSign {
|
|
|
62
89
|
signer: SendTransactionFrom;
|
|
63
90
|
}
|
|
64
91
|
/** A group of transactions to send together as an atomic group
|
|
65
|
-
*
|
|
92
|
+
* https://developer.algorand.org/docs/get-details/atomic_transfers/
|
|
66
93
|
*/
|
|
67
94
|
export interface TransactionGroupToSend {
|
|
68
95
|
/** Any parameters to control the semantics of the send to the network */
|
|
69
96
|
sendParams?: Omit<SendTransactionParams, 'fee' | 'maxFee' | 'skipSending' | 'atc'>;
|
|
70
97
|
/** The list of transactions to send, which can either be a raw transaction (in which case `signer` is required),
|
|
71
|
-
* the async result of an AlgoKit utils method that returns a
|
|
98
|
+
* the async result of an AlgoKit utils method that returns a `SendTransactionResult` (saves unwrapping the promise, be sure to pass `skipSending: true`, `signer` is also required)
|
|
72
99
|
* or the transaction with its signer (`signer` is ignored)
|
|
73
100
|
**/
|
|
74
101
|
transactions: (TransactionToSign | Transaction | Promise<SendTransactionResult>)[];
|
|
75
102
|
/** Optional signer to pass in, required if at least one transaction provided is just the transaction, ignored otherwise */
|
|
76
103
|
signer?: SendTransactionFrom;
|
|
77
104
|
}
|
|
78
|
-
/** An
|
|
105
|
+
/** An `AtomicTransactionComposer` with transactions to send. */
|
|
79
106
|
export interface AtomicTransactionComposerToSend {
|
|
80
|
-
/** The
|
|
107
|
+
/** The `AtomicTransactionComposer` with transactions loaded to send */
|
|
81
108
|
atc: AtomicTransactionComposer;
|
|
82
109
|
/** Any parameters to control the semantics of the send to the network */
|
|
83
110
|
sendParams?: Omit<SendTransactionParams, 'fee' | 'maxFee' | 'skipSending' | 'atc'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../src/types/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,yBAAyB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC1F,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../src/types/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,yBAAyB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC1F,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;A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,aAAa,GAAG,KAAK,CAAC,CAAA;CACnF"}
|
package/types/transfer.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SuggestedParams } from 'algosdk';
|
|
2
2
|
import { AlgoAmount } from './amount';
|
|
3
3
|
import { SendTransactionFrom, SendTransactionParams, TransactionNote } from './transaction';
|
|
4
|
-
/** Parameters for
|
|
4
|
+
/** Parameters for `transferAlgos` call. */
|
|
5
5
|
export interface AlgoTransferParams extends SendTransactionParams {
|
|
6
|
-
/** The account
|
|
6
|
+
/** The account that will send the ALGOs */
|
|
7
7
|
from: SendTransactionFrom;
|
|
8
|
-
/** The account address that will receive the ALGOs */
|
|
9
|
-
to: string;
|
|
8
|
+
/** The account / account address that will receive the ALGOs */
|
|
9
|
+
to: SendTransactionFrom | string;
|
|
10
10
|
/** The amount to send */
|
|
11
11
|
amount: AlgoAmount;
|
|
12
12
|
/** Optional transaction parameters */
|
|
@@ -14,12 +14,12 @@ export interface AlgoTransferParams extends SendTransactionParams {
|
|
|
14
14
|
/** The (optional) transaction note */
|
|
15
15
|
note?: TransactionNote;
|
|
16
16
|
}
|
|
17
|
-
/** Parameters for
|
|
17
|
+
/** Parameters for `ensureFunded` call. */
|
|
18
18
|
export interface EnsureFundedParams extends SendTransactionParams {
|
|
19
19
|
/** The account to fund */
|
|
20
20
|
accountToFund: SendTransactionFrom | string;
|
|
21
|
-
/** The account to use as a funding source */
|
|
22
|
-
fundingSource
|
|
21
|
+
/** The account to use as a funding source, will default to using the dispenser account returned by `algokit.getDispenserAccount` */
|
|
22
|
+
fundingSource?: SendTransactionFrom;
|
|
23
23
|
/** The minimum balance of ALGOs that the account should have available to spend (i.e. on top of minimum balance requirement) */
|
|
24
24
|
minSpendingBalance: AlgoAmount;
|
|
25
25
|
/** When issuing a funding amount, the minimum amount to transfer (avoids many small transfers if this gets called often on an active account) */
|
package/types/transfer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfer.d.ts","sourceRoot":"","sources":["../../src/types/transfer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAE3F,
|
|
1
|
+
{"version":3,"file":"transfer.d.ts","sourceRoot":"","sources":["../../src/types/transfer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAE3F,2CAA2C;AAC3C,MAAM,WAAW,kBAAmB,SAAQ,qBAAqB;IAC/D,2CAA2C;IAC3C,IAAI,EAAE,mBAAmB,CAAA;IACzB,gEAAgE;IAChE,EAAE,EAAE,mBAAmB,GAAG,MAAM,CAAA;IAChC,yBAAyB;IACzB,MAAM,EAAE,UAAU,CAAA;IAClB,sCAAsC;IACtC,iBAAiB,CAAC,EAAE,eAAe,CAAA;IACnC,sCAAsC;IACtC,IAAI,CAAC,EAAE,eAAe,CAAA;CACvB;AAED,0CAA0C;AAC1C,MAAM,WAAW,kBAAmB,SAAQ,qBAAqB;IAC/D,0BAA0B;IAC1B,aAAa,EAAE,mBAAmB,GAAG,MAAM,CAAA;IAC3C,oIAAoI;IACpI,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,gIAAgI;IAChI,kBAAkB,EAAE,UAAU,CAAA;IAC9B,iJAAiJ;IACjJ,mBAAmB,CAAC,EAAE,UAAU,CAAA;IAChC,sCAAsC;IACtC,iBAAiB,CAAC,EAAE,eAAe,CAAA;IACnC,8FAA8F;IAC9F,IAAI,CAAC,EAAE,eAAe,CAAA;CACvB"}
|
package/application-client.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Algodv2 } from 'algosdk';
|
|
2
|
-
import { ApplicationClient, AppSpecAppDetails } from './types/application-client';
|
|
3
|
-
/**
|
|
4
|
-
* Create a new ApplicationClient instance
|
|
5
|
-
* @param appDetails The details of the app
|
|
6
|
-
* @param algod An algod instance
|
|
7
|
-
* @returns The application client
|
|
8
|
-
*/
|
|
9
|
-
export declare function getApplicationClient(appDetails: AppSpecAppDetails, algod: Algodv2): ApplicationClient;
|
|
10
|
-
//# sourceMappingURL=application-client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"application-client.d.ts","sourceRoot":"","sources":["../src/application-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAEjF;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,iBAAiB,EAAE,KAAK,EAAE,OAAO,qBAEjF"}
|