algosdk 2.8.0 → 2.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/README.md +4 -4
  2. package/dist/browser/algosdk.min.js +1 -1
  3. package/dist/browser/algosdk.min.js.map +1 -1
  4. package/dist/cjs/abi/contract.js +2 -0
  5. package/dist/cjs/abi/contract.js.map +1 -1
  6. package/dist/cjs/abi/event.js +3 -0
  7. package/dist/cjs/abi/event.js.map +1 -0
  8. package/dist/cjs/abi/method.js +4 -0
  9. package/dist/cjs/abi/method.js.map +1 -1
  10. package/dist/cjs/client/v2/algod/models/types.js +45 -5
  11. package/dist/cjs/client/v2/algod/models/types.js.map +1 -1
  12. package/dist/cjs/client/v2/indexer/models/types.js +168 -3
  13. package/dist/cjs/client/v2/indexer/models/types.js.map +1 -1
  14. package/dist/cjs/makeTxn.js +26 -0
  15. package/dist/cjs/makeTxn.js.map +1 -1
  16. package/dist/cjs/transaction.js +102 -0
  17. package/dist/cjs/transaction.js.map +1 -1
  18. package/dist/cjs/types/transactions/base.js +6 -1
  19. package/dist/cjs/types/transactions/base.js.map +1 -1
  20. package/dist/cjs/types/transactions/heartbeat.js +3 -0
  21. package/dist/cjs/types/transactions/heartbeat.js.map +1 -0
  22. package/dist/cjs/types/transactions/index.js.map +1 -1
  23. package/dist/esm/abi/contract.js +2 -0
  24. package/dist/esm/abi/contract.js.map +1 -1
  25. package/dist/esm/abi/event.js +2 -0
  26. package/dist/esm/abi/event.js.map +1 -0
  27. package/dist/esm/abi/method.js +4 -0
  28. package/dist/esm/abi/method.js.map +1 -1
  29. package/dist/esm/client/v2/algod/models/types.js +42 -3
  30. package/dist/esm/client/v2/algod/models/types.js.map +1 -1
  31. package/dist/esm/client/v2/indexer/models/types.js +163 -1
  32. package/dist/esm/client/v2/indexer/models/types.js.map +1 -1
  33. package/dist/esm/makeTxn.js +26 -0
  34. package/dist/esm/makeTxn.js.map +1 -1
  35. package/dist/esm/transaction.js +102 -0
  36. package/dist/esm/transaction.js.map +1 -1
  37. package/dist/esm/types/transactions/base.js +6 -1
  38. package/dist/esm/types/transactions/base.js.map +1 -1
  39. package/dist/esm/types/transactions/heartbeat.js +2 -0
  40. package/dist/esm/types/transactions/heartbeat.js.map +1 -0
  41. package/dist/esm/types/transactions/index.js.map +1 -1
  42. package/dist/types/abi/contract.d.ts +4 -0
  43. package/dist/types/abi/event.d.ts +16 -0
  44. package/dist/types/abi/method.d.ts +7 -0
  45. package/dist/types/client/v2/algod/models/types.d.ts +44 -3
  46. package/dist/types/client/v2/indexer/models/types.d.ts +134 -1
  47. package/dist/types/makeTxn.d.ts +28 -0
  48. package/dist/types/transaction.d.ts +30 -2
  49. package/dist/types/types/transactions/base.d.ts +17 -1
  50. package/dist/types/types/transactions/encoded.d.ts +54 -0
  51. package/dist/types/types/transactions/heartbeat.d.ts +8 -0
  52. package/dist/types/types/transactions/index.d.ts +3 -1
  53. package/package.json +1 -1
  54. package/src/abi/contract.ts +6 -0
  55. package/src/abi/event.ts +16 -0
  56. package/src/abi/method.ts +12 -0
  57. package/src/client/v2/algod/models/types.ts +71 -0
  58. package/src/client/v2/indexer/models/types.ts +294 -0
  59. package/src/makeTxn.ts +28 -0
  60. package/src/transaction.ts +131 -0
  61. package/src/types/transactions/base.ts +20 -1
  62. package/src/types/transactions/encoded.ts +65 -0
  63. package/src/types/transactions/heartbeat.ts +14 -0
  64. package/src/types/transactions/index.ts +4 -1
@@ -992,6 +992,23 @@ export declare class BlockHashResponse extends BaseModel {
992
992
  });
993
993
  static from_obj_for_encoding(data: Record<string, any>): BlockHashResponse;
994
994
  }
995
+ /**
996
+ * Block header.
997
+ */
998
+ export declare class BlockHeaderResponse extends BaseModel {
999
+ /**
1000
+ * Block header data.
1001
+ */
1002
+ blockheader?: BlockHeader;
1003
+ /**
1004
+ * Creates a new `BlockHeaderResponse` object.
1005
+ * @param blockheader - Block header data.
1006
+ */
1007
+ constructor({ blockheader }: {
1008
+ blockheader?: BlockHeader;
1009
+ });
1010
+ static from_obj_for_encoding(data: Record<string, any>): BlockHeaderResponse;
1011
+ }
995
1012
  /**
996
1013
  * All logs emitted in the given round. Each app call, whether top-level or inner,
997
1014
  * that contains logs results in a separate AppCallLogs object. Therefore there may
@@ -1983,6 +2000,11 @@ export declare class SimulateRequest extends BaseModel {
1983
2000
  * Applies extra opcode budget during simulation for each transaction group.
1984
2001
  */
1985
2002
  extraOpcodeBudget?: number | bigint;
2003
+ /**
2004
+ * If true, signers for transactions that are missing signatures will be fixed
2005
+ * during evaluation.
2006
+ */
2007
+ fixSigners?: boolean;
1986
2008
  /**
1987
2009
  * If provided, specifies the round preceding the simulation. State changes through
1988
2010
  * this round will be used to run this simulation. Usually only the 4 most recent
@@ -1999,18 +2021,21 @@ export declare class SimulateRequest extends BaseModel {
1999
2021
  * @param allowUnnamedResources - Allows access to unnamed resources during simulation.
2000
2022
  * @param execTraceConfig - An object that configures simulation execution trace.
2001
2023
  * @param extraOpcodeBudget - Applies extra opcode budget during simulation for each transaction group.
2024
+ * @param fixSigners - If true, signers for transactions that are missing signatures will be fixed
2025
+ * during evaluation.
2002
2026
  * @param round - If provided, specifies the round preceding the simulation. State changes through
2003
2027
  * this round will be used to run this simulation. Usually only the 4 most recent
2004
2028
  * rounds will be available (controlled by the node config value MaxAcctLookback).
2005
2029
  * If not specified, defaults to the latest available round.
2006
2030
  */
2007
- constructor({ txnGroups, allowEmptySignatures, allowMoreLogging, allowUnnamedResources, execTraceConfig, extraOpcodeBudget, round, }: {
2031
+ constructor({ txnGroups, allowEmptySignatures, allowMoreLogging, allowUnnamedResources, execTraceConfig, extraOpcodeBudget, fixSigners, round, }: {
2008
2032
  txnGroups: SimulateRequestTransactionGroup[];
2009
2033
  allowEmptySignatures?: boolean;
2010
2034
  allowMoreLogging?: boolean;
2011
2035
  allowUnnamedResources?: boolean;
2012
2036
  execTraceConfig?: SimulateTraceConfig;
2013
2037
  extraOpcodeBudget?: number | bigint;
2038
+ fixSigners?: boolean;
2014
2039
  round?: number | bigint;
2015
2040
  });
2016
2041
  static from_obj_for_encoding(data: Record<string, any>): SimulateRequest;
@@ -2216,6 +2241,11 @@ export declare class SimulateTransactionResult extends BaseModel {
2216
2241
  * call trace in a recursive way.
2217
2242
  */
2218
2243
  execTrace?: SimulationTransactionExecTrace;
2244
+ /**
2245
+ * The account that needed to sign this transaction when no signature was provided
2246
+ * and the provided signer was incorrect.
2247
+ */
2248
+ fixedSigner?: string;
2219
2249
  /**
2220
2250
  * Budget used during execution of a logic sig transaction.
2221
2251
  */
@@ -2240,6 +2270,8 @@ export declare class SimulateTransactionResult extends BaseModel {
2240
2270
  * budged used by inner app calls spawned by this transaction.
2241
2271
  * @param execTrace - The execution trace of calling an app or a logic sig, containing the inner app
2242
2272
  * call trace in a recursive way.
2273
+ * @param fixedSigner - The account that needed to sign this transaction when no signature was provided
2274
+ * and the provided signer was incorrect.
2243
2275
  * @param logicSigBudgetConsumed - Budget used during execution of a logic sig transaction.
2244
2276
  * @param unnamedResourcesAccessed - These are resources that were accessed by this group that would normally have
2245
2277
  * caused failure, but were allowed in simulation. Depending on where this object
@@ -2251,10 +2283,11 @@ export declare class SimulateTransactionResult extends BaseModel {
2251
2283
  * transaction of the group; otherwise, resources must be placed in the same
2252
2284
  * transaction which accessed them.
2253
2285
  */
2254
- constructor({ txnResult, appBudgetConsumed, execTrace, logicSigBudgetConsumed, unnamedResourcesAccessed, }: {
2286
+ constructor({ txnResult, appBudgetConsumed, execTrace, fixedSigner, logicSigBudgetConsumed, unnamedResourcesAccessed, }: {
2255
2287
  txnResult: PendingTransactionResponse;
2256
2288
  appBudgetConsumed?: number | bigint;
2257
2289
  execTrace?: SimulationTransactionExecTrace;
2290
+ fixedSigner?: string;
2258
2291
  logicSigBudgetConsumed?: number | bigint;
2259
2292
  unnamedResourcesAccessed?: SimulateUnnamedResourcesAccessed;
2260
2293
  });
@@ -2350,6 +2383,11 @@ export declare class SimulationEvalOverrides extends BaseModel {
2350
2383
  * The extra opcode budget added to each transaction group during simulation
2351
2384
  */
2352
2385
  extraOpcodeBudget?: number | bigint;
2386
+ /**
2387
+ * If true, signers for transactions that are missing signatures will be fixed
2388
+ * during evaluation.
2389
+ */
2390
+ fixSigners?: boolean;
2353
2391
  /**
2354
2392
  * The maximum log calls one can make during simulation
2355
2393
  */
@@ -2364,13 +2402,16 @@ export declare class SimulationEvalOverrides extends BaseModel {
2364
2402
  * were properly signed.
2365
2403
  * @param allowUnnamedResources - If true, allows access to unnamed resources during simulation.
2366
2404
  * @param extraOpcodeBudget - The extra opcode budget added to each transaction group during simulation
2405
+ * @param fixSigners - If true, signers for transactions that are missing signatures will be fixed
2406
+ * during evaluation.
2367
2407
  * @param maxLogCalls - The maximum log calls one can make during simulation
2368
2408
  * @param maxLogSize - The maximum byte number to log during simulation
2369
2409
  */
2370
- constructor({ allowEmptySignatures, allowUnnamedResources, extraOpcodeBudget, maxLogCalls, maxLogSize, }: {
2410
+ constructor({ allowEmptySignatures, allowUnnamedResources, extraOpcodeBudget, fixSigners, maxLogCalls, maxLogSize, }: {
2371
2411
  allowEmptySignatures?: boolean;
2372
2412
  allowUnnamedResources?: boolean;
2373
2413
  extraOpcodeBudget?: number | bigint;
2414
+ fixSigners?: boolean;
2374
2415
  maxLogCalls?: number | bigint;
2375
2416
  maxLogSize?: number | bigint;
2376
2417
  });
@@ -1152,6 +1152,34 @@ export declare class Block extends BaseModel {
1152
1152
  });
1153
1153
  static from_obj_for_encoding(data: Record<string, any>): Block;
1154
1154
  }
1155
+ /**
1156
+ *
1157
+ */
1158
+ export declare class BlockHeadersResponse extends BaseModel {
1159
+ blocks?: Block[];
1160
+ /**
1161
+ * Round at which the results were computed.
1162
+ */
1163
+ currentRound?: number | bigint;
1164
+ /**
1165
+ * Used for pagination, when making another request provide this token with the
1166
+ * next parameter.
1167
+ */
1168
+ nextToken?: string;
1169
+ /**
1170
+ * Creates a new `BlockHeadersResponse` object.
1171
+ * @param blocks -
1172
+ * @param currentRound - Round at which the results were computed.
1173
+ * @param nextToken - Used for pagination, when making another request provide this token with the
1174
+ * next parameter.
1175
+ */
1176
+ constructor({ blocks, currentRound, nextToken, }: {
1177
+ blocks?: Block[];
1178
+ currentRound?: number | bigint;
1179
+ nextToken?: string;
1180
+ });
1181
+ static from_obj_for_encoding(data: Record<string, any>): BlockHeadersResponse;
1182
+ }
1155
1183
  /**
1156
1184
  * Fields relating to rewards,
1157
1185
  */
@@ -1435,6 +1463,52 @@ export declare class HashFactory extends BaseModel {
1435
1463
  });
1436
1464
  static from_obj_for_encoding(data: Record<string, any>): HashFactory;
1437
1465
  }
1466
+ /**
1467
+ * (hbprf) HbProof is a signature using HeartbeatAddress's partkey, thereby showing
1468
+ * it is online.
1469
+ */
1470
+ export declare class HbProofFields extends BaseModel {
1471
+ /**
1472
+ * (p) Public key of the heartbeat message.
1473
+ */
1474
+ hbPk?: Uint8Array;
1475
+ /**
1476
+ * (p1s) Signature of OneTimeSignatureSubkeyOffsetID(PK, Batch, Offset) under the
1477
+ * key PK2.
1478
+ */
1479
+ hbPk1sig?: Uint8Array;
1480
+ /**
1481
+ * (p2) Key for new-style two-level ephemeral signature.
1482
+ */
1483
+ hbPk2?: Uint8Array;
1484
+ /**
1485
+ * (p2s) Signature of OneTimeSignatureSubkeyBatchID(PK2, Batch) under the master
1486
+ * key (OneTimeSignatureVerifier).
1487
+ */
1488
+ hbPk2sig?: Uint8Array;
1489
+ /**
1490
+ * (s) Signature of the heartbeat message.
1491
+ */
1492
+ hbSig?: Uint8Array;
1493
+ /**
1494
+ * Creates a new `HbProofFields` object.
1495
+ * @param hbPk - (p) Public key of the heartbeat message.
1496
+ * @param hbPk1sig - (p1s) Signature of OneTimeSignatureSubkeyOffsetID(PK, Batch, Offset) under the
1497
+ * key PK2.
1498
+ * @param hbPk2 - (p2) Key for new-style two-level ephemeral signature.
1499
+ * @param hbPk2sig - (p2s) Signature of OneTimeSignatureSubkeyBatchID(PK2, Batch) under the master
1500
+ * key (OneTimeSignatureVerifier).
1501
+ * @param hbSig - (s) Signature of the heartbeat message.
1502
+ */
1503
+ constructor({ hbPk, hbPk1sig, hbPk2, hbPk2sig, hbSig, }: {
1504
+ hbPk?: string | Uint8Array;
1505
+ hbPk1sig?: string | Uint8Array;
1506
+ hbPk2?: string | Uint8Array;
1507
+ hbPk2sig?: string | Uint8Array;
1508
+ hbSig?: string | Uint8Array;
1509
+ });
1510
+ static from_obj_for_encoding(data: Record<string, any>): HbProofFields;
1511
+ }
1438
1512
  /**
1439
1513
  * A health check response.
1440
1514
  */
@@ -1966,6 +2040,12 @@ export declare class Transaction extends BaseModel {
1966
2040
  * sha512/256 hash of the transactions in that group.
1967
2041
  */
1968
2042
  group?: Uint8Array;
2043
+ /**
2044
+ * Fields for a heartbeat transaction.
2045
+ * Definition:
2046
+ * data/transactions/heartbeat.go : HeartbeatTxnFields
2047
+ */
2048
+ heartbeatTransaction?: TransactionHeartbeat;
1969
2049
  /**
1970
2050
  * Transaction ID
1971
2051
  */
@@ -2051,6 +2131,7 @@ export declare class Transaction extends BaseModel {
2051
2131
  * * (afrz) asset-freeze-transaction
2052
2132
  * * (appl) application-transaction
2053
2133
  * * (stpf) state-proof-transaction
2134
+ * * (hb) heartbeat-transaction
2054
2135
  */
2055
2136
  txType?: string;
2056
2137
  /**
@@ -2089,6 +2170,9 @@ export declare class Transaction extends BaseModel {
2089
2170
  * @param group - (grp) Base64 encoded byte array of a sha512/256 digest. When present indicates
2090
2171
  * that this transaction is part of a transaction group and the value is the
2091
2172
  * sha512/256 hash of the transactions in that group.
2173
+ * @param heartbeatTransaction - Fields for a heartbeat transaction.
2174
+ * Definition:
2175
+ * data/transactions/heartbeat.go : HeartbeatTxnFields
2092
2176
  * @param id - Transaction ID
2093
2177
  * @param innerTxns - Inner transactions produced by application execution.
2094
2178
  * @param intraRoundOffset - Offset into the round where this transaction was confirmed.
@@ -2128,8 +2212,9 @@ export declare class Transaction extends BaseModel {
2128
2212
  * * (afrz) asset-freeze-transaction
2129
2213
  * * (appl) application-transaction
2130
2214
  * * (stpf) state-proof-transaction
2215
+ * * (hb) heartbeat-transaction
2131
2216
  */
2132
- constructor({ fee, firstValid, lastValid, sender, applicationTransaction, assetConfigTransaction, assetFreezeTransaction, assetTransferTransaction, authAddr, closeRewards, closingAmount, confirmedRound, createdApplicationIndex, createdAssetIndex, genesisHash, genesisId, globalStateDelta, group, id, innerTxns, intraRoundOffset, keyregTransaction, lease, localStateDelta, logs, note, paymentTransaction, receiverRewards, rekeyTo, roundTime, senderRewards, signature, stateProofTransaction, txType, }: {
2217
+ constructor({ fee, firstValid, lastValid, sender, applicationTransaction, assetConfigTransaction, assetFreezeTransaction, assetTransferTransaction, authAddr, closeRewards, closingAmount, confirmedRound, createdApplicationIndex, createdAssetIndex, genesisHash, genesisId, globalStateDelta, group, heartbeatTransaction, id, innerTxns, intraRoundOffset, keyregTransaction, lease, localStateDelta, logs, note, paymentTransaction, receiverRewards, rekeyTo, roundTime, senderRewards, signature, stateProofTransaction, txType, }: {
2133
2218
  fee: number | bigint;
2134
2219
  firstValid: number | bigint;
2135
2220
  lastValid: number | bigint;
@@ -2148,6 +2233,7 @@ export declare class Transaction extends BaseModel {
2148
2233
  genesisId?: string;
2149
2234
  globalStateDelta?: EvalDeltaKeyValue[];
2150
2235
  group?: string | Uint8Array;
2236
+ heartbeatTransaction?: TransactionHeartbeat;
2151
2237
  id?: string;
2152
2238
  innerTxns?: Transaction[];
2153
2239
  intraRoundOffset?: number | bigint;
@@ -2419,6 +2505,53 @@ export declare class TransactionAssetTransfer extends BaseModel {
2419
2505
  });
2420
2506
  static from_obj_for_encoding(data: Record<string, any>): TransactionAssetTransfer;
2421
2507
  }
2508
+ /**
2509
+ * Fields for a heartbeat transaction.
2510
+ * Definition:
2511
+ * data/transactions/heartbeat.go : HeartbeatTxnFields
2512
+ */
2513
+ export declare class TransactionHeartbeat extends BaseModel {
2514
+ /**
2515
+ * (hbad) HbAddress is the account this txn is proving onlineness for.
2516
+ */
2517
+ hbAddress: string;
2518
+ /**
2519
+ * (hbkd) HbKeyDilution must match HbAddress account's current KeyDilution.
2520
+ */
2521
+ hbKeyDilution: number | bigint;
2522
+ /**
2523
+ * (hbprf) HbProof is a signature using HeartbeatAddress's partkey, thereby showing
2524
+ * it is online.
2525
+ */
2526
+ hbProof: HbProofFields;
2527
+ /**
2528
+ * (hbsd) HbSeed must be the block seed for the this transaction's firstValid
2529
+ * block.
2530
+ */
2531
+ hbSeed: Uint8Array;
2532
+ /**
2533
+ * (hbvid) HbVoteID must match the HbAddress account's current VoteID.
2534
+ */
2535
+ hbVoteId: Uint8Array;
2536
+ /**
2537
+ * Creates a new `TransactionHeartbeat` object.
2538
+ * @param hbAddress - (hbad) HbAddress is the account this txn is proving onlineness for.
2539
+ * @param hbKeyDilution - (hbkd) HbKeyDilution must match HbAddress account's current KeyDilution.
2540
+ * @param hbProof - (hbprf) HbProof is a signature using HeartbeatAddress's partkey, thereby showing
2541
+ * it is online.
2542
+ * @param hbSeed - (hbsd) HbSeed must be the block seed for the this transaction's firstValid
2543
+ * block.
2544
+ * @param hbVoteId - (hbvid) HbVoteID must match the HbAddress account's current VoteID.
2545
+ */
2546
+ constructor({ hbAddress, hbKeyDilution, hbProof, hbSeed, hbVoteId, }: {
2547
+ hbAddress: string;
2548
+ hbKeyDilution: number | bigint;
2549
+ hbProof: HbProofFields;
2550
+ hbSeed: string | Uint8Array;
2551
+ hbVoteId: string | Uint8Array;
2552
+ });
2553
+ static from_obj_for_encoding(data: Record<string, any>): TransactionHeartbeat;
2554
+ }
2422
2555
  /**
2423
2556
  * Fields for a keyreg transaction.
2424
2557
  * Definition:
@@ -17,6 +17,8 @@ import { RenameProperties, RenameProperty, Expand } from './types/utils';
17
17
  * genesisHash - string specifies hash genesis block of network in use
18
18
  * genesisID - string specifies genesis ID of network in use
19
19
  * @param rekeyTo - rekeyTo address, optional
20
+ *
21
+ * @deprecated This function will be removed in v3 in favor of {@link makePaymentTxnWithSuggestedParamsFromObject}
20
22
  */
21
23
  export declare function makePaymentTxnWithSuggestedParams(from: PaymentTxn['from'], to: PaymentTxn['to'], amount: PaymentTxn['amount'], closeRemainderTo: PaymentTxn['closeRemainderTo'], note: PaymentTxn['note'], suggestedParams: MustHaveSuggestedParams<PaymentTxn>['suggestedParams'], rekeyTo?: PaymentTxn['reKeyTo']): txnBuilder.Transaction;
22
24
  export declare function makePaymentTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperty<MustHaveSuggestedParams<PaymentTxn>, 'reKeyTo', 'rekeyTo'>, 'from' | 'to' | 'amount' | 'closeRemainderTo' | 'note' | 'suggestedParams' | 'rekeyTo'>>): txnBuilder.Transaction;
@@ -43,6 +45,8 @@ export declare function makePaymentTxnWithSuggestedParamsFromObject(o: Expand<Pi
43
45
  * @param nonParticipation - configure whether the address wants to stop participating. If true,
44
46
  * voteKey, selectionKey, voteFirst, voteLast, and voteKeyDilution must be undefined.
45
47
  * @param stateProofKey - state proof key. for key deregistration, leave undefined
48
+ *
49
+ * @deprecated This function will be removed in v3 in favor of {@link makeKeyRegistrationTxnWithSuggestedParamsFromObject}
46
50
  */
47
51
  export declare function makeKeyRegistrationTxnWithSuggestedParams(from: KeyRegistrationTxn['from'], note: KeyRegistrationTxn['note'], voteKey: KeyRegistrationTxn['voteKey'], selectionKey: KeyRegistrationTxn['selectionKey'], voteFirst: KeyRegistrationTxn['voteFirst'], voteLast: KeyRegistrationTxn['voteLast'], voteKeyDilution: KeyRegistrationTxn['voteKeyDilution'], suggestedParams: MustHaveSuggestedParams<KeyRegistrationTxn>['suggestedParams'], rekeyTo?: KeyRegistrationTxn['reKeyTo'], nonParticipation?: false, stateProofKey?: KeyRegistrationTxn['stateProofKey']): txnBuilder.Transaction;
48
52
  export declare function makeKeyRegistrationTxnWithSuggestedParams(from: KeyRegistrationTxn['from'], note: KeyRegistrationTxn['note'], voteKey: undefined, selectionKey: undefined, voteFirst: undefined, voteLast: undefined, voteKeyDilution: undefined, suggestedParams: MustHaveSuggestedParams<KeyRegistrationTxn>['suggestedParams'], rekeyTo?: KeyRegistrationTxn['reKeyTo'], nonParticipation?: boolean, stateProofKey?: undefined): txnBuilder.Transaction;
@@ -75,6 +79,8 @@ export declare function makeKeyRegistrationTxnWithSuggestedParamsFromObject(o: E
75
79
  * genesisHash - string specifies hash genesis block of network in use
76
80
  * genesisID - string specifies genesis ID of network in use
77
81
  * @param rekeyTo - rekeyTo address, optional
82
+ *
83
+ * @deprecated This function will be removed in v3 in favor of {@link makeAssetCreateTxnWithSuggestedParamsFromObject}
78
84
  */
79
85
  export declare function makeAssetCreateTxnWithSuggestedParams(from: AssetCreateTxn['from'], note: AssetCreateTxn['note'], total: AssetCreateTxn['assetTotal'], decimals: AssetCreateTxn['assetDecimals'], defaultFrozen: AssetCreateTxn['assetDefaultFrozen'], manager: AssetCreateTxn['assetManager'], reserve: AssetCreateTxn['assetReserve'], freeze: AssetCreateTxn['assetFreeze'], clawback: AssetCreateTxn['assetClawback'], unitName: AssetCreateTxn['assetUnitName'], assetName: AssetCreateTxn['assetName'], assetURL: AssetCreateTxn['assetURL'], assetMetadataHash: AssetCreateTxn['assetMetadataHash'] | undefined, suggestedParams: MustHaveSuggestedParams<AssetCreateTxn>['suggestedParams'], rekeyTo?: AssetCreateTxn['reKeyTo']): txnBuilder.Transaction;
80
86
  export declare function makeAssetCreateTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AssetCreateTxn>, {
@@ -109,6 +115,8 @@ export declare function makeAssetCreateTxnWithSuggestedParamsFromObject(o: Expan
109
115
  * genesisHash - string specifies hash genesis block of network in use
110
116
  * genesisID - string specifies genesis ID of network in use
111
117
  * @param rekeyTo - rekeyTo address, optional
118
+ *
119
+ * @deprecated This function will be removed in v3 in favor of {@link makeAssetConfigTxnWithSuggestedParamsFromObject}
112
120
  */
113
121
  export declare function makeAssetConfigTxnWithSuggestedParams(from: AssetConfigTxn['from'], note: AssetConfigTxn['note'], assetIndex: AssetConfigTxn['assetIndex'], manager: AssetConfigTxn['assetManager'], reserve: AssetConfigTxn['assetReserve'], freeze: AssetConfigTxn['assetFreeze'], clawback: AssetConfigTxn['assetClawback'], suggestedParams: MustHaveSuggestedParams<AssetConfigTxn>['suggestedParams'], strictEmptyAddressChecking?: boolean, rekeyTo?: AssetConfigTxn['reKeyTo']): txnBuilder.Transaction;
114
122
  export declare function makeAssetConfigTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AssetConfigTxn>, {
@@ -135,6 +143,8 @@ export declare function makeAssetConfigTxnWithSuggestedParamsFromObject(o: Expan
135
143
  * genesisHash - string specifies hash genesis block of network in use
136
144
  * genesisID - string specifies genesis ID of network in use
137
145
  * @param rekeyTo - rekeyTo address, optional
146
+ *
147
+ * @deprecated This function will be removed in v3 in favor of {@link makeAssetDestroyTxnWithSuggestedParamsFromObject}
138
148
  */
139
149
  export declare function makeAssetDestroyTxnWithSuggestedParams(from: AssetDestroyTxn['from'], note: AssetDestroyTxn['note'], assetIndex: AssetDestroyTxn['assetIndex'], suggestedParams: MustHaveSuggestedParams<AssetDestroyTxn>['suggestedParams'], rekeyTo?: AssetDestroyTxn['reKeyTo']): txnBuilder.Transaction;
140
150
  export declare function makeAssetDestroyTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperty<MustHaveSuggestedParams<AssetDestroyTxn>, 'reKeyTo', 'rekeyTo'>, 'from' | 'note' | 'assetIndex' | 'suggestedParams' | 'rekeyTo'>>): txnBuilder.Transaction;
@@ -155,6 +165,8 @@ export declare function makeAssetDestroyTxnWithSuggestedParamsFromObject(o: Expa
155
165
  * genesisHash - string specifies hash genesis block of network in use
156
166
  * genesisID - string specifies genesis ID of network in use
157
167
  * @param rekeyTo - rekeyTo address, optional
168
+ *
169
+ * @deprecated This function will be removed in v3 in favor of {@link makeAssetFreezeTxnWithSuggestedParamsFromObject}
158
170
  */
159
171
  export declare function makeAssetFreezeTxnWithSuggestedParams(from: AssetFreezeTxn['from'], note: AssetFreezeTxn['note'], assetIndex: AssetFreezeTxn['assetIndex'], freezeTarget: AssetFreezeTxn['freezeAccount'], freezeState: AssetFreezeTxn['freezeState'], suggestedParams: MustHaveSuggestedParams<AssetFreezeTxn>['suggestedParams'], rekeyTo?: AssetFreezeTxn['reKeyTo']): txnBuilder.Transaction;
160
172
  export declare function makeAssetFreezeTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AssetFreezeTxn>, {
@@ -184,6 +196,8 @@ export declare function makeAssetFreezeTxnWithSuggestedParamsFromObject(o: Expan
184
196
  * genesisHash - string specifies hash genesis block of network in use
185
197
  * genesisID - string specifies genesis ID of network in use
186
198
  * @param rekeyTo - rekeyTo address, optional
199
+ *
200
+ * @deprecated This function will be removed in v3 in favor of {@link makeAssetTransferTxnWithSuggestedParamsFromObject}
187
201
  */
188
202
  export declare function makeAssetTransferTxnWithSuggestedParams(from: AssetTransferTxn['from'], to: AssetTransferTxn['to'], closeRemainderTo: AssetTransferTxn['closeRemainderTo'], revocationTarget: AssetTransferTxn['assetRevocationTarget'], amount: AssetTransferTxn['amount'], note: AssetTransferTxn['note'], assetIndex: AssetTransferTxn['assetIndex'], suggestedParams: MustHaveSuggestedParams<AssetTransferTxn>['suggestedParams'], rekeyTo?: AssetTransferTxn['reKeyTo']): txnBuilder.Transaction;
189
203
  export declare function makeAssetTransferTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AssetTransferTxn>, {
@@ -217,6 +231,8 @@ export declare function makeAssetTransferTxnWithSuggestedParamsFromObject(o: Exp
217
231
  * @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
218
232
  * @param extraPages - integer extra pages of memory to rent on creation of application
219
233
  * @param boxes - Array of BoxReference, app ID and name of box to be accessed
234
+ *
235
+ * @deprecated This function will be removed in v3 in favor of {@link makeApplicationCreateTxnFromObject}
220
236
  */
221
237
  export declare function makeApplicationCreateTxn(from: AppCreateTxn['from'], suggestedParams: MustHaveSuggestedParams<AppCreateTxn>['suggestedParams'], onComplete: AppCreateTxn['appOnComplete'], approvalProgram: AppCreateTxn['appApprovalProgram'], clearProgram: AppCreateTxn['appClearProgram'], numLocalInts: AppCreateTxn['appLocalInts'], numLocalByteSlices: AppCreateTxn['appLocalByteSlices'], numGlobalInts: AppCreateTxn['appGlobalInts'], numGlobalByteSlices: AppCreateTxn['appGlobalByteSlices'], appArgs?: AppCreateTxn['appArgs'], accounts?: AppCreateTxn['appAccounts'], foreignApps?: AppCreateTxn['appForeignApps'], foreignAssets?: AppCreateTxn['appForeignAssets'], note?: AppCreateTxn['note'], lease?: AppCreateTxn['lease'], rekeyTo?: AppCreateTxn['reKeyTo'], extraPages?: AppCreateTxn['extraPages'], boxes?: AppCreateTxn['boxes']): txnBuilder.Transaction;
222
238
  export declare function makeApplicationCreateTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppCreateTxn>, {
@@ -254,6 +270,8 @@ export declare function makeApplicationCreateTxnFromObject(o: Expand<Pick<Rename
254
270
  * @param lease - Lease a transaction
255
271
  * @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
256
272
  * @param boxes - Array of BoxReference, app ID and name of box to be accessed
273
+ *
274
+ * @deprecated This function will be removed in v3 in favor of {@link makeApplicationUpdateTxnFromObject}
257
275
  */
258
276
  export declare function makeApplicationUpdateTxn(from: AppUpdateTxn['from'], suggestedParams: MustHaveSuggestedParams<AppUpdateTxn>['suggestedParams'], appIndex: AppUpdateTxn['appIndex'], approvalProgram: AppUpdateTxn['appApprovalProgram'], clearProgram: AppUpdateTxn['appClearProgram'], appArgs?: AppUpdateTxn['appArgs'], accounts?: AppUpdateTxn['appAccounts'], foreignApps?: AppUpdateTxn['appForeignApps'], foreignAssets?: AppUpdateTxn['appForeignAssets'], note?: AppUpdateTxn['note'], lease?: AppUpdateTxn['lease'], rekeyTo?: AppUpdateTxn['reKeyTo'], boxes?: AppUpdateTxn['boxes']): txnBuilder.Transaction;
259
277
  export declare function makeApplicationUpdateTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppUpdateTxn>, {
@@ -284,6 +302,8 @@ export declare function makeApplicationUpdateTxnFromObject(o: Expand<Pick<Rename
284
302
  * @param lease - Lease a transaction
285
303
  * @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
286
304
  * @param boxes - Array of BoxReference, app ID and name of box to be accessed
305
+ *
306
+ * @deprecated This function will be removed in v3 in favor of {@link makeApplicationDeleteTxnFromObject}
287
307
  */
288
308
  export declare function makeApplicationDeleteTxn(from: AppDeleteTxn['from'], suggestedParams: MustHaveSuggestedParams<AppDeleteTxn>['suggestedParams'], appIndex: AppDeleteTxn['appIndex'], appArgs?: AppDeleteTxn['appArgs'], accounts?: AppDeleteTxn['appAccounts'], foreignApps?: AppDeleteTxn['appForeignApps'], foreignAssets?: AppDeleteTxn['appForeignAssets'], note?: AppDeleteTxn['note'], lease?: AppDeleteTxn['lease'], rekeyTo?: AppDeleteTxn['reKeyTo'], boxes?: AppDeleteTxn['boxes']): txnBuilder.Transaction;
289
309
  export declare function makeApplicationDeleteTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppDeleteTxn>, {
@@ -312,6 +332,8 @@ export declare function makeApplicationDeleteTxnFromObject(o: Expand<Pick<Rename
312
332
  * @param lease - Lease a transaction
313
333
  * @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
314
334
  * @param boxes - Array of BoxReference, app ID and name of box to be accessed
335
+ *
336
+ * @deprecated This function will be removed in v3 in favor of {@link makeApplicationOptInTxnFromObject}
315
337
  */
316
338
  export declare function makeApplicationOptInTxn(from: AppOptInTxn['from'], suggestedParams: MustHaveSuggestedParams<AppOptInTxn>['suggestedParams'], appIndex: AppOptInTxn['appIndex'], appArgs?: AppOptInTxn['appArgs'], accounts?: AppOptInTxn['appAccounts'], foreignApps?: AppOptInTxn['appForeignApps'], foreignAssets?: AppOptInTxn['appForeignAssets'], note?: AppOptInTxn['note'], lease?: AppOptInTxn['lease'], rekeyTo?: AppOptInTxn['reKeyTo'], boxes?: AppOptInTxn['boxes']): txnBuilder.Transaction;
317
339
  export declare function makeApplicationOptInTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppOptInTxn>, {
@@ -340,6 +362,8 @@ export declare function makeApplicationOptInTxnFromObject(o: Expand<Pick<RenameP
340
362
  * @param lease - Lease a transaction
341
363
  * @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
342
364
  * @param boxes - Array of BoxReference, app ID and name of box to be accessed
365
+ *
366
+ * @deprecated This function will be removed in v3 in favor of {@link makeApplicationCloseOutTxnFromObject}
343
367
  */
344
368
  export declare function makeApplicationCloseOutTxn(from: AppCloseOutTxn['from'], suggestedParams: MustHaveSuggestedParams<AppCloseOutTxn>['suggestedParams'], appIndex: AppCloseOutTxn['appIndex'], appArgs?: AppCloseOutTxn['appArgs'], accounts?: AppCloseOutTxn['appAccounts'], foreignApps?: AppCloseOutTxn['appForeignApps'], foreignAssets?: AppCloseOutTxn['appForeignAssets'], note?: AppCloseOutTxn['note'], lease?: AppCloseOutTxn['lease'], rekeyTo?: AppCloseOutTxn['reKeyTo'], boxes?: AppCloseOutTxn['boxes']): txnBuilder.Transaction;
345
369
  export declare function makeApplicationCloseOutTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppOptInTxn>, {
@@ -368,6 +392,8 @@ export declare function makeApplicationCloseOutTxnFromObject(o: Expand<Pick<Rena
368
392
  * @param lease - Lease a transaction
369
393
  * @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
370
394
  * @param boxes - Array of BoxReference, app ID and name of box to be accessed
395
+ *
396
+ * @deprecated This function will be removed in v3 in favor of {@link makeApplicationClearStateTxnFromObject}
371
397
  */
372
398
  export declare function makeApplicationClearStateTxn(from: AppClearStateTxn['from'], suggestedParams: MustHaveSuggestedParams<AppClearStateTxn>['suggestedParams'], appIndex: AppClearStateTxn['appIndex'], appArgs?: AppClearStateTxn['appArgs'], accounts?: AppClearStateTxn['appAccounts'], foreignApps?: AppClearStateTxn['appForeignApps'], foreignAssets?: AppClearStateTxn['appForeignAssets'], note?: AppClearStateTxn['note'], lease?: AppClearStateTxn['lease'], rekeyTo?: AppClearStateTxn['reKeyTo'], boxes?: AppClearStateTxn['boxes']): txnBuilder.Transaction;
373
399
  export declare function makeApplicationClearStateTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppOptInTxn>, {
@@ -396,6 +422,8 @@ export declare function makeApplicationClearStateTxnFromObject(o: Expand<Pick<Re
396
422
  * @param lease - Lease a transaction
397
423
  * @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
398
424
  * @param boxes - Array of BoxReference, app ID and name of box to be accessed
425
+ *
426
+ * @deprecated This function will be removed in v3 in favor of {@link makeApplicationNoOpTxnFromObject}
399
427
  */
400
428
  export declare function makeApplicationNoOpTxn(from: AppNoOpTxn['from'], suggestedParams: MustHaveSuggestedParams<AppNoOpTxn>['suggestedParams'], appIndex: AppNoOpTxn['appIndex'], appArgs?: AppNoOpTxn['appArgs'], accounts?: AppNoOpTxn['appAccounts'], foreignApps?: AppNoOpTxn['appForeignApps'], foreignAssets?: AppNoOpTxn['appForeignAssets'], note?: AppNoOpTxn['note'], lease?: AppNoOpTxn['lease'], rekeyTo?: AppNoOpTxn['reKeyTo'], boxes?: AppNoOpTxn['boxes']): txnBuilder.Transaction;
401
429
  export declare function makeApplicationNoOpTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppOptInTxn>, {
@@ -1,13 +1,39 @@
1
1
  /// <reference types="node" />
2
2
  import { OnApplicationComplete, TransactionParams, TransactionType, BoxReference } from './types/transactions/base';
3
- import AnyTransaction, { EncodedTransaction, EncodedMultisig, EncodedLogicSig } from './types/transactions';
3
+ import AnyTransaction, { EncodedTransaction, EncodedMultisig, EncodedLogicSig, EncodedHeartbeatFields, EncodedHeartbeatProof } from './types/transactions';
4
4
  import { Address } from './types/address';
5
5
  export declare const ALGORAND_MIN_TX_FEE = 1000;
6
+ /**
7
+ * Object representing a heartbeat proof
8
+ */
9
+ declare class HeartbeatProof {
10
+ s: Buffer;
11
+ p: Buffer;
12
+ p2: Buffer;
13
+ p1s: Buffer;
14
+ p2s: Buffer;
15
+ constructor(sig: Buffer, pk: Buffer, pk2: Buffer, p1s: Buffer, p2s: Buffer);
16
+ static from_obj_for_encoding(encHbFields: EncodedHeartbeatProof): HeartbeatProof;
17
+ get_obj_for_encoding(): EncodedHeartbeatProof;
18
+ }
19
+ /**
20
+ * Object representing a heartbeat transaction
21
+ */
22
+ declare class HeartbeatFields {
23
+ a: string | Address;
24
+ prf: HeartbeatProof;
25
+ sd: Buffer;
26
+ vid: Buffer;
27
+ kd: number;
28
+ constructor(addr: string | Address, proof: EncodedHeartbeatProof, seed: Buffer, voteID: Buffer, kd: number);
29
+ static from_obj_for_encoding(encHbFields: EncodedHeartbeatFields): HeartbeatFields;
30
+ get_obj_for_encoding(): EncodedHeartbeatFields;
31
+ }
6
32
  /**
7
33
  * A modified version of the transaction params. Represents the internal structure that the Transaction class uses
8
34
  * to store inputted transaction objects.
9
35
  */
10
- interface TransactionStorageStructure extends Omit<TransactionParams, 'from' | 'to' | 'genesisHash' | 'closeRemainderTo' | 'voteKey' | 'selectionKey' | 'stateProofKey' | 'assetManager' | 'assetReserve' | 'assetFreeze' | 'assetClawback' | 'assetRevocationTarget' | 'freezeAccount' | 'appAccounts' | 'suggestedParams' | 'reKeyTo'> {
36
+ interface TransactionStorageStructure extends Omit<TransactionParams, 'from' | 'to' | 'genesisHash' | 'closeRemainderTo' | 'voteKey' | 'selectionKey' | 'stateProofKey' | 'assetManager' | 'assetReserve' | 'assetFreeze' | 'assetClawback' | 'assetRevocationTarget' | 'freezeAccount' | 'appAccounts' | 'suggestedParams' | 'reKeyTo' | 'heartbeatFields'> {
11
37
  from: string | Address;
12
38
  to: string | Address;
13
39
  fee: number;
@@ -62,6 +88,7 @@ interface TransactionStorageStructure extends Omit<TransactionParams, 'from' | '
62
88
  stateProofType?: number | bigint;
63
89
  stateProof?: Uint8Array;
64
90
  stateProofMessage?: Uint8Array;
91
+ heartbeatFields?: HeartbeatFields;
65
92
  }
66
93
  /**
67
94
  * Transaction enables construction of Algorand transactions
@@ -123,6 +150,7 @@ export declare class Transaction implements TransactionStorageStructure {
123
150
  stateProofType?: number | bigint;
124
151
  stateProof?: Uint8Array;
125
152
  stateProofMessage?: Uint8Array;
153
+ heartbeatFields?: HeartbeatFields;
126
154
  constructor({ ...transaction }: AnyTransaction);
127
155
  get_obj_for_encoding(): EncodedTransaction;
128
156
  static from_obj_for_encoding(txnForEnc: EncodedTransaction): Transaction;
@@ -31,7 +31,11 @@ export declare enum TransactionType {
31
31
  /**
32
32
  * State proof transaction
33
33
  */
34
- stpf = "stpf"
34
+ stpf = "stpf",
35
+ /**
36
+ * Heartbeat transaction
37
+ */
38
+ hb = "hb"
35
39
  }
36
40
  export declare function isTransactionType(s: string): s is TransactionType;
37
41
  /**
@@ -120,6 +124,13 @@ export interface BoxReference {
120
124
  */
121
125
  name: Uint8Array;
122
126
  }
127
+ interface heartbeatFields {
128
+ a: string;
129
+ prf: Uint8Array;
130
+ sd: Uint8Array;
131
+ vid: Uint8Array;
132
+ kd: number;
133
+ }
123
134
  /**
124
135
  * A full list of all available transaction parameters
125
136
  *
@@ -345,4 +356,9 @@ export interface TransactionParams {
345
356
  * Byte array containing the state proof message.
346
357
  */
347
358
  stateProofMessage?: Uint8Array;
359
+ /**
360
+ * HeartbeatFields fields
361
+ */
362
+ heartbeatFields?: heartbeatFields;
348
363
  }
364
+ export {};
@@ -78,6 +78,56 @@ export interface EncodedBoxReference {
78
78
  */
79
79
  n: Uint8Array;
80
80
  }
81
+ /**
82
+ * A structure for an encoded heartbeat proof fields object
83
+ */
84
+ export interface EncodedHeartbeatProof {
85
+ /**
86
+ * Sig
87
+ */
88
+ s: Buffer;
89
+ /**
90
+ * PK
91
+ */
92
+ p: Buffer;
93
+ /**
94
+ * PK2
95
+ */
96
+ p2: Buffer;
97
+ /**
98
+ * PK1Sig
99
+ */
100
+ p1s: Buffer;
101
+ /**
102
+ * PK2Sig
103
+ */
104
+ p2s: Buffer;
105
+ }
106
+ /**
107
+ * A structure for an encoded heartbeat fields object
108
+ */
109
+ export interface EncodedHeartbeatFields {
110
+ /**
111
+ * HbAddress
112
+ */
113
+ a: Buffer;
114
+ /**
115
+ * HbProof
116
+ */
117
+ prf: EncodedHeartbeatProof;
118
+ /**
119
+ * HbSeed
120
+ */
121
+ sd: Buffer;
122
+ /**
123
+ * HbVoteID
124
+ */
125
+ vid: Buffer;
126
+ /**
127
+ * HbKeyDilution
128
+ */
129
+ kd: number;
130
+ }
81
131
  /**
82
132
  * A rough structure for the encoded transaction object. Every property is labelled with its associated Transaction type property
83
133
  */
@@ -263,6 +313,10 @@ export interface EncodedTransaction {
263
313
  * stateProofMessage
264
314
  */
265
315
  spmsg?: Buffer;
316
+ /**
317
+ * heartbeat fields
318
+ */
319
+ hb?: EncodedHeartbeatFields;
266
320
  }
267
321
  export interface EncodedSubsig {
268
322
  /**
@@ -0,0 +1,8 @@
1
+ import { TransactionType, TransactionParams } from './base';
2
+ import { ConstructTransaction } from './builder';
3
+ declare type SpecificParameters = Pick<TransactionParams, 'heartbeatFields'>;
4
+ interface Overwrites {
5
+ type?: TransactionType.hb;
6
+ }
7
+ declare type HeartbeatTransaction = ConstructTransaction<SpecificParameters, Overwrites>;
8
+ export default HeartbeatTransaction;
@@ -3,6 +3,7 @@ import KeyRegistrationTxn from './keyreg';
3
3
  import { AssetCreateTransaction as AssetCreateTxn, AssetConfigurationTransaction as AssetConfigTxn, AssetDestroyTransaction as AssetDestroyTxn, AssetFreezeTransaction as AssetFreezeTxn, AssetTransferTransaction as AssetTransferTxn } from './asset';
4
4
  import { ApplicationCreateTransaction as AppCreateTxn, ApplicationUpdateTransaction as AppUpdateTxn, ApplicationDeleteTransaction as AppDeleteTxn, ApplicationOptInTransaction as AppOptInTxn, ApplicationCloseOutTransaction as AppCloseOutTxn, ApplicationClearStateTransaction as AppClearStateTxn, ApplicationNoOpTransaction as AppNoOpTxn } from './application';
5
5
  import StateProofTxn from './stateproof';
6
+ import HeartbeatTxn from './heartbeat';
6
7
  export { TransactionParams, TransactionType, SuggestedParams, BoxReference, } from './base';
7
8
  export { MustHaveSuggestedParams, MustHaveSuggestedParamsInline, } from './builder';
8
9
  export * from './encoded';
@@ -11,5 +12,6 @@ export { default as KeyRegistrationTxn } from './keyreg';
11
12
  export { AssetCreateTransaction as AssetCreateTxn, AssetConfigurationTransaction as AssetConfigTxn, AssetDestroyTransaction as AssetDestroyTxn, AssetFreezeTransaction as AssetFreezeTxn, AssetTransferTransaction as AssetTransferTxn, } from './asset';
12
13
  export { ApplicationCreateTransaction as AppCreateTxn, ApplicationUpdateTransaction as AppUpdateTxn, ApplicationDeleteTransaction as AppDeleteTxn, ApplicationOptInTransaction as AppOptInTxn, ApplicationCloseOutTransaction as AppCloseOutTxn, ApplicationClearStateTransaction as AppClearStateTxn, ApplicationNoOpTransaction as AppNoOpTxn, } from './application';
13
14
  export { default as StateProofTxn } from './stateproof';
14
- declare type AnyTransaction = PaymentTxn | KeyRegistrationTxn | AssetCreateTxn | AssetConfigTxn | AssetDestroyTxn | AssetFreezeTxn | AssetTransferTxn | AppCreateTxn | AppUpdateTxn | AppDeleteTxn | AppOptInTxn | AppCloseOutTxn | AppClearStateTxn | AppNoOpTxn | StateProofTxn;
15
+ export { default as HeartbeatTransaction } from './heartbeat';
16
+ declare type AnyTransaction = PaymentTxn | KeyRegistrationTxn | AssetCreateTxn | AssetConfigTxn | AssetDestroyTxn | AssetFreezeTxn | AssetTransferTxn | AppCreateTxn | AppUpdateTxn | AppDeleteTxn | AppOptInTxn | AppCloseOutTxn | AppClearStateTxn | AppNoOpTxn | StateProofTxn | HeartbeatTxn;
15
17
  export default AnyTransaction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "algosdk",
3
- "version": "2.8.0",
3
+ "version": "2.10.0",
4
4
  "description": "The official JavaScript SDK for Algorand",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",