@fuel-ts/account 0.0.0-rc-2272-20240517113706 → 0.0.0-rc-2143-20240517135655
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/dist/index.global.js +33 -15
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +33 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +33 -15
- package/dist/index.mjs.map +1 -1
- package/dist/providers/__generated__/operations.d.ts +8 -0
- package/dist/providers/__generated__/operations.d.ts.map +1 -1
- package/dist/providers/provider.d.ts +4 -1
- package/dist/providers/provider.d.ts.map +1 -1
- package/dist/providers/transaction-response/transaction-response.d.ts.map +1 -1
- package/dist/providers/utils/extract-tx-error.d.ts +2 -4
- package/dist/providers/utils/extract-tx-error.d.ts.map +1 -1
- package/dist/test-utils/launchNode.d.ts +3 -3
- package/dist/test-utils/launchNode.d.ts.map +1 -1
- package/dist/test-utils.global.js +99 -97
- package/dist/test-utils.global.js.map +1 -1
- package/dist/test-utils.js +35 -19
- package/dist/test-utils.js.map +1 -1
- package/dist/test-utils.mjs +35 -19
- package/dist/test-utils.mjs.map +1 -1
- package/package.json +15 -15
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/providers/provider.ts"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAAE,EAAE,EAAM,MAAM,eAAe,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAiBzD,OAAO,EAAE,MAAM,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,KAAK,EAEV,6BAA6B,EAC7B,qBAAqB,IAAI,kBAAkB,EAC3C,8BAA8B,EAC9B,8BAA8B,EAC9B,gBAAgB,IAA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;;OAMG;IACG,qBAAqB,CAAC,gBAAgB,GAAG,IAAI,EACjD,eAAe,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;YAyClC,mBAAmB;IAyBjC;;;;OAIG;IACG,aAAa,CAAC,gBAAgB,GAAG,IAAI,EACzC,eAAe,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"transaction-response.d.ts","sourceRoot":"","sources":["../../../src/providers/transaction-response/transaction-response.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,cAAc,EACd,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,WAAW,EACZ,MAAM,uBAAuB,CAAC;AAK/B,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAGnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAK/F,cAAc;AACd,MAAM,MAAM,4BAA4B,GAAG,WAAW,CAAC;AACvD,cAAc;AACd,MAAM,MAAM,8BAA8B,GAAG,aAAa,CAAC;AAC3D,cAAc;AACd,MAAM,MAAM,kCAAkC,GAAG,iBAAiB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AACtF,cAAc;AACd,MAAM,MAAM,6BAA6B,GAAG,YAAY,CAAC;AACzD,cAAc;AACd,MAAM,MAAM,8BAA8B,GAAG,aAAa,CAAC;AAC3D,cAAc;AACd,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAAC;AACrD,cAAc;AACd,MAA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,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,oBAAoB;IAMvE;;;;;;;OAOG;WACU,MAAM,CACjB,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,QAAQ,EAClB,IAAI,CAAC,EAAE,oBAAoB,GAC1B,OAAO,CAAC,mBAAmB,CAAC;IAM/B;;;;OAIG;IACG,KAAK,IAAI,OAAO,CAAC,cAAc,CAAC;IAwBtC;;;;;OAKG;IACH,iBAAiB,CAAC,gBAAgB,GAAG,IAAI,EAAE,uBAAuB,EAAE,cAAc;IAOlF;;;;;;OAMG;IACG,qBAAqB,CAAC,gBAAgB,GAAG,IAAI,EACjD,eAAe,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;YAyClC,mBAAmB;IAyBjC;;;;OAIG;IACG,aAAa,CAAC,gBAAgB,GAAG,IAAI,EACzC,eAAe,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IAqC/C;;;;OAIG;IACG,IAAI,CAAC,gBAAgB,GAAG,IAAI,EAChC,eAAe,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;CAGhD"}
|
@@ -1,13 +1,11 @@
|
|
1
1
|
import { FuelError } from '@fuel-ts/errors';
|
2
|
-
import type { GqlTransactionStatusFragment } from '../__generated__/operations';
|
3
2
|
import type { TransactionResultReceipt } from '../transaction-response';
|
4
|
-
import type { FailureStatus } from '../transaction-summary';
|
5
3
|
/**
|
6
4
|
* Assembles an error message for a panic status.
|
7
5
|
* @param status - The transaction failure status.
|
8
6
|
* @returns The error message.
|
9
7
|
*/
|
10
|
-
export declare const assemblePanicError: (
|
8
|
+
export declare const assemblePanicError: (statusReason: string) => {
|
11
9
|
errorMessage: string;
|
12
10
|
reason: string;
|
13
11
|
};
|
@@ -23,8 +21,8 @@ export declare const assembleRevertError: (receipts: Array<TransactionResultRece
|
|
23
21
|
};
|
24
22
|
interface IExtractTxError {
|
25
23
|
receipts: Array<TransactionResultReceipt>;
|
26
|
-
status?: GqlTransactionStatusFragment | null;
|
27
24
|
logs: Array<unknown>;
|
25
|
+
statusReason: string;
|
28
26
|
}
|
29
27
|
/**
|
30
28
|
* Extracts the transaction error and returns a FuelError object.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"extract-tx-error.d.ts","sourceRoot":"","sources":["../../../src/providers/utils/extract-tx-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAcvD,OAAO,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"extract-tx-error.d.ts","sourceRoot":"","sources":["../../../src/providers/utils/extract-tx-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAcvD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAExE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,iBAAkB,MAAM;;;CAQtD,CAAC;AAKF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,aACpB,MAAM,wBAAwB,CAAC,QACnC,MAAM,OAAO,CAAC;;;CAsDrB,CAAC;AAEF,UAAU,eAAe;IACvB,QAAQ,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC1C,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,WAAY,eAAe,KAAG,SAmBxD,CAAC"}
|
@@ -6,7 +6,7 @@ export type LaunchNodeOptions = {
|
|
6
6
|
ip?: string;
|
7
7
|
port?: string;
|
8
8
|
args?: string[];
|
9
|
-
|
9
|
+
fuelCorePath?: string;
|
10
10
|
loggingEnabled?: boolean;
|
11
11
|
debugEnabled?: boolean;
|
12
12
|
basePath?: string;
|
@@ -31,12 +31,12 @@ export declare const killNode: (params: KillNodeParams) => void;
|
|
31
31
|
* @param ip - the ip to bind to. (optional, defaults to 0.0.0.0)
|
32
32
|
* @param port - the port to bind to. (optional, defaults to 4000 or the next available port)
|
33
33
|
* @param args - additional arguments to pass to fuel-core.
|
34
|
-
* @param
|
34
|
+
* @param fuelCorePath - the path to the fuel-core binary. (optional, defaults to 'fuel-core')
|
35
35
|
* @param loggingEnabled - whether the node should output logs. (optional, defaults to true)
|
36
36
|
* @param debugEnabled - whether the node should log debug messages. (optional, defaults to false)
|
37
37
|
* @param basePath - the base path to use for the temporary folder. (optional, defaults to os.tmpdir())
|
38
38
|
* */
|
39
|
-
export declare const launchNode: ({ ip, port, args,
|
39
|
+
export declare const launchNode: ({ ip, port, args, fuelCorePath, loggingEnabled, debugEnabled, basePath, }: LaunchNodeOptions) => LaunchNodeResult;
|
40
40
|
export type LaunchNodeAndGetWalletsResult = Promise<{
|
41
41
|
wallets: WalletUnlocked[];
|
42
42
|
stop: () => void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"launchNode.d.ts","sourceRoot":"","sources":["../../src/test-utils/launchNode.ts"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"launchNode.d.ts","sourceRoot":"","sources":["../../src/test-utils/launchNode.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,eAAe,CAAC;AASpE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAuBhD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC;IACrC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,8BAA8B,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,KAAK,EAAE;QACL,MAAM,EAAE,OAAO,CAAC;KACjB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,QAAQ,WAAY,cAAc,SAiB9C,CAAC;AAGF;;;;;;;;;KASK;AAEL,eAAO,MAAM,UAAU,8EAQpB,iBAAiB,qBA+KhB,CAAC;AAYL,MAAM,MAAM,6BAA6B,GAAG,OAAO,CAAC;IAClD,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC,CAAC;AAEH;;;;KAIK;AACL,eAAO,MAAM,uBAAuB;;;mCAiBnC,CAAC"}
|
@@ -9511,16 +9511,16 @@ spurious results.`);
|
|
9511
9511
|
},
|
9512
9512
|
// Document
|
9513
9513
|
Document: {
|
9514
|
-
leave: (node) =>
|
9514
|
+
leave: (node) => join2(node.definitions, "\n\n")
|
9515
9515
|
},
|
9516
9516
|
OperationDefinition: {
|
9517
9517
|
leave(node) {
|
9518
|
-
const varDefs = wrap2("(",
|
9519
|
-
const prefix =
|
9518
|
+
const varDefs = wrap2("(", join2(node.variableDefinitions, ", "), ")");
|
9519
|
+
const prefix = join2(
|
9520
9520
|
[
|
9521
9521
|
node.operation,
|
9522
|
-
|
9523
|
-
|
9522
|
+
join2([node.name, varDefs]),
|
9523
|
+
join2(node.directives, " ")
|
9524
9524
|
],
|
9525
9525
|
" "
|
9526
9526
|
);
|
@@ -9528,7 +9528,7 @@ spurious results.`);
|
|
9528
9528
|
}
|
9529
9529
|
},
|
9530
9530
|
VariableDefinition: {
|
9531
|
-
leave: ({ variable, type: type3, defaultValue, directives }) => variable + ": " + type3 + wrap2(" = ", defaultValue) + wrap2(" ",
|
9531
|
+
leave: ({ variable, type: type3, defaultValue, directives }) => variable + ": " + type3 + wrap2(" = ", defaultValue) + wrap2(" ", join2(directives, " "))
|
9532
9532
|
},
|
9533
9533
|
SelectionSet: {
|
9534
9534
|
leave: ({ selections }) => block2(selections)
|
@@ -9536,11 +9536,11 @@ spurious results.`);
|
|
9536
9536
|
Field: {
|
9537
9537
|
leave({ alias, name, arguments: args, directives, selectionSet }) {
|
9538
9538
|
const prefix = wrap2("", alias, ": ") + name;
|
9539
|
-
let argsLine = prefix + wrap2("(",
|
9539
|
+
let argsLine = prefix + wrap2("(", join2(args, ", "), ")");
|
9540
9540
|
if (argsLine.length > MAX_LINE_LENGTH2) {
|
9541
|
-
argsLine = prefix + wrap2("(\n", indent2(
|
9541
|
+
argsLine = prefix + wrap2("(\n", indent2(join2(args, "\n")), "\n)");
|
9542
9542
|
}
|
9543
|
-
return
|
9543
|
+
return join2([argsLine, join2(directives, " "), selectionSet], " ");
|
9544
9544
|
}
|
9545
9545
|
},
|
9546
9546
|
Argument: {
|
@@ -9548,14 +9548,14 @@ spurious results.`);
|
|
9548
9548
|
},
|
9549
9549
|
// Fragments
|
9550
9550
|
FragmentSpread: {
|
9551
|
-
leave: ({ name, directives }) => "..." + name + wrap2(" ",
|
9551
|
+
leave: ({ name, directives }) => "..." + name + wrap2(" ", join2(directives, " "))
|
9552
9552
|
},
|
9553
9553
|
InlineFragment: {
|
9554
|
-
leave: ({ typeCondition, directives, selectionSet }) =>
|
9554
|
+
leave: ({ typeCondition, directives, selectionSet }) => join2(
|
9555
9555
|
[
|
9556
9556
|
"...",
|
9557
9557
|
wrap2("on ", typeCondition),
|
9558
|
-
|
9558
|
+
join2(directives, " "),
|
9559
9559
|
selectionSet
|
9560
9560
|
],
|
9561
9561
|
" "
|
@@ -9564,7 +9564,7 @@ spurious results.`);
|
|
9564
9564
|
FragmentDefinition: {
|
9565
9565
|
leave: ({ name, typeCondition, variableDefinitions, directives, selectionSet }) => (
|
9566
9566
|
// or removed in the future.
|
9567
|
-
`fragment ${name}${wrap2("(",
|
9567
|
+
`fragment ${name}${wrap2("(", join2(variableDefinitions, ", "), ")")} on ${typeCondition} ${wrap2("", join2(directives, " "), " ")}` + selectionSet
|
9568
9568
|
)
|
9569
9569
|
},
|
9570
9570
|
// Value
|
@@ -9587,17 +9587,17 @@ spurious results.`);
|
|
9587
9587
|
leave: ({ value }) => value
|
9588
9588
|
},
|
9589
9589
|
ListValue: {
|
9590
|
-
leave: ({ values }) => "[" +
|
9590
|
+
leave: ({ values }) => "[" + join2(values, ", ") + "]"
|
9591
9591
|
},
|
9592
9592
|
ObjectValue: {
|
9593
|
-
leave: ({ fields }) => "{" +
|
9593
|
+
leave: ({ fields }) => "{" + join2(fields, ", ") + "}"
|
9594
9594
|
},
|
9595
9595
|
ObjectField: {
|
9596
9596
|
leave: ({ name, value }) => name + ": " + value
|
9597
9597
|
},
|
9598
9598
|
// Directive
|
9599
9599
|
Directive: {
|
9600
|
-
leave: ({ name, arguments: args }) => "@" + name + wrap2("(",
|
9600
|
+
leave: ({ name, arguments: args }) => "@" + name + wrap2("(", join2(args, ", "), ")")
|
9601
9601
|
},
|
9602
9602
|
// Type
|
9603
9603
|
NamedType: {
|
@@ -9611,122 +9611,122 @@ spurious results.`);
|
|
9611
9611
|
},
|
9612
9612
|
// Type System Definitions
|
9613
9613
|
SchemaDefinition: {
|
9614
|
-
leave: ({ description, directives, operationTypes }) => wrap2("", description, "\n") +
|
9614
|
+
leave: ({ description, directives, operationTypes }) => wrap2("", description, "\n") + join2(["schema", join2(directives, " "), block2(operationTypes)], " ")
|
9615
9615
|
},
|
9616
9616
|
OperationTypeDefinition: {
|
9617
9617
|
leave: ({ operation, type: type3 }) => operation + ": " + type3
|
9618
9618
|
},
|
9619
9619
|
ScalarTypeDefinition: {
|
9620
|
-
leave: ({ description, name, directives }) => wrap2("", description, "\n") +
|
9620
|
+
leave: ({ description, name, directives }) => wrap2("", description, "\n") + join2(["scalar", name, join2(directives, " ")], " ")
|
9621
9621
|
},
|
9622
9622
|
ObjectTypeDefinition: {
|
9623
|
-
leave: ({ description, name, interfaces, directives, fields }) => wrap2("", description, "\n") +
|
9623
|
+
leave: ({ description, name, interfaces, directives, fields }) => wrap2("", description, "\n") + join2(
|
9624
9624
|
[
|
9625
9625
|
"type",
|
9626
9626
|
name,
|
9627
|
-
wrap2("implements ",
|
9628
|
-
|
9627
|
+
wrap2("implements ", join2(interfaces, " & ")),
|
9628
|
+
join2(directives, " "),
|
9629
9629
|
block2(fields)
|
9630
9630
|
],
|
9631
9631
|
" "
|
9632
9632
|
)
|
9633
9633
|
},
|
9634
9634
|
FieldDefinition: {
|
9635
|
-
leave: ({ description, name, arguments: args, type: type3, directives }) => wrap2("", description, "\n") + name + (hasMultilineItems2(args) ? wrap2("(\n", indent2(
|
9635
|
+
leave: ({ description, name, arguments: args, type: type3, directives }) => wrap2("", description, "\n") + name + (hasMultilineItems2(args) ? wrap2("(\n", indent2(join2(args, "\n")), "\n)") : wrap2("(", join2(args, ", "), ")")) + ": " + type3 + wrap2(" ", join2(directives, " "))
|
9636
9636
|
},
|
9637
9637
|
InputValueDefinition: {
|
9638
|
-
leave: ({ description, name, type: type3, defaultValue, directives }) => wrap2("", description, "\n") +
|
9639
|
-
[name + ": " + type3, wrap2("= ", defaultValue),
|
9638
|
+
leave: ({ description, name, type: type3, defaultValue, directives }) => wrap2("", description, "\n") + join2(
|
9639
|
+
[name + ": " + type3, wrap2("= ", defaultValue), join2(directives, " ")],
|
9640
9640
|
" "
|
9641
9641
|
)
|
9642
9642
|
},
|
9643
9643
|
InterfaceTypeDefinition: {
|
9644
|
-
leave: ({ description, name, interfaces, directives, fields }) => wrap2("", description, "\n") +
|
9644
|
+
leave: ({ description, name, interfaces, directives, fields }) => wrap2("", description, "\n") + join2(
|
9645
9645
|
[
|
9646
9646
|
"interface",
|
9647
9647
|
name,
|
9648
|
-
wrap2("implements ",
|
9649
|
-
|
9648
|
+
wrap2("implements ", join2(interfaces, " & ")),
|
9649
|
+
join2(directives, " "),
|
9650
9650
|
block2(fields)
|
9651
9651
|
],
|
9652
9652
|
" "
|
9653
9653
|
)
|
9654
9654
|
},
|
9655
9655
|
UnionTypeDefinition: {
|
9656
|
-
leave: ({ description, name, directives, types }) => wrap2("", description, "\n") +
|
9657
|
-
["union", name,
|
9656
|
+
leave: ({ description, name, directives, types }) => wrap2("", description, "\n") + join2(
|
9657
|
+
["union", name, join2(directives, " "), wrap2("= ", join2(types, " | "))],
|
9658
9658
|
" "
|
9659
9659
|
)
|
9660
9660
|
},
|
9661
9661
|
EnumTypeDefinition: {
|
9662
|
-
leave: ({ description, name, directives, values }) => wrap2("", description, "\n") +
|
9662
|
+
leave: ({ description, name, directives, values }) => wrap2("", description, "\n") + join2(["enum", name, join2(directives, " "), block2(values)], " ")
|
9663
9663
|
},
|
9664
9664
|
EnumValueDefinition: {
|
9665
|
-
leave: ({ description, name, directives }) => wrap2("", description, "\n") +
|
9665
|
+
leave: ({ description, name, directives }) => wrap2("", description, "\n") + join2([name, join2(directives, " ")], " ")
|
9666
9666
|
},
|
9667
9667
|
InputObjectTypeDefinition: {
|
9668
|
-
leave: ({ description, name, directives, fields }) => wrap2("", description, "\n") +
|
9668
|
+
leave: ({ description, name, directives, fields }) => wrap2("", description, "\n") + join2(["input", name, join2(directives, " "), block2(fields)], " ")
|
9669
9669
|
},
|
9670
9670
|
DirectiveDefinition: {
|
9671
|
-
leave: ({ description, name, arguments: args, repeatable, locations }) => wrap2("", description, "\n") + "directive @" + name + (hasMultilineItems2(args) ? wrap2("(\n", indent2(
|
9671
|
+
leave: ({ description, name, arguments: args, repeatable, locations }) => wrap2("", description, "\n") + "directive @" + name + (hasMultilineItems2(args) ? wrap2("(\n", indent2(join2(args, "\n")), "\n)") : wrap2("(", join2(args, ", "), ")")) + (repeatable ? " repeatable" : "") + " on " + join2(locations, " | ")
|
9672
9672
|
},
|
9673
9673
|
SchemaExtension: {
|
9674
|
-
leave: ({ directives, operationTypes }) =>
|
9675
|
-
["extend schema",
|
9674
|
+
leave: ({ directives, operationTypes }) => join2(
|
9675
|
+
["extend schema", join2(directives, " "), block2(operationTypes)],
|
9676
9676
|
" "
|
9677
9677
|
)
|
9678
9678
|
},
|
9679
9679
|
ScalarTypeExtension: {
|
9680
|
-
leave: ({ name, directives }) =>
|
9680
|
+
leave: ({ name, directives }) => join2(["extend scalar", name, join2(directives, " ")], " ")
|
9681
9681
|
},
|
9682
9682
|
ObjectTypeExtension: {
|
9683
|
-
leave: ({ name, interfaces, directives, fields }) =>
|
9683
|
+
leave: ({ name, interfaces, directives, fields }) => join2(
|
9684
9684
|
[
|
9685
9685
|
"extend type",
|
9686
9686
|
name,
|
9687
|
-
wrap2("implements ",
|
9688
|
-
|
9687
|
+
wrap2("implements ", join2(interfaces, " & ")),
|
9688
|
+
join2(directives, " "),
|
9689
9689
|
block2(fields)
|
9690
9690
|
],
|
9691
9691
|
" "
|
9692
9692
|
)
|
9693
9693
|
},
|
9694
9694
|
InterfaceTypeExtension: {
|
9695
|
-
leave: ({ name, interfaces, directives, fields }) =>
|
9695
|
+
leave: ({ name, interfaces, directives, fields }) => join2(
|
9696
9696
|
[
|
9697
9697
|
"extend interface",
|
9698
9698
|
name,
|
9699
|
-
wrap2("implements ",
|
9700
|
-
|
9699
|
+
wrap2("implements ", join2(interfaces, " & ")),
|
9700
|
+
join2(directives, " "),
|
9701
9701
|
block2(fields)
|
9702
9702
|
],
|
9703
9703
|
" "
|
9704
9704
|
)
|
9705
9705
|
},
|
9706
9706
|
UnionTypeExtension: {
|
9707
|
-
leave: ({ name, directives, types }) =>
|
9707
|
+
leave: ({ name, directives, types }) => join2(
|
9708
9708
|
[
|
9709
9709
|
"extend union",
|
9710
9710
|
name,
|
9711
|
-
|
9712
|
-
wrap2("= ",
|
9711
|
+
join2(directives, " "),
|
9712
|
+
wrap2("= ", join2(types, " | "))
|
9713
9713
|
],
|
9714
9714
|
" "
|
9715
9715
|
)
|
9716
9716
|
},
|
9717
9717
|
EnumTypeExtension: {
|
9718
|
-
leave: ({ name, directives, values }) =>
|
9718
|
+
leave: ({ name, directives, values }) => join2(["extend enum", name, join2(directives, " "), block2(values)], " ")
|
9719
9719
|
},
|
9720
9720
|
InputObjectTypeExtension: {
|
9721
|
-
leave: ({ name, directives, fields }) =>
|
9721
|
+
leave: ({ name, directives, fields }) => join2(["extend input", name, join2(directives, " "), block2(fields)], " ")
|
9722
9722
|
}
|
9723
9723
|
};
|
9724
|
-
function
|
9724
|
+
function join2(maybeArray, separator = "") {
|
9725
9725
|
var _maybeArray$filter$jo;
|
9726
9726
|
return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter((x) => x).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : "";
|
9727
9727
|
}
|
9728
9728
|
function block2(array) {
|
9729
|
-
return wrap2("{\n", indent2(
|
9729
|
+
return wrap2("{\n", indent2(join2(array, "\n")), "\n}");
|
9730
9730
|
}
|
9731
9731
|
function wrap2(start, maybeString, end = "") {
|
9732
9732
|
return maybeString != null && maybeString !== "" ? start + maybeString + end : "";
|
@@ -40523,6 +40523,7 @@ ${SqueezedOutStatusFragmentDoc}`;
|
|
40523
40523
|
${InputEstimatePredicatesFragmentDoc}`;
|
40524
40524
|
var DryRunFailureStatusFragmentDoc = lib_default2`
|
40525
40525
|
fragment dryRunFailureStatusFragment on DryRunFailureStatus {
|
40526
|
+
type: __typename
|
40526
40527
|
totalGas
|
40527
40528
|
totalFee
|
40528
40529
|
reason
|
@@ -40534,6 +40535,7 @@ ${SqueezedOutStatusFragmentDoc}`;
|
|
40534
40535
|
`;
|
40535
40536
|
var DryRunSuccessStatusFragmentDoc = lib_default2`
|
40536
40537
|
fragment dryRunSuccessStatusFragment on DryRunSuccessStatus {
|
40538
|
+
type: __typename
|
40537
40539
|
totalGas
|
40538
40540
|
totalFee
|
40539
40541
|
programState {
|
@@ -41978,17 +41980,16 @@ ${MessageCoinFragmentDoc}`;
|
|
41978
41980
|
}
|
41979
41981
|
|
41980
41982
|
// src/providers/utils/extract-tx-error.ts
|
41981
|
-
var assemblePanicError = (
|
41982
|
-
let errorMessage = `The transaction reverted with reason: "${
|
41983
|
-
|
41984
|
-
if (PANIC_REASONS.includes(status.reason)) {
|
41983
|
+
var assemblePanicError = (statusReason) => {
|
41984
|
+
let errorMessage = `The transaction reverted with reason: "${statusReason}".`;
|
41985
|
+
if (PANIC_REASONS.includes(statusReason)) {
|
41985
41986
|
errorMessage = `${errorMessage}
|
41986
41987
|
|
41987
41988
|
You can read more about this error at:
|
41988
41989
|
|
41989
|
-
${PANIC_DOC_URL}#variant.${
|
41990
|
+
${PANIC_DOC_URL}#variant.${statusReason}`;
|
41990
41991
|
}
|
41991
|
-
return { errorMessage, reason };
|
41992
|
+
return { errorMessage, reason: statusReason };
|
41992
41993
|
};
|
41993
41994
|
var stringify = (obj) => JSON.stringify(obj, null, 2);
|
41994
41995
|
var assembleRevertError = (receipts, logs) => {
|
@@ -42031,10 +42032,10 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
42031
42032
|
return { errorMessage, reason };
|
42032
42033
|
};
|
42033
42034
|
var extractTxError = (params) => {
|
42034
|
-
const { receipts,
|
42035
|
+
const { receipts, statusReason, logs } = params;
|
42035
42036
|
const isPanic = receipts.some(({ type: type3 }) => type3 === ReceiptType.Panic);
|
42036
42037
|
const isRevert = receipts.some(({ type: type3 }) => type3 === ReceiptType.Revert);
|
42037
|
-
const { errorMessage, reason } =
|
42038
|
+
const { errorMessage, reason } = isPanic ? assemblePanicError(statusReason) : assembleRevertError(receipts, logs);
|
42038
42039
|
const metadata = {
|
42039
42040
|
logs,
|
42040
42041
|
receipts,
|
@@ -43836,14 +43837,12 @@ ${PANIC_DOC_URL}#variant.${status.reason}`;
|
|
43836
43837
|
);
|
43837
43838
|
transactionResult.logs = logs;
|
43838
43839
|
}
|
43839
|
-
|
43840
|
-
|
43841
|
-
|
43842
|
-
gqlTransaction: { status }
|
43843
|
-
} = transactionResult;
|
43840
|
+
const { gqlTransaction, receipts } = transactionResult;
|
43841
|
+
if (gqlTransaction.status?.type === "FailureStatus") {
|
43842
|
+
const { reason } = gqlTransaction.status;
|
43844
43843
|
throw extractTxError({
|
43845
43844
|
receipts,
|
43846
|
-
|
43845
|
+
statusReason: reason,
|
43847
43846
|
logs
|
43848
43847
|
});
|
43849
43848
|
}
|
@@ -44575,7 +44574,10 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
44575
44574
|
await signatureCallback(txRequestClone);
|
44576
44575
|
}
|
44577
44576
|
({ receipts, missingContractIds, outputVariables, dryRunStatus } = await this.estimateTxDependencies(txRequestClone));
|
44578
|
-
|
44577
|
+
if (dryRunStatus && "reason" in dryRunStatus) {
|
44578
|
+
throw this.extractDryRunError(txRequestClone, receipts, dryRunStatus);
|
44579
|
+
}
|
44580
|
+
gasUsed = getGasUsedFromReceipts(receipts);
|
44579
44581
|
txRequestClone.gasLimit = gasUsed;
|
44580
44582
|
({ maxFee, maxGas, minFee, minGas, gasPrice } = await this.estimateTxGasAndFee({
|
44581
44583
|
transactionRequest: txRequestClone,
|
@@ -45027,6 +45029,22 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
45027
45029
|
}
|
45028
45030
|
return relayedTransactionStatus;
|
45029
45031
|
}
|
45032
|
+
extractDryRunError(transactionRequest, receipts, dryRunStatus) {
|
45033
|
+
const status = dryRunStatus;
|
45034
|
+
let logs = [];
|
45035
|
+
if (transactionRequest.abis) {
|
45036
|
+
logs = getDecodedLogs(
|
45037
|
+
receipts,
|
45038
|
+
transactionRequest.abis.main,
|
45039
|
+
transactionRequest.abis.otherContractsAbis
|
45040
|
+
);
|
45041
|
+
}
|
45042
|
+
return extractTxError({
|
45043
|
+
logs,
|
45044
|
+
receipts,
|
45045
|
+
statusReason: status.reason
|
45046
|
+
});
|
45047
|
+
}
|
45030
45048
|
};
|
45031
45049
|
var Provider = _Provider;
|
45032
45050
|
_cacheInputs = new WeakSet();
|
@@ -49931,27 +49949,12 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
49931
49949
|
return wallet;
|
49932
49950
|
};
|
49933
49951
|
|
49934
|
-
// ../utils/dist/cli-utils.mjs
|
49935
|
-
var import_fs = __require("fs");
|
49936
|
-
var import_path7 = __require("path");
|
49937
|
-
var findBinPath = (binCommandName, startingDir) => {
|
49938
|
-
const cmdPath = (0, import_path7.join)(startingDir, "node_modules", ".bin", binCommandName);
|
49939
|
-
const parentDir = (0, import_path7.join)(startingDir, "..");
|
49940
|
-
if ((0, import_fs.existsSync)(cmdPath)) {
|
49941
|
-
return cmdPath;
|
49942
|
-
}
|
49943
|
-
if (parentDir === startingDir) {
|
49944
|
-
throw new Error(`Command not found: ${binCommandName}`);
|
49945
|
-
}
|
49946
|
-
return findBinPath(binCommandName, parentDir);
|
49947
|
-
};
|
49948
|
-
|
49949
49952
|
// src/test-utils/launchNode.ts
|
49950
49953
|
var import_child_process = __require("child_process");
|
49951
49954
|
var import_crypto19 = __require("crypto");
|
49952
|
-
var
|
49955
|
+
var import_fs = __require("fs");
|
49953
49956
|
var import_os = __toESM(__require("os"));
|
49954
|
-
var
|
49957
|
+
var import_path7 = __toESM(__require("path"));
|
49955
49958
|
var import_portfinder = __toESM(require_portfinder());
|
49956
49959
|
var import_tree_kill = __toESM(require_tree_kill());
|
49957
49960
|
var getFlagValueFromArgs = (args, flag) => {
|
@@ -49980,8 +49983,8 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
49980
49983
|
}
|
49981
49984
|
child.stdout.removeAllListeners();
|
49982
49985
|
child.stderr.removeAllListeners();
|
49983
|
-
if ((0,
|
49984
|
-
(0,
|
49986
|
+
if ((0, import_fs.existsSync)(configPath)) {
|
49987
|
+
(0, import_fs.rmSync)(configPath, { recursive: true });
|
49985
49988
|
}
|
49986
49989
|
}
|
49987
49990
|
};
|
@@ -49989,7 +49992,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
49989
49992
|
ip,
|
49990
49993
|
port,
|
49991
49994
|
args = [],
|
49992
|
-
|
49995
|
+
fuelCorePath = process.env.FUEL_CORE_PATH ?? void 0,
|
49993
49996
|
loggingEnabled = true,
|
49994
49997
|
debugEnabled = false,
|
49995
49998
|
basePath
|
@@ -50009,8 +50012,7 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
50009
50012
|
const poaInstantFlagValue = getFlagValueFromArgs(args, "--poa-instant");
|
50010
50013
|
const poaInstant = poaInstantFlagValue === "true" || poaInstantFlagValue === void 0;
|
50011
50014
|
const graphQLStartSubstring = "Binding GraphQL provider to";
|
50012
|
-
const
|
50013
|
-
const command = useSystemFuelCore ? "fuel-core" : binPath;
|
50015
|
+
const command = fuelCorePath ?? "fuel-core";
|
50014
50016
|
const ipToUse = ip || "0.0.0.0";
|
50015
50017
|
const portToUse = port || (await (0, import_portfinder.getPortPromise)({
|
50016
50018
|
port: 4e3,
|
@@ -50021,12 +50023,12 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
50021
50023
|
let snapshotDirToUse;
|
50022
50024
|
const prefix = basePath || import_os.default.tmpdir();
|
50023
50025
|
const suffix = basePath ? "" : (0, import_crypto19.randomUUID)();
|
50024
|
-
const tempDirPath =
|
50026
|
+
const tempDirPath = import_path7.default.join(prefix, ".fuels", suffix, "snapshotDir");
|
50025
50027
|
if (snapshotDir) {
|
50026
50028
|
snapshotDirToUse = snapshotDir;
|
50027
50029
|
} else {
|
50028
|
-
if (!(0,
|
50029
|
-
(0,
|
50030
|
+
if (!(0, import_fs.existsSync)(tempDirPath)) {
|
50031
|
+
(0, import_fs.mkdirSync)(tempDirPath, { recursive: true });
|
50030
50032
|
}
|
50031
50033
|
let { stateConfigJson } = defaultSnapshotConfigs;
|
50032
50034
|
const { chainConfigJson, metadataJson } = defaultSnapshotConfigs;
|
@@ -50062,14 +50064,14 @@ Supported fuel-core version: ${supportedVersion}.`
|
|
50062
50064
|
let fixedStateConfigJSON = JSON.stringify(stateConfigJson);
|
50063
50065
|
const regexMakeNumber = /("amount":)"(\d+)"/gm;
|
50064
50066
|
fixedStateConfigJSON = fixedStateConfigJSON.replace(regexMakeNumber, "$1$2");
|
50065
|
-
const chainConfigWritePath =
|
50066
|
-
const stateConfigWritePath =
|
50067
|
-
const metadataWritePath =
|
50068
|
-
const stateTransitionWritePath =
|
50069
|
-
(0,
|
50070
|
-
(0,
|
50071
|
-
(0,
|
50072
|
-
(0,
|
50067
|
+
const chainConfigWritePath = import_path7.default.join(tempDirPath, "chainConfig.json");
|
50068
|
+
const stateConfigWritePath = import_path7.default.join(tempDirPath, "stateConfig.json");
|
50069
|
+
const metadataWritePath = import_path7.default.join(tempDirPath, "metadata.json");
|
50070
|
+
const stateTransitionWritePath = import_path7.default.join(tempDirPath, "state_transition_bytecode.wasm");
|
50071
|
+
(0, import_fs.writeFileSync)(chainConfigWritePath, JSON.stringify(chainConfigJson), "utf8");
|
50072
|
+
(0, import_fs.writeFileSync)(stateConfigWritePath, fixedStateConfigJSON, "utf8");
|
50073
|
+
(0, import_fs.writeFileSync)(metadataWritePath, JSON.stringify(metadataJson), "utf8");
|
50074
|
+
(0, import_fs.writeFileSync)(stateTransitionWritePath, JSON.stringify(""));
|
50073
50075
|
snapshotDirToUse = tempDirPath;
|
50074
50076
|
}
|
50075
50077
|
const child = (0, import_child_process.spawn)(
|