algosdk 3.6.0 → 3.7.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/algosdk.min.js +1 -1
- package/dist/browser/algosdk.min.js.map +1 -1
- package/dist/cjs/client/v2/algod/algod.js +0 -18
- package/dist/cjs/client/v2/algod/algod.js.map +1 -1
- package/dist/cjs/client/v2/algod/models/types.js +2 -434
- package/dist/cjs/client/v2/algod/models/types.js.map +1 -1
- package/dist/cjs/ed25519-signer.js +76 -0
- package/dist/cjs/ed25519-signer.js.map +1 -0
- package/dist/cjs/encoding/address.js +61 -1
- package/dist/cjs/encoding/address.js.map +1 -1
- package/dist/cjs/falcon-signer.js +17 -0
- package/dist/cjs/falcon-signer.js.map +1 -0
- package/dist/cjs/logicsig.js +201 -16
- package/dist/cjs/logicsig.js.map +1 -1
- package/dist/cjs/main.js +32 -63
- package/dist/cjs/main.js.map +1 -1
- package/dist/cjs/mnemonic/mnemonic.js +26 -1
- package/dist/cjs/mnemonic/mnemonic.js.map +1 -1
- package/dist/cjs/multisigSigning.js +78 -1
- package/dist/cjs/multisigSigning.js.map +1 -1
- package/dist/cjs/pq-signer.js +54 -0
- package/dist/cjs/pq-signer.js.map +1 -0
- package/dist/cjs/signedTransaction.js +15 -1
- package/dist/cjs/signedTransaction.js.map +1 -1
- package/dist/cjs/signer.js.map +1 -1
- package/dist/cjs/signing.js +94 -7
- package/dist/cjs/signing.js.map +1 -1
- package/dist/cjs/transaction.js +9 -1
- package/dist/cjs/transaction.js.map +1 -1
- package/dist/cjs/types/transactions/encoded.js +51 -1
- package/dist/cjs/types/transactions/encoded.js.map +1 -1
- package/dist/cjs/utils/ed25519-check.js +69 -0
- package/dist/cjs/utils/ed25519-check.js.map +1 -0
- package/dist/esm/client/v2/algod/algod.js +0 -18
- package/dist/esm/client/v2/algod/algod.js.map +1 -1
- package/dist/esm/client/v2/algod/models/types.js +0 -427
- package/dist/esm/client/v2/algod/models/types.js.map +1 -1
- package/dist/esm/ed25519-signer.js +72 -0
- package/dist/esm/ed25519-signer.js.map +1 -0
- package/dist/esm/encoding/address.js +58 -0
- package/dist/esm/encoding/address.js.map +1 -1
- package/dist/esm/falcon-signer.js +13 -0
- package/dist/esm/falcon-signer.js.map +1 -0
- package/dist/esm/logicsig.js +200 -15
- package/dist/esm/logicsig.js.map +1 -1
- package/dist/esm/main.js +8 -56
- package/dist/esm/main.js.map +1 -1
- package/dist/esm/mnemonic/mnemonic.js +25 -1
- package/dist/esm/mnemonic/mnemonic.js.map +1 -1
- package/dist/esm/multisigSigning.js +75 -0
- package/dist/esm/multisigSigning.js.map +1 -1
- package/dist/esm/pq-signer.js +50 -0
- package/dist/esm/pq-signer.js.map +1 -0
- package/dist/esm/signedTransaction.js +16 -2
- package/dist/esm/signedTransaction.js.map +1 -1
- package/dist/esm/signer.js.map +1 -1
- package/dist/esm/signing.js +91 -8
- package/dist/esm/signing.js.map +1 -1
- package/dist/esm/transaction.js +9 -1
- package/dist/esm/transaction.js.map +1 -1
- package/dist/esm/types/transactions/encoded.js +49 -1
- package/dist/esm/types/transactions/encoded.js.map +1 -1
- package/dist/esm/utils/ed25519-check.js +65 -0
- package/dist/esm/utils/ed25519-check.js.map +1 -0
- package/dist/types/client/v2/algod/algod.d.ts +0 -16
- package/dist/types/client/v2/algod/models/types.d.ts +0 -217
- package/dist/types/ed25519-signer.d.ts +7 -0
- package/dist/types/encoding/address.d.ts +37 -0
- package/dist/types/falcon-signer.d.ts +11 -0
- package/dist/types/logicsig.d.ts +72 -1
- package/dist/types/main.d.ts +8 -44
- package/dist/types/mnemonic/mnemonic.d.ts +13 -0
- package/dist/types/multisigSigning.d.ts +49 -0
- package/dist/types/pq-signer.d.ts +8 -0
- package/dist/types/signedTransaction.d.ts +7 -2
- package/dist/types/signer.d.ts +38 -0
- package/dist/types/signing.d.ts +45 -0
- package/dist/types/transaction.d.ts +9 -0
- package/dist/types/types/transactions/encoded.d.ts +27 -0
- package/dist/types/utils/ed25519-check.d.ts +10 -0
- package/package.json +2 -1
- package/src/client/v2/algod/algod.ts +0 -19
- package/src/client/v2/algod/models/types.ts +0 -700
- package/src/ed25519-signer.ts +125 -0
- package/src/encoding/address.ts +80 -0
- package/src/falcon-signer.ts +30 -0
- package/src/logicsig.ts +258 -16
- package/src/main.ts +30 -60
- package/src/mnemonic/mnemonic.ts +34 -1
- package/src/multisigSigning.ts +111 -0
- package/src/pq-signer.ts +90 -0
- package/src/signedTransaction.ts +24 -0
- package/src/signer.ts +53 -0
- package/src/signing.ts +109 -8
- package/src/transaction.ts +9 -1
- package/src/types/transactions/encoded.ts +88 -0
- package/src/utils/ed25519-check.ts +67 -0
- package/dist/cjs/client/v2/algod/dryrun.js +0 -34
- package/dist/cjs/client/v2/algod/dryrun.js.map +0 -1
- package/dist/cjs/dryrun.js +0 -214
- package/dist/cjs/dryrun.js.map +0 -1
- package/dist/esm/client/v2/algod/dryrun.js +0 -28
- package/dist/esm/client/v2/algod/dryrun.js.map +0 -1
- package/dist/esm/dryrun.js +0 -208
- package/dist/esm/dryrun.js.map +0 -1
- package/dist/types/client/v2/algod/dryrun.d.ts +0 -11
- package/dist/types/dryrun.d.ts +0 -28
- package/src/client/v2/algod/dryrun.ts +0 -38
- package/src/dryrun.ts +0 -292
|
@@ -36,7 +36,6 @@ const accountApplicationsInformation_js_1 = __importDefault(require("./accountAp
|
|
|
36
36
|
const accountApplicationInformation_js_1 = __importDefault(require("./accountApplicationInformation.js"));
|
|
37
37
|
const block_js_1 = __importDefault(require("./block.js"));
|
|
38
38
|
const compile_js_1 = __importDefault(require("./compile.js"));
|
|
39
|
-
const dryrun_js_1 = __importDefault(require("./dryrun.js"));
|
|
40
39
|
const genesis_js_1 = __importDefault(require("./genesis.js"));
|
|
41
40
|
const getAssetByID_js_1 = __importDefault(require("./getAssetByID.js"));
|
|
42
41
|
const getApplicationByID_js_1 = __importDefault(require("./getApplicationByID.js"));
|
|
@@ -449,23 +448,6 @@ class AlgodClient extends serviceClient_js_1.default {
|
|
|
449
448
|
disassemble(source) {
|
|
450
449
|
return new disassemble_js_1.default(this.c, source);
|
|
451
450
|
}
|
|
452
|
-
/**
|
|
453
|
-
* Provides debugging information for a transaction (or group).
|
|
454
|
-
*
|
|
455
|
-
* Executes TEAL program(s) in context and returns debugging information about the execution. This endpoint is only enabled when a node's configureation file sets `EnableDeveloperAPI` to true.
|
|
456
|
-
*
|
|
457
|
-
* #### Example
|
|
458
|
-
* ```typescript
|
|
459
|
-
* const dryRunResult = await algodClient.dryrun(dr).do();
|
|
460
|
-
* ```
|
|
461
|
-
*
|
|
462
|
-
* [Response data schema details](https://developer.algorand.org/docs/rest-apis/algod/#post-v2tealdryrun)
|
|
463
|
-
* @param dr
|
|
464
|
-
* @category POST
|
|
465
|
-
*/
|
|
466
|
-
dryrun(dr) {
|
|
467
|
-
return new dryrun_js_1.default(this.c, dr);
|
|
468
|
-
}
|
|
469
451
|
/**
|
|
470
452
|
* Given an asset ID, return asset information including creator, name, total supply and
|
|
471
453
|
* special addresses.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"algod.js","sourceRoot":"","sources":["../../../../../src/client/v2/algod/algod.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2EAAgD;AAChD,4DAA8C;AAC9C,oFAAyD;AACzD,8FAAmE;AACnE,gGAAqE;AACrE,4GAAiF;AACjF,0GAA+E;AAC/E,0DAA+B;AAC/B,8DAAmC;AACnC,
|
|
1
|
+
{"version":3,"file":"algod.js","sourceRoot":"","sources":["../../../../../src/client/v2/algod/algod.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2EAAgD;AAChD,4DAA8C;AAC9C,oFAAyD;AACzD,8FAAmE;AACnE,gGAAqE;AACrE,4GAAiF;AACjF,0GAA+E;AAC/E,0DAA+B;AAC/B,8DAAmC;AACnC,8DAAmC;AACnC,wEAA6C;AAC7C,oFAAyD;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E,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,mBAAmB,CAAC,KAAsB;QACxC,OAAO,IAAI,gCAAmB,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IAChD,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,4CAA4C,CAAC,KAAsB;QACjE,OAAO,IAAI,yDAA4C,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACzE,CAAC;CACF;AAxvBD,kCAwvBC"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* NOTICE: This file was generated. Editing this file manually is not recommended.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.Version = exports.TransactionProof = exports.TransactionParametersResponse = exports.TransactionGroupLedgerStateDeltasForRoundResponse = exports.TealValue = exports.TealKeyValue = exports.SupplyResponse = exports.StateProofMessage = exports.StateProof = exports.SimulationTransactionExecTrace = exports.SimulationOpcodeTraceUnit = exports.SimulationEvalOverrides = exports.SimulateUnnamedResourcesAccessed = exports.SimulateTransactionResult = exports.SimulateTransactionGroupResult = exports.SimulateTraceConfig = exports.SimulateResponse = exports.SimulateRequestTransactionGroup = exports.SimulateRequest =
|
|
6
|
+
exports.SimulateInitialStates = exports.ScratchChange = exports.PostTransactionsResponse = exports.PendingTransactionsResponse = exports.PendingTransactionResponse = exports.NodeStatusResponse = exports.LightBlockHeaderProof = exports.LedgerStateDeltaForTransactionGroup = exports.GetSyncRoundResponse = exports.GetBlockTimeStampOffsetResponse = exports.GenesisAllocation = exports.Genesis = exports.EvalDeltaKeyValue = exports.EvalDelta = exports.ErrorResponse = exports.DisassembleResponse = exports.CompileResponse = exports.BuildVersion = exports.BoxesResponse = exports.BoxReference = exports.BoxDescriptor = exports.Box = exports.BlockTxidsResponse = exports.BlockResponse = exports.BlockLogsResponse = exports.BlockHashResponse = exports.AvmValue = exports.AvmKeyValue = exports.AssetParams = exports.AssetHoldingReference = exports.AssetHolding = exports.Asset = exports.ApplicationStateSchema = exports.ApplicationStateOperation = exports.ApplicationParams = exports.ApplicationLocalState = exports.ApplicationLocalReference = exports.ApplicationKVStorage = exports.ApplicationInitialStates = exports.Application = exports.AppCallLogs = exports.AccountStateDelta = exports.AccountParticipation = exports.AccountAssetsInformationResponse = exports.AccountAssetResponse = exports.AccountAssetHolding = exports.AccountApplicationsInformationResponse = exports.AccountApplicationResponse = exports.AccountApplicationResource = exports.Account = void 0;
|
|
7
|
+
exports.Version = exports.TransactionProof = exports.TransactionParametersResponse = exports.TransactionGroupLedgerStateDeltasForRoundResponse = exports.TealValue = exports.TealKeyValue = exports.SupplyResponse = exports.StateProofMessage = exports.StateProof = exports.SimulationTransactionExecTrace = exports.SimulationOpcodeTraceUnit = exports.SimulationEvalOverrides = exports.SimulateUnnamedResourcesAccessed = exports.SimulateTransactionResult = exports.SimulateTransactionGroupResult = exports.SimulateTraceConfig = exports.SimulateResponse = exports.SimulateRequestTransactionGroup = exports.SimulateRequest = void 0;
|
|
8
8
|
/* eslint-disable no-use-before-define */
|
|
9
9
|
const utils_js_1 = require("../../../../utils/utils.js");
|
|
10
10
|
const index_js_1 = require("../../../../encoding/schema/index.js");
|
|
@@ -2448,438 +2448,6 @@ class DisassembleResponse {
|
|
|
2448
2448
|
}
|
|
2449
2449
|
}
|
|
2450
2450
|
exports.DisassembleResponse = DisassembleResponse;
|
|
2451
|
-
/**
|
|
2452
|
-
* Request data type for dryrun endpoint. Given the Transactions and simulated
|
|
2453
|
-
* ledger state upload, run TEAL scripts and return debugging information.
|
|
2454
|
-
*/
|
|
2455
|
-
class DryrunRequest {
|
|
2456
|
-
static get encodingSchema() {
|
|
2457
|
-
if (!this.encodingSchemaValue) {
|
|
2458
|
-
this.encodingSchemaValue = new index_js_1.NamedMapSchema([]);
|
|
2459
|
-
this.encodingSchemaValue.pushEntries({
|
|
2460
|
-
key: 'accounts',
|
|
2461
|
-
valueSchema: new index_js_1.ArraySchema(Account.encodingSchema),
|
|
2462
|
-
omitEmpty: true,
|
|
2463
|
-
}, {
|
|
2464
|
-
key: 'apps',
|
|
2465
|
-
valueSchema: new index_js_1.ArraySchema(Application.encodingSchema),
|
|
2466
|
-
omitEmpty: true,
|
|
2467
|
-
}, {
|
|
2468
|
-
key: 'latest-timestamp',
|
|
2469
|
-
valueSchema: new index_js_1.Uint64Schema(),
|
|
2470
|
-
omitEmpty: true,
|
|
2471
|
-
}, {
|
|
2472
|
-
key: 'protocol-version',
|
|
2473
|
-
valueSchema: new index_js_1.StringSchema(),
|
|
2474
|
-
omitEmpty: true,
|
|
2475
|
-
}, { key: 'round', valueSchema: new index_js_1.Uint64Schema(), omitEmpty: true }, {
|
|
2476
|
-
key: 'sources',
|
|
2477
|
-
valueSchema: new index_js_1.ArraySchema(DryrunSource.encodingSchema),
|
|
2478
|
-
omitEmpty: true,
|
|
2479
|
-
}, {
|
|
2480
|
-
key: 'txns',
|
|
2481
|
-
valueSchema: new index_js_1.ArraySchema(signedTransaction_js_1.SignedTransaction.encodingSchema),
|
|
2482
|
-
omitEmpty: true,
|
|
2483
|
-
});
|
|
2484
|
-
}
|
|
2485
|
-
return this.encodingSchemaValue;
|
|
2486
|
-
}
|
|
2487
|
-
/**
|
|
2488
|
-
* Creates a new `DryrunRequest` object.
|
|
2489
|
-
* @param accounts -
|
|
2490
|
-
* @param apps -
|
|
2491
|
-
* @param latestTimestamp - LatestTimestamp is available to some TEAL scripts. Defaults to the latest
|
|
2492
|
-
* confirmed timestamp this algod is attached to.
|
|
2493
|
-
* @param protocolVersion - ProtocolVersion specifies a specific version string to operate under, otherwise
|
|
2494
|
-
* whatever the current protocol of the network this algod is running in.
|
|
2495
|
-
* @param round - Round is available to some TEAL scripts. Defaults to the current round on the
|
|
2496
|
-
* network this algod is attached to.
|
|
2497
|
-
* @param sources -
|
|
2498
|
-
* @param txns -
|
|
2499
|
-
*/
|
|
2500
|
-
constructor({ accounts, apps, latestTimestamp, protocolVersion, round, sources, txns, }) {
|
|
2501
|
-
this.accounts = accounts;
|
|
2502
|
-
this.apps = apps;
|
|
2503
|
-
this.latestTimestamp = (0, utils_js_1.ensureSafeInteger)(latestTimestamp);
|
|
2504
|
-
this.protocolVersion = protocolVersion;
|
|
2505
|
-
this.round = (0, utils_js_1.ensureBigInt)(round);
|
|
2506
|
-
this.sources = sources;
|
|
2507
|
-
this.txns = txns;
|
|
2508
|
-
}
|
|
2509
|
-
// eslint-disable-next-line class-methods-use-this
|
|
2510
|
-
getEncodingSchema() {
|
|
2511
|
-
return DryrunRequest.encodingSchema;
|
|
2512
|
-
}
|
|
2513
|
-
toEncodingData() {
|
|
2514
|
-
return new Map([
|
|
2515
|
-
['accounts', this.accounts.map((v) => v.toEncodingData())],
|
|
2516
|
-
['apps', this.apps.map((v) => v.toEncodingData())],
|
|
2517
|
-
['latest-timestamp', this.latestTimestamp],
|
|
2518
|
-
['protocol-version', this.protocolVersion],
|
|
2519
|
-
['round', this.round],
|
|
2520
|
-
['sources', this.sources.map((v) => v.toEncodingData())],
|
|
2521
|
-
['txns', this.txns.map((v) => v.toEncodingData())],
|
|
2522
|
-
]);
|
|
2523
|
-
}
|
|
2524
|
-
static fromEncodingData(data) {
|
|
2525
|
-
if (!(data instanceof Map)) {
|
|
2526
|
-
throw new Error(`Invalid decoded DryrunRequest: ${data}`);
|
|
2527
|
-
}
|
|
2528
|
-
return new DryrunRequest({
|
|
2529
|
-
accounts: (data.get('accounts') ?? []).map((v) => Account.fromEncodingData(v)),
|
|
2530
|
-
apps: (data.get('apps') ?? []).map((v) => Application.fromEncodingData(v)),
|
|
2531
|
-
latestTimestamp: data.get('latest-timestamp'),
|
|
2532
|
-
protocolVersion: data.get('protocol-version'),
|
|
2533
|
-
round: data.get('round'),
|
|
2534
|
-
sources: (data.get('sources') ?? []).map((v) => DryrunSource.fromEncodingData(v)),
|
|
2535
|
-
txns: (data.get('txns') ?? []).map((v) => signedTransaction_js_1.SignedTransaction.fromEncodingData(v)),
|
|
2536
|
-
});
|
|
2537
|
-
}
|
|
2538
|
-
}
|
|
2539
|
-
exports.DryrunRequest = DryrunRequest;
|
|
2540
|
-
/**
|
|
2541
|
-
* DryrunResponse contains per-txn debug information from a dryrun.
|
|
2542
|
-
*/
|
|
2543
|
-
class DryrunResponse {
|
|
2544
|
-
static get encodingSchema() {
|
|
2545
|
-
if (!this.encodingSchemaValue) {
|
|
2546
|
-
this.encodingSchemaValue = new index_js_1.NamedMapSchema([]);
|
|
2547
|
-
this.encodingSchemaValue.pushEntries({ key: 'error', valueSchema: new index_js_1.StringSchema(), omitEmpty: true }, {
|
|
2548
|
-
key: 'protocol-version',
|
|
2549
|
-
valueSchema: new index_js_1.StringSchema(),
|
|
2550
|
-
omitEmpty: true,
|
|
2551
|
-
}, {
|
|
2552
|
-
key: 'txns',
|
|
2553
|
-
valueSchema: new index_js_1.ArraySchema(DryrunTxnResult.encodingSchema),
|
|
2554
|
-
omitEmpty: true,
|
|
2555
|
-
});
|
|
2556
|
-
}
|
|
2557
|
-
return this.encodingSchemaValue;
|
|
2558
|
-
}
|
|
2559
|
-
/**
|
|
2560
|
-
* Creates a new `DryrunResponse` object.
|
|
2561
|
-
* @param error -
|
|
2562
|
-
* @param protocolVersion - Protocol version is the protocol version Dryrun was operated under.
|
|
2563
|
-
* @param txns -
|
|
2564
|
-
*/
|
|
2565
|
-
constructor({ error, protocolVersion, txns, }) {
|
|
2566
|
-
this.error = error;
|
|
2567
|
-
this.protocolVersion = protocolVersion;
|
|
2568
|
-
this.txns = txns;
|
|
2569
|
-
}
|
|
2570
|
-
// eslint-disable-next-line class-methods-use-this
|
|
2571
|
-
getEncodingSchema() {
|
|
2572
|
-
return DryrunResponse.encodingSchema;
|
|
2573
|
-
}
|
|
2574
|
-
toEncodingData() {
|
|
2575
|
-
return new Map([
|
|
2576
|
-
['error', this.error],
|
|
2577
|
-
['protocol-version', this.protocolVersion],
|
|
2578
|
-
['txns', this.txns.map((v) => v.toEncodingData())],
|
|
2579
|
-
]);
|
|
2580
|
-
}
|
|
2581
|
-
static fromEncodingData(data) {
|
|
2582
|
-
if (!(data instanceof Map)) {
|
|
2583
|
-
throw new Error(`Invalid decoded DryrunResponse: ${data}`);
|
|
2584
|
-
}
|
|
2585
|
-
return new DryrunResponse({
|
|
2586
|
-
error: data.get('error'),
|
|
2587
|
-
protocolVersion: data.get('protocol-version'),
|
|
2588
|
-
txns: (data.get('txns') ?? []).map((v) => DryrunTxnResult.fromEncodingData(v)),
|
|
2589
|
-
});
|
|
2590
|
-
}
|
|
2591
|
-
}
|
|
2592
|
-
exports.DryrunResponse = DryrunResponse;
|
|
2593
|
-
/**
|
|
2594
|
-
* DryrunSource is TEAL source text that gets uploaded, compiled, and inserted into
|
|
2595
|
-
* transactions or application state.
|
|
2596
|
-
*/
|
|
2597
|
-
class DryrunSource {
|
|
2598
|
-
static get encodingSchema() {
|
|
2599
|
-
if (!this.encodingSchemaValue) {
|
|
2600
|
-
this.encodingSchemaValue = new index_js_1.NamedMapSchema([]);
|
|
2601
|
-
this.encodingSchemaValue.pushEntries({ key: 'app-index', valueSchema: new index_js_1.Uint64Schema(), omitEmpty: true }, { key: 'field-name', valueSchema: new index_js_1.StringSchema(), omitEmpty: true }, { key: 'source', valueSchema: new index_js_1.StringSchema(), omitEmpty: true }, { key: 'txn-index', valueSchema: new index_js_1.Uint64Schema(), omitEmpty: true });
|
|
2602
|
-
}
|
|
2603
|
-
return this.encodingSchemaValue;
|
|
2604
|
-
}
|
|
2605
|
-
/**
|
|
2606
|
-
* Creates a new `DryrunSource` object.
|
|
2607
|
-
* @param appIndex -
|
|
2608
|
-
* @param fieldName - FieldName is what kind of sources this is. If lsig then it goes into the
|
|
2609
|
-
* transactions[this.TxnIndex].LogicSig. If approv or clearp it goes into the
|
|
2610
|
-
* Approval Program or Clear State Program of application[this.AppIndex].
|
|
2611
|
-
* @param source -
|
|
2612
|
-
* @param txnIndex -
|
|
2613
|
-
*/
|
|
2614
|
-
constructor({ appIndex, fieldName, source, txnIndex, }) {
|
|
2615
|
-
this.appIndex = (0, utils_js_1.ensureBigInt)(appIndex);
|
|
2616
|
-
this.fieldName = fieldName;
|
|
2617
|
-
this.source = source;
|
|
2618
|
-
this.txnIndex = (0, utils_js_1.ensureSafeInteger)(txnIndex);
|
|
2619
|
-
}
|
|
2620
|
-
// eslint-disable-next-line class-methods-use-this
|
|
2621
|
-
getEncodingSchema() {
|
|
2622
|
-
return DryrunSource.encodingSchema;
|
|
2623
|
-
}
|
|
2624
|
-
toEncodingData() {
|
|
2625
|
-
return new Map([
|
|
2626
|
-
['app-index', this.appIndex],
|
|
2627
|
-
['field-name', this.fieldName],
|
|
2628
|
-
['source', this.source],
|
|
2629
|
-
['txn-index', this.txnIndex],
|
|
2630
|
-
]);
|
|
2631
|
-
}
|
|
2632
|
-
static fromEncodingData(data) {
|
|
2633
|
-
if (!(data instanceof Map)) {
|
|
2634
|
-
throw new Error(`Invalid decoded DryrunSource: ${data}`);
|
|
2635
|
-
}
|
|
2636
|
-
return new DryrunSource({
|
|
2637
|
-
appIndex: data.get('app-index'),
|
|
2638
|
-
fieldName: data.get('field-name'),
|
|
2639
|
-
source: data.get('source'),
|
|
2640
|
-
txnIndex: data.get('txn-index'),
|
|
2641
|
-
});
|
|
2642
|
-
}
|
|
2643
|
-
}
|
|
2644
|
-
exports.DryrunSource = DryrunSource;
|
|
2645
|
-
/**
|
|
2646
|
-
* Stores the TEAL eval step data
|
|
2647
|
-
*/
|
|
2648
|
-
class DryrunState {
|
|
2649
|
-
static get encodingSchema() {
|
|
2650
|
-
if (!this.encodingSchemaValue) {
|
|
2651
|
-
this.encodingSchemaValue = new index_js_1.NamedMapSchema([]);
|
|
2652
|
-
this.encodingSchemaValue.pushEntries({ key: 'line', valueSchema: new index_js_1.Uint64Schema(), omitEmpty: true }, { key: 'pc', valueSchema: new index_js_1.Uint64Schema(), omitEmpty: true }, {
|
|
2653
|
-
key: 'stack',
|
|
2654
|
-
valueSchema: new index_js_1.ArraySchema(TealValue.encodingSchema),
|
|
2655
|
-
omitEmpty: true,
|
|
2656
|
-
}, {
|
|
2657
|
-
key: 'error',
|
|
2658
|
-
valueSchema: new index_js_1.OptionalSchema(new index_js_1.StringSchema()),
|
|
2659
|
-
omitEmpty: true,
|
|
2660
|
-
}, {
|
|
2661
|
-
key: 'scratch',
|
|
2662
|
-
valueSchema: new index_js_1.OptionalSchema(new index_js_1.ArraySchema(TealValue.encodingSchema)),
|
|
2663
|
-
omitEmpty: true,
|
|
2664
|
-
});
|
|
2665
|
-
}
|
|
2666
|
-
return this.encodingSchemaValue;
|
|
2667
|
-
}
|
|
2668
|
-
/**
|
|
2669
|
-
* Creates a new `DryrunState` object.
|
|
2670
|
-
* @param line - Line number
|
|
2671
|
-
* @param pc - Program counter
|
|
2672
|
-
* @param stack -
|
|
2673
|
-
* @param error - Evaluation error if any
|
|
2674
|
-
* @param scratch -
|
|
2675
|
-
*/
|
|
2676
|
-
constructor({ line, pc, stack, error, scratch, }) {
|
|
2677
|
-
this.line = (0, utils_js_1.ensureSafeInteger)(line);
|
|
2678
|
-
this.pc = (0, utils_js_1.ensureSafeInteger)(pc);
|
|
2679
|
-
this.stack = stack;
|
|
2680
|
-
this.error = error;
|
|
2681
|
-
this.scratch = scratch;
|
|
2682
|
-
}
|
|
2683
|
-
// eslint-disable-next-line class-methods-use-this
|
|
2684
|
-
getEncodingSchema() {
|
|
2685
|
-
return DryrunState.encodingSchema;
|
|
2686
|
-
}
|
|
2687
|
-
toEncodingData() {
|
|
2688
|
-
return new Map([
|
|
2689
|
-
['line', this.line],
|
|
2690
|
-
['pc', this.pc],
|
|
2691
|
-
['stack', this.stack.map((v) => v.toEncodingData())],
|
|
2692
|
-
['error', this.error],
|
|
2693
|
-
[
|
|
2694
|
-
'scratch',
|
|
2695
|
-
typeof this.scratch !== 'undefined'
|
|
2696
|
-
? this.scratch.map((v) => v.toEncodingData())
|
|
2697
|
-
: undefined,
|
|
2698
|
-
],
|
|
2699
|
-
]);
|
|
2700
|
-
}
|
|
2701
|
-
static fromEncodingData(data) {
|
|
2702
|
-
if (!(data instanceof Map)) {
|
|
2703
|
-
throw new Error(`Invalid decoded DryrunState: ${data}`);
|
|
2704
|
-
}
|
|
2705
|
-
return new DryrunState({
|
|
2706
|
-
line: data.get('line'),
|
|
2707
|
-
pc: data.get('pc'),
|
|
2708
|
-
stack: (data.get('stack') ?? []).map((v) => TealValue.fromEncodingData(v)),
|
|
2709
|
-
error: data.get('error'),
|
|
2710
|
-
scratch: typeof data.get('scratch') !== 'undefined'
|
|
2711
|
-
? data
|
|
2712
|
-
.get('scratch')
|
|
2713
|
-
.map((v) => TealValue.fromEncodingData(v))
|
|
2714
|
-
: undefined,
|
|
2715
|
-
});
|
|
2716
|
-
}
|
|
2717
|
-
}
|
|
2718
|
-
exports.DryrunState = DryrunState;
|
|
2719
|
-
/**
|
|
2720
|
-
* DryrunTxnResult contains any LogicSig or ApplicationCall program debug
|
|
2721
|
-
* information and state updates from a dryrun.
|
|
2722
|
-
*/
|
|
2723
|
-
class DryrunTxnResult {
|
|
2724
|
-
static get encodingSchema() {
|
|
2725
|
-
if (!this.encodingSchemaValue) {
|
|
2726
|
-
this.encodingSchemaValue = new index_js_1.NamedMapSchema([]);
|
|
2727
|
-
this.encodingSchemaValue.pushEntries({
|
|
2728
|
-
key: 'disassembly',
|
|
2729
|
-
valueSchema: new index_js_1.ArraySchema(new index_js_1.StringSchema()),
|
|
2730
|
-
omitEmpty: true,
|
|
2731
|
-
}, {
|
|
2732
|
-
key: 'app-call-messages',
|
|
2733
|
-
valueSchema: new index_js_1.OptionalSchema(new index_js_1.ArraySchema(new index_js_1.StringSchema())),
|
|
2734
|
-
omitEmpty: true,
|
|
2735
|
-
}, {
|
|
2736
|
-
key: 'app-call-trace',
|
|
2737
|
-
valueSchema: new index_js_1.OptionalSchema(new index_js_1.ArraySchema(DryrunState.encodingSchema)),
|
|
2738
|
-
omitEmpty: true,
|
|
2739
|
-
}, {
|
|
2740
|
-
key: 'budget-added',
|
|
2741
|
-
valueSchema: new index_js_1.OptionalSchema(new index_js_1.Uint64Schema()),
|
|
2742
|
-
omitEmpty: true,
|
|
2743
|
-
}, {
|
|
2744
|
-
key: 'budget-consumed',
|
|
2745
|
-
valueSchema: new index_js_1.OptionalSchema(new index_js_1.Uint64Schema()),
|
|
2746
|
-
omitEmpty: true,
|
|
2747
|
-
}, {
|
|
2748
|
-
key: 'global-delta',
|
|
2749
|
-
valueSchema: new index_js_1.OptionalSchema(new index_js_1.ArraySchema(EvalDeltaKeyValue.encodingSchema)),
|
|
2750
|
-
omitEmpty: true,
|
|
2751
|
-
}, {
|
|
2752
|
-
key: 'local-deltas',
|
|
2753
|
-
valueSchema: new index_js_1.OptionalSchema(new index_js_1.ArraySchema(AccountStateDelta.encodingSchema)),
|
|
2754
|
-
omitEmpty: true,
|
|
2755
|
-
}, {
|
|
2756
|
-
key: 'logic-sig-disassembly',
|
|
2757
|
-
valueSchema: new index_js_1.OptionalSchema(new index_js_1.ArraySchema(new index_js_1.StringSchema())),
|
|
2758
|
-
omitEmpty: true,
|
|
2759
|
-
}, {
|
|
2760
|
-
key: 'logic-sig-messages',
|
|
2761
|
-
valueSchema: new index_js_1.OptionalSchema(new index_js_1.ArraySchema(new index_js_1.StringSchema())),
|
|
2762
|
-
omitEmpty: true,
|
|
2763
|
-
}, {
|
|
2764
|
-
key: 'logic-sig-trace',
|
|
2765
|
-
valueSchema: new index_js_1.OptionalSchema(new index_js_1.ArraySchema(DryrunState.encodingSchema)),
|
|
2766
|
-
omitEmpty: true,
|
|
2767
|
-
}, {
|
|
2768
|
-
key: 'logs',
|
|
2769
|
-
valueSchema: new index_js_1.OptionalSchema(new index_js_1.ArraySchema(new index_js_1.ByteArraySchema())),
|
|
2770
|
-
omitEmpty: true,
|
|
2771
|
-
});
|
|
2772
|
-
}
|
|
2773
|
-
return this.encodingSchemaValue;
|
|
2774
|
-
}
|
|
2775
|
-
/**
|
|
2776
|
-
* Creates a new `DryrunTxnResult` object.
|
|
2777
|
-
* @param disassembly - Disassembled program line by line.
|
|
2778
|
-
* @param appCallMessages -
|
|
2779
|
-
* @param appCallTrace -
|
|
2780
|
-
* @param budgetAdded - Budget added during execution of app call transaction.
|
|
2781
|
-
* @param budgetConsumed - Budget consumed during execution of app call transaction.
|
|
2782
|
-
* @param globalDelta - Application state delta.
|
|
2783
|
-
* @param localDeltas -
|
|
2784
|
-
* @param logicSigDisassembly - Disassembled lsig program line by line.
|
|
2785
|
-
* @param logicSigMessages -
|
|
2786
|
-
* @param logicSigTrace -
|
|
2787
|
-
* @param logs -
|
|
2788
|
-
*/
|
|
2789
|
-
constructor({ disassembly, appCallMessages, appCallTrace, budgetAdded, budgetConsumed, globalDelta, localDeltas, logicSigDisassembly, logicSigMessages, logicSigTrace, logs, }) {
|
|
2790
|
-
this.disassembly = disassembly;
|
|
2791
|
-
this.appCallMessages = appCallMessages;
|
|
2792
|
-
this.appCallTrace = appCallTrace;
|
|
2793
|
-
this.budgetAdded =
|
|
2794
|
-
typeof budgetAdded === 'undefined'
|
|
2795
|
-
? undefined
|
|
2796
|
-
: (0, utils_js_1.ensureSafeInteger)(budgetAdded);
|
|
2797
|
-
this.budgetConsumed =
|
|
2798
|
-
typeof budgetConsumed === 'undefined'
|
|
2799
|
-
? undefined
|
|
2800
|
-
: (0, utils_js_1.ensureSafeInteger)(budgetConsumed);
|
|
2801
|
-
this.globalDelta = globalDelta;
|
|
2802
|
-
this.localDeltas = localDeltas;
|
|
2803
|
-
this.logicSigDisassembly = logicSigDisassembly;
|
|
2804
|
-
this.logicSigMessages = logicSigMessages;
|
|
2805
|
-
this.logicSigTrace = logicSigTrace;
|
|
2806
|
-
this.logs = logs;
|
|
2807
|
-
}
|
|
2808
|
-
// eslint-disable-next-line class-methods-use-this
|
|
2809
|
-
getEncodingSchema() {
|
|
2810
|
-
return DryrunTxnResult.encodingSchema;
|
|
2811
|
-
}
|
|
2812
|
-
toEncodingData() {
|
|
2813
|
-
return new Map([
|
|
2814
|
-
['disassembly', this.disassembly],
|
|
2815
|
-
['app-call-messages', this.appCallMessages],
|
|
2816
|
-
[
|
|
2817
|
-
'app-call-trace',
|
|
2818
|
-
typeof this.appCallTrace !== 'undefined'
|
|
2819
|
-
? this.appCallTrace.map((v) => v.toEncodingData())
|
|
2820
|
-
: undefined,
|
|
2821
|
-
],
|
|
2822
|
-
['budget-added', this.budgetAdded],
|
|
2823
|
-
['budget-consumed', this.budgetConsumed],
|
|
2824
|
-
[
|
|
2825
|
-
'global-delta',
|
|
2826
|
-
typeof this.globalDelta !== 'undefined'
|
|
2827
|
-
? this.globalDelta.map((v) => v.toEncodingData())
|
|
2828
|
-
: undefined,
|
|
2829
|
-
],
|
|
2830
|
-
[
|
|
2831
|
-
'local-deltas',
|
|
2832
|
-
typeof this.localDeltas !== 'undefined'
|
|
2833
|
-
? this.localDeltas.map((v) => v.toEncodingData())
|
|
2834
|
-
: undefined,
|
|
2835
|
-
],
|
|
2836
|
-
['logic-sig-disassembly', this.logicSigDisassembly],
|
|
2837
|
-
['logic-sig-messages', this.logicSigMessages],
|
|
2838
|
-
[
|
|
2839
|
-
'logic-sig-trace',
|
|
2840
|
-
typeof this.logicSigTrace !== 'undefined'
|
|
2841
|
-
? this.logicSigTrace.map((v) => v.toEncodingData())
|
|
2842
|
-
: undefined,
|
|
2843
|
-
],
|
|
2844
|
-
['logs', this.logs],
|
|
2845
|
-
]);
|
|
2846
|
-
}
|
|
2847
|
-
static fromEncodingData(data) {
|
|
2848
|
-
if (!(data instanceof Map)) {
|
|
2849
|
-
throw new Error(`Invalid decoded DryrunTxnResult: ${data}`);
|
|
2850
|
-
}
|
|
2851
|
-
return new DryrunTxnResult({
|
|
2852
|
-
disassembly: data.get('disassembly'),
|
|
2853
|
-
appCallMessages: data.get('app-call-messages'),
|
|
2854
|
-
appCallTrace: typeof data.get('app-call-trace') !== 'undefined'
|
|
2855
|
-
? data
|
|
2856
|
-
.get('app-call-trace')
|
|
2857
|
-
.map((v) => DryrunState.fromEncodingData(v))
|
|
2858
|
-
: undefined,
|
|
2859
|
-
budgetAdded: data.get('budget-added'),
|
|
2860
|
-
budgetConsumed: data.get('budget-consumed'),
|
|
2861
|
-
globalDelta: typeof data.get('global-delta') !== 'undefined'
|
|
2862
|
-
? data
|
|
2863
|
-
.get('global-delta')
|
|
2864
|
-
.map((v) => EvalDeltaKeyValue.fromEncodingData(v))
|
|
2865
|
-
: undefined,
|
|
2866
|
-
localDeltas: typeof data.get('local-deltas') !== 'undefined'
|
|
2867
|
-
? data
|
|
2868
|
-
.get('local-deltas')
|
|
2869
|
-
.map((v) => AccountStateDelta.fromEncodingData(v))
|
|
2870
|
-
: undefined,
|
|
2871
|
-
logicSigDisassembly: data.get('logic-sig-disassembly'),
|
|
2872
|
-
logicSigMessages: data.get('logic-sig-messages'),
|
|
2873
|
-
logicSigTrace: typeof data.get('logic-sig-trace') !== 'undefined'
|
|
2874
|
-
? data
|
|
2875
|
-
.get('logic-sig-trace')
|
|
2876
|
-
.map((v) => DryrunState.fromEncodingData(v))
|
|
2877
|
-
: undefined,
|
|
2878
|
-
logs: data.get('logs'),
|
|
2879
|
-
});
|
|
2880
|
-
}
|
|
2881
|
-
}
|
|
2882
|
-
exports.DryrunTxnResult = DryrunTxnResult;
|
|
2883
2451
|
/**
|
|
2884
2452
|
* An error response with optional data field.
|
|
2885
2453
|
*/
|