@fuel-ts/account 0.99.0 → 0.100.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/dist/account.d.ts +9 -4
- package/dist/account.d.ts.map +1 -1
- package/dist/connectors/fuel-connector.d.ts +7 -6
- package/dist/connectors/fuel-connector.d.ts.map +1 -1
- package/dist/connectors/types/data-type.d.ts +8 -1
- package/dist/connectors/types/data-type.d.ts.map +1 -1
- package/dist/index.global.js +4116 -3431
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +970 -562
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +900 -502
- package/dist/index.mjs.map +1 -1
- package/dist/mnemonic/mnemonic.d.ts +1 -1
- package/dist/providers/__generated__/operations.d.ts +98 -3
- package/dist/providers/__generated__/operations.d.ts.map +1 -1
- package/dist/providers/coin-quantity.d.ts.map +1 -1
- package/dist/providers/message.d.ts.map +1 -1
- package/dist/providers/provider.d.ts +75 -11
- package/dist/providers/provider.d.ts.map +1 -1
- package/dist/providers/resource-cache.d.ts +6 -4
- package/dist/providers/resource-cache.d.ts.map +1 -1
- package/dist/providers/transaction-request/helpers.d.ts +10 -1
- package/dist/providers/transaction-request/helpers.d.ts.map +1 -1
- package/dist/providers/transaction-request/transaction-request.d.ts +29 -1
- package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-response/transaction-response.d.ts.map +1 -1
- package/dist/providers/transaction-summary/assemble-transaction-summary-from-serialized.d.ts +7 -0
- package/dist/providers/transaction-summary/assemble-transaction-summary-from-serialized.d.ts.map +1 -0
- package/dist/providers/transaction-summary/call.d.ts +8 -2
- package/dist/providers/transaction-summary/call.d.ts.map +1 -1
- package/dist/providers/transaction-summary/get-transaction-summary.d.ts +1 -1
- package/dist/providers/transaction-summary/get-transaction-summary.d.ts.map +1 -1
- package/dist/providers/transaction-summary/index.d.ts +1 -0
- package/dist/providers/transaction-summary/index.d.ts.map +1 -1
- package/dist/providers/transaction-summary/operations.d.ts.map +1 -1
- package/dist/providers/transaction-summary/receipt.d.ts +3 -2
- package/dist/providers/transaction-summary/receipt.d.ts.map +1 -1
- package/dist/providers/transaction-summary/types.d.ts +5 -3
- package/dist/providers/transaction-summary/types.d.ts.map +1 -1
- package/dist/providers/utils/handle-gql-error-message.d.ts +0 -4
- package/dist/providers/utils/handle-gql-error-message.d.ts.map +1 -1
- package/dist/providers/utils/helpers.d.ts +14 -0
- package/dist/providers/utils/helpers.d.ts.map +1 -0
- package/dist/providers/utils/index.d.ts +1 -0
- package/dist/providers/utils/index.d.ts.map +1 -1
- package/dist/providers/utils/receipts.d.ts +4 -3
- package/dist/providers/utils/receipts.d.ts.map +1 -1
- package/dist/providers/utils/serialization.d.ts +35 -0
- package/dist/providers/utils/serialization.d.ts.map +1 -0
- package/dist/signer/signer.d.ts +1 -1
- package/dist/test-utils.global.js +3839 -3179
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +895 -537
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +827 -469
- package/dist/test-utils.mjs.map +1 -1
- package/dist/utils/formatTransferToContractScriptData.d.ts +3 -3
- package/dist/utils/formatTransferToContractScriptData.d.ts.map +1 -1
- package/dist/utils/predicate-script-loader-instructions.d.ts +2 -2
- package/dist/wallet/base-wallet-unlocked.d.ts +2 -1
- package/dist/wallet/base-wallet-unlocked.d.ts.map +1 -1
- package/package.json +21 -21
@@ -5,10 +5,10 @@ interface AssembleTransferToContractParams {
|
|
5
5
|
assetId: BytesLike;
|
6
6
|
amount: BN;
|
7
7
|
}
|
8
|
-
export declare const formatTransferToContractScriptData: (transferParams: Array<AssembleTransferToContractParams>) => Uint8Array
|
8
|
+
export declare const formatTransferToContractScriptData: (transferParams: Array<AssembleTransferToContractParams>) => Uint8Array<ArrayBuffer>;
|
9
9
|
export declare const assembleTransferToContractScript: (transferParams: Array<AssembleTransferToContractParams>) => Promise<{
|
10
|
-
script: Uint8Array
|
11
|
-
scriptData: Uint8Array
|
10
|
+
script: Uint8Array<ArrayBuffer>;
|
11
|
+
scriptData: Uint8Array<ArrayBuffer>;
|
12
12
|
}>;
|
13
13
|
export {};
|
14
14
|
//# sourceMappingURL=formatTransferToContractScriptData.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatTransferToContractScriptData.d.ts","sourceRoot":"","sources":["../../src/utils/formatTransferToContractScriptData.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,UAAU,gCAAgC;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,MAAM,EAAE,EAAE,CAAC;CACZ;AAED,eAAO,MAAM,kCAAkC,mBAC7B,KAAK,CAAC,gCAAgC,CAAC,
|
1
|
+
{"version":3,"file":"formatTransferToContractScriptData.d.ts","sourceRoot":"","sources":["../../src/utils/formatTransferToContractScriptData.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,UAAU,gCAAgC;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,MAAM,EAAE,EAAE,CAAC;CACZ;AAED,eAAO,MAAM,kCAAkC,mBAC7B,KAAK,CAAC,gCAAgC,CAAC,4BASxD,CAAC;AAEF,eAAO,MAAM,gCAAgC,mBAC3B,KAAK,CAAC,gCAAgC,CAAC;;;EAiCxD,CAAC"}
|
@@ -35,10 +35,10 @@ export declare function getBytecodeId(bytecode: Uint8Array): string;
|
|
35
35
|
*/
|
36
36
|
export declare function getLegacyBlobId(bytecode: Uint8Array): string;
|
37
37
|
export declare function getPredicateScriptLoaderInstructions(originalBinary: Uint8Array, blobId: Uint8Array): {
|
38
|
-
loaderBytecode: Uint8Array
|
38
|
+
loaderBytecode: Uint8Array<ArrayBufferLike>;
|
39
39
|
blobOffset: number;
|
40
40
|
} | {
|
41
|
-
loaderBytecode: Uint8Array
|
41
|
+
loaderBytecode: Uint8Array<ArrayBuffer>;
|
42
42
|
blobOffset?: undefined;
|
43
43
|
};
|
44
44
|
//# sourceMappingURL=predicate-script-loader-instructions.d.ts.map
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import type { HashableMessage } from '@fuel-ts/hasher';
|
1
2
|
import type { BytesLike } from '@fuel-ts/utils';
|
2
3
|
import { Account } from '../account';
|
3
4
|
import type { TransactionRequestLike, CallResult, Provider, ProviderSendTxParams, EstimateTransactionParams, TransactionRequest, TransactionResponse } from '../providers';
|
@@ -39,7 +40,7 @@ export declare class BaseWalletUnlocked extends Account {
|
|
39
40
|
* @param message - The message to sign.
|
40
41
|
* @returns A promise that resolves to the signature as a ECDSA 64 bytes string.
|
41
42
|
*/
|
42
|
-
signMessage(message:
|
43
|
+
signMessage(message: HashableMessage): Promise<string>;
|
43
44
|
/**
|
44
45
|
* Signs a transaction with the wallet's private key.
|
45
46
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"base-wallet-unlocked.d.ts","sourceRoot":"","sources":["../../src/wallet/base-wallet-unlocked.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"base-wallet-unlocked.d.ts","sourceRoot":"","sources":["../../src/wallet/base-wallet-unlocked.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,KAAK,EACV,sBAAsB,EACtB,UAAU,EACV,QAAQ,EACR,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAInC;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,OAAO;IAC7C;;OAEG;IACH,MAAM,CAAC,WAAW,SAA8B;IAEhD;;OAEG;IACH,MAAM,EAAE,MAAM,MAAM,CAAC;IAErB;;;;;OAKG;gBACS,UAAU,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,QAAQ;IAMtD;;;;OAIG;IACH,IAAI,UAAU,IAAI,MAAM,CAEvB;IAED;;;;OAIG;IACH,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED;;;;;OAKG;IACY,WAAW,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;IAKrE;;;;;OAKG;IACY,eAAe,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,OAAO,CAAC,MAAM,CAAC;IAQ/F;;;;;OAKG;IACG,qCAAqC,CAAC,CAAC,SAAS,kBAAkB,EACtE,sBAAsB,EAAE,sBAAsB;IAUhD;;;;;;OAMG;IACY,eAAe,CAC5B,sBAAsB,EAAE,sBAAsB,EAC9C,EAAE,sBAA8B,EAAE,eAAe,EAAE,GAAE,oBAAyB,GAC7E,OAAO,CAAC,mBAAmB,CAAC;IAgB/B;;;;;OAKG;IACY,mBAAmB,CAChC,sBAAsB,EAAE,sBAAsB,EAC9C,EAAE,sBAA6B,EAAE,GAAE,yBAA8B,GAChE,OAAO,CAAC,UAAU,CAAC;IActB;;;;;OAKG;IACG,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAGjD"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fuel-ts/account",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.100.0",
|
4
4
|
"description": "",
|
5
5
|
"author": "Fuel Labs <contact@fuel.sh> (https://fuel.network/)",
|
6
6
|
"main": "dist/index.js",
|
@@ -41,35 +41,35 @@
|
|
41
41
|
],
|
42
42
|
"license": "Apache-2.0",
|
43
43
|
"dependencies": {
|
44
|
-
"@fuels/vm-asm": "0.
|
45
|
-
"@noble/curves": "1.
|
44
|
+
"@fuels/vm-asm": "0.59.1",
|
45
|
+
"@noble/curves": "1.8.1",
|
46
46
|
"events": "3.3.0",
|
47
|
-
"graphql": "16.
|
47
|
+
"graphql": "16.10.0",
|
48
48
|
"graphql-request": "6.1.0",
|
49
49
|
"graphql-tag": "2.12.6",
|
50
50
|
"ramda": "0.30.1",
|
51
|
-
"@fuel-ts/
|
52
|
-
"@fuel-ts/
|
53
|
-
"@fuel-ts/crypto": "0.
|
54
|
-
"@fuel-ts/errors": "0.
|
55
|
-
"@fuel-ts/
|
56
|
-
"@fuel-ts/
|
57
|
-
"@fuel-ts/
|
58
|
-
"@fuel-ts/transactions": "0.
|
59
|
-
"@fuel-ts/
|
60
|
-
"@fuel-ts/
|
51
|
+
"@fuel-ts/address": "0.100.0",
|
52
|
+
"@fuel-ts/abi-coder": "0.100.0",
|
53
|
+
"@fuel-ts/crypto": "0.100.0",
|
54
|
+
"@fuel-ts/errors": "0.100.0",
|
55
|
+
"@fuel-ts/math": "0.100.0",
|
56
|
+
"@fuel-ts/merkle": "0.100.0",
|
57
|
+
"@fuel-ts/utils": "0.100.0",
|
58
|
+
"@fuel-ts/transactions": "0.100.0",
|
59
|
+
"@fuel-ts/versions": "0.100.0",
|
60
|
+
"@fuel-ts/hasher": "0.100.0"
|
61
61
|
},
|
62
62
|
"devDependencies": {
|
63
|
-
"@graphql-codegen/cli": "5.0.
|
64
|
-
"@graphql-codegen/typescript": "4.
|
63
|
+
"@graphql-codegen/cli": "5.0.5",
|
64
|
+
"@graphql-codegen/typescript": "4.1.4",
|
65
65
|
"@graphql-codegen/typescript-generic-sdk": "4.0.1",
|
66
|
-
"@graphql-codegen/typescript-operations": "4.
|
66
|
+
"@graphql-codegen/typescript-operations": "4.4.1",
|
67
67
|
"@types/ramda": "0.30.2",
|
68
68
|
"get-graphql-schema": "2.1.2",
|
69
|
-
"type-fest": "4.
|
70
|
-
"@fuel-ts/hasher": "0.
|
71
|
-
"@fuel-ts/math": "0.
|
72
|
-
"@fuel-ts/utils": "0.
|
69
|
+
"type-fest": "4.34.1",
|
70
|
+
"@fuel-ts/hasher": "0.100.0",
|
71
|
+
"@fuel-ts/math": "0.100.0",
|
72
|
+
"@fuel-ts/utils": "0.100.0"
|
73
73
|
},
|
74
74
|
"scripts": {
|
75
75
|
"build": "tsup",
|