@aeternity/aepp-sdk 12.1.0 → 12.1.3
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 -13
- package/dist/aepp-sdk.js.map +1 -1
- package/es/contract/aci.mjs +0 -1
- package/es/contract/aci.mjs.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 +3 -3
- package/src/contract/aci.ts +0 -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
|
|
@@ -7884,7 +7885,6 @@ var aepp_calldata_ = __webpack_require__(7946);
|
|
|
7884
7885
|
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
7885
7886
|
* PERFORMANCE OF THIS SOFTWARE.
|
|
7886
7887
|
*/
|
|
7887
|
-
// @ts-expect-error TODO remove
|
|
7888
7888
|
|
|
7889
7889
|
|
|
7890
7890
|
|
|
@@ -8899,7 +8899,7 @@ async function createMetaTx(rawTransaction, authData, authFnName, _ref2) {
|
|
|
8899
8899
|
...options
|
|
8900
8900
|
} = _ref2;
|
|
8901
8901
|
|
|
8902
|
-
const wrapInEmptySignedTx = tx =>
|
|
8902
|
+
const wrapInEmptySignedTx = tx => buildTx({
|
|
8903
8903
|
encodedTx: tx,
|
|
8904
8904
|
signatures: []
|
|
8905
8905
|
}, Tag.SignedTx);
|
|
@@ -8945,7 +8945,7 @@ async function createMetaTx(rawTransaction, authData, authFnName, _ref2) {
|
|
|
8945
8945
|
});
|
|
8946
8946
|
const {
|
|
8947
8947
|
rlpEncoded: metaTxRlp
|
|
8948
|
-
} =
|
|
8948
|
+
} = buildTx({ ...params,
|
|
8949
8949
|
fee
|
|
8950
8950
|
}, Tag.GaMetaTx);
|
|
8951
8951
|
return wrapInEmptySignedTx(metaTxRlp).tx;
|
|
@@ -9037,9 +9037,9 @@ function deprecated_calculateMinFee(txType, _ref) {
|
|
|
9037
9037
|
vsn,
|
|
9038
9038
|
denomination
|
|
9039
9039
|
} = _ref;
|
|
9040
|
-
return
|
|
9041
|
-
|
|
9042
|
-
fee
|
|
9040
|
+
return calculateMinFee(txType, fee => // @ts-expect-error anyway this planned to be removed
|
|
9041
|
+
buildTx({ ...params,
|
|
9042
|
+
_computingMinFee: fee
|
|
9043
9043
|
}, txType, {
|
|
9044
9044
|
vsn,
|
|
9045
9045
|
denomination
|
|
@@ -14993,7 +14993,7 @@ class AccountBase {
|
|
|
14993
14993
|
const rlpBinaryTx = decode(tx);
|
|
14994
14994
|
const txWithNetworkId = concatBuffers([Buffer.from(prefixes.join('-')), hash(rlpBinaryTx)]);
|
|
14995
14995
|
const signatures = [await this.sign(txWithNetworkId, options)];
|
|
14996
|
-
return
|
|
14996
|
+
return buildTx({
|
|
14997
14997
|
encodedTx: rlpBinaryTx,
|
|
14998
14998
|
signatures
|
|
14999
14999
|
}, Tag.SignedTx).tx;
|
|
@@ -18255,7 +18255,7 @@ async function appendSignature(tx, signFn) {
|
|
|
18255
18255
|
const {
|
|
18256
18256
|
tx: signedTx
|
|
18257
18257
|
} = unpackTx(result, Tag.SignedTx);
|
|
18258
|
-
return
|
|
18258
|
+
return buildTx({
|
|
18259
18259
|
signatures: signatures.concat(signedTx.signatures),
|
|
18260
18260
|
encodedTx: signedTx.encodedTx.rlpEncoded
|
|
18261
18261
|
}, Tag.SignedTx).tx;
|
|
@@ -20326,7 +20326,7 @@ class channel_Channel {
|
|
|
20326
20326
|
sign
|
|
20327
20327
|
} = options;
|
|
20328
20328
|
return channel_Channel.initialize({ ...options,
|
|
20329
|
-
reconnectTx: await sign('reconnect',
|
|
20329
|
+
reconnectTx: await sign('reconnect', buildTx(txParams, Tag.ChannelClientReconnectTx).tx)
|
|
20330
20330
|
});
|
|
20331
20331
|
}
|
|
20332
20332
|
|