@xyo-network/blocknative-ethereum-gas-plugin 2.72.7 → 2.72.8
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/cjs/Witness.js +2 -5
- package/dist/cjs/Witness.js.map +1 -1
- package/dist/docs.json +2025 -1526
- package/dist/esm/Witness.js +3 -3
- package/dist/esm/Witness.js.map +1 -1
- package/dist/types/Witness.d.ts +2 -2
- package/dist/types/Witness.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/Witness.ts +3 -3
package/dist/esm/Witness.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EthereumGasBlocknativeSchema } from '@xyo-network/blocknative-ethereum-gas-payload-plugin';
|
|
2
2
|
import { PayloadBuilder } from '@xyo-network/payload-builder';
|
|
3
|
-
import {
|
|
3
|
+
import { AbstractWitness } from '@xyo-network/witness';
|
|
4
4
|
import { getGasFromBlocknative } from './lib';
|
|
5
5
|
import { EthereumGasBlocknativeWitnessConfigSchema } from './Schema';
|
|
6
|
-
export class EthereumGasBlocknativeWitness extends
|
|
6
|
+
export class EthereumGasBlocknativeWitness extends AbstractWitness {
|
|
7
7
|
static configSchemas = [EthereumGasBlocknativeWitnessConfigSchema];
|
|
8
8
|
async observeHandler() {
|
|
9
9
|
const fields = await getGasFromBlocknative();
|
|
@@ -12,7 +12,7 @@ export class EthereumGasBlocknativeWitness extends TimestampWitness {
|
|
|
12
12
|
})
|
|
13
13
|
.fields(fields)
|
|
14
14
|
.build();
|
|
15
|
-
return
|
|
15
|
+
return [payload];
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
//# sourceMappingURL=Witness.js.map
|
package/dist/esm/Witness.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Witness.js","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,4BAA4B,EAAE,MAAM,sDAAsD,CAAA;AAElI,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAE7D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Witness.js","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,4BAA4B,EAAE,MAAM,sDAAsD,CAAA;AAElI,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAE7D,OAAO,EAAE,eAAe,EAA0B,MAAM,sBAAsB,CAAA;AAG9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,yCAAyC,EAAE,MAAM,UAAU,CAAA;AAGpE,MAAM,OAAO,6BAA8B,SAAQ,eAAoD;IACrG,MAAM,CAAU,aAAa,GAAG,CAAC,yCAAyC,CAAC,CAAA;IAExD,KAAK,CAAC,cAAc;QACrC,MAAM,MAAM,GAAG,MAAM,qBAAqB,EAAE,CAAA;QAC5C,MAAM,OAAO,GAAG,IAAI,cAAc,CAAgC;YAChE,MAAM,EAAE,4BAA4B;SACrC,CAAC;aACC,MAAM,CAAC,MAAM,CAAC;aACd,KAAK,EAAE,CAAA;QACV,OAAO,CAAC,OAAO,CAAC,CAAA;IAClB,CAAC"}
|
package/dist/types/Witness.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AnyConfigSchema } from '@xyo-network/module';
|
|
2
2
|
import { Payload } from '@xyo-network/payload-model';
|
|
3
|
-
import {
|
|
3
|
+
import { AbstractWitness, TimestampWitnessParams } from '@xyo-network/witness';
|
|
4
4
|
import { EthereumGasBlocknativeWitnessConfig } from './Config';
|
|
5
5
|
export type EthereumGasBlocknativeWitnessParams = TimestampWitnessParams<AnyConfigSchema<EthereumGasBlocknativeWitnessConfig>>;
|
|
6
|
-
export declare class EthereumGasBlocknativeWitness extends
|
|
6
|
+
export declare class EthereumGasBlocknativeWitness extends AbstractWitness<EthereumGasBlocknativeWitnessParams> {
|
|
7
7
|
static configSchemas: "network.xyo.blockchain.ethereum.gas.blocknative.witness.config"[];
|
|
8
8
|
protected observeHandler(): Promise<Payload[]>;
|
|
9
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAErD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAErD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAE9E,OAAO,EAAE,mCAAmC,EAAE,MAAM,UAAU,CAAA;AAI9D,MAAM,MAAM,mCAAmC,GAAG,sBAAsB,CAAC,eAAe,CAAC,mCAAmC,CAAC,CAAC,CAAA;AAC9H,qBAAa,6BAA8B,SAAQ,eAAe,CAAC,mCAAmC,CAAC;IACrG,OAAgB,aAAa,qEAA8C;cAElD,cAAc,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;CAS9D"}
|
package/package.json
CHANGED
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xyo-network/axios": "~2.72.
|
|
14
|
-
"@xyo-network/blocknative-ethereum-gas-payload-plugin": "~2.72.
|
|
15
|
-
"@xyo-network/module": "~2.72.
|
|
16
|
-
"@xyo-network/payload-builder": "~2.72.
|
|
17
|
-
"@xyo-network/payload-model": "~2.72.
|
|
18
|
-
"@xyo-network/payloadset-plugin": "~2.72.
|
|
19
|
-
"@xyo-network/witness": "~2.72.
|
|
13
|
+
"@xyo-network/axios": "~2.72.8",
|
|
14
|
+
"@xyo-network/blocknative-ethereum-gas-payload-plugin": "~2.72.8",
|
|
15
|
+
"@xyo-network/module": "~2.72.8",
|
|
16
|
+
"@xyo-network/payload-builder": "~2.72.8",
|
|
17
|
+
"@xyo-network/payload-model": "~2.72.8",
|
|
18
|
+
"@xyo-network/payloadset-plugin": "~2.72.8",
|
|
19
|
+
"@xyo-network/witness": "~2.72.8"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@xylabs/ts-scripts-yarn3": "^2.19.3",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
},
|
|
57
57
|
"sideEffects": false,
|
|
58
58
|
"types": "dist/types/index.d.ts",
|
|
59
|
-
"version": "2.72.
|
|
59
|
+
"version": "2.72.8"
|
|
60
60
|
}
|
package/src/Witness.ts
CHANGED
|
@@ -2,14 +2,14 @@ import { EthereumGasBlocknativePayload, EthereumGasBlocknativeSchema } from '@xy
|
|
|
2
2
|
import { AnyConfigSchema } from '@xyo-network/module'
|
|
3
3
|
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
4
4
|
import { Payload } from '@xyo-network/payload-model'
|
|
5
|
-
import {
|
|
5
|
+
import { AbstractWitness, TimestampWitnessParams } from '@xyo-network/witness'
|
|
6
6
|
|
|
7
7
|
import { EthereumGasBlocknativeWitnessConfig } from './Config'
|
|
8
8
|
import { getGasFromBlocknative } from './lib'
|
|
9
9
|
import { EthereumGasBlocknativeWitnessConfigSchema } from './Schema'
|
|
10
10
|
|
|
11
11
|
export type EthereumGasBlocknativeWitnessParams = TimestampWitnessParams<AnyConfigSchema<EthereumGasBlocknativeWitnessConfig>>
|
|
12
|
-
export class EthereumGasBlocknativeWitness extends
|
|
12
|
+
export class EthereumGasBlocknativeWitness extends AbstractWitness<EthereumGasBlocknativeWitnessParams> {
|
|
13
13
|
static override configSchemas = [EthereumGasBlocknativeWitnessConfigSchema]
|
|
14
14
|
|
|
15
15
|
protected override async observeHandler(): Promise<Payload[]> {
|
|
@@ -19,6 +19,6 @@ export class EthereumGasBlocknativeWitness extends TimestampWitness<EthereumGasB
|
|
|
19
19
|
})
|
|
20
20
|
.fields(fields)
|
|
21
21
|
.build()
|
|
22
|
-
return
|
|
22
|
+
return [payload]
|
|
23
23
|
}
|
|
24
24
|
}
|