algosdk 1.24.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/browser/algosdk.min.js +1 -1
- package/dist/browser/algosdk.min.js.LICENSE.txt +0 -18
- package/dist/browser/algosdk.min.js.map +1 -1
- package/dist/cjs/client/v2/algod/algod.js +1 -1
- package/dist/cjs/client/v2/algod/algod.js.map +1 -1
- package/dist/cjs/client/v2/algod/models/types.js +161 -123
- package/dist/cjs/client/v2/algod/models/types.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAssetTransactions.js +0 -7
- package/dist/cjs/client/v2/indexer/lookupAssetTransactions.js.map +1 -1
- package/dist/cjs/dryrun.js +16 -7
- package/dist/cjs/dryrun.js.map +1 -1
- package/dist/cjs/logicsig.js +3 -14
- package/dist/cjs/logicsig.js.map +1 -1
- package/dist/cjs/main.js +3 -6
- package/dist/cjs/main.js.map +1 -1
- package/dist/cjs/makeTxn.js +1 -193
- package/dist/cjs/makeTxn.js.map +1 -1
- package/dist/esm/client/v2/algod/algod.js +1 -1
- package/dist/esm/client/v2/algod/algod.js.map +1 -1
- package/dist/esm/client/v2/algod/models/types.js +160 -120
- package/dist/esm/client/v2/algod/models/types.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAssetTransactions.js +0 -7
- package/dist/esm/client/v2/indexer/lookupAssetTransactions.js.map +1 -1
- package/dist/esm/dryrun.js +16 -7
- package/dist/esm/dryrun.js.map +1 -1
- package/dist/esm/logicsig.js +2 -12
- package/dist/esm/logicsig.js.map +1 -1
- package/dist/esm/main.js +1 -4
- package/dist/esm/main.js.map +1 -1
- package/dist/esm/makeTxn.js +0 -185
- package/dist/esm/makeTxn.js.map +1 -1
- package/dist/types/client/v2/algod/algod.d.ts +1 -1
- package/dist/types/client/v2/algod/models/types.d.ts +122 -67
- package/dist/types/client/v2/indexer/lookupAssetTransactions.d.ts +0 -4
- package/dist/types/logicsig.d.ts +2 -10
- package/dist/types/main.d.ts +1 -3
- package/dist/types/makeTxn.d.ts +1 -147
- package/dist/types/types/transactions/encoded.d.ts +0 -15
- package/package.json +1 -1
- package/src/client/v2/algod/algod.ts +2 -2
- package/src/client/v2/algod/models/types.ts +318 -249
- package/src/client/v2/indexer/lookupAssetTransactions.ts +0 -8
- package/src/dryrun.ts +13 -13
- package/src/logicsig.ts +2 -13
- package/src/main.ts +1 -5
- package/src/makeTxn.ts +0 -421
- package/src/types/transactions/encoded.ts +0 -17
- package/dist/cjs/client/algod.js +0 -295
- package/dist/cjs/client/algod.js.map +0 -1
- package/dist/cjs/logic/langspec.json +0 -2014
- package/dist/cjs/logic/logic.js +0 -262
- package/dist/cjs/logic/logic.js.map +0 -1
- package/dist/cjs/logicTemplates/dynamicfee.js +0 -192
- package/dist/cjs/logicTemplates/dynamicfee.js.map +0 -1
- package/dist/cjs/logicTemplates/htlc.js +0 -145
- package/dist/cjs/logicTemplates/htlc.js.map +0 -1
- package/dist/cjs/logicTemplates/index.js +0 -19
- package/dist/cjs/logicTemplates/index.js.map +0 -1
- package/dist/cjs/logicTemplates/limitorder.js +0 -167
- package/dist/cjs/logicTemplates/limitorder.js.map +0 -1
- package/dist/cjs/logicTemplates/periodicpayment.js +0 -163
- package/dist/cjs/logicTemplates/periodicpayment.js.map +0 -1
- package/dist/cjs/logicTemplates/split.js +0 -154
- package/dist/cjs/logicTemplates/split.js.map +0 -1
- package/dist/cjs/logicTemplates/templates.js +0 -67
- package/dist/cjs/logicTemplates/templates.js.map +0 -1
- package/dist/esm/client/algod.js +0 -295
- package/dist/esm/client/algod.js.map +0 -1
- package/dist/esm/logic/langspec.json +0 -2014
- package/dist/esm/logic/logic.js +0 -249
- package/dist/esm/logic/logic.js.map +0 -1
- package/dist/esm/logicTemplates/dynamicfee.js +0 -192
- package/dist/esm/logicTemplates/dynamicfee.js.map +0 -1
- package/dist/esm/logicTemplates/htlc.js +0 -145
- package/dist/esm/logicTemplates/htlc.js.map +0 -1
- package/dist/esm/logicTemplates/index.js +0 -19
- package/dist/esm/logicTemplates/index.js.map +0 -1
- package/dist/esm/logicTemplates/limitorder.js +0 -167
- package/dist/esm/logicTemplates/limitorder.js.map +0 -1
- package/dist/esm/logicTemplates/periodicpayment.js +0 -163
- package/dist/esm/logicTemplates/periodicpayment.js.map +0 -1
- package/dist/esm/logicTemplates/split.js +0 -154
- package/dist/esm/logicTemplates/split.js.map +0 -1
- package/dist/esm/logicTemplates/templates.js +0 -67
- package/dist/esm/logicTemplates/templates.js.map +0 -1
- package/dist/types/client/algod.d.ts +0 -162
- package/dist/types/logic/logic.d.ts +0 -45
- package/dist/types/logicTemplates/dynamicfee.d.ts +0 -59
- package/dist/types/logicTemplates/htlc.d.ts +0 -51
- package/dist/types/logicTemplates/index.d.ts +0 -16
- package/dist/types/logicTemplates/limitorder.d.ts +0 -70
- package/dist/types/logicTemplates/periodicpayment.d.ts +0 -58
- package/dist/types/logicTemplates/split.d.ts +0 -57
- package/dist/types/logicTemplates/templates.d.ts +0 -6
- package/src/client/algod.js +0 -365
- package/src/logic/langspec.json +0 -2014
- package/src/logic/logic.ts +0 -316
- package/src/logicTemplates/dynamicfee.js +0 -219
- package/src/logicTemplates/htlc.js +0 -165
- package/src/logicTemplates/index.js +0 -20
- package/src/logicTemplates/limitorder.js +0 -227
- package/src/logicTemplates/periodicpayment.js +0 -208
- package/src/logicTemplates/split.js +0 -208
- package/src/logicTemplates/templates.js +0 -78
|
@@ -240,7 +240,11 @@ export declare class AccountApplicationResponse extends BaseModel {
|
|
|
240
240
|
* global data.
|
|
241
241
|
* The raw account uses `AppParams` for this type.
|
|
242
242
|
*/
|
|
243
|
-
constructor(round
|
|
243
|
+
constructor({ round, appLocalState, createdApp, }: {
|
|
244
|
+
round: number | bigint;
|
|
245
|
+
appLocalState?: ApplicationLocalState;
|
|
246
|
+
createdApp?: ApplicationParams;
|
|
247
|
+
});
|
|
244
248
|
static from_obj_for_encoding(data: Record<string, any>): AccountApplicationResponse;
|
|
245
249
|
}
|
|
246
250
|
/**
|
|
@@ -271,7 +275,11 @@ export declare class AccountAssetResponse extends BaseModel {
|
|
|
271
275
|
* @param createdAsset - (apar) parameters of the asset created by this account.
|
|
272
276
|
* The raw account uses `AssetParams` for this type.
|
|
273
277
|
*/
|
|
274
|
-
constructor(round
|
|
278
|
+
constructor({ round, assetHolding, createdAsset, }: {
|
|
279
|
+
round: number | bigint;
|
|
280
|
+
assetHolding?: AssetHolding;
|
|
281
|
+
createdAsset?: AssetParams;
|
|
282
|
+
});
|
|
275
283
|
static from_obj_for_encoding(data: Record<string, any>): AccountAssetResponse;
|
|
276
284
|
}
|
|
277
285
|
/**
|
|
@@ -338,7 +346,10 @@ export declare class AccountStateDelta extends BaseModel {
|
|
|
338
346
|
* @param address -
|
|
339
347
|
* @param delta - Application state delta.
|
|
340
348
|
*/
|
|
341
|
-
constructor(address
|
|
349
|
+
constructor({ address, delta, }: {
|
|
350
|
+
address: string;
|
|
351
|
+
delta: EvalDeltaKeyValue[];
|
|
352
|
+
});
|
|
342
353
|
static from_obj_for_encoding(data: Record<string, any>): AccountStateDelta;
|
|
343
354
|
}
|
|
344
355
|
/**
|
|
@@ -358,7 +369,10 @@ export declare class Application extends BaseModel {
|
|
|
358
369
|
* @param id - (appidx) application index.
|
|
359
370
|
* @param params - (appparams) application parameters.
|
|
360
371
|
*/
|
|
361
|
-
constructor(id
|
|
372
|
+
constructor({ id, params, }: {
|
|
373
|
+
id: number | bigint;
|
|
374
|
+
params: ApplicationParams;
|
|
375
|
+
});
|
|
362
376
|
static from_obj_for_encoding(data: Record<string, any>): Application;
|
|
363
377
|
}
|
|
364
378
|
/**
|
|
@@ -383,7 +397,11 @@ export declare class ApplicationLocalState extends BaseModel {
|
|
|
383
397
|
* @param schema - (hsch) schema.
|
|
384
398
|
* @param keyValue - (tkv) storage.
|
|
385
399
|
*/
|
|
386
|
-
constructor(id
|
|
400
|
+
constructor({ id, schema, keyValue, }: {
|
|
401
|
+
id: number | bigint;
|
|
402
|
+
schema: ApplicationStateSchema;
|
|
403
|
+
keyValue?: TealKeyValue[];
|
|
404
|
+
});
|
|
387
405
|
static from_obj_for_encoding(data: Record<string, any>): ApplicationLocalState;
|
|
388
406
|
}
|
|
389
407
|
/**
|
|
@@ -458,7 +476,10 @@ export declare class ApplicationStateSchema extends BaseModel {
|
|
|
458
476
|
* @param numUint - (nui) num of uints.
|
|
459
477
|
* @param numByteSlice - (nbs) num of byte slices.
|
|
460
478
|
*/
|
|
461
|
-
constructor(numUint
|
|
479
|
+
constructor({ numUint, numByteSlice, }: {
|
|
480
|
+
numUint: number | bigint;
|
|
481
|
+
numByteSlice: number | bigint;
|
|
482
|
+
});
|
|
462
483
|
static from_obj_for_encoding(data: Record<string, any>): ApplicationStateSchema;
|
|
463
484
|
}
|
|
464
485
|
/**
|
|
@@ -484,7 +505,10 @@ export declare class Asset extends BaseModel {
|
|
|
484
505
|
* Definition:
|
|
485
506
|
* data/transactions/asset.go : AssetParams
|
|
486
507
|
*/
|
|
487
|
-
constructor(index
|
|
508
|
+
constructor({ index, params, }: {
|
|
509
|
+
index: number | bigint;
|
|
510
|
+
params: AssetParams;
|
|
511
|
+
});
|
|
488
512
|
static from_obj_for_encoding(data: Record<string, any>): Asset;
|
|
489
513
|
}
|
|
490
514
|
/**
|
|
@@ -511,7 +535,11 @@ export declare class AssetHolding extends BaseModel {
|
|
|
511
535
|
* @param assetId - Asset ID of the holding.
|
|
512
536
|
* @param isFrozen - (f) whether or not the holding is frozen.
|
|
513
537
|
*/
|
|
514
|
-
constructor(amount
|
|
538
|
+
constructor({ amount, assetId, isFrozen, }: {
|
|
539
|
+
amount: number | bigint;
|
|
540
|
+
assetId: number | bigint;
|
|
541
|
+
isFrozen: boolean;
|
|
542
|
+
});
|
|
515
543
|
static from_obj_for_encoding(data: Record<string, any>): AssetHolding;
|
|
516
544
|
}
|
|
517
545
|
/**
|
|
@@ -652,7 +680,9 @@ export declare class BlockHashResponse extends BaseModel {
|
|
|
652
680
|
* Creates a new `BlockHashResponse` object.
|
|
653
681
|
* @param blockhash - Block header hash.
|
|
654
682
|
*/
|
|
655
|
-
constructor(blockhash:
|
|
683
|
+
constructor({ blockhash }: {
|
|
684
|
+
blockhash: string;
|
|
685
|
+
});
|
|
656
686
|
static from_obj_for_encoding(data: Record<string, any>): BlockHashResponse;
|
|
657
687
|
}
|
|
658
688
|
/**
|
|
@@ -674,7 +704,10 @@ export declare class BlockResponse extends BaseModel {
|
|
|
674
704
|
* @param cert - Optional certificate object. This is only included when the format is set to
|
|
675
705
|
* message pack.
|
|
676
706
|
*/
|
|
677
|
-
constructor(block
|
|
707
|
+
constructor({ block, cert, }: {
|
|
708
|
+
block: BlockHeader;
|
|
709
|
+
cert?: Record<string, any>;
|
|
710
|
+
});
|
|
678
711
|
static from_obj_for_encoding(data: Record<string, any>): BlockResponse;
|
|
679
712
|
}
|
|
680
713
|
/**
|
|
@@ -694,7 +727,10 @@ export declare class Box extends BaseModel {
|
|
|
694
727
|
* @param name - (name) box name, base64 encoded
|
|
695
728
|
* @param value - (value) box value, base64 encoded.
|
|
696
729
|
*/
|
|
697
|
-
constructor(name
|
|
730
|
+
constructor({ name, value, }: {
|
|
731
|
+
name: string | Uint8Array;
|
|
732
|
+
value: string | Uint8Array;
|
|
733
|
+
});
|
|
698
734
|
static from_obj_for_encoding(data: Record<string, any>): Box;
|
|
699
735
|
}
|
|
700
736
|
/**
|
|
@@ -709,7 +745,9 @@ export declare class BoxDescriptor extends BaseModel {
|
|
|
709
745
|
* Creates a new `BoxDescriptor` object.
|
|
710
746
|
* @param name - Base64 encoded box name
|
|
711
747
|
*/
|
|
712
|
-
constructor(name:
|
|
748
|
+
constructor({ name }: {
|
|
749
|
+
name: string | Uint8Array;
|
|
750
|
+
});
|
|
713
751
|
static from_obj_for_encoding(data: Record<string, any>): BoxDescriptor;
|
|
714
752
|
}
|
|
715
753
|
/**
|
|
@@ -721,7 +759,9 @@ export declare class BoxesResponse extends BaseModel {
|
|
|
721
759
|
* Creates a new `BoxesResponse` object.
|
|
722
760
|
* @param boxes -
|
|
723
761
|
*/
|
|
724
|
-
constructor(boxes:
|
|
762
|
+
constructor({ boxes }: {
|
|
763
|
+
boxes: BoxDescriptor[];
|
|
764
|
+
});
|
|
725
765
|
static from_obj_for_encoding(data: Record<string, any>): BoxesResponse;
|
|
726
766
|
}
|
|
727
767
|
export declare class BuildVersion extends BaseModel {
|
|
@@ -750,36 +790,6 @@ export declare class BuildVersion extends BaseModel {
|
|
|
750
790
|
});
|
|
751
791
|
static from_obj_for_encoding(data: Record<string, any>): BuildVersion;
|
|
752
792
|
}
|
|
753
|
-
/**
|
|
754
|
-
*
|
|
755
|
-
*/
|
|
756
|
-
export declare class CatchpointAbortResponse extends BaseModel {
|
|
757
|
-
/**
|
|
758
|
-
* Catchup abort response string
|
|
759
|
-
*/
|
|
760
|
-
catchupMessage: string;
|
|
761
|
-
/**
|
|
762
|
-
* Creates a new `CatchpointAbortResponse` object.
|
|
763
|
-
* @param catchupMessage - Catchup abort response string
|
|
764
|
-
*/
|
|
765
|
-
constructor(catchupMessage: string);
|
|
766
|
-
static from_obj_for_encoding(data: Record<string, any>): CatchpointAbortResponse;
|
|
767
|
-
}
|
|
768
|
-
/**
|
|
769
|
-
*
|
|
770
|
-
*/
|
|
771
|
-
export declare class CatchpointStartResponse extends BaseModel {
|
|
772
|
-
/**
|
|
773
|
-
* Catchup start response string
|
|
774
|
-
*/
|
|
775
|
-
catchupMessage: string;
|
|
776
|
-
/**
|
|
777
|
-
* Creates a new `CatchpointStartResponse` object.
|
|
778
|
-
* @param catchupMessage - Catchup start response string
|
|
779
|
-
*/
|
|
780
|
-
constructor(catchupMessage: string);
|
|
781
|
-
static from_obj_for_encoding(data: Record<string, any>): CatchpointStartResponse;
|
|
782
|
-
}
|
|
783
793
|
/**
|
|
784
794
|
* Teal compile Result
|
|
785
795
|
*/
|
|
@@ -802,7 +812,11 @@ export declare class CompileResponse extends BaseModel {
|
|
|
802
812
|
* @param result - base64 encoded program bytes
|
|
803
813
|
* @param sourcemap - JSON of the source map
|
|
804
814
|
*/
|
|
805
|
-
constructor(hash
|
|
815
|
+
constructor({ hash, result, sourcemap, }: {
|
|
816
|
+
hash: string;
|
|
817
|
+
result: string;
|
|
818
|
+
sourcemap?: Record<string, any>;
|
|
819
|
+
});
|
|
806
820
|
static from_obj_for_encoding(data: Record<string, any>): CompileResponse;
|
|
807
821
|
}
|
|
808
822
|
/**
|
|
@@ -817,7 +831,9 @@ export declare class DisassembleResponse extends BaseModel {
|
|
|
817
831
|
* Creates a new `DisassembleResponse` object.
|
|
818
832
|
* @param result - disassembled Teal code
|
|
819
833
|
*/
|
|
820
|
-
constructor(result:
|
|
834
|
+
constructor({ result }: {
|
|
835
|
+
result: string;
|
|
836
|
+
});
|
|
821
837
|
static from_obj_for_encoding(data: Record<string, any>): DisassembleResponse;
|
|
822
838
|
}
|
|
823
839
|
/**
|
|
@@ -884,7 +900,11 @@ export declare class DryrunResponse extends BaseModel {
|
|
|
884
900
|
* @param protocolVersion - Protocol version is the protocol version Dryrun was operated under.
|
|
885
901
|
* @param txns -
|
|
886
902
|
*/
|
|
887
|
-
constructor(error
|
|
903
|
+
constructor({ error, protocolVersion, txns, }: {
|
|
904
|
+
error: string;
|
|
905
|
+
protocolVersion: string;
|
|
906
|
+
txns: DryrunTxnResult[];
|
|
907
|
+
});
|
|
888
908
|
static from_obj_for_encoding(data: Record<string, any>): DryrunResponse;
|
|
889
909
|
}
|
|
890
910
|
/**
|
|
@@ -910,7 +930,12 @@ export declare class DryrunSource extends BaseModel {
|
|
|
910
930
|
* @param txnIndex -
|
|
911
931
|
* @param appIndex -
|
|
912
932
|
*/
|
|
913
|
-
constructor(fieldName
|
|
933
|
+
constructor({ fieldName, source, txnIndex, appIndex, }: {
|
|
934
|
+
fieldName: string;
|
|
935
|
+
source: string;
|
|
936
|
+
txnIndex: number | bigint;
|
|
937
|
+
appIndex: number | bigint;
|
|
938
|
+
});
|
|
914
939
|
static from_obj_for_encoding(data: Record<string, any>): DryrunSource;
|
|
915
940
|
}
|
|
916
941
|
/**
|
|
@@ -967,11 +992,6 @@ export declare class DryrunTxnResult extends BaseModel {
|
|
|
967
992
|
* Budget consumed during execution of app call transaction.
|
|
968
993
|
*/
|
|
969
994
|
budgetConsumed?: number | bigint;
|
|
970
|
-
/**
|
|
971
|
-
* Net cost of app execution. Field is DEPRECATED and is subject for removal.
|
|
972
|
-
* Instead, use `budget-added` and `budget-consumed.
|
|
973
|
-
*/
|
|
974
|
-
cost?: number | bigint;
|
|
975
995
|
/**
|
|
976
996
|
* Application state delta.
|
|
977
997
|
*/
|
|
@@ -991,8 +1011,6 @@ export declare class DryrunTxnResult extends BaseModel {
|
|
|
991
1011
|
* @param appCallTrace -
|
|
992
1012
|
* @param budgetAdded - Budget added during execution of app call transaction.
|
|
993
1013
|
* @param budgetConsumed - Budget consumed during execution of app call transaction.
|
|
994
|
-
* @param cost - Net cost of app execution. Field is DEPRECATED and is subject for removal.
|
|
995
|
-
* Instead, use `budget-added` and `budget-consumed.
|
|
996
1014
|
* @param globalDelta - Application state delta.
|
|
997
1015
|
* @param localDeltas -
|
|
998
1016
|
* @param logicSigDisassembly - Disassembled lsig program line by line.
|
|
@@ -1000,13 +1018,12 @@ export declare class DryrunTxnResult extends BaseModel {
|
|
|
1000
1018
|
* @param logicSigTrace -
|
|
1001
1019
|
* @param logs -
|
|
1002
1020
|
*/
|
|
1003
|
-
constructor({ disassembly, appCallMessages, appCallTrace, budgetAdded, budgetConsumed,
|
|
1021
|
+
constructor({ disassembly, appCallMessages, appCallTrace, budgetAdded, budgetConsumed, globalDelta, localDeltas, logicSigDisassembly, logicSigMessages, logicSigTrace, logs, }: {
|
|
1004
1022
|
disassembly: string[];
|
|
1005
1023
|
appCallMessages?: string[];
|
|
1006
1024
|
appCallTrace?: DryrunState[];
|
|
1007
1025
|
budgetAdded?: number | bigint;
|
|
1008
1026
|
budgetConsumed?: number | bigint;
|
|
1009
|
-
cost?: number | bigint;
|
|
1010
1027
|
globalDelta?: EvalDeltaKeyValue[];
|
|
1011
1028
|
localDeltas?: AccountStateDelta[];
|
|
1012
1029
|
logicSigDisassembly?: string[];
|
|
@@ -1027,7 +1044,10 @@ export declare class ErrorResponse extends BaseModel {
|
|
|
1027
1044
|
* @param message -
|
|
1028
1045
|
* @param data -
|
|
1029
1046
|
*/
|
|
1030
|
-
constructor(message
|
|
1047
|
+
constructor({ message, data, }: {
|
|
1048
|
+
message: string;
|
|
1049
|
+
data?: Record<string, any>;
|
|
1050
|
+
});
|
|
1031
1051
|
static from_obj_for_encoding(data: Record<string, any>): ErrorResponse;
|
|
1032
1052
|
}
|
|
1033
1053
|
/**
|
|
@@ -1052,7 +1072,11 @@ export declare class EvalDelta extends BaseModel {
|
|
|
1052
1072
|
* @param bytes - (bs) bytes value.
|
|
1053
1073
|
* @param uint - (ui) uint value.
|
|
1054
1074
|
*/
|
|
1055
|
-
constructor(action
|
|
1075
|
+
constructor({ action, bytes, uint, }: {
|
|
1076
|
+
action: number | bigint;
|
|
1077
|
+
bytes?: string;
|
|
1078
|
+
uint?: number | bigint;
|
|
1079
|
+
});
|
|
1056
1080
|
static from_obj_for_encoding(data: Record<string, any>): EvalDelta;
|
|
1057
1081
|
}
|
|
1058
1082
|
/**
|
|
@@ -1069,7 +1093,10 @@ export declare class EvalDeltaKeyValue extends BaseModel {
|
|
|
1069
1093
|
* @param key -
|
|
1070
1094
|
* @param value - Represents a TEAL value delta.
|
|
1071
1095
|
*/
|
|
1072
|
-
constructor(key
|
|
1096
|
+
constructor({ key, value }: {
|
|
1097
|
+
key: string;
|
|
1098
|
+
value: EvalDelta;
|
|
1099
|
+
});
|
|
1073
1100
|
static from_obj_for_encoding(data: Record<string, any>): EvalDeltaKeyValue;
|
|
1074
1101
|
}
|
|
1075
1102
|
/**
|
|
@@ -1096,7 +1123,11 @@ export declare class LightBlockHeaderProof extends BaseModel {
|
|
|
1096
1123
|
* @param treedepth - Represents the depth of the tree that is being proven, i.e. the number of edges
|
|
1097
1124
|
* from a leaf to the root.
|
|
1098
1125
|
*/
|
|
1099
|
-
constructor(index
|
|
1126
|
+
constructor({ index, proof, treedepth, }: {
|
|
1127
|
+
index: number | bigint;
|
|
1128
|
+
proof: string | Uint8Array;
|
|
1129
|
+
treedepth: number | bigint;
|
|
1130
|
+
});
|
|
1100
1131
|
static from_obj_for_encoding(data: Record<string, any>): LightBlockHeaderProof;
|
|
1101
1132
|
}
|
|
1102
1133
|
/**
|
|
@@ -1359,7 +1390,10 @@ export declare class PendingTransactionsResponse extends BaseModel {
|
|
|
1359
1390
|
* @param topTransactions - An array of signed transaction objects.
|
|
1360
1391
|
* @param totalTransactions - Total number of transactions in the pool.
|
|
1361
1392
|
*/
|
|
1362
|
-
constructor(topTransactions
|
|
1393
|
+
constructor({ topTransactions, totalTransactions, }: {
|
|
1394
|
+
topTransactions: EncodedSignedTransaction[];
|
|
1395
|
+
totalTransactions: number | bigint;
|
|
1396
|
+
});
|
|
1363
1397
|
static from_obj_for_encoding(data: Record<string, any>): PendingTransactionsResponse;
|
|
1364
1398
|
}
|
|
1365
1399
|
/**
|
|
@@ -1374,7 +1408,9 @@ export declare class PostTransactionsResponse extends BaseModel {
|
|
|
1374
1408
|
* Creates a new `PostTransactionsResponse` object.
|
|
1375
1409
|
* @param txid - encoding of the transaction hash.
|
|
1376
1410
|
*/
|
|
1377
|
-
constructor(txid:
|
|
1411
|
+
constructor({ txid }: {
|
|
1412
|
+
txid: string;
|
|
1413
|
+
});
|
|
1378
1414
|
static from_obj_for_encoding(data: Record<string, any>): PostTransactionsResponse;
|
|
1379
1415
|
}
|
|
1380
1416
|
/**
|
|
@@ -1394,7 +1430,10 @@ export declare class StateProof extends BaseModel {
|
|
|
1394
1430
|
* @param message - Represents the message that the state proofs are attesting to.
|
|
1395
1431
|
* @param stateproof - The encoded StateProof for the message.
|
|
1396
1432
|
*/
|
|
1397
|
-
constructor(message
|
|
1433
|
+
constructor({ message, stateproof, }: {
|
|
1434
|
+
message: StateProofMessage;
|
|
1435
|
+
stateproof: string | Uint8Array;
|
|
1436
|
+
});
|
|
1398
1437
|
static from_obj_for_encoding(data: Record<string, any>): StateProof;
|
|
1399
1438
|
}
|
|
1400
1439
|
/**
|
|
@@ -1464,7 +1503,11 @@ export declare class SupplyResponse extends BaseModel {
|
|
|
1464
1503
|
* @param onlineMoney - OnlineMoney
|
|
1465
1504
|
* @param totalMoney - TotalMoney
|
|
1466
1505
|
*/
|
|
1467
|
-
constructor(currentRound
|
|
1506
|
+
constructor({ currentRound, onlineMoney, totalMoney, }: {
|
|
1507
|
+
currentRound: number | bigint;
|
|
1508
|
+
onlineMoney: number | bigint;
|
|
1509
|
+
totalMoney: number | bigint;
|
|
1510
|
+
});
|
|
1468
1511
|
static from_obj_for_encoding(data: Record<string, any>): SupplyResponse;
|
|
1469
1512
|
}
|
|
1470
1513
|
/**
|
|
@@ -1481,7 +1524,10 @@ export declare class TealKeyValue extends BaseModel {
|
|
|
1481
1524
|
* @param key -
|
|
1482
1525
|
* @param value - Represents a TEAL value.
|
|
1483
1526
|
*/
|
|
1484
|
-
constructor(key
|
|
1527
|
+
constructor({ key, value }: {
|
|
1528
|
+
key: string;
|
|
1529
|
+
value: TealValue;
|
|
1530
|
+
});
|
|
1485
1531
|
static from_obj_for_encoding(data: Record<string, any>): TealKeyValue;
|
|
1486
1532
|
}
|
|
1487
1533
|
/**
|
|
@@ -1506,7 +1552,11 @@ export declare class TealValue extends BaseModel {
|
|
|
1506
1552
|
* @param bytes - (tb) bytes value.
|
|
1507
1553
|
* @param uint - (ui) uint value.
|
|
1508
1554
|
*/
|
|
1509
|
-
constructor(type
|
|
1555
|
+
constructor({ type, bytes, uint, }: {
|
|
1556
|
+
type: number | bigint;
|
|
1557
|
+
bytes: string;
|
|
1558
|
+
uint: number | bigint;
|
|
1559
|
+
});
|
|
1510
1560
|
static from_obj_for_encoding(data: Record<string, any>): TealValue;
|
|
1511
1561
|
}
|
|
1512
1562
|
/**
|
|
@@ -1629,6 +1679,11 @@ export declare class Version extends BaseModel {
|
|
|
1629
1679
|
* @param genesisId -
|
|
1630
1680
|
* @param versions -
|
|
1631
1681
|
*/
|
|
1632
|
-
constructor(build
|
|
1682
|
+
constructor({ build, genesisHashB64, genesisId, versions, }: {
|
|
1683
|
+
build: BuildVersion;
|
|
1684
|
+
genesisHashB64: string | Uint8Array;
|
|
1685
|
+
genesisId: string;
|
|
1686
|
+
versions: string[];
|
|
1687
|
+
});
|
|
1633
1688
|
static from_obj_for_encoding(data: Record<string, any>): Version;
|
|
1634
1689
|
}
|
|
@@ -140,10 +140,6 @@ export default class LookupAssetTransactions extends JSONRequest {
|
|
|
140
140
|
* @category query
|
|
141
141
|
*/
|
|
142
142
|
maxRound(round: number): this;
|
|
143
|
-
/**
|
|
144
|
-
* @deprecated Redundant query parameter. Asset ID is already passed into the method.
|
|
145
|
-
*/
|
|
146
|
-
assetID(id: number): this;
|
|
147
143
|
/**
|
|
148
144
|
* Maximum number of results to return.
|
|
149
145
|
*
|
package/dist/types/logicsig.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ interface LogicSigStorageStructure {
|
|
|
16
16
|
export declare function sanityCheckProgram(program: Uint8Array): void;
|
|
17
17
|
/**
|
|
18
18
|
LogicSig implementation
|
|
19
|
+
|
|
20
|
+
LogicSig cannot sign transactions in all cases. Instead, use LogicSigAccount as a safe, general purpose signing mechanism. Since LogicSig does not track the provided signature's public key, LogicSig cannot sign transactions when delegated to a non-multisig account _and_ the sender is not the delegating account.
|
|
19
21
|
*/
|
|
20
22
|
export declare class LogicSig implements LogicSigStorageStructure {
|
|
21
23
|
tag: Buffer;
|
|
@@ -132,16 +134,6 @@ export declare class LogicSigAccount {
|
|
|
132
134
|
*/
|
|
133
135
|
sign(secretKey: Uint8Array): void;
|
|
134
136
|
}
|
|
135
|
-
/**
|
|
136
|
-
* makeLogicSig creates LogicSig object from program and arguments
|
|
137
|
-
*
|
|
138
|
-
* @deprecated Use new LogicSigAccount(...) instead
|
|
139
|
-
*
|
|
140
|
-
* @param program - Program to make LogicSig from
|
|
141
|
-
* @param args - Arguments as array of Uint8Array
|
|
142
|
-
* @returns LogicSig object
|
|
143
|
-
*/
|
|
144
|
-
export declare function makeLogicSig(program: Uint8Array, args?: Uint8Array[]): LogicSig;
|
|
145
137
|
/**
|
|
146
138
|
* signLogicSigTransactionObject takes a transaction and a LogicSig object and
|
|
147
139
|
* returns a signed transaction.
|
package/dist/types/main.d.ts
CHANGED
|
@@ -60,7 +60,6 @@ export declare function encodeObj(o: Record<string | number | symbol, any>): Uin
|
|
|
60
60
|
export declare function decodeObj(o: ArrayLike<number>): unknown;
|
|
61
61
|
export declare const ERROR_MULTISIG_BAD_SENDER: Error;
|
|
62
62
|
export declare const ERROR_INVALID_MICROALGOS: Error;
|
|
63
|
-
export * from './client/algod';
|
|
64
63
|
export { default as Algodv2 } from './client/v2/algod/algod';
|
|
65
64
|
export { default as Kmd } from './client/kmd';
|
|
66
65
|
export { default as IntDecoding } from './types/intDecoding';
|
|
@@ -77,10 +76,9 @@ export * as indexerModels from './client/v2/indexer/models/types';
|
|
|
77
76
|
export { mnemonicToMasterDerivationKey, masterDerivationKeyToMnemonic, secretKeyToMnemonic, mnemonicToSecretKey, seedFromMnemonic, mnemonicFromSeed, } from './mnemonic/mnemonic';
|
|
78
77
|
export { microalgosToAlgos, algosToMicroalgos, INVALID_MICROALGOS_ERROR_MSG, } from './convert';
|
|
79
78
|
export { computeGroupID, assignGroupID } from './group';
|
|
80
|
-
export {
|
|
79
|
+
export { LogicSig, LogicSigAccount, signLogicSigTransaction, signLogicSigTransactionObject, logicSigFromByte, tealSign, tealSignFromProgram, } from './logicsig';
|
|
81
80
|
export { signMultisigTransaction, mergeMultisigTransactions, appendSignMultisigTransaction, createMultisigTransaction, appendSignRawMultisigSignature, verifyMultisig, multisigAddress, } from './multisig';
|
|
82
81
|
export { SourceMap } from './logic/sourcemap';
|
|
83
|
-
export declare const LogicTemplates: any;
|
|
84
82
|
export * from './dryrun';
|
|
85
83
|
export * from './makeTxn';
|
|
86
84
|
export * from './transaction';
|