@sentio/sdk 2.36.0-rc.8 → 2.36.0-rc.9
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.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../src/fuel/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAiD,QAAQ,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAKtH,MAAM,MAAM,eAAe,GAAG;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,eAEvC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,kBAAkB,GAAG;IACjD,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,wBAAgB,qBAAqB,CAAC,cAAc,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,GAAG,eAAe,
|
1
|
+
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../src/fuel/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAiD,QAAQ,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAKtH,MAAM,MAAM,eAAe,GAAG;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,eAEvC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,kBAAkB,GAAG;IACjD,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,wBAAgB,qBAAqB,CAAC,cAAc,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,GAAG,eAAe,CAwB9F;AAED,wBAAgB,4BAA4B,CAAC,cAAc,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,eAAe,CA8BrH"}
|
package/lib/fuel/transaction.js
CHANGED
@@ -10,13 +10,17 @@ export function decodeFuelTransaction(gqlTransaction, provider) {
|
|
10
10
|
const [decodedTransaction] = new TransactionCoder().decode(rawPayload, 0);
|
11
11
|
const { gasCosts, maxInputs, gasPerByte, gasPriceFactor } = provider.getChain().consensusParameters;
|
12
12
|
const blockNumber = gqlTransaction.status?.block?.header?.height;
|
13
|
+
const gqlTransactionStatus = {
|
14
|
+
type: gqlTransaction.status?.__typename,
|
15
|
+
...gqlTransaction.status
|
16
|
+
};
|
13
17
|
return {
|
14
18
|
...assembleTransactionSummary({
|
15
19
|
id: gqlTransaction.id,
|
16
20
|
receipts: [],
|
17
21
|
transaction: decodedTransaction,
|
18
22
|
transactionBytes: rawPayload,
|
19
|
-
gqlTransactionStatus
|
23
|
+
gqlTransactionStatus,
|
20
24
|
gasPerByte: bn(gasPerByte),
|
21
25
|
gasPriceFactor: bn(gasPriceFactor),
|
22
26
|
maxInputs,
|
@@ -30,14 +34,18 @@ export function decodeFuelTransactionWithAbi(gqlTransaction, abiMap, provider) {
|
|
30
34
|
const [decodedTransaction] = new TransactionCoder().decode(rawPayload, 0);
|
31
35
|
const receipts = gqlTransaction.receipts?.map(processGqlReceipt) || [];
|
32
36
|
const { gasCosts, maxInputs, gasPerByte, gasPriceFactor } = provider.getChain().consensusParameters;
|
33
|
-
const
|
37
|
+
const gqlTransactionStatus = {
|
38
|
+
type: gqlTransaction.status?.__typename,
|
39
|
+
...gqlTransaction.status
|
40
|
+
};
|
41
|
+
const blockNumber = gqlTransactionStatus?.block?.header?.height;
|
34
42
|
return {
|
35
43
|
...assembleTransactionSummary({
|
36
44
|
id: gqlTransaction.id,
|
37
45
|
receipts,
|
38
46
|
transaction: decodedTransaction,
|
39
47
|
transactionBytes: rawPayload,
|
40
|
-
gqlTransactionStatus
|
48
|
+
gqlTransactionStatus,
|
41
49
|
gasPerByte: bn(gasPerByte),
|
42
50
|
gasPriceFactor: bn(gasPriceFactor),
|
43
51
|
abiMap,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../src/fuel/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,0BAA0B,EAAE,iBAAiB,EAAgC,MAAM,kBAAkB,CAAA;AACtH,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAA;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAMzC,MAAM,CAAC,MAAM,yBAAyB,GAAoB;IACxD,aAAa,EAAE,KAAK;CACrB,CAAA;AAMD,MAAM,UAAU,qBAAqB,CAAC,cAAmB,EAAE,QAAkB;IAC3E,MAAM,UAAU,GAAG,QAAQ,CAAC,cAAc,CAAC,UAAU,CAAC,CAAA;IAEtD,MAAM,CAAC,kBAAkB,CAAC,GAAG,IAAI,gBAAgB,EAAE,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,CAAA;IACzE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,cAAc,EAAE,GAAG,QAAQ,CAAC,QAAQ,EAAE,CAAC,mBAAmB,CAAA;IACnG,MAAM,WAAW,GAAG,cAAc,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAA;IAChE,OAAO;QACL,GAAG,0BAA0B,CAAC;YAC5B,EAAE,EAAE,cAAc,CAAC,EAAE;YACrB,QAAQ,EAAE,EAAE;YACZ,WAAW,EAAE,kBAAkB;YAC/B,gBAAgB,EAAE,UAAU;YAC5B,oBAAoB
|
1
|
+
{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../src/fuel/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,0BAA0B,EAAE,iBAAiB,EAAgC,MAAM,kBAAkB,CAAA;AACtH,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAA;AAClC,OAAO,EAAE,QAAQ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QAAQ,GAAG,cAAc,CAAC,QAAQ,EAAE,GAAG,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAA;IAEtE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,cAAc,EAAE,GAAG,QAAQ,CAAC,QAAQ,EAAE,CAAC,mBAAmB,CAAA;IAEnG,MAAM,oBAAoB,GAAG;QAC3B,IAAI,EAAE,cAAc,CAAC,MAAM,EAAE,UAAU;QACvC,GAAG,cAAc,CAAC,MAAM;KACzB,CAAA;IACD,MAAM,WAAW,GAAG,oBAAoB,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAA;IAE/D,OAAO;QACL,GAAG,0BAA0B,CAAC;YAC5B,EAAE,EAAE,cAAc,CAAC,EAAE;YACrB,QAAQ;YACR,WAAW,EAAE,kBAAkB;YAC/B,gBAAgB,EAAE,UAAU;YAC5B,oBAAoB;YACpB,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC;YAC1B,cAAc,EAAE,EAAE,CAAC,cAAc,CAAC;YAClC,MAAM;YACN,SAAS;YACT,QAAQ;SACT,CAAC;QACF,WAAW;KACZ,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sentio/sdk",
|
3
|
-
"version": "2.36.0-rc.
|
3
|
+
"version": "2.36.0-rc.9",
|
4
4
|
"license": "Apache-2.0",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
@@ -81,8 +81,8 @@
|
|
81
81
|
"typedoc": "^0.25.7",
|
82
82
|
"utility-types": "^3.11.0",
|
83
83
|
"yaml": "^2.3.4",
|
84
|
-
"@sentio/runtime": "^2.36.0-rc.
|
85
|
-
"@sentio/protos": "2.36.0-rc.
|
84
|
+
"@sentio/runtime": "^2.36.0-rc.9",
|
85
|
+
"@sentio/protos": "2.36.0-rc.9"
|
86
86
|
},
|
87
87
|
"peerDependencies": {
|
88
88
|
"tsup": "npm:@sentio/tsup@^6.7.2"
|
package/src/fuel/transaction.ts
CHANGED
@@ -21,13 +21,17 @@ export function decodeFuelTransaction(gqlTransaction: any, provider: Provider):
|
|
21
21
|
const [decodedTransaction] = new TransactionCoder().decode(rawPayload, 0)
|
22
22
|
const { gasCosts, maxInputs, gasPerByte, gasPriceFactor } = provider.getChain().consensusParameters
|
23
23
|
const blockNumber = gqlTransaction.status?.block?.header?.height
|
24
|
+
const gqlTransactionStatus = {
|
25
|
+
type: gqlTransaction.status?.__typename,
|
26
|
+
...gqlTransaction.status
|
27
|
+
}
|
24
28
|
return {
|
25
29
|
...assembleTransactionSummary({
|
26
30
|
id: gqlTransaction.id,
|
27
31
|
receipts: [],
|
28
32
|
transaction: decodedTransaction,
|
29
33
|
transactionBytes: rawPayload,
|
30
|
-
gqlTransactionStatus
|
34
|
+
gqlTransactionStatus,
|
31
35
|
gasPerByte: bn(gasPerByte),
|
32
36
|
gasPriceFactor: bn(gasPriceFactor),
|
33
37
|
maxInputs,
|
@@ -46,7 +50,11 @@ export function decodeFuelTransactionWithAbi(gqlTransaction: any, abiMap: AbiMap
|
|
46
50
|
|
47
51
|
const { gasCosts, maxInputs, gasPerByte, gasPriceFactor } = provider.getChain().consensusParameters
|
48
52
|
|
49
|
-
const
|
53
|
+
const gqlTransactionStatus = {
|
54
|
+
type: gqlTransaction.status?.__typename,
|
55
|
+
...gqlTransaction.status
|
56
|
+
}
|
57
|
+
const blockNumber = gqlTransactionStatus?.block?.header?.height
|
50
58
|
|
51
59
|
return {
|
52
60
|
...assembleTransactionSummary({
|
@@ -54,7 +62,7 @@ export function decodeFuelTransactionWithAbi(gqlTransaction: any, abiMap: AbiMap
|
|
54
62
|
receipts,
|
55
63
|
transaction: decodedTransaction,
|
56
64
|
transactionBytes: rawPayload,
|
57
|
-
gqlTransactionStatus
|
65
|
+
gqlTransactionStatus,
|
58
66
|
gasPerByte: bn(gasPerByte),
|
59
67
|
gasPriceFactor: bn(gasPriceFactor),
|
60
68
|
abiMap,
|