@xyo-network/gas-price-plugin 2.43.30 → 2.43.31
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/docs.json +20 -20
- package/package.json +15 -15
- package/src/lib/identities/{isXyoEthereumGasBlocknativePayload.spec.ts → spec/isXyoEthereumGasBlocknativePayload.spec.ts} +2 -2
- package/src/lib/identities/{isXyoEthereumGasEtherchainV2Payload.spec.ts → spec/isXyoEthereumGasEtherchainV2Payload.spec.ts} +2 -2
- package/src/lib/identities/{isXyoEthereumGasEthersPayload.spec.ts → spec/isXyoEthereumGasEthersPayload.spec.ts} +2 -2
- package/src/lib/identities/{isXyoEthereumGasEtherscanPayload.spec.ts → spec/isXyoEthereumGasEtherscanPayload.spec.ts} +2 -2
- package/src/lib/identities/{isXyoEthereumGasEthgasstationPayload.spec.ts → spec/isXyoEthereumGasEthgasstationPayload.spec.ts} +2 -2
- package/src/lib/{average.spec.ts → spec/average.spec.ts} +3 -3
- package/src/lib/{divineGas.spec.ts → spec/divineGas.spec.ts} +2 -2
- package/src/lib/transforms/{transformGasFromBlocknative.spec.ts → spec/transformGasFromBlocknative.spec.ts} +2 -2
- package/src/lib/transforms/{transformGasFromEtherchainV2.spec.ts → spec/transformGasFromEtherchainV2.spec.ts} +2 -2
- package/src/lib/transforms/{transformGasFromEthers.spec.ts → spec/transformGasFromEthers.spec.ts} +2 -2
- package/src/lib/transforms/{transformGasFromEtherscan.spec.ts → spec/transformGasFromEtherscan.spec.ts} +2 -2
- package/src/lib/transforms/{transformGasFromEthgasstation.spec.ts → spec/transformGasFromEthgasstation.spec.ts} +2 -2
- package/src/{Diviner.spec.ts → spec/Diviner.spec.ts} +2 -2
- package/src/{Plugin.spec.ts → spec/Plugin.spec.ts} +1 -1
package/dist/docs.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"fileName": "plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/index.ts",
|
|
18
18
|
"line": 9,
|
|
19
19
|
"character": 0,
|
|
20
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
20
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/index.ts#L9"
|
|
21
21
|
}
|
|
22
22
|
],
|
|
23
23
|
"target": 1
|
|
@@ -1196,7 +1196,7 @@
|
|
|
1196
1196
|
"fileName": "plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Diviner.ts",
|
|
1197
1197
|
"line": 13,
|
|
1198
1198
|
"character": 18,
|
|
1199
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
1199
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Diviner.ts#L13"
|
|
1200
1200
|
}
|
|
1201
1201
|
],
|
|
1202
1202
|
"type": {
|
|
@@ -1247,7 +1247,7 @@
|
|
|
1247
1247
|
"fileName": "plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Diviner.ts",
|
|
1248
1248
|
"line": 14,
|
|
1249
1249
|
"character": 18,
|
|
1250
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
1250
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Diviner.ts#L14"
|
|
1251
1251
|
}
|
|
1252
1252
|
],
|
|
1253
1253
|
"type": {
|
|
@@ -3518,7 +3518,7 @@
|
|
|
3518
3518
|
"fileName": "plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Diviner.ts",
|
|
3519
3519
|
"line": 20,
|
|
3520
3520
|
"character": 18,
|
|
3521
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
3521
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Diviner.ts#L20"
|
|
3522
3522
|
}
|
|
3523
3523
|
],
|
|
3524
3524
|
"signatures": [
|
|
@@ -3749,7 +3749,7 @@
|
|
|
3749
3749
|
"fileName": "plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Diviner.ts",
|
|
3750
3750
|
"line": 25,
|
|
3751
3751
|
"character": 11,
|
|
3752
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
3752
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Diviner.ts#L25"
|
|
3753
3753
|
}
|
|
3754
3754
|
],
|
|
3755
3755
|
"signatures": [
|
|
@@ -5711,7 +5711,7 @@
|
|
|
5711
5711
|
"fileName": "plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Diviner.ts",
|
|
5712
5712
|
"line": 16,
|
|
5713
5713
|
"character": 24,
|
|
5714
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
5714
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Diviner.ts#L16"
|
|
5715
5715
|
}
|
|
5716
5716
|
],
|
|
5717
5717
|
"signatures": [
|
|
@@ -6078,7 +6078,7 @@
|
|
|
6078
6078
|
"fileName": "plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Diviner.ts",
|
|
6079
6079
|
"line": 12,
|
|
6080
6080
|
"character": 13,
|
|
6081
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
6081
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Diviner.ts#L12"
|
|
6082
6082
|
}
|
|
6083
6083
|
],
|
|
6084
6084
|
"extendedTypes": [
|
|
@@ -6099,7 +6099,7 @@
|
|
|
6099
6099
|
"fileName": "plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Diviner.ts",
|
|
6100
6100
|
"line": 10,
|
|
6101
6101
|
"character": 12,
|
|
6102
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
6102
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Diviner.ts#L10"
|
|
6103
6103
|
}
|
|
6104
6104
|
],
|
|
6105
6105
|
"type": {
|
|
@@ -6125,7 +6125,7 @@
|
|
|
6125
6125
|
"fileName": "plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Diviner.ts",
|
|
6126
6126
|
"line": 10,
|
|
6127
6127
|
"character": 58,
|
|
6128
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
6128
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Diviner.ts#L10"
|
|
6129
6129
|
}
|
|
6130
6130
|
],
|
|
6131
6131
|
"type": {
|
|
@@ -6148,7 +6148,7 @@
|
|
|
6148
6148
|
"fileName": "plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Diviner.ts",
|
|
6149
6149
|
"line": 10,
|
|
6150
6150
|
"character": 56,
|
|
6151
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
6151
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Diviner.ts#L10"
|
|
6152
6152
|
}
|
|
6153
6153
|
]
|
|
6154
6154
|
}
|
|
@@ -6168,13 +6168,13 @@
|
|
|
6168
6168
|
"fileName": "plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Schema.ts",
|
|
6169
6169
|
"line": 4,
|
|
6170
6170
|
"character": 12,
|
|
6171
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
6171
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Schema.ts#L4"
|
|
6172
6172
|
},
|
|
6173
6173
|
{
|
|
6174
6174
|
"fileName": "plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Schema.ts",
|
|
6175
6175
|
"line": 5,
|
|
6176
6176
|
"character": 13,
|
|
6177
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
6177
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Schema.ts#L5"
|
|
6178
6178
|
}
|
|
6179
6179
|
],
|
|
6180
6180
|
"type": {
|
|
@@ -6193,13 +6193,13 @@
|
|
|
6193
6193
|
"fileName": "plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Schema.ts",
|
|
6194
6194
|
"line": 1,
|
|
6195
6195
|
"character": 12,
|
|
6196
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
6196
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Schema.ts#L1"
|
|
6197
6197
|
},
|
|
6198
6198
|
{
|
|
6199
6199
|
"fileName": "plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Schema.ts",
|
|
6200
6200
|
"line": 2,
|
|
6201
6201
|
"character": 13,
|
|
6202
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
6202
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Schema.ts#L2"
|
|
6203
6203
|
}
|
|
6204
6204
|
],
|
|
6205
6205
|
"type": {
|
|
@@ -6218,13 +6218,13 @@
|
|
|
6218
6218
|
"fileName": "plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Schema.ts",
|
|
6219
6219
|
"line": 4,
|
|
6220
6220
|
"character": 12,
|
|
6221
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
6221
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Schema.ts#L4"
|
|
6222
6222
|
},
|
|
6223
6223
|
{
|
|
6224
6224
|
"fileName": "plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Schema.ts",
|
|
6225
6225
|
"line": 5,
|
|
6226
6226
|
"character": 13,
|
|
6227
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
6227
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Schema.ts#L5"
|
|
6228
6228
|
}
|
|
6229
6229
|
],
|
|
6230
6230
|
"type": {
|
|
@@ -6243,13 +6243,13 @@
|
|
|
6243
6243
|
"fileName": "plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Schema.ts",
|
|
6244
6244
|
"line": 1,
|
|
6245
6245
|
"character": 12,
|
|
6246
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
6246
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Schema.ts#L1"
|
|
6247
6247
|
},
|
|
6248
6248
|
{
|
|
6249
6249
|
"fileName": "plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Schema.ts",
|
|
6250
6250
|
"line": 2,
|
|
6251
6251
|
"character": 13,
|
|
6252
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
6252
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Schema.ts#L2"
|
|
6253
6253
|
}
|
|
6254
6254
|
],
|
|
6255
6255
|
"type": {
|
|
@@ -6268,7 +6268,7 @@
|
|
|
6268
6268
|
"fileName": "plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Plugin.ts",
|
|
6269
6269
|
"line": 8,
|
|
6270
6270
|
"character": 13,
|
|
6271
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
6271
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/Plugin.ts#L8"
|
|
6272
6272
|
}
|
|
6273
6273
|
],
|
|
6274
6274
|
"signatures": [
|
|
@@ -6589,7 +6589,7 @@
|
|
|
6589
6589
|
"fileName": "plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/index.ts",
|
|
6590
6590
|
"line": 1,
|
|
6591
6591
|
"character": 0,
|
|
6592
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/
|
|
6592
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/plugins/packages/payloadset/packages/blockchain/packages/ethereum/packages/gas/packages/gas/src/index.ts#L1"
|
|
6593
6593
|
}
|
|
6594
6594
|
]
|
|
6595
6595
|
}
|
package/package.json
CHANGED
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@xylabs/exists": "^2.7.1",
|
|
14
|
-
"@xyo-network/blocknative-ethereum-gas-payload-plugin": "^2.43.
|
|
15
|
-
"@xyo-network/diviner": "^2.43.
|
|
16
|
-
"@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins": "^2.43.
|
|
17
|
-
"@xyo-network/ethers-ethereum-gas-payload-plugin": "^2.43.
|
|
18
|
-
"@xyo-network/etherscan-ethereum-gas-payload-plugin": "^2.43.
|
|
19
|
-
"@xyo-network/ethgasstation-ethereum-gas-payload-plugin": "^2.43.
|
|
20
|
-
"@xyo-network/gas-price-payload-plugin": "^2.43.
|
|
21
|
-
"@xyo-network/module": "^2.43.
|
|
22
|
-
"@xyo-network/payload-builder": "^2.43.
|
|
23
|
-
"@xyo-network/payload-model": "^2.43.
|
|
24
|
-
"@xyo-network/payloadset-plugin": "^2.43.
|
|
25
|
-
"@xyo-network/promise": "^2.43.
|
|
14
|
+
"@xyo-network/blocknative-ethereum-gas-payload-plugin": "^2.43.31",
|
|
15
|
+
"@xyo-network/diviner": "^2.43.31",
|
|
16
|
+
"@xyo-network/etherchain-gas-ethereum-blockchain-payload-plugins": "^2.43.31",
|
|
17
|
+
"@xyo-network/ethers-ethereum-gas-payload-plugin": "^2.43.31",
|
|
18
|
+
"@xyo-network/etherscan-ethereum-gas-payload-plugin": "^2.43.31",
|
|
19
|
+
"@xyo-network/ethgasstation-ethereum-gas-payload-plugin": "^2.43.31",
|
|
20
|
+
"@xyo-network/gas-price-payload-plugin": "^2.43.31",
|
|
21
|
+
"@xyo-network/module": "^2.43.31",
|
|
22
|
+
"@xyo-network/payload-builder": "^2.43.31",
|
|
23
|
+
"@xyo-network/payload-model": "^2.43.31",
|
|
24
|
+
"@xyo-network/payloadset-plugin": "^2.43.31",
|
|
25
|
+
"@xyo-network/promise": "^2.43.31",
|
|
26
26
|
"regression": "^2.0.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@uniswap/sdk": "^3.0.3",
|
|
36
36
|
"@uniswap/sdk-core": "^3.1.1",
|
|
37
37
|
"@uniswap/v3-sdk": "^3.9.0",
|
|
38
|
-
"@xylabs/ts-scripts-yarn3": "^2.
|
|
39
|
-
"@xylabs/tsconfig": "^2.
|
|
38
|
+
"@xylabs/ts-scripts-yarn3": "^2.14.1",
|
|
39
|
+
"@xylabs/tsconfig": "^2.14.1",
|
|
40
40
|
"typescript": "^4.9.5"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
},
|
|
83
83
|
"sideEffects": false,
|
|
84
84
|
"types": "dist/types/index.d.ts",
|
|
85
|
-
"version": "2.43.
|
|
85
|
+
"version": "2.43.31"
|
|
86
86
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { sampleBlocknativeGas } from '
|
|
2
|
-
import { isXyoEthereumGasBlocknativePayload } from '
|
|
1
|
+
import { sampleBlocknativeGas } from '../../../test'
|
|
2
|
+
import { isXyoEthereumGasBlocknativePayload } from '../isXyoEthereumGasBlocknativePayload'
|
|
3
3
|
|
|
4
4
|
describe('isXyoEthereumGasBlocknativePayload', () => {
|
|
5
5
|
describe('returns true', () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { sampleEtherchainGasV2 } from '
|
|
2
|
-
import { isXyoEthereumGasEtherchainV2Payload } from '
|
|
1
|
+
import { sampleEtherchainGasV2 } from '../../../test'
|
|
2
|
+
import { isXyoEthereumGasEtherchainV2Payload } from '../isXyoEthereumGasEtherchainV2Payload'
|
|
3
3
|
|
|
4
4
|
describe('isXyoEthereumGasEtherchainV2Payload', () => {
|
|
5
5
|
describe('returns true', () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { sampleEthersGas } from '
|
|
2
|
-
import { isXyoEthereumGasEthersPayload } from '
|
|
1
|
+
import { sampleEthersGas } from '../../../test'
|
|
2
|
+
import { isXyoEthereumGasEthersPayload } from '../isXyoEthereumGasEthersPayload'
|
|
3
3
|
|
|
4
4
|
describe('isXyoEthereumGasEthersPayload', () => {
|
|
5
5
|
describe('returns true', () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { sampleEtherscanGas } from '
|
|
2
|
-
import { isXyoEthereumGasEtherscanPayload } from '
|
|
1
|
+
import { sampleEtherscanGas } from '../../../test'
|
|
2
|
+
import { isXyoEthereumGasEtherscanPayload } from '../isXyoEthereumGasEtherscanPayload'
|
|
3
3
|
|
|
4
4
|
describe('isXyoEthereumGasEtherscanPayload', () => {
|
|
5
5
|
describe('returns true', () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { sampleEthgasstationGas } from '
|
|
2
|
-
import { isXyoEthereumGasEthgasstationPayload } from '
|
|
1
|
+
import { sampleEthgasstationGas } from '../../../test'
|
|
2
|
+
import { isXyoEthereumGasEthgasstationPayload } from '../isXyoEthereumGasEthgasstationPayload'
|
|
3
3
|
|
|
4
4
|
describe('isXyoEthereumGasEthgasstationPayload', () => {
|
|
5
5
|
describe('returns true', () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FeeData } from '@xyo-network/gas-price-payload-plugin'
|
|
2
2
|
|
|
3
|
-
import { sampleBlocknativeGas, sampleEtherchainGasV2, sampleEtherscanGas, sampleEthgasstationGas } from '
|
|
4
|
-
import { average } from '
|
|
5
|
-
import { transformGasFromBlocknative, transformGasFromEtherchainV2, transformGasFromEtherscan, transformGasFromEthgasstation } from '
|
|
3
|
+
import { sampleBlocknativeGas, sampleEtherchainGasV2, sampleEtherscanGas, sampleEthgasstationGas } from '../../test'
|
|
4
|
+
import { average } from '../average'
|
|
5
|
+
import { transformGasFromBlocknative, transformGasFromEtherchainV2, transformGasFromEtherscan, transformGasFromEthgasstation } from '../transforms'
|
|
6
6
|
|
|
7
7
|
const results: FeeData[] = [
|
|
8
8
|
transformGasFromBlocknative(sampleBlocknativeGas),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { sampleBlocknativeGas, sampleEtherchainGasV2, sampleEtherscanGas, sampleEthersGas, sampleEthgasstationGas } from '
|
|
2
|
-
import { divineGas } from '
|
|
1
|
+
import { sampleBlocknativeGas, sampleEtherchainGasV2, sampleEtherscanGas, sampleEthersGas, sampleEthgasstationGas } from '../../test'
|
|
2
|
+
import { divineGas } from '../divineGas'
|
|
3
3
|
|
|
4
4
|
describe('divineGas', () => {
|
|
5
5
|
describe('with no payloads supplied', () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable sort-keys-fix/sort-keys-fix */
|
|
2
|
-
import { sampleBlocknativeGas } from '
|
|
3
|
-
import { transformGasFromBlocknative } from '
|
|
2
|
+
import { sampleBlocknativeGas } from '../../../test'
|
|
3
|
+
import { transformGasFromBlocknative } from '../transformGasFromBlocknative'
|
|
4
4
|
|
|
5
5
|
describe('transformGasFromEtherscan', () => {
|
|
6
6
|
it('returns values in the expected format', () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable sort-keys-fix/sort-keys-fix */
|
|
2
|
-
import { sampleEtherchainGasV2 } from '
|
|
3
|
-
import { transformGasFromEtherchainV2 } from '
|
|
2
|
+
import { sampleEtherchainGasV2 } from '../../../test'
|
|
3
|
+
import { transformGasFromEtherchainV2 } from '../transformGasFromEtherchainV2'
|
|
4
4
|
|
|
5
5
|
describe('transformGasFromEtherchainV2', () => {
|
|
6
6
|
it('returns values in the expected format', () => {
|
package/src/lib/transforms/{transformGasFromEthers.spec.ts → spec/transformGasFromEthers.spec.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable sort-keys-fix/sort-keys-fix */
|
|
2
|
-
import { sampleEthersGas } from '
|
|
3
|
-
import { transformGasFromEthers } from '
|
|
2
|
+
import { sampleEthersGas } from '../../../test'
|
|
3
|
+
import { transformGasFromEthers } from '../transformGasFromEthers'
|
|
4
4
|
|
|
5
5
|
describe('transformGasFromEthers', () => {
|
|
6
6
|
it('returns values in the expected format', () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable sort-keys-fix/sort-keys-fix */
|
|
2
|
-
import { sampleEtherscanGas } from '
|
|
3
|
-
import { transformGasFromEtherscan } from '
|
|
2
|
+
import { sampleEtherscanGas } from '../../../test'
|
|
3
|
+
import { transformGasFromEtherscan } from '../transformGasFromEtherscan'
|
|
4
4
|
|
|
5
5
|
describe('transformGasFromEtherscan', () => {
|
|
6
6
|
it('returns values in the expected format', () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable sort-keys-fix/sort-keys-fix */
|
|
2
|
-
import { sampleEthgasstationGas } from '
|
|
3
|
-
import { transformGasFromEthgasstation } from '
|
|
2
|
+
import { sampleEthgasstationGas } from '../../../test'
|
|
3
|
+
import { transformGasFromEthgasstation } from '../transformGasFromEthgasstation'
|
|
4
4
|
|
|
5
5
|
describe('transformGasFromEthgasstation', () => {
|
|
6
6
|
it('returns values in the expected format', () => {
|
|
@@ -11,8 +11,8 @@ import { XyoEthereumGasEthgasstationWitness, XyoEthereumGasEthgasstationWitnessC
|
|
|
11
11
|
import { XyoEthereumGasPayload, XyoEthereumGasSchema } from '@xyo-network/gas-price-payload-plugin'
|
|
12
12
|
import { XyoPayload } from '@xyo-network/payload-model'
|
|
13
13
|
|
|
14
|
-
import { XyoEthereumGasDiviner } from '
|
|
15
|
-
import { sampleBlocknativeGas, sampleEtherchainGasV2, sampleEtherscanGas, sampleEthersGas, sampleEthgasstationGas } from '
|
|
14
|
+
import { XyoEthereumGasDiviner } from '../Diviner'
|
|
15
|
+
import { sampleBlocknativeGas, sampleEtherchainGasV2, sampleEtherscanGas, sampleEthersGas, sampleEthgasstationGas } from '../test'
|
|
16
16
|
|
|
17
17
|
describe('Diviner', () => {
|
|
18
18
|
test('returns divined gas price', async () => {
|