algosdk 2.0.0 → 2.2.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.map +1 -1
- package/dist/cjs/abi/abi_type.js +6 -5
- package/dist/cjs/abi/abi_type.js.map +1 -1
- package/dist/cjs/bid.js +6 -5
- package/dist/cjs/bid.js.map +1 -1
- package/dist/cjs/client/client.js +4 -3
- package/dist/cjs/client/client.js.map +1 -1
- package/dist/cjs/client/kmd.js +12 -11
- package/dist/cjs/client/kmd.js.map +1 -1
- package/dist/cjs/client/urlTokenBaseHTTPClient.js +2 -1
- package/dist/cjs/client/urlTokenBaseHTTPClient.js.map +1 -1
- package/dist/cjs/client/v2/algod/algod.js +32 -0
- package/dist/cjs/client/v2/algod/algod.js.map +1 -1
- package/dist/cjs/client/v2/algod/compile.js +2 -1
- package/dist/cjs/client/v2/algod/compile.js.map +1 -1
- package/dist/cjs/client/v2/algod/disassemble.js +46 -0
- package/dist/cjs/client/v2/algod/disassemble.js.map +1 -0
- package/dist/cjs/client/v2/algod/dryrun.js +2 -1
- package/dist/cjs/client/v2/algod/dryrun.js.map +1 -1
- package/dist/cjs/client/v2/algod/getApplicationBoxByName.js +2 -1
- package/dist/cjs/client/v2/algod/getApplicationBoxByName.js.map +1 -1
- package/dist/cjs/client/v2/algod/models/types.js +141 -21
- package/dist/cjs/client/v2/algod/models/types.js.map +1 -1
- package/dist/cjs/client/v2/algod/sendRawTransaction.js +2 -1
- package/dist/cjs/client/v2/algod/sendRawTransaction.js.map +1 -1
- package/dist/cjs/client/v2/algod/simulateTransaction.js +88 -0
- package/dist/cjs/client/v2/algod/simulateTransaction.js.map +1 -0
- package/dist/cjs/client/v2/basemodel.js +3 -2
- package/dist/cjs/client/v2/basemodel.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAccountTransactions.js +2 -1
- package/dist/cjs/client/v2/indexer/lookupAccountTransactions.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupApplicationBoxByIDandName.js +2 -1
- package/dist/cjs/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +1 -1
- package/dist/cjs/client/v2/indexer/models/types.js +39 -38
- package/dist/cjs/client/v2/indexer/models/types.js.map +1 -1
- package/dist/cjs/composer.js +75 -23
- package/dist/cjs/composer.js.map +1 -1
- package/dist/cjs/dryrun.js +6 -5
- package/dist/cjs/dryrun.js.map +1 -1
- package/dist/cjs/encoding/address.js +2 -1
- package/dist/cjs/encoding/address.js.map +1 -1
- package/dist/cjs/encoding/bigint.js +2 -1
- package/dist/cjs/encoding/bigint.js.map +1 -1
- package/dist/cjs/encoding/encoding.js +14 -3
- package/dist/cjs/encoding/encoding.js.map +1 -1
- package/dist/cjs/encoding/uint64.js +14 -8
- package/dist/cjs/encoding/uint64.js.map +1 -1
- package/dist/cjs/group.js +6 -5
- package/dist/cjs/group.js.map +1 -1
- package/dist/cjs/logicsig.js +22 -8
- package/dist/cjs/logicsig.js.map +1 -1
- package/dist/cjs/main.js +7 -5
- package/dist/cjs/main.js.map +1 -1
- package/dist/cjs/multisig.js +6 -5
- package/dist/cjs/multisig.js.map +1 -1
- package/dist/cjs/signer.js +17 -1
- package/dist/cjs/signer.js.map +1 -1
- package/dist/cjs/transaction.js +81 -64
- package/dist/cjs/transaction.js.map +1 -1
- package/dist/cjs/types/transactions/encoded.js +0 -3
- package/dist/cjs/types/transactions/encoded.js.map +1 -1
- package/dist/cjs/utils/utils.js +5 -1
- package/dist/cjs/utils/utils.js.map +1 -1
- package/dist/esm/abi/abi_type.js +1 -0
- package/dist/esm/abi/abi_type.js.map +1 -1
- package/dist/esm/bid.js +1 -0
- package/dist/esm/bid.js.map +1 -1
- package/dist/esm/client/client.js +1 -0
- package/dist/esm/client/client.js.map +1 -1
- package/dist/esm/client/kmd.js +1 -0
- package/dist/esm/client/kmd.js.map +1 -1
- package/dist/esm/client/urlTokenBaseHTTPClient.js +1 -0
- package/dist/esm/client/urlTokenBaseHTTPClient.js.map +1 -1
- package/dist/esm/client/v2/algod/algod.js +32 -0
- package/dist/esm/client/v2/algod/algod.js.map +1 -1
- package/dist/esm/client/v2/algod/compile.js +1 -0
- package/dist/esm/client/v2/algod/compile.js.map +1 -1
- package/dist/esm/client/v2/algod/disassemble.js +38 -0
- package/dist/esm/client/v2/algod/disassemble.js.map +1 -0
- package/dist/esm/client/v2/algod/dryrun.js +1 -0
- package/dist/esm/client/v2/algod/dryrun.js.map +1 -1
- package/dist/esm/client/v2/algod/getApplicationBoxByName.js +1 -0
- package/dist/esm/client/v2/algod/getApplicationBoxByName.js.map +1 -1
- package/dist/esm/client/v2/algod/models/types.js +117 -0
- package/dist/esm/client/v2/algod/models/types.js.map +1 -1
- package/dist/esm/client/v2/algod/sendRawTransaction.js +1 -0
- package/dist/esm/client/v2/algod/sendRawTransaction.js.map +1 -1
- package/dist/esm/client/v2/algod/simulateTransaction.js +57 -0
- package/dist/esm/client/v2/algod/simulateTransaction.js.map +1 -0
- package/dist/esm/client/v2/basemodel.js +1 -0
- package/dist/esm/client/v2/basemodel.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAccountTransactions.js +1 -0
- package/dist/esm/client/v2/indexer/lookupAccountTransactions.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupApplicationBoxByIDandName.js +1 -0
- package/dist/esm/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +1 -1
- package/dist/esm/client/v2/indexer/models/types.js +1 -0
- package/dist/esm/client/v2/indexer/models/types.js.map +1 -1
- package/dist/esm/composer.js +75 -23
- package/dist/esm/composer.js.map +1 -1
- package/dist/esm/dryrun.js +1 -0
- package/dist/esm/dryrun.js.map +1 -1
- package/dist/esm/encoding/address.js +1 -0
- package/dist/esm/encoding/address.js.map +1 -1
- package/dist/esm/encoding/bigint.js +1 -0
- package/dist/esm/encoding/bigint.js.map +1 -1
- package/dist/esm/encoding/encoding.js +12 -2
- package/dist/esm/encoding/encoding.js.map +1 -1
- package/dist/esm/encoding/uint64.js +14 -8
- package/dist/esm/encoding/uint64.js.map +1 -1
- package/dist/esm/group.js +1 -0
- package/dist/esm/group.js.map +1 -1
- package/dist/esm/logicsig.js +13 -0
- package/dist/esm/logicsig.js.map +1 -1
- package/dist/esm/main.js +2 -1
- package/dist/esm/main.js.map +1 -1
- package/dist/esm/multisig.js +1 -0
- package/dist/esm/multisig.js.map +1 -1
- package/dist/esm/signer.js +15 -0
- package/dist/esm/signer.js.map +1 -1
- package/dist/esm/transaction.js +16 -0
- package/dist/esm/transaction.js.map +1 -1
- package/dist/esm/types/transactions/encoded.js +0 -3
- package/dist/esm/types/transactions/encoded.js.map +1 -1
- package/dist/esm/utils/utils.js +5 -1
- package/dist/esm/utils/utils.js.map +1 -1
- package/dist/types/client/v2/algod/algod.d.ts +28 -0
- package/dist/types/client/v2/algod/disassemble.d.ts +20 -0
- package/dist/types/client/v2/algod/models/types.d.ts +103 -0
- package/dist/types/client/v2/algod/simulateTransaction.d.ts +19 -0
- package/dist/types/client/v2/basemodel.d.ts +0 -3
- package/dist/types/composer.d.ts +35 -2
- package/dist/types/encoding/encoding.d.ts +7 -0
- package/dist/types/logicsig.d.ts +8 -0
- package/dist/types/main.d.ts +1 -1
- package/dist/types/signer.d.ts +5 -0
- package/dist/types/transaction.d.ts +9 -0
- package/dist/types/types/transactions/builder.d.ts +1 -1
- package/dist/types/types/transactions/encoded.d.ts +1 -1
- package/dist/types/types/utils.d.ts +1 -1
- package/package.json +2 -3
- package/src/abi/abi_type.ts +1 -0
- package/src/bid.ts +1 -0
- package/src/client/client.ts +1 -0
- package/src/client/kmd.ts +1 -0
- package/src/client/urlTokenBaseHTTPClient.ts +1 -0
- package/src/client/v2/algod/algod.ts +34 -0
- package/src/client/v2/algod/compile.ts +1 -0
- package/src/client/v2/algod/disassemble.ts +46 -0
- package/src/client/v2/algod/dryrun.ts +1 -0
- package/src/client/v2/algod/getApplicationBoxByName.ts +1 -0
- package/src/client/v2/algod/models/types.ts +223 -0
- package/src/client/v2/algod/sendRawTransaction.ts +1 -0
- package/src/client/v2/algod/simulateTransaction.ts +74 -0
- package/src/client/v2/basemodel.ts +2 -0
- package/src/client/v2/indexer/lookupAccountTransactions.ts +1 -0
- package/src/client/v2/indexer/lookupApplicationBoxByIDandName.ts +1 -0
- package/src/client/v2/indexer/models/types.ts +1 -0
- package/src/composer.ts +130 -34
- package/src/dryrun.ts +1 -0
- package/src/encoding/address.ts +1 -0
- package/src/encoding/bigint.ts +2 -0
- package/src/encoding/encoding.ts +13 -2
- package/src/encoding/uint64.ts +16 -10
- package/src/group.ts +1 -0
- package/src/logicsig.ts +24 -0
- package/src/main.ts +2 -0
- package/src/multisig.ts +1 -0
- package/src/signer.ts +18 -1
- package/src/transaction.ts +19 -0
- package/src/types/transactions/builder.ts +4 -4
- package/src/types/transactions/encoded.ts +2 -0
- package/src/types/utils.ts +1 -1
- package/src/utils/utils.ts +3 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.setSimulateTransactionsHeaders = void 0;
|
|
30
|
+
const buffer_1 = require("buffer");
|
|
31
|
+
const encoding = __importStar(require("../../../encoding/encoding"));
|
|
32
|
+
const utils_1 = require("../../../utils/utils");
|
|
33
|
+
const jsonrequest_1 = __importDefault(require("../jsonrequest"));
|
|
34
|
+
const types_1 = require("./models/types");
|
|
35
|
+
/**
|
|
36
|
+
* Sets the default header (if not previously set) for simulating a raw
|
|
37
|
+
* transaction.
|
|
38
|
+
* @param headers - A headers object
|
|
39
|
+
*/
|
|
40
|
+
function setSimulateTransactionsHeaders(headers = {}) {
|
|
41
|
+
let hdrs = headers;
|
|
42
|
+
if (Object.keys(hdrs).every((key) => key.toLowerCase() !== 'content-type')) {
|
|
43
|
+
hdrs = { ...headers };
|
|
44
|
+
hdrs['Content-Type'] = 'application/x-binary';
|
|
45
|
+
}
|
|
46
|
+
return hdrs;
|
|
47
|
+
}
|
|
48
|
+
exports.setSimulateTransactionsHeaders = setSimulateTransactionsHeaders;
|
|
49
|
+
function isByteArray(array) {
|
|
50
|
+
return array && array.byteLength !== undefined;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Simulates signed txns.
|
|
54
|
+
*/
|
|
55
|
+
class SimulateRawTransactions extends jsonrequest_1.default {
|
|
56
|
+
constructor(c, stxOrStxs) {
|
|
57
|
+
super(c);
|
|
58
|
+
this.query.format = 'msgpack';
|
|
59
|
+
let forPosting = stxOrStxs;
|
|
60
|
+
if (Array.isArray(stxOrStxs)) {
|
|
61
|
+
if (!stxOrStxs.every(isByteArray)) {
|
|
62
|
+
throw new TypeError('Array elements must be byte arrays');
|
|
63
|
+
}
|
|
64
|
+
// Flatten into a single Uint8Array
|
|
65
|
+
forPosting = (0, utils_1.concatArrays)(...stxOrStxs);
|
|
66
|
+
}
|
|
67
|
+
else if (!isByteArray(forPosting)) {
|
|
68
|
+
throw new TypeError('Argument must be byte array');
|
|
69
|
+
}
|
|
70
|
+
this.txnBytesToPost = forPosting;
|
|
71
|
+
}
|
|
72
|
+
// eslint-disable-next-line class-methods-use-this
|
|
73
|
+
path() {
|
|
74
|
+
return '/v2/transactions/simulate';
|
|
75
|
+
}
|
|
76
|
+
async do(headers = {}) {
|
|
77
|
+
const txHeaders = setSimulateTransactionsHeaders(headers);
|
|
78
|
+
const res = await this.c.post(this.path(), buffer_1.Buffer.from(this.txnBytesToPost), txHeaders, this.query, false);
|
|
79
|
+
return this.prepare(res.body);
|
|
80
|
+
}
|
|
81
|
+
// eslint-disable-next-line class-methods-use-this
|
|
82
|
+
prepare(body) {
|
|
83
|
+
const decoded = encoding.decode(body);
|
|
84
|
+
return types_1.SimulateResponse.from_obj_for_encoding(decoded);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.default = SimulateRawTransactions;
|
|
88
|
+
//# sourceMappingURL=simulateTransaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simulateTransaction.js","sourceRoot":"","sources":["../../../../../src/client/v2/algod/simulateTransaction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAgC;AAChC,qEAAuD;AACvD,gDAAoD;AAEpD,iEAAyC;AACzC,0CAAkD;AAElD;;;;GAIG;AACH,SAAgB,8BAA8B,CAAC,OAAO,GAAG,EAAE;IACzD,IAAI,IAAI,GAAG,OAAO,CAAC;IACnB,IAAI,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AAI,CAC3B,IAAI,CAAC,IAAI,EAAE,EACX,eAAM,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,EAChC,SAAS,EACT,IAAI,CAAC,KAAK,EACV,KAAK,CACN,CAAC;QACF,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;IAED,kDAAkD;IAClD,OAAO,CAAC,IAAgB;QACtB,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACtC,OAAO,wBAAgB,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;IACzD,CAAC;CACF;AA7CD,0CA6CC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const buffer_1 = require("buffer");
|
|
2
4
|
/**
|
|
3
5
|
* Base class for models
|
|
4
6
|
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
7
|
/* eslint-disable no-underscore-dangle,camelcase */
|
|
7
8
|
function _is_primitive(val) {
|
|
8
9
|
/* eslint-enable no-underscore-dangle,camelcase */
|
|
@@ -14,7 +15,7 @@ function _get_obj_for_encoding(val, binary) {
|
|
|
14
15
|
/* eslint-enable no-underscore-dangle,camelcase,no-redeclare,no-unused-vars */
|
|
15
16
|
let targetPropValue;
|
|
16
17
|
if (val instanceof Uint8Array) {
|
|
17
|
-
targetPropValue = binary ? val : Buffer.from(val).toString('base64');
|
|
18
|
+
targetPropValue = binary ? val : buffer_1.Buffer.from(val).toString('base64');
|
|
18
19
|
}
|
|
19
20
|
else if (typeof val.get_obj_for_encoding === 'function') {
|
|
20
21
|
targetPropValue = val.get_obj_for_encoding(binary);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basemodel.js","sourceRoot":"","sources":["../../../../src/client/v2/basemodel.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file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Aa,CAAC,GAAG,CAAC,EAAE;QAC7B,eAAe,GAAG,GAAG,CAAC;KACvB;SAAM;QACL,MAAM,IAAI,KAAK,CAAC,sBAAsB,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;KACtD;IACD,OAAO,eAAe,CAAC;AACzB,CAAC;AAED,MAAqB,SAAS;IAI5B;;;;;;OAMG;IACH,oBAAoB,CAAC,MAAM,GAAG,KAAK;QACjC,kDAAkD;QAClD,MAAM,GAAG,GAAwB,EAAE,CAAC;QAEpC,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE;YAClD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;YACtC,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;YAEzB,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE;gBAChC,GAAG,CAAC,IAAI,CAAC;oBACP,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,qBAAqB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;aAChE;SACF;QAED,OAAO,GAAG,CAAC;IACb,CAAC;CACF;AA3BD,4BA2BC"}
|
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.base64StringFunnel = void 0;
|
|
7
|
+
const buffer_1 = require("buffer");
|
|
7
8
|
const jsonrequest_1 = __importDefault(require("../jsonrequest"));
|
|
8
9
|
/**
|
|
9
10
|
* Accept base64 string or Uint8Array and output base64 string
|
|
@@ -14,7 +15,7 @@ function base64StringFunnel(data) {
|
|
|
14
15
|
if (typeof data === 'string') {
|
|
15
16
|
return data;
|
|
16
17
|
}
|
|
17
|
-
return Buffer.from(data).toString('base64');
|
|
18
|
+
return buffer_1.Buffer.from(data).toString('base64');
|
|
18
19
|
}
|
|
19
20
|
exports.base64StringFunnel = base64StringFunnel;
|
|
20
21
|
class LookupAccountTransactions extends jsonrequest_1.default {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lookupAccountTransactions.js","sourceRoot":"","sources":["../../../../../src/client/v2/indexer/lookupAccountTransactions.ts"],"names":[],"mappings":";;;;;;AAAA,iEAAyC;AAIzC;;;;GAIG;AACH,SAAgB,kBAAkB,CAAC,IAAyB;IAC1D,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,OAAO,IAAI,CAAC;KACb;IACD,OAAO,
|
|
1
|
+
{"version":3,"file":"lookupAccountTransactions.js","sourceRoot":"","sources":["../../../../../src/client/v2/indexer/lookupAccountTransactions.ts"],"names":[],"mappings":";;;;;;AAAA,mCAAgC;AAChC,iEAAyC;AAIzC;;;;GAIG;AACH,SAAgB,kBAAkB,CAAC,IAAyB;IAC1D,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,OAAO,IAAI,CAAC;KACb;IACD,OAAO,eAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAC9C,CAAC;AALD,gDAKC;AAED,MAAqB,yBAA0B,SAAQ,qBAAW;IAChE;;;;;;;;;;;OAWG;IACH,YACE,CAAa,EACb,WAAwB,EAChB,OAAe;QAEvB,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;QAFd,YAAO,GAAP,OAAO,CAAQ;QAGvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,IAAI;QACF,OAAO,gBAAgB,IAAI,CAAC,OAAO,eAAe,CAAC;IACrD,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,UAAU,CAAC,MAA2B;QACpC,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;QACvD,OAAO,IAAI,CAAC;IACd,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K,CAAC,aAAa,CAAC,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,SAAS,CAAC,KAAa;QACrB,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,mBAAmB,CAAC,OAAe;QACjC,IAAI,CAAC,KAAK,CAAC,uBAAuB,CAAC,GAAG,OAAO,CAAC;QAC9C,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,gBAAgB,CAAC,MAAc;QAC7B,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,GAAG,MAAM,CAAC;QAC1C,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,SAAS,CAAC,SAAiB;QACzB,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,SAAS,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,OAAgB;QACtB,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,OAAO,CAAC;QACjC,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAxXD,4CAwXC"}
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const buffer_1 = require("buffer");
|
|
6
7
|
const jsonrequest_1 = __importDefault(require("../jsonrequest"));
|
|
7
8
|
const types_1 = require("./models/types");
|
|
8
9
|
class LookupApplicationBoxByIDandName extends jsonrequest_1.default {
|
|
@@ -27,7 +28,7 @@ class LookupApplicationBoxByIDandName extends jsonrequest_1.default {
|
|
|
27
28
|
this.index = index;
|
|
28
29
|
this.index = index;
|
|
29
30
|
// Encode query in base64 format and append the encoding prefix.
|
|
30
|
-
const encodedName = Buffer.from(boxName).toString('base64');
|
|
31
|
+
const encodedName = buffer_1.Buffer.from(boxName).toString('base64');
|
|
31
32
|
this.query.name = encodeURI(`b64:${encodedName}`);
|
|
32
33
|
}
|
|
33
34
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lookupApplicationBoxByIDandName.js","sourceRoot":"","sources":["../../../../../src/client/v2/indexer/lookupApplicationBoxByIDandName.ts"],"names":[],"mappings":";;;;;AAAA,iEAAyC;AAGzC,0CAAqC;AAErC,MAAqB,+BAAgC,SAAQ,qBAG5D;IACC;;;;;;;;;;;;;;;OAeG;IACH,YACE,CAAa,EACb,WAAwB,EAChB,KAAa,EACrB,OAAmB;QAEnB,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;QAHd,UAAK,GAAL,KAAK,CAAQ;QAIrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,gEAAgE;QAChE,MAAM,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"lookupApplicationBoxByIDandName.js","sourceRoot":"","sources":["../../../../../src/client/v2/indexer/lookupApplicationBoxByIDandName.ts"],"names":[],"mappings":";;;;;AAAA,mCAAgC;AAChC,iEAAyC;AAGzC,0CAAqC;AAErC,MAAqB,+BAAgC,SAAQ,qBAG5D;IACC;;;;;;;;;;;;;;;OAeG;IACH,YACE,CAAa,EACb,WAAwB,EAChB,KAAa,EACrB,OAAmB;QAEnB,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;QAHd,UAAK,GAAL,KAAK,CAAQ;QAIrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,gEAAgE;QAChE,MAAM,WAAW,GAAG,eAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC5D,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,SAAS,CAAC,OAAO,WAAW,EAAE,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACH,IAAI;QACF,OAAO,oBAAoB,IAAI,CAAC,KAAK,MAAM,CAAC;IAC9C,CAAC;IAED,kDAAkD;IAClD,OAAO,CAAC,IAAyB;QAC/B,OAAO,WAAG,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;CACF;AA5CD,kDA4CC"}
|
|
@@ -9,6 +9,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.TransactionAssetConfig = exports.TransactionApplication = exports.Transaction = exports.TealValue = exports.TealKeyValue = exports.StateSchema = exports.StateProofVerifier = exports.StateProofTracking = exports.StateProofSignature = exports.StateProofSigSlot = exports.StateProofReveal = exports.StateProofParticipant = exports.StateProofFields = exports.ParticipationUpdates = exports.MiniAssetHolding = exports.MerkleArrayProof = exports.IndexerStateProofMessage = exports.HealthCheck = exports.HashFactory = exports.EvalDeltaKeyValue = exports.EvalDelta = exports.ErrorResponse = exports.BoxesResponse = exports.BoxDescriptor = exports.Box = exports.BlockUpgradeVote = exports.BlockUpgradeState = exports.BlockRewards = exports.Block = exports.AssetsResponse = exports.AssetResponse = exports.AssetParams = exports.AssetHoldingsResponse = exports.AssetHolding = exports.AssetBalancesResponse = exports.Asset = exports.ApplicationsResponse = exports.ApplicationStateSchema = exports.ApplicationResponse = exports.ApplicationParams = exports.ApplicationLogsResponse = exports.ApplicationLogData = exports.ApplicationLocalStatesResponse = exports.ApplicationLocalState = exports.Application = exports.AccountsResponse = exports.AccountStateDelta = exports.AccountResponse = exports.AccountParticipation = exports.Account = void 0;
|
|
10
10
|
exports.TransactionsResponse = exports.TransactionStateProof = exports.TransactionSignatureMultisigSubsignature = exports.TransactionSignatureMultisig = exports.TransactionSignatureLogicsig = exports.TransactionSignature = exports.TransactionResponse = exports.TransactionPayment = exports.TransactionKeyreg = exports.TransactionAssetTransfer = exports.TransactionAssetFreeze = void 0;
|
|
11
11
|
/* eslint-disable no-use-before-define */
|
|
12
|
+
const buffer_1 = require("buffer");
|
|
12
13
|
const basemodel_1 = __importDefault(require("../../basemodel"));
|
|
13
14
|
/**
|
|
14
15
|
* Account information at a given round.
|
|
@@ -219,18 +220,18 @@ class AccountParticipation extends basemodel_1.default {
|
|
|
219
220
|
super();
|
|
220
221
|
this.selectionParticipationKey =
|
|
221
222
|
typeof selectionParticipationKey === 'string'
|
|
222
|
-
? new Uint8Array(Buffer.from(selectionParticipationKey, 'base64'))
|
|
223
|
+
? new Uint8Array(buffer_1.Buffer.from(selectionParticipationKey, 'base64'))
|
|
223
224
|
: selectionParticipationKey;
|
|
224
225
|
this.voteFirstValid = voteFirstValid;
|
|
225
226
|
this.voteKeyDilution = voteKeyDilution;
|
|
226
227
|
this.voteLastValid = voteLastValid;
|
|
227
228
|
this.voteParticipationKey =
|
|
228
229
|
typeof voteParticipationKey === 'string'
|
|
229
|
-
? new Uint8Array(Buffer.from(voteParticipationKey, 'base64'))
|
|
230
|
+
? new Uint8Array(buffer_1.Buffer.from(voteParticipationKey, 'base64'))
|
|
230
231
|
: voteParticipationKey;
|
|
231
232
|
this.stateProofKey =
|
|
232
233
|
typeof stateProofKey === 'string'
|
|
233
|
-
? new Uint8Array(Buffer.from(stateProofKey, 'base64'))
|
|
234
|
+
? new Uint8Array(buffer_1.Buffer.from(stateProofKey, 'base64'))
|
|
234
235
|
: stateProofKey;
|
|
235
236
|
this.attribute_map = {
|
|
236
237
|
selectionParticipationKey: 'selection-participation-key',
|
|
@@ -603,11 +604,11 @@ class ApplicationParams extends basemodel_1.default {
|
|
|
603
604
|
super();
|
|
604
605
|
this.approvalProgram =
|
|
605
606
|
typeof approvalProgram === 'string'
|
|
606
|
-
? new Uint8Array(Buffer.from(approvalProgram, 'base64'))
|
|
607
|
+
? new Uint8Array(buffer_1.Buffer.from(approvalProgram, 'base64'))
|
|
607
608
|
: approvalProgram;
|
|
608
609
|
this.clearStateProgram =
|
|
609
610
|
typeof clearStateProgram === 'string'
|
|
610
|
-
? new Uint8Array(Buffer.from(clearStateProgram, 'base64'))
|
|
611
|
+
? new Uint8Array(buffer_1.Buffer.from(clearStateProgram, 'base64'))
|
|
611
612
|
: clearStateProgram;
|
|
612
613
|
this.creator = creator;
|
|
613
614
|
this.extraProgramPages = extraProgramPages;
|
|
@@ -978,23 +979,23 @@ class AssetParams extends basemodel_1.default {
|
|
|
978
979
|
this.manager = manager;
|
|
979
980
|
this.metadataHash =
|
|
980
981
|
typeof metadataHash === 'string'
|
|
981
|
-
? new Uint8Array(Buffer.from(metadataHash, 'base64'))
|
|
982
|
+
? new Uint8Array(buffer_1.Buffer.from(metadataHash, 'base64'))
|
|
982
983
|
: metadataHash;
|
|
983
984
|
this.name = name;
|
|
984
985
|
this.nameB64 =
|
|
985
986
|
typeof nameB64 === 'string'
|
|
986
|
-
? new Uint8Array(Buffer.from(nameB64, 'base64'))
|
|
987
|
+
? new Uint8Array(buffer_1.Buffer.from(nameB64, 'base64'))
|
|
987
988
|
: nameB64;
|
|
988
989
|
this.reserve = reserve;
|
|
989
990
|
this.unitName = unitName;
|
|
990
991
|
this.unitNameB64 =
|
|
991
992
|
typeof unitNameB64 === 'string'
|
|
992
|
-
? new Uint8Array(Buffer.from(unitNameB64, 'base64'))
|
|
993
|
+
? new Uint8Array(buffer_1.Buffer.from(unitNameB64, 'base64'))
|
|
993
994
|
: unitNameB64;
|
|
994
995
|
this.url = url;
|
|
995
996
|
this.urlB64 =
|
|
996
997
|
typeof urlB64 === 'string'
|
|
997
|
-
? new Uint8Array(Buffer.from(urlB64, 'base64'))
|
|
998
|
+
? new Uint8Array(buffer_1.Buffer.from(urlB64, 'base64'))
|
|
998
999
|
: urlB64;
|
|
999
1000
|
this.attribute_map = {
|
|
1000
1001
|
creator: 'creator',
|
|
@@ -1155,26 +1156,26 @@ class Block extends basemodel_1.default {
|
|
|
1155
1156
|
super();
|
|
1156
1157
|
this.genesisHash =
|
|
1157
1158
|
typeof genesisHash === 'string'
|
|
1158
|
-
? new Uint8Array(Buffer.from(genesisHash, 'base64'))
|
|
1159
|
+
? new Uint8Array(buffer_1.Buffer.from(genesisHash, 'base64'))
|
|
1159
1160
|
: genesisHash;
|
|
1160
1161
|
this.genesisId = genesisId;
|
|
1161
1162
|
this.previousBlockHash =
|
|
1162
1163
|
typeof previousBlockHash === 'string'
|
|
1163
|
-
? new Uint8Array(Buffer.from(previousBlockHash, 'base64'))
|
|
1164
|
+
? new Uint8Array(buffer_1.Buffer.from(previousBlockHash, 'base64'))
|
|
1164
1165
|
: previousBlockHash;
|
|
1165
1166
|
this.round = round;
|
|
1166
1167
|
this.seed =
|
|
1167
1168
|
typeof seed === 'string'
|
|
1168
|
-
? new Uint8Array(Buffer.from(seed, 'base64'))
|
|
1169
|
+
? new Uint8Array(buffer_1.Buffer.from(seed, 'base64'))
|
|
1169
1170
|
: seed;
|
|
1170
1171
|
this.timestamp = timestamp;
|
|
1171
1172
|
this.transactionsRoot =
|
|
1172
1173
|
typeof transactionsRoot === 'string'
|
|
1173
|
-
? new Uint8Array(Buffer.from(transactionsRoot, 'base64'))
|
|
1174
|
+
? new Uint8Array(buffer_1.Buffer.from(transactionsRoot, 'base64'))
|
|
1174
1175
|
: transactionsRoot;
|
|
1175
1176
|
this.transactionsRootSha256 =
|
|
1176
1177
|
typeof transactionsRootSha256 === 'string'
|
|
1177
|
-
? new Uint8Array(Buffer.from(transactionsRootSha256, 'base64'))
|
|
1178
|
+
? new Uint8Array(buffer_1.Buffer.from(transactionsRootSha256, 'base64'))
|
|
1178
1179
|
: transactionsRootSha256;
|
|
1179
1180
|
this.participationUpdates = participationUpdates;
|
|
1180
1181
|
this.rewards = rewards;
|
|
@@ -1405,11 +1406,11 @@ class Box extends basemodel_1.default {
|
|
|
1405
1406
|
super();
|
|
1406
1407
|
this.name =
|
|
1407
1408
|
typeof name === 'string'
|
|
1408
|
-
? new Uint8Array(Buffer.from(name, 'base64'))
|
|
1409
|
+
? new Uint8Array(buffer_1.Buffer.from(name, 'base64'))
|
|
1409
1410
|
: name;
|
|
1410
1411
|
this.value =
|
|
1411
1412
|
typeof value === 'string'
|
|
1412
|
-
? new Uint8Array(Buffer.from(value, 'base64'))
|
|
1413
|
+
? new Uint8Array(buffer_1.Buffer.from(value, 'base64'))
|
|
1413
1414
|
: value;
|
|
1414
1415
|
this.attribute_map = {
|
|
1415
1416
|
name: 'name',
|
|
@@ -1443,7 +1444,7 @@ class BoxDescriptor extends basemodel_1.default {
|
|
|
1443
1444
|
super();
|
|
1444
1445
|
this.name =
|
|
1445
1446
|
typeof name === 'string'
|
|
1446
|
-
? new Uint8Array(Buffer.from(name, 'base64'))
|
|
1447
|
+
? new Uint8Array(buffer_1.Buffer.from(name, 'base64'))
|
|
1447
1448
|
: name;
|
|
1448
1449
|
this.attribute_map = {
|
|
1449
1450
|
name: 'name',
|
|
@@ -1692,14 +1693,14 @@ class IndexerStateProofMessage extends basemodel_1.default {
|
|
|
1692
1693
|
super();
|
|
1693
1694
|
this.blockHeadersCommitment =
|
|
1694
1695
|
typeof blockHeadersCommitment === 'string'
|
|
1695
|
-
? new Uint8Array(Buffer.from(blockHeadersCommitment, 'base64'))
|
|
1696
|
+
? new Uint8Array(buffer_1.Buffer.from(blockHeadersCommitment, 'base64'))
|
|
1696
1697
|
: blockHeadersCommitment;
|
|
1697
1698
|
this.firstAttestedRound = firstAttestedRound;
|
|
1698
1699
|
this.latestAttestedRound = latestAttestedRound;
|
|
1699
1700
|
this.lnProvenWeight = lnProvenWeight;
|
|
1700
1701
|
this.votersCommitment =
|
|
1701
1702
|
typeof votersCommitment === 'string'
|
|
1702
|
-
? new Uint8Array(Buffer.from(votersCommitment, 'base64'))
|
|
1703
|
+
? new Uint8Array(buffer_1.Buffer.from(votersCommitment, 'base64'))
|
|
1703
1704
|
: votersCommitment;
|
|
1704
1705
|
this.attribute_map = {
|
|
1705
1706
|
blockHeadersCommitment: 'block-headers-commitment',
|
|
@@ -1857,7 +1858,7 @@ class StateProofFields extends basemodel_1.default {
|
|
|
1857
1858
|
this.saltVersion = saltVersion;
|
|
1858
1859
|
this.sigCommit =
|
|
1859
1860
|
typeof sigCommit === 'string'
|
|
1860
|
-
? new Uint8Array(Buffer.from(sigCommit, 'base64'))
|
|
1861
|
+
? new Uint8Array(buffer_1.Buffer.from(sigCommit, 'base64'))
|
|
1861
1862
|
: sigCommit;
|
|
1862
1863
|
this.sigProofs = sigProofs;
|
|
1863
1864
|
this.signedWeight = signedWeight;
|
|
@@ -1996,13 +1997,13 @@ class StateProofSignature extends basemodel_1.default {
|
|
|
1996
1997
|
super();
|
|
1997
1998
|
this.falconSignature =
|
|
1998
1999
|
typeof falconSignature === 'string'
|
|
1999
|
-
? new Uint8Array(Buffer.from(falconSignature, 'base64'))
|
|
2000
|
+
? new Uint8Array(buffer_1.Buffer.from(falconSignature, 'base64'))
|
|
2000
2001
|
: falconSignature;
|
|
2001
2002
|
this.merkleArrayIndex = merkleArrayIndex;
|
|
2002
2003
|
this.proof = proof;
|
|
2003
2004
|
this.verifyingKey =
|
|
2004
2005
|
typeof verifyingKey === 'string'
|
|
2005
|
-
? new Uint8Array(Buffer.from(verifyingKey, 'base64'))
|
|
2006
|
+
? new Uint8Array(buffer_1.Buffer.from(verifyingKey, 'base64'))
|
|
2006
2007
|
: verifyingKey;
|
|
2007
2008
|
this.attribute_map = {
|
|
2008
2009
|
falconSignature: 'falcon-signature',
|
|
@@ -2043,7 +2044,7 @@ class StateProofTracking extends basemodel_1.default {
|
|
|
2043
2044
|
this.type = type;
|
|
2044
2045
|
this.votersCommitment =
|
|
2045
2046
|
typeof votersCommitment === 'string'
|
|
2046
|
-
? new Uint8Array(Buffer.from(votersCommitment, 'base64'))
|
|
2047
|
+
? new Uint8Array(buffer_1.Buffer.from(votersCommitment, 'base64'))
|
|
2047
2048
|
: votersCommitment;
|
|
2048
2049
|
this.attribute_map = {
|
|
2049
2050
|
nextRound: 'next-round',
|
|
@@ -2075,7 +2076,7 @@ class StateProofVerifier extends basemodel_1.default {
|
|
|
2075
2076
|
super();
|
|
2076
2077
|
this.commitment =
|
|
2077
2078
|
typeof commitment === 'string'
|
|
2078
|
-
? new Uint8Array(Buffer.from(commitment, 'base64'))
|
|
2079
|
+
? new Uint8Array(buffer_1.Buffer.from(commitment, 'base64'))
|
|
2079
2080
|
: commitment;
|
|
2080
2081
|
this.keyLifetime = keyLifetime;
|
|
2081
2082
|
this.attribute_map = {
|
|
@@ -2304,13 +2305,13 @@ class Transaction extends basemodel_1.default {
|
|
|
2304
2305
|
this.createdAssetIndex = createdAssetIndex;
|
|
2305
2306
|
this.genesisHash =
|
|
2306
2307
|
typeof genesisHash === 'string'
|
|
2307
|
-
? new Uint8Array(Buffer.from(genesisHash, 'base64'))
|
|
2308
|
+
? new Uint8Array(buffer_1.Buffer.from(genesisHash, 'base64'))
|
|
2308
2309
|
: genesisHash;
|
|
2309
2310
|
this.genesisId = genesisId;
|
|
2310
2311
|
this.globalStateDelta = globalStateDelta;
|
|
2311
2312
|
this.group =
|
|
2312
2313
|
typeof group === 'string'
|
|
2313
|
-
? new Uint8Array(Buffer.from(group, 'base64'))
|
|
2314
|
+
? new Uint8Array(buffer_1.Buffer.from(group, 'base64'))
|
|
2314
2315
|
: group;
|
|
2315
2316
|
this.id = id;
|
|
2316
2317
|
this.innerTxns = innerTxns;
|
|
@@ -2318,13 +2319,13 @@ class Transaction extends basemodel_1.default {
|
|
|
2318
2319
|
this.keyregTransaction = keyregTransaction;
|
|
2319
2320
|
this.lease =
|
|
2320
2321
|
typeof lease === 'string'
|
|
2321
|
-
? new Uint8Array(Buffer.from(lease, 'base64'))
|
|
2322
|
+
? new Uint8Array(buffer_1.Buffer.from(lease, 'base64'))
|
|
2322
2323
|
: lease;
|
|
2323
2324
|
this.localStateDelta = localStateDelta;
|
|
2324
2325
|
this.logs = logs;
|
|
2325
2326
|
this.note =
|
|
2326
2327
|
typeof note === 'string'
|
|
2327
|
-
? new Uint8Array(Buffer.from(note, 'base64'))
|
|
2328
|
+
? new Uint8Array(buffer_1.Buffer.from(note, 'base64'))
|
|
2328
2329
|
: note;
|
|
2329
2330
|
this.paymentTransaction = paymentTransaction;
|
|
2330
2331
|
this.receiverRewards = receiverRewards;
|
|
@@ -2496,11 +2497,11 @@ class TransactionApplication extends basemodel_1.default {
|
|
|
2496
2497
|
this.applicationArgs = applicationArgs;
|
|
2497
2498
|
this.approvalProgram =
|
|
2498
2499
|
typeof approvalProgram === 'string'
|
|
2499
|
-
? new Uint8Array(Buffer.from(approvalProgram, 'base64'))
|
|
2500
|
+
? new Uint8Array(buffer_1.Buffer.from(approvalProgram, 'base64'))
|
|
2500
2501
|
: approvalProgram;
|
|
2501
2502
|
this.clearStateProgram =
|
|
2502
2503
|
typeof clearStateProgram === 'string'
|
|
2503
|
-
? new Uint8Array(Buffer.from(clearStateProgram, 'base64'))
|
|
2504
|
+
? new Uint8Array(buffer_1.Buffer.from(clearStateProgram, 'base64'))
|
|
2504
2505
|
: clearStateProgram;
|
|
2505
2506
|
this.extraProgramPages = extraProgramPages;
|
|
2506
2507
|
this.foreignApps = foreignApps;
|
|
@@ -2707,18 +2708,18 @@ class TransactionKeyreg extends basemodel_1.default {
|
|
|
2707
2708
|
this.nonParticipation = nonParticipation;
|
|
2708
2709
|
this.selectionParticipationKey =
|
|
2709
2710
|
typeof selectionParticipationKey === 'string'
|
|
2710
|
-
? new Uint8Array(Buffer.from(selectionParticipationKey, 'base64'))
|
|
2711
|
+
? new Uint8Array(buffer_1.Buffer.from(selectionParticipationKey, 'base64'))
|
|
2711
2712
|
: selectionParticipationKey;
|
|
2712
2713
|
this.stateProofKey =
|
|
2713
2714
|
typeof stateProofKey === 'string'
|
|
2714
|
-
? new Uint8Array(Buffer.from(stateProofKey, 'base64'))
|
|
2715
|
+
? new Uint8Array(buffer_1.Buffer.from(stateProofKey, 'base64'))
|
|
2715
2716
|
: stateProofKey;
|
|
2716
2717
|
this.voteFirstValid = voteFirstValid;
|
|
2717
2718
|
this.voteKeyDilution = voteKeyDilution;
|
|
2718
2719
|
this.voteLastValid = voteLastValid;
|
|
2719
2720
|
this.voteParticipationKey =
|
|
2720
2721
|
typeof voteParticipationKey === 'string'
|
|
2721
|
-
? new Uint8Array(Buffer.from(voteParticipationKey, 'base64'))
|
|
2722
|
+
? new Uint8Array(buffer_1.Buffer.from(voteParticipationKey, 'base64'))
|
|
2722
2723
|
: voteParticipationKey;
|
|
2723
2724
|
this.attribute_map = {
|
|
2724
2725
|
nonParticipation: 'non-participation',
|
|
@@ -2849,7 +2850,7 @@ class TransactionSignature extends basemodel_1.default {
|
|
|
2849
2850
|
this.multisig = multisig;
|
|
2850
2851
|
this.sig =
|
|
2851
2852
|
typeof sig === 'string'
|
|
2852
|
-
? new Uint8Array(Buffer.from(sig, 'base64'))
|
|
2853
|
+
? new Uint8Array(buffer_1.Buffer.from(sig, 'base64'))
|
|
2853
2854
|
: sig;
|
|
2854
2855
|
this.attribute_map = {
|
|
2855
2856
|
logicsig: 'logicsig',
|
|
@@ -2893,13 +2894,13 @@ class TransactionSignatureLogicsig extends basemodel_1.default {
|
|
|
2893
2894
|
super();
|
|
2894
2895
|
this.logic =
|
|
2895
2896
|
typeof logic === 'string'
|
|
2896
|
-
? new Uint8Array(Buffer.from(logic, 'base64'))
|
|
2897
|
+
? new Uint8Array(buffer_1.Buffer.from(logic, 'base64'))
|
|
2897
2898
|
: logic;
|
|
2898
2899
|
this.args = args;
|
|
2899
2900
|
this.multisigSignature = multisigSignature;
|
|
2900
2901
|
this.signature =
|
|
2901
2902
|
typeof signature === 'string'
|
|
2902
|
-
? new Uint8Array(Buffer.from(signature, 'base64'))
|
|
2903
|
+
? new Uint8Array(buffer_1.Buffer.from(signature, 'base64'))
|
|
2903
2904
|
: signature;
|
|
2904
2905
|
this.attribute_map = {
|
|
2905
2906
|
logic: 'logic',
|
|
@@ -2972,11 +2973,11 @@ class TransactionSignatureMultisigSubsignature extends basemodel_1.default {
|
|
|
2972
2973
|
super();
|
|
2973
2974
|
this.publicKey =
|
|
2974
2975
|
typeof publicKey === 'string'
|
|
2975
|
-
? new Uint8Array(Buffer.from(publicKey, 'base64'))
|
|
2976
|
+
? new Uint8Array(buffer_1.Buffer.from(publicKey, 'base64'))
|
|
2976
2977
|
: publicKey;
|
|
2977
2978
|
this.signature =
|
|
2978
2979
|
typeof signature === 'string'
|
|
2979
|
-
? new Uint8Array(Buffer.from(signature, 'base64'))
|
|
2980
|
+
? new Uint8Array(buffer_1.Buffer.from(signature, 'base64'))
|
|
2980
2981
|
: signature;
|
|
2981
2982
|
this.attribute_map = {
|
|
2982
2983
|
publicKey: 'public-key',
|