@fuel-ts/account 0.96.0 → 0.97.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 +6 -0
- package/dist/account.d.ts.map +1 -1
- package/dist/connectors/fuel.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.global.js +639 -310
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +661 -331
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +666 -338
- package/dist/index.mjs.map +1 -1
- package/dist/predicate/predicate.d.ts +16 -11
- package/dist/predicate/predicate.d.ts.map +1 -1
- package/dist/providers/__generated__/operations.d.ts +108 -126
- package/dist/providers/__generated__/operations.d.ts.map +1 -1
- package/dist/providers/provider.d.ts +15 -11
- package/dist/providers/provider.d.ts.map +1 -1
- package/dist/providers/transaction-request/blob-transaction-request.d.ts +2 -2
- package/dist/providers/transaction-request/blob-transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-summary/get-transaction-summary.d.ts +3 -2
- package/dist/providers/transaction-summary/get-transaction-summary.d.ts.map +1 -1
- package/dist/providers/transaction-summary/types.d.ts +38 -8
- package/dist/providers/transaction-summary/types.d.ts.map +1 -1
- package/dist/providers/utils/handle-gql-error-message.d.ts +2 -1
- package/dist/providers/utils/handle-gql-error-message.d.ts.map +1 -1
- package/dist/providers/utils/receipts.d.ts.map +1 -1
- package/dist/providers/utils/validate-pagination-args.d.ts +9 -0
- package/dist/providers/utils/validate-pagination-args.d.ts.map +1 -0
- package/dist/test-utils.global.js +376 -248
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +339 -221
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +350 -232
- package/dist/test-utils.mjs.map +1 -1
- package/dist/utils/deployScriptOrPredicate.d.ts +14 -0
- package/dist/utils/deployScriptOrPredicate.d.ts.map +1 -0
- package/dist/utils/formatTransferToContractScriptData.d.ts +7 -7
- package/dist/utils/formatTransferToContractScriptData.d.ts.map +1 -1
- package/dist/utils/predicate-script-loader-instructions.d.ts +9 -0
- package/dist/utils/predicate-script-loader-instructions.d.ts.map +1 -0
- package/package.json +17 -17
@@ -0,0 +1,14 @@
|
|
1
|
+
import type { JsonAbi } from '@fuel-ts/abi-coder';
|
2
|
+
import type { Account } from '../account';
|
3
|
+
interface Deployer<T> {
|
4
|
+
deployer: Account;
|
5
|
+
bytecode: Uint8Array;
|
6
|
+
abi: JsonAbi;
|
7
|
+
loaderInstanceCallback: (loaderBytecode: Uint8Array, newAbi: JsonAbi) => T;
|
8
|
+
}
|
9
|
+
export declare function deployScriptOrPredicate<T>({ deployer, bytecode, abi, loaderInstanceCallback, }: Deployer<T>): Promise<{
|
10
|
+
waitForResult: () => Promise<T>;
|
11
|
+
blobId: string;
|
12
|
+
}>;
|
13
|
+
export {};
|
14
|
+
//# sourceMappingURL=deployScriptOrPredicate.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"deployScriptOrPredicate.d.ts","sourceRoot":"","sources":["../../src/utils/deployScriptOrPredicate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAMlD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AA8C1C,UAAU,QAAQ,CAAC,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,UAAU,CAAC;IACrB,GAAG,EAAE,OAAO,CAAC;IACb,sBAAsB,EAAE,CAAC,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,KAAK,CAAC,CAAC;CAC5E;AAED,wBAAsB,uBAAuB,CAAC,CAAC,EAAE,EAC/C,QAAQ,EACR,QAAQ,EACR,GAAG,EACH,sBAAsB,GACvB,EAAE,QAAQ,CAAC,CAAC,CAAC;;;GAqDb"}
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import type {
|
2
|
-
import {
|
3
|
-
interface
|
4
|
-
|
5
|
-
amountToTransfer: BigNumberish;
|
1
|
+
import type { BytesLike } from '@fuel-ts/interfaces';
|
2
|
+
import { BN } from '@fuel-ts/math';
|
3
|
+
interface AssembleTransferToContractParams {
|
4
|
+
contractId: string;
|
6
5
|
assetId: BytesLike;
|
6
|
+
amount: BN;
|
7
7
|
}
|
8
|
-
export declare const formatTransferToContractScriptData: (
|
9
|
-
export declare const assembleTransferToContractScript: (
|
8
|
+
export declare const formatTransferToContractScriptData: (transferParams: Array<AssembleTransferToContractParams>) => Uint8Array;
|
9
|
+
export declare const assembleTransferToContractScript: (transferParams: Array<AssembleTransferToContractParams>) => Promise<{
|
10
10
|
script: Uint8Array;
|
11
11
|
scriptData: Uint8Array;
|
12
12
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatTransferToContractScriptData.d.ts","sourceRoot":"","sources":["../../src/utils/formatTransferToContractScriptData.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"formatTransferToContractScriptData.d.ts","sourceRoot":"","sources":["../../src/utils/formatTransferToContractScriptData.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAInC,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,eAaxD,CAAC;AAEF,eAAO,MAAM,gCAAgC,mBAC3B,KAAK,CAAC,gCAAgC,CAAC;;;EAiCxD,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export declare function getDataOffset(binary: Uint8Array): number;
|
2
|
+
export declare function getPredicateScriptLoaderInstructions(originalBinary: Uint8Array, blobId: Uint8Array): {
|
3
|
+
loaderBytecode: Uint8Array;
|
4
|
+
blobOffset: number;
|
5
|
+
} | {
|
6
|
+
loaderBytecode: Uint8Array;
|
7
|
+
blobOffset?: undefined;
|
8
|
+
};
|
9
|
+
//# sourceMappingURL=predicate-script-loader-instructions.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"predicate-script-loader-instructions.d.ts","sourceRoot":"","sources":["../../src/utils/predicate-script-loader-instructions.ts"],"names":[],"mappings":"AASA,wBAAgB,aAAa,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAUxD;AAED,wBAAgB,oCAAoC,CAClD,cAAc,EAAE,UAAU,EAC1B,MAAM,EAAE,UAAU;;;;;;EAkJnB"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fuel-ts/account",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.97.0",
|
4
4
|
"description": "",
|
5
5
|
"author": "Fuel Labs <contact@fuel.sh> (https://fuel.network/)",
|
6
6
|
"main": "dist/index.js",
|
@@ -41,36 +41,36 @@
|
|
41
41
|
],
|
42
42
|
"license": "Apache-2.0",
|
43
43
|
"dependencies": {
|
44
|
-
"@fuels/vm-asm": "0.58.
|
44
|
+
"@fuels/vm-asm": "0.58.2",
|
45
45
|
"@noble/curves": "^1.6.0",
|
46
46
|
"events": "^3.3.0",
|
47
47
|
"graphql": "^16.9.0",
|
48
48
|
"graphql-request": "5.0.0",
|
49
49
|
"graphql-tag": "^2.12.6",
|
50
50
|
"ramda": "^0.30.1",
|
51
|
-
"@fuel-ts/abi-coder": "0.
|
52
|
-
"@fuel-ts/address": "0.
|
53
|
-
"@fuel-ts/
|
54
|
-
"@fuel-ts/
|
55
|
-
"@fuel-ts/hasher": "0.
|
56
|
-
"@fuel-ts/interfaces": "0.
|
57
|
-
"@fuel-ts/math": "0.
|
58
|
-
"@fuel-ts/merkle": "0.
|
59
|
-
"@fuel-ts/transactions": "0.
|
60
|
-
"@fuel-ts/utils": "0.
|
61
|
-
"@fuel-ts/versions": "0.
|
51
|
+
"@fuel-ts/abi-coder": "0.97.0",
|
52
|
+
"@fuel-ts/address": "0.97.0",
|
53
|
+
"@fuel-ts/crypto": "0.97.0",
|
54
|
+
"@fuel-ts/errors": "0.97.0",
|
55
|
+
"@fuel-ts/hasher": "0.97.0",
|
56
|
+
"@fuel-ts/interfaces": "0.97.0",
|
57
|
+
"@fuel-ts/math": "0.97.0",
|
58
|
+
"@fuel-ts/merkle": "0.97.0",
|
59
|
+
"@fuel-ts/transactions": "0.97.0",
|
60
|
+
"@fuel-ts/utils": "0.97.0",
|
61
|
+
"@fuel-ts/versions": "0.97.0"
|
62
62
|
},
|
63
63
|
"devDependencies": {
|
64
64
|
"type-fest": "^4.26.1",
|
65
|
-
"@graphql-codegen/cli": "^5.0.
|
65
|
+
"@graphql-codegen/cli": "^5.0.3",
|
66
66
|
"@graphql-codegen/typescript": "^4.0.9",
|
67
67
|
"@graphql-codegen/typescript-generic-sdk": "^4.0.1",
|
68
68
|
"@graphql-codegen/typescript-operations": "^4.2.3",
|
69
69
|
"@types/ramda": "^0.30.2",
|
70
70
|
"get-graphql-schema": "^2.1.2",
|
71
|
-
"@fuel-ts/hasher": "0.
|
72
|
-
"@fuel-ts/math": "0.
|
73
|
-
"@fuel-ts/utils": "0.
|
71
|
+
"@fuel-ts/hasher": "0.97.0",
|
72
|
+
"@fuel-ts/math": "0.97.0",
|
73
|
+
"@fuel-ts/utils": "0.97.0",
|
74
74
|
"@internal/utils": "0.0.2"
|
75
75
|
},
|
76
76
|
"scripts": {
|