@fuel-ts/account 0.94.6 → 0.94.7
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/connectors/fuel-connector.d.ts +1 -0
- package/dist/connectors/fuel-connector.d.ts.map +1 -1
- package/dist/index.global.js +450 -381
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +28 -80
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -80
- package/dist/index.mjs.map +1 -1
- package/dist/providers/__generated__/operations.d.ts +1 -0
- package/dist/providers/__generated__/operations.d.ts.map +1 -1
- package/dist/providers/assets/assets.d.ts.map +1 -1
- package/dist/providers/transaction-summary/receipt.d.ts.map +1 -1
- package/dist/providers/utils/receipts.d.ts.map +1 -1
- package/dist/test-utils.global.js +449 -381
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +27 -80
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +27 -80
- package/dist/test-utils.mjs.map +1 -1
- package/package.json +23 -23
package/dist/test-utils.mjs
CHANGED
@@ -1796,6 +1796,7 @@ function assembleReceiptByType(receipt) {
|
|
1796
1796
|
len: bn4(receipt.len),
|
1797
1797
|
digest: hexOrZero(receipt.digest),
|
1798
1798
|
pc: bn4(receipt.pc),
|
1799
|
+
data: hexOrZero(receipt.data),
|
1799
1800
|
is: bn4(receipt.is)
|
1800
1801
|
};
|
1801
1802
|
return returnDataReceipt;
|
@@ -1844,6 +1845,7 @@ function assembleReceiptByType(receipt) {
|
|
1844
1845
|
len: bn4(receipt.len),
|
1845
1846
|
digest: hexOrZero(receipt.digest),
|
1846
1847
|
pc: bn4(receipt.pc),
|
1848
|
+
data: hexOrZero(receipt.data),
|
1847
1849
|
is: bn4(receipt.is)
|
1848
1850
|
};
|
1849
1851
|
return logDataReceipt;
|
@@ -1887,6 +1889,7 @@ function assembleReceiptByType(receipt) {
|
|
1887
1889
|
const amount = bn4(receipt.amount);
|
1888
1890
|
const data = receipt.data ? arrayify3(receipt.data) : Uint8Array.from([]);
|
1889
1891
|
const digest = hexOrZero(receipt.digest);
|
1892
|
+
const len = bn4(receipt.len).toNumber();
|
1890
1893
|
const messageId = InputMessageCoder.getMessageId({
|
1891
1894
|
sender,
|
1892
1895
|
recipient,
|
@@ -1900,6 +1903,7 @@ function assembleReceiptByType(receipt) {
|
|
1900
1903
|
recipient,
|
1901
1904
|
amount,
|
1902
1905
|
nonce,
|
1906
|
+
len,
|
1903
1907
|
data,
|
1904
1908
|
digest,
|
1905
1909
|
messageId
|
@@ -4116,25 +4120,7 @@ function getOperations({
|
|
4116
4120
|
|
4117
4121
|
// src/providers/transaction-summary/receipt.ts
|
4118
4122
|
import { ReceiptType as ReceiptType5 } from "@fuel-ts/transactions";
|
4119
|
-
var processGqlReceipt = (gqlReceipt) =>
|
4120
|
-
const receipt = assembleReceiptByType(gqlReceipt);
|
4121
|
-
switch (receipt.type) {
|
4122
|
-
case ReceiptType5.ReturnData: {
|
4123
|
-
return {
|
4124
|
-
...receipt,
|
4125
|
-
data: gqlReceipt.data || "0x"
|
4126
|
-
};
|
4127
|
-
}
|
4128
|
-
case ReceiptType5.LogData: {
|
4129
|
-
return {
|
4130
|
-
...receipt,
|
4131
|
-
data: gqlReceipt.data || "0x"
|
4132
|
-
};
|
4133
|
-
}
|
4134
|
-
default:
|
4135
|
-
return receipt;
|
4136
|
-
}
|
4137
|
-
};
|
4123
|
+
var processGqlReceipt = (gqlReceipt) => assembleReceiptByType(gqlReceipt);
|
4138
4124
|
var extractMintedAssetsFromReceipts = (receipts) => {
|
4139
4125
|
const mintedAssets = [];
|
4140
4126
|
receipts.forEach((receipt) => {
|
@@ -6155,7 +6141,7 @@ var rawAssets = [
|
|
6155
6141
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6156
6142
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6157
6143
|
assetId: "0xa38a5a8beeb08d95744bc7f58528073f4052b254def59eba20c99c202b5acaa3",
|
6158
|
-
decimals:
|
6144
|
+
decimals: 9
|
6159
6145
|
}
|
6160
6146
|
]
|
6161
6147
|
},
|
@@ -6175,7 +6161,7 @@ var rawAssets = [
|
|
6175
6161
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6176
6162
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6177
6163
|
assetId: "0x239ed6e12b7ce4089ee245244e3bf906999a6429c2a9a445a1e1faf56914a4ab",
|
6178
|
-
decimals:
|
6164
|
+
decimals: 9
|
6179
6165
|
}
|
6180
6166
|
]
|
6181
6167
|
},
|
@@ -6195,7 +6181,7 @@ var rawAssets = [
|
|
6195
6181
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6196
6182
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6197
6183
|
assetId: "0xbae80f7fb8aa6b90d9b01ef726ec847cc4f59419c4d5f2ea88fec785d1b0e849",
|
6198
|
-
decimals:
|
6184
|
+
decimals: 9
|
6199
6185
|
}
|
6200
6186
|
]
|
6201
6187
|
},
|
@@ -6215,7 +6201,7 @@ var rawAssets = [
|
|
6215
6201
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6216
6202
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6217
6203
|
assetId: "0xf3f9a0ed0ce8eac5f89d6b83e41b3848212d5b5f56108c54a205bb228ca30c16",
|
6218
|
-
decimals:
|
6204
|
+
decimals: 9
|
6219
6205
|
}
|
6220
6206
|
]
|
6221
6207
|
},
|
@@ -6235,7 +6221,7 @@ var rawAssets = [
|
|
6235
6221
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6236
6222
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6237
6223
|
assetId: "0x7843c74bef935e837f2bcf67b5d64ecb46dd53ff86375530b0caf3699e8ffafe",
|
6238
|
-
decimals:
|
6224
|
+
decimals: 9
|
6239
6225
|
}
|
6240
6226
|
]
|
6241
6227
|
},
|
@@ -6255,7 +6241,7 @@ var rawAssets = [
|
|
6255
6241
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6256
6242
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6257
6243
|
assetId: "0x962792286fbc9b1d5860b4551362a12249362c21594c77abf4b3fe2bbe8d977a",
|
6258
|
-
decimals:
|
6244
|
+
decimals: 9
|
6259
6245
|
}
|
6260
6246
|
]
|
6261
6247
|
},
|
@@ -6275,7 +6261,7 @@ var rawAssets = [
|
|
6275
6261
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6276
6262
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6277
6263
|
assetId: "0x05fc623e57bd7bc1258efa8e4f62b05af5471d73df6f2c2dc11ecc81134c4f36",
|
6278
|
-
decimals:
|
6264
|
+
decimals: 9
|
6279
6265
|
}
|
6280
6266
|
]
|
6281
6267
|
},
|
@@ -6295,7 +6281,7 @@ var rawAssets = [
|
|
6295
6281
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6296
6282
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6297
6283
|
assetId: "0xaf3111a248ff7a3238cdeea845bb2d43cf3835f1f6b8c9d28360728b55b9ce5b",
|
6298
|
-
decimals:
|
6284
|
+
decimals: 9
|
6299
6285
|
}
|
6300
6286
|
]
|
6301
6287
|
},
|
@@ -6315,7 +6301,7 @@ var rawAssets = [
|
|
6315
6301
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6316
6302
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6317
6303
|
assetId: "0xafd219f513317b1750783c6581f55530d6cf189a5863fd18bd1b3ffcec1714b4",
|
6318
|
-
decimals:
|
6304
|
+
decimals: 9
|
6319
6305
|
}
|
6320
6306
|
]
|
6321
6307
|
},
|
@@ -6335,7 +6321,7 @@ var rawAssets = [
|
|
6335
6321
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6336
6322
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6337
6323
|
assetId: "0x89cb9401e55d49c3269654dd1cdfb0e80e57823a4a7db98ba8fc5953b120fef4",
|
6338
|
-
decimals:
|
6324
|
+
decimals: 9
|
6339
6325
|
}
|
6340
6326
|
]
|
6341
6327
|
},
|
@@ -6395,7 +6381,7 @@ var rawAssets = [
|
|
6395
6381
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6396
6382
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6397
6383
|
assetId: "0x1186afea9affb88809c210e13e2330b5258c2cef04bb8fff5eff372b7bd3f40f",
|
6398
|
-
decimals:
|
6384
|
+
decimals: 9
|
6399
6385
|
}
|
6400
6386
|
]
|
6401
6387
|
},
|
@@ -6415,7 +6401,7 @@ var rawAssets = [
|
|
6415
6401
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6416
6402
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6417
6403
|
assetId: "0x7a4f087c957d30218223c2baaaa365355c9ca81b6ea49004cfb1590a5399216f",
|
6418
|
-
decimals:
|
6404
|
+
decimals: 9
|
6419
6405
|
}
|
6420
6406
|
]
|
6421
6407
|
},
|
@@ -6435,7 +6421,7 @@ var rawAssets = [
|
|
6435
6421
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6436
6422
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6437
6423
|
assetId: "0x642a5db59ec323c2f846d4d4cf3e58d78aff64accf4f8f6455ba0aa3ef000a3b",
|
6438
|
-
decimals:
|
6424
|
+
decimals: 9
|
6439
6425
|
}
|
6440
6426
|
]
|
6441
6427
|
},
|
@@ -6455,7 +6441,7 @@ var rawAssets = [
|
|
6455
6441
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6456
6442
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6457
6443
|
assetId: "0x9e46f919fbf978f3cad7cd34cca982d5613af63ff8aab6c379e4faa179552958",
|
6458
|
-
decimals:
|
6444
|
+
decimals: 9
|
6459
6445
|
}
|
6460
6446
|
]
|
6461
6447
|
},
|
@@ -6510,25 +6496,12 @@ var rawAssets = [
|
|
6510
6496
|
address: "0x4c9edd5852cd905f086c759e8383e09bff1e68b3",
|
6511
6497
|
decimals: 18
|
6512
6498
|
},
|
6513
|
-
{
|
6514
|
-
type: "ethereum",
|
6515
|
-
chainId: CHAIN_IDS.eth.sepolia,
|
6516
|
-
address: "0xc6387efad0f184a90b34f397c3d6fd63135ef790",
|
6517
|
-
decimals: 18
|
6518
|
-
},
|
6519
6499
|
{
|
6520
6500
|
type: "fuel",
|
6521
6501
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6522
6502
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6523
6503
|
assetId: "0xb6133b2ef9f6153eb869125d23dcf20d1e735331b5e41b15a6a7a6cec70e8651",
|
6524
|
-
decimals:
|
6525
|
-
},
|
6526
|
-
{
|
6527
|
-
type: "fuel",
|
6528
|
-
chainId: CHAIN_IDS.fuel.testnet,
|
6529
|
-
contractId: "0xC6387efAD0F184a90B34f397C3d6Fd63135ef790",
|
6530
|
-
assetId: "0xf5c6d72d0f2c782fa47d8e228c198a08654e9fc66ca60ad85902b1d09046a7ab",
|
6531
|
-
decimals: 18
|
6504
|
+
decimals: 9
|
6532
6505
|
}
|
6533
6506
|
]
|
6534
6507
|
},
|
@@ -6543,25 +6516,12 @@ var rawAssets = [
|
|
6543
6516
|
address: "0x9d39a5de30e57443bff2a8307a4256c8797a3497",
|
6544
6517
|
decimals: 18
|
6545
6518
|
},
|
6546
|
-
{
|
6547
|
-
type: "ethereum",
|
6548
|
-
chainId: CHAIN_IDS.eth.sepolia,
|
6549
|
-
address: "0xb8f4f4eafc1d2a3c0a4d519bbf1114c311cc9b1b",
|
6550
|
-
decimals: 18
|
6551
|
-
},
|
6552
6519
|
{
|
6553
6520
|
type: "fuel",
|
6554
6521
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6555
6522
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6556
6523
|
assetId: "0xd05563025104fc36496c15c7021ad6b31034b0e89a356f4f818045d1f48808bc",
|
6557
|
-
decimals:
|
6558
|
-
},
|
6559
|
-
{
|
6560
|
-
type: "fuel",
|
6561
|
-
chainId: CHAIN_IDS.fuel.testnet,
|
6562
|
-
contractId: "0xC6387efAD0F184a90B34f397C3d6Fd63135ef790",
|
6563
|
-
assetId: "0xa86e37d385c08beddbb02c8260f9ec535d484c8ea908fc19d4e6dc8d5141fb2e",
|
6564
|
-
decimals: 18
|
6524
|
+
decimals: 9
|
6565
6525
|
}
|
6566
6526
|
]
|
6567
6527
|
},
|
@@ -6581,7 +6541,7 @@ var rawAssets = [
|
|
6581
6541
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6582
6542
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6583
6543
|
assetId: "0x78d4522ec607f6e8efb66ea49439d1ee48623cf763f9688a8eada025def033d9",
|
6584
|
-
decimals:
|
6544
|
+
decimals: 9
|
6585
6545
|
}
|
6586
6546
|
]
|
6587
6547
|
},
|
@@ -6596,25 +6556,12 @@ var rawAssets = [
|
|
6596
6556
|
address: "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
|
6597
6557
|
decimals: 18
|
6598
6558
|
},
|
6599
|
-
{
|
6600
|
-
type: "ethereum",
|
6601
|
-
chainId: CHAIN_IDS.eth.sepolia,
|
6602
|
-
address: "0xB82381A3fBD3FaFA77B3a7bE693342618240067b",
|
6603
|
-
decimals: 18
|
6604
|
-
},
|
6605
6559
|
{
|
6606
6560
|
type: "fuel",
|
6607
6561
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6608
6562
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6609
6563
|
assetId: "0x1a7815cc9f75db5c24a5b0814bfb706bb9fe485333e98254015de8f48f84c67b",
|
6610
|
-
decimals:
|
6611
|
-
},
|
6612
|
-
{
|
6613
|
-
type: "fuel",
|
6614
|
-
chainId: CHAIN_IDS.fuel.testnet,
|
6615
|
-
contractId: "0xC6387efAD0F184a90B34f397C3d6Fd63135ef790",
|
6616
|
-
assetId: "0x4c467e3fd4f32179e1aad3b92ebbdaa6ff6aeda5b8da5f8e64e96405eb52a7f5",
|
6617
|
-
decimals: 18
|
6564
|
+
decimals: 9
|
6618
6565
|
}
|
6619
6566
|
]
|
6620
6567
|
},
|
@@ -6634,7 +6581,7 @@ var rawAssets = [
|
|
6634
6581
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6635
6582
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6636
6583
|
assetId: "0x91b3559edb2619cde8ffb2aa7b3c3be97efd794ea46700db7092abeee62281b0",
|
6637
|
-
decimals:
|
6584
|
+
decimals: 9
|
6638
6585
|
}
|
6639
6586
|
]
|
6640
6587
|
},
|
@@ -6654,7 +6601,7 @@ var rawAssets = [
|
|
6654
6601
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6655
6602
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6656
6603
|
assetId: "0x1493d4ec82124de8f9b625682de69dcccda79e882b89a55a8c737b12de67bd68",
|
6657
|
-
decimals:
|
6604
|
+
decimals: 9
|
6658
6605
|
}
|
6659
6606
|
]
|
6660
6607
|
},
|
@@ -6674,7 +6621,7 @@ var rawAssets = [
|
|
6674
6621
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6675
6622
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6676
6623
|
assetId: "0xf2fc648c23a5db24610a1cf696acc4f0f6d9a7d6028dd9944964ab23f6e35995",
|
6677
|
-
decimals:
|
6624
|
+
decimals: 9
|
6678
6625
|
}
|
6679
6626
|
]
|
6680
6627
|
},
|
@@ -6694,7 +6641,7 @@ var rawAssets = [
|
|
6694
6641
|
chainId: CHAIN_IDS.fuel.mainnet,
|
6695
6642
|
contractId: "0x4ea6ccef1215d9479f1024dff70fc055ca538215d2c8c348beddffd54583d0e8",
|
6696
6643
|
assetId: "0x4fc8ac9f101df07e2c2dec4a53c8c42c439bdbe5e36ea2d863a61ff60afafc30",
|
6697
|
-
decimals:
|
6644
|
+
decimals: 9
|
6698
6645
|
}
|
6699
6646
|
]
|
6700
6647
|
}
|