algosdk 3.3.1 → 3.4.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 +5 -5
- package/dist/browser/algosdk.min.js +1 -1
- package/dist/browser/algosdk.min.js.map +1 -1
- package/dist/cjs/client/v2/algod/getTransactionProof.js +1 -1
- package/dist/cjs/client/v2/algod/getTransactionProof.js.map +1 -1
- package/dist/cjs/client/v2/algod/models/types.js +8 -8
- package/dist/cjs/client/v2/algod/models/types.js.map +1 -1
- package/dist/cjs/client/v2/indexer/models/types.js +75 -3
- package/dist/cjs/client/v2/indexer/models/types.js.map +1 -1
- package/dist/cjs/client/v2/indexer/searchForTransactions.js +19 -0
- package/dist/cjs/client/v2/indexer/searchForTransactions.js.map +1 -1
- package/dist/cjs/encoding/schema/bytearray.js +3 -0
- package/dist/cjs/encoding/schema/bytearray.js.map +1 -1
- package/dist/esm/client/v2/algod/getTransactionProof.js +2 -2
- package/dist/esm/client/v2/algod/getTransactionProof.js.map +1 -1
- package/dist/esm/client/v2/algod/models/types.js +6 -6
- package/dist/esm/client/v2/algod/models/types.js.map +1 -1
- package/dist/esm/client/v2/indexer/models/types.js +72 -1
- package/dist/esm/client/v2/indexer/models/types.js.map +1 -1
- package/dist/esm/client/v2/indexer/searchForTransactions.js +19 -0
- package/dist/esm/client/v2/indexer/searchForTransactions.js.map +1 -1
- package/dist/esm/encoding/schema/bytearray.js +3 -0
- package/dist/esm/encoding/schema/bytearray.js.map +1 -1
- package/dist/types/client/v2/algod/getTransactionProof.d.ts +3 -3
- package/dist/types/client/v2/algod/models/types.d.ts +4 -4
- package/dist/types/client/v2/indexer/models/types.d.ts +46 -1
- package/dist/types/client/v2/indexer/searchForTransactions.d.ts +16 -0
- package/package.json +2 -2
- package/src/client/v2/algod/getTransactionProof.ts +4 -4
- package/src/client/v2/algod/models/types.ts +7 -7
- package/src/client/v2/indexer/models/types.ts +119 -0
- package/src/client/v2/indexer/searchForTransactions.ts +20 -0
- package/src/encoding/schema/bytearray.ts +3 -0
|
@@ -38,7 +38,7 @@ class GetTransactionProof extends jsonrequest_js_1.default {
|
|
|
38
38
|
}
|
|
39
39
|
// eslint-disable-next-line class-methods-use-this
|
|
40
40
|
prepare(response) {
|
|
41
|
-
return (0, encoding_js_1.decodeJSON)(response.getJSONText(), types_js_1.
|
|
41
|
+
return (0, encoding_js_1.decodeJSON)(response.getJSONText(), types_js_1.TransactionProof);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
exports.default = GetTransactionProof;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTransactionProof.js","sourceRoot":"","sources":["../../../../../src/client/v2/algod/getTransactionProof.ts"],"names":[],"mappings":";;;;;AAAA,uEAA4C;AAE5C,+DAA2D;AAC3D,
|
|
1
|
+
{"version":3,"file":"getTransactionProof.js","sourceRoot":"","sources":["../../../../../src/client/v2/algod/getTransactionProof.ts"],"names":[],"mappings":";;;;;AAAA,uEAA4C;AAE5C,+DAA2D;AAC3D,gDAAqD;AAErD,MAAqB,mBAAoB,SAAQ,wBAA6B;IAG5E,YACE,CAAa,EACb,KAAsB,EACd,IAAY;QAEpB,KAAK,CAAC,CAAC,CAAC,CAAC;QAFD,SAAI,GAAJ,IAAI,CAAQ;QAGpB,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAED,IAAI;QACF,OAAO,cAAc,IAAI,CAAC,KAAK,iBAAiB,IAAI,CAAC,IAAI,QAAQ,CAAC;IACpE,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,QAAgB;QACvB,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAC/B,OAAO,IAAI,CAAC;IACd,CAAC;IAED,kDAAkD;IAClD,OAAO,CAAC,QAA4B;QAClC,OAAO,IAAA,wBAAU,EAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,2BAAgB,CAAC,CAAC;IAC9D,CAAC;CACF;AA1CD,sCA0CC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
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.DryrunTxnResult = exports.DryrunState = exports.DryrunSource = exports.DryrunResponse = exports.DryrunRequest = 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.AccountApplicationResponse = exports.Account = void 0;
|
|
7
|
-
exports.Version = 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 = exports.SimulateInitialStates = exports.ScratchChange = exports.PostTransactionsResponse = 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");
|
|
@@ -2039,7 +2039,7 @@ class BoxReference {
|
|
|
2039
2039
|
}
|
|
2040
2040
|
exports.BoxReference = BoxReference;
|
|
2041
2041
|
/**
|
|
2042
|
-
*
|
|
2042
|
+
* Box names of an application
|
|
2043
2043
|
*/
|
|
2044
2044
|
class BoxesResponse {
|
|
2045
2045
|
static get encodingSchema() {
|
|
@@ -5221,7 +5221,7 @@ exports.TransactionParametersResponse = TransactionParametersResponse;
|
|
|
5221
5221
|
/**
|
|
5222
5222
|
* Proof of transaction in a block.
|
|
5223
5223
|
*/
|
|
5224
|
-
class
|
|
5224
|
+
class TransactionProof {
|
|
5225
5225
|
static get encodingSchema() {
|
|
5226
5226
|
if (!this.encodingSchemaValue) {
|
|
5227
5227
|
this.encodingSchemaValue = new index_js_1.NamedMapSchema([]);
|
|
@@ -5238,7 +5238,7 @@ class TransactionProofResponse {
|
|
|
5238
5238
|
return this.encodingSchemaValue;
|
|
5239
5239
|
}
|
|
5240
5240
|
/**
|
|
5241
|
-
* Creates a new `
|
|
5241
|
+
* Creates a new `TransactionProof` object.
|
|
5242
5242
|
* @param idx - Index of the transaction in the block's payset.
|
|
5243
5243
|
* @param proof - Proof of transaction membership.
|
|
5244
5244
|
* @param stibhash - Hash of SignedTxnInBlock for verifying proof.
|
|
@@ -5258,7 +5258,7 @@ class TransactionProofResponse {
|
|
|
5258
5258
|
}
|
|
5259
5259
|
// eslint-disable-next-line class-methods-use-this
|
|
5260
5260
|
getEncodingSchema() {
|
|
5261
|
-
return
|
|
5261
|
+
return TransactionProof.encodingSchema;
|
|
5262
5262
|
}
|
|
5263
5263
|
toEncodingData() {
|
|
5264
5264
|
return new Map([
|
|
@@ -5271,9 +5271,9 @@ class TransactionProofResponse {
|
|
|
5271
5271
|
}
|
|
5272
5272
|
static fromEncodingData(data) {
|
|
5273
5273
|
if (!(data instanceof Map)) {
|
|
5274
|
-
throw new Error(`Invalid decoded
|
|
5274
|
+
throw new Error(`Invalid decoded TransactionProof: ${data}`);
|
|
5275
5275
|
}
|
|
5276
|
-
return new
|
|
5276
|
+
return new TransactionProof({
|
|
5277
5277
|
idx: data.get('idx'),
|
|
5278
5278
|
proof: data.get('proof'),
|
|
5279
5279
|
stibhash: data.get('stibhash'),
|
|
@@ -5282,7 +5282,7 @@ class TransactionProofResponse {
|
|
|
5282
5282
|
});
|
|
5283
5283
|
}
|
|
5284
5284
|
}
|
|
5285
|
-
exports.
|
|
5285
|
+
exports.TransactionProof = TransactionProof;
|
|
5286
5286
|
/**
|
|
5287
5287
|
* algod version information.
|
|
5288
5288
|
*/
|