@fuel-ts/account 0.82.0 → 0.84.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.
Potentially problematic release.
This version of @fuel-ts/account might be problematic. Click here for more details.
- package/README.md +18 -15
- package/dist/account.d.ts +8 -7
- package/dist/account.d.ts.map +1 -1
- package/dist/configs.d.ts.map +1 -1
- package/dist/configs.global.js +1 -1
- package/dist/configs.global.js.map +1 -1
- package/dist/configs.js +1 -1
- package/dist/configs.js.map +1 -1
- package/dist/configs.mjs +1 -1
- package/dist/configs.mjs.map +1 -1
- package/dist/index.global.js +2445 -2185
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1074 -667
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +909 -505
- package/dist/index.mjs.map +1 -1
- package/dist/predicate/predicate.d.ts +12 -24
- package/dist/predicate/predicate.d.ts.map +1 -1
- package/dist/providers/__generated__/operations.d.ts +950 -376
- package/dist/providers/__generated__/operations.d.ts.map +1 -1
- package/dist/providers/coin-quantity.d.ts +3 -3
- package/dist/providers/coin-quantity.d.ts.map +1 -1
- package/dist/providers/coin.d.ts +4 -2
- package/dist/providers/coin.d.ts.map +1 -1
- package/dist/providers/message.d.ts +9 -3
- package/dist/providers/message.d.ts.map +1 -1
- package/dist/providers/provider.d.ts +72 -54
- package/dist/providers/provider.d.ts.map +1 -1
- package/dist/providers/resource.d.ts +0 -1
- package/dist/providers/resource.d.ts.map +1 -1
- package/dist/providers/transaction-request/create-transaction-request.d.ts +1 -1
- package/dist/providers/transaction-request/create-transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-request/helpers.d.ts +8 -0
- package/dist/providers/transaction-request/helpers.d.ts.map +1 -0
- package/dist/providers/transaction-request/input.d.ts +2 -2
- package/dist/providers/transaction-request/input.d.ts.map +1 -1
- package/dist/providers/transaction-request/script-transaction-request.d.ts +2 -3
- package/dist/providers/transaction-request/script-transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-request/transaction-request.d.ts +17 -38
- package/dist/providers/transaction-request/transaction-request.d.ts.map +1 -1
- package/dist/providers/transaction-request/utils.d.ts +4 -0
- package/dist/providers/transaction-request/utils.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.d.ts +4 -2
- package/dist/providers/transaction-summary/assemble-transaction-summary.d.ts.map +1 -1
- package/dist/providers/transaction-summary/calculate-tx-fee-for-summary.d.ts +20 -0
- package/dist/providers/transaction-summary/calculate-tx-fee-for-summary.d.ts.map +1 -0
- package/dist/providers/transaction-summary/get-transaction-summary.d.ts.map +1 -1
- package/dist/providers/transaction-summary/index.d.ts +1 -1
- package/dist/providers/transaction-summary/index.d.ts.map +1 -1
- package/dist/providers/transaction-summary/operations.d.ts +4 -0
- package/dist/providers/transaction-summary/operations.d.ts.map +1 -1
- package/dist/providers/transaction-summary/status.d.ts +5 -1
- package/dist/providers/transaction-summary/status.d.ts.map +1 -1
- package/dist/providers/transaction-summary/types.d.ts +6 -1
- package/dist/providers/transaction-summary/types.d.ts.map +1 -1
- package/dist/providers/utils/gas.d.ts +14 -7
- package/dist/providers/utils/gas.d.ts.map +1 -1
- package/dist/providers/utils/merge-quantities.d.ts +1 -1
- package/dist/providers/utils/merge-quantities.d.ts.map +1 -1
- package/dist/test-utils/launchNode.d.ts +1 -1
- package/dist/test-utils/launchNode.d.ts.map +1 -1
- package/dist/test-utils/resources.d.ts +4 -0
- package/dist/test-utils/resources.d.ts.map +1 -0
- package/dist/test-utils/transactionRequest.d.ts +5 -0
- package/dist/test-utils/transactionRequest.d.ts.map +1 -0
- package/dist/test-utils.global.js +3171 -2680
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +1046 -655
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +896 -505
- package/dist/test-utils.mjs.map +1 -1
- package/dist/wallet/base-wallet-unlocked.d.ts.map +1 -1
- package/package.json +18 -18
- package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts +0 -21
- package/dist/providers/transaction-summary/calculate-transaction-fee.d.ts.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"base-wallet-unlocked.d.ts","sourceRoot":"","sources":["../../src/wallet/base-wallet-unlocked.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAGrD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,KAAK,EACV,mBAAmB,EACnB,sBAAsB,EACtB,UAAU,EACV,QAAQ,EACR,oBAAoB,EACpB,yBAAyB,EAC1B,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;IACG,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAKnD;;;;;OAKG;IACG,eAAe,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,OAAO,CAAC,MAAM,CAAC;IAQtF;;;;;OAKG;IACG,qCAAqC,CAAC,sBAAsB,EAAE,sBAAsB;IAS1F;;;;;OAKG;IACG,eAAe,CACnB,sBAAsB,EAAE,sBAAsB,EAC9C,EAAE,
|
1
|
+
{"version":3,"file":"base-wallet-unlocked.d.ts","sourceRoot":"","sources":["../../src/wallet/base-wallet-unlocked.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qB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3
|
+
"version": "0.84.0",
|
4
4
|
"description": "",
|
5
5
|
"author": "Fuel Labs <contact@fuel.sh> (https://fuel.network/)",
|
6
6
|
"main": "dist/index.js",
|
@@ -41,28 +41,28 @@
|
|
41
41
|
],
|
42
42
|
"license": "Apache-2.0",
|
43
43
|
"dependencies": {
|
44
|
-
"@fuels/vm-asm": "0.
|
44
|
+
"@fuels/vm-asm": "0.49.0",
|
45
45
|
"@noble/curves": "^1.3.0",
|
46
46
|
"ethers": "^6.7.1",
|
47
47
|
"events": "^3.3.0",
|
48
|
-
"graphql": "^16.
|
48
|
+
"graphql": "^16.8.1",
|
49
49
|
"graphql-request": "5.0.0",
|
50
50
|
"graphql-tag": "^2.12.6",
|
51
51
|
"portfinder": "^1.0.32",
|
52
52
|
"ramda": "^0.29.0",
|
53
53
|
"tree-kill": "^1.2.2",
|
54
54
|
"uuid": "^9.0.0",
|
55
|
-
"@fuel-ts/abi-coder": "0.
|
56
|
-
"@fuel-ts/address": "0.
|
57
|
-
"@fuel-ts/crypto": "0.
|
58
|
-
"@fuel-ts/errors": "0.
|
59
|
-
"@fuel-ts/hasher": "0.
|
60
|
-
"@fuel-ts/interfaces": "0.
|
61
|
-
"@fuel-ts/math": "0.
|
62
|
-
"@fuel-ts/merkle": "0.
|
63
|
-
"@fuel-ts/transactions": "0.
|
64
|
-
"@fuel-ts/utils": "0.
|
65
|
-
"@fuel-ts/versions": "0.
|
55
|
+
"@fuel-ts/abi-coder": "0.84.0",
|
56
|
+
"@fuel-ts/address": "0.84.0",
|
57
|
+
"@fuel-ts/crypto": "0.84.0",
|
58
|
+
"@fuel-ts/errors": "0.84.0",
|
59
|
+
"@fuel-ts/hasher": "0.84.0",
|
60
|
+
"@fuel-ts/interfaces": "0.84.0",
|
61
|
+
"@fuel-ts/math": "0.84.0",
|
62
|
+
"@fuel-ts/merkle": "0.84.0",
|
63
|
+
"@fuel-ts/transactions": "0.84.0",
|
64
|
+
"@fuel-ts/utils": "0.84.0",
|
65
|
+
"@fuel-ts/versions": "0.84.0"
|
66
66
|
},
|
67
67
|
"devDependencies": {
|
68
68
|
"@graphql-codegen/cli": "^2.13.7",
|
@@ -72,14 +72,14 @@
|
|
72
72
|
"@types/ramda": "^0.29.3",
|
73
73
|
"@types/uuid": "^9.0.1",
|
74
74
|
"get-graphql-schema": "^2.1.2",
|
75
|
-
"@fuel-ts/hasher": "0.
|
76
|
-
"@fuel-ts/math": "0.
|
77
|
-
"@fuel-ts/utils": "0.
|
75
|
+
"@fuel-ts/hasher": "0.84.0",
|
76
|
+
"@fuel-ts/math": "0.84.0",
|
77
|
+
"@fuel-ts/utils": "0.84.0"
|
78
78
|
},
|
79
79
|
"scripts": {
|
80
80
|
"build": "tsup",
|
81
81
|
"prebuild": "pnpm build:operations",
|
82
|
-
"build:schema": "get-graphql-schema http://localhost:4000/graphql > src/providers/fuel-core-schema.graphql && prettier --write src/providers/fuel-core-schema.graphql",
|
82
|
+
"build:schema": "get-graphql-schema http://localhost:4000/v1/graphql > src/providers/fuel-core-schema.graphql && prettier --write src/providers/fuel-core-schema.graphql",
|
83
83
|
"build:operations": "pnpm graphql-codegen",
|
84
84
|
"postbuild": "tsx ../../scripts/postbuild.ts"
|
85
85
|
}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import type { BN } from '@fuel-ts/math';
|
2
|
-
import type { GqlConsensusParameters, GqlFeeParameters } from '../__generated__/operations';
|
3
|
-
type FeeParams = Pick<GqlFeeParameters, 'gasPerByte' | 'gasPriceFactor'> | {
|
4
|
-
gasPerByte: BN | number;
|
5
|
-
gasPriceFactor: BN | number;
|
6
|
-
};
|
7
|
-
export type CalculateTransactionFeeParams = {
|
8
|
-
gasUsed: BN;
|
9
|
-
rawPayload: string;
|
10
|
-
consensusParameters: Pick<GqlConsensusParameters, 'gasCosts'> & {
|
11
|
-
feeParams: FeeParams;
|
12
|
-
};
|
13
|
-
};
|
14
|
-
export declare const calculateTransactionFee: (params: CalculateTransactionFeeParams) => {
|
15
|
-
fee: BN;
|
16
|
-
minFee: BN;
|
17
|
-
maxFee: BN;
|
18
|
-
feeFromGasUsed: BN;
|
19
|
-
};
|
20
|
-
export {};
|
21
|
-
//# sourceMappingURL=calculate-transaction-fee.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"calculate-transaction-fee.d.ts","sourceRoot":"","sources":["../../../src/providers/transaction-summary/calculate-transaction-fee.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAMxC,OAAO,KAAK,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAS5F,KAAK,SAAS,GACV,IAAI,CAAC,gBAAgB,EAAE,YAAY,GAAG,gBAAgB,CAAC,GACvD;IACE,UAAU,EAAE,EAAE,GAAG,MAAM,CAAC;IACxB,cAAc,EAAE,EAAE,GAAG,MAAM,CAAC;CAC7B,CAAC;AAEN,MAAM,MAAM,6BAA6B,GAAG;IAC1C,OAAO,EAAE,EAAE,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,CAAC,GAAG;QAAE,SAAS,EAAE,SAAS,CAAA;KAAE,CAAC;CAC1F,CAAC;AAEF,eAAO,MAAM,uBAAuB,WAAY,6BAA6B;;;;;CAwF5E,CAAC"}
|