@aeternity/aepp-sdk 12.1.0 → 12.1.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/aepp-sdk.browser-script.js +1 -1
- package/dist/aepp-sdk.browser-script.js.map +1 -1
- package/dist/aepp-sdk.browser.js +1 -1
- package/dist/aepp-sdk.browser.js.map +1 -1
- package/dist/aepp-sdk.js +13 -12
- package/dist/aepp-sdk.js.map +1 -1
- package/es/deprecated/index.d.ts +1 -1
- package/es/deprecated/index.mjs +4 -4
- package/es/deprecated/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/deprecated/index.ts +5 -3
package/dist/aepp-sdk.js
CHANGED
|
@@ -2732,9 +2732,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2732
2732
|
"buildContractId": () => (/* reexport */ buildContractId),
|
|
2733
2733
|
"buildContractIdByContractTx": () => (/* reexport */ buildContractIdByContractTx),
|
|
2734
2734
|
"buildPointers": () => (/* reexport */ buildPointers),
|
|
2735
|
-
"buildTx": () => (/* reexport */
|
|
2735
|
+
"buildTx": () => (/* reexport */ buildTx),
|
|
2736
2736
|
"buildTxHash": () => (/* reexport */ buildTxHash),
|
|
2737
2737
|
"bytesToHex": () => (/* reexport */ bytesToHex),
|
|
2738
|
+
"calculateMinFee": () => (/* reexport */ deprecated_calculateMinFee),
|
|
2738
2739
|
"commitmentHash": () => (/* reexport */ commitmentHash),
|
|
2739
2740
|
"computeAuctionEndBlock": () => (/* reexport */ computeAuctionEndBlock),
|
|
2740
2741
|
"computeBidFee": () => (/* reexport */ computeBidFee),
|
|
@@ -6040,7 +6041,7 @@ function unpackRawTx(binary, schema) {
|
|
|
6040
6041
|
* @returns object.rlpEncoded rlp encoded transaction
|
|
6041
6042
|
* @returns object.binary binary transaction
|
|
6042
6043
|
*/
|
|
6043
|
-
function
|
|
6044
|
+
function buildTx(_params, type) {
|
|
6044
6045
|
var _vsn;
|
|
6045
6046
|
|
|
6046
6047
|
let {
|
|
@@ -6074,7 +6075,7 @@ function builder_buildTx(_params, type) {
|
|
|
6074
6075
|
let [key, fieldType] = _ref8;
|
|
6075
6076
|
return serializeField(params[key], fieldType, { ...params,
|
|
6076
6077
|
txType: type,
|
|
6077
|
-
rebuildTx: overrideParams =>
|
|
6078
|
+
rebuildTx: overrideParams => buildTx({ ...params,
|
|
6078
6079
|
...overrideParams
|
|
6079
6080
|
}, type, {
|
|
6080
6081
|
excludeKeys,
|
|
@@ -7265,7 +7266,7 @@ async function _buildTx(txType, _ref3) {
|
|
|
7265
7266
|
senderId,
|
|
7266
7267
|
absoluteTtl
|
|
7267
7268
|
});
|
|
7268
|
-
return
|
|
7269
|
+
return buildTx({ ...params,
|
|
7269
7270
|
...extraParams
|
|
7270
7271
|
}, txType, {
|
|
7271
7272
|
denomination
|
|
@@ -8899,7 +8900,7 @@ async function createMetaTx(rawTransaction, authData, authFnName, _ref2) {
|
|
|
8899
8900
|
...options
|
|
8900
8901
|
} = _ref2;
|
|
8901
8902
|
|
|
8902
|
-
const wrapInEmptySignedTx = tx =>
|
|
8903
|
+
const wrapInEmptySignedTx = tx => buildTx({
|
|
8903
8904
|
encodedTx: tx,
|
|
8904
8905
|
signatures: []
|
|
8905
8906
|
}, Tag.SignedTx);
|
|
@@ -8945,7 +8946,7 @@ async function createMetaTx(rawTransaction, authData, authFnName, _ref2) {
|
|
|
8945
8946
|
});
|
|
8946
8947
|
const {
|
|
8947
8948
|
rlpEncoded: metaTxRlp
|
|
8948
|
-
} =
|
|
8949
|
+
} = buildTx({ ...params,
|
|
8949
8950
|
fee
|
|
8950
8951
|
}, Tag.GaMetaTx);
|
|
8951
8952
|
return wrapInEmptySignedTx(metaTxRlp).tx;
|
|
@@ -9037,9 +9038,9 @@ function deprecated_calculateMinFee(txType, _ref) {
|
|
|
9037
9038
|
vsn,
|
|
9038
9039
|
denomination
|
|
9039
9040
|
} = _ref;
|
|
9040
|
-
return
|
|
9041
|
-
|
|
9042
|
-
fee
|
|
9041
|
+
return calculateMinFee(txType, fee => // @ts-expect-error anyway this planned to be removed
|
|
9042
|
+
buildTx({ ...params,
|
|
9043
|
+
_computingMinFee: fee
|
|
9043
9044
|
}, txType, {
|
|
9044
9045
|
vsn,
|
|
9045
9046
|
denomination
|
|
@@ -14993,7 +14994,7 @@ class AccountBase {
|
|
|
14993
14994
|
const rlpBinaryTx = decode(tx);
|
|
14994
14995
|
const txWithNetworkId = concatBuffers([Buffer.from(prefixes.join('-')), hash(rlpBinaryTx)]);
|
|
14995
14996
|
const signatures = [await this.sign(txWithNetworkId, options)];
|
|
14996
|
-
return
|
|
14997
|
+
return buildTx({
|
|
14997
14998
|
encodedTx: rlpBinaryTx,
|
|
14998
14999
|
signatures
|
|
14999
15000
|
}, Tag.SignedTx).tx;
|
|
@@ -18255,7 +18256,7 @@ async function appendSignature(tx, signFn) {
|
|
|
18255
18256
|
const {
|
|
18256
18257
|
tx: signedTx
|
|
18257
18258
|
} = unpackTx(result, Tag.SignedTx);
|
|
18258
|
-
return
|
|
18259
|
+
return buildTx({
|
|
18259
18260
|
signatures: signatures.concat(signedTx.signatures),
|
|
18260
18261
|
encodedTx: signedTx.encodedTx.rlpEncoded
|
|
18261
18262
|
}, Tag.SignedTx).tx;
|
|
@@ -20326,7 +20327,7 @@ class channel_Channel {
|
|
|
20326
20327
|
sign
|
|
20327
20328
|
} = options;
|
|
20328
20329
|
return channel_Channel.initialize({ ...options,
|
|
20329
|
-
reconnectTx: await sign('reconnect',
|
|
20330
|
+
reconnectTx: await sign('reconnect', buildTx(txParams, Tag.ChannelClientReconnectTx).tx)
|
|
20330
20331
|
});
|
|
20331
20332
|
}
|
|
20332
20333
|
|