@xyo-network/ethers-ethereum-gas-plugin 2.73.4 → 2.74.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.
- package/dist/Config.d.mts +6 -0
- package/dist/Config.d.mts.map +1 -0
- package/dist/Config.d.ts +6 -0
- package/dist/Config.d.ts.map +1 -0
- package/dist/Plugin.d.mts +56 -0
- package/dist/Plugin.d.mts.map +1 -0
- package/dist/Plugin.d.ts +56 -0
- package/dist/Plugin.d.ts.map +1 -0
- package/dist/Schema.d.mts +3 -0
- package/dist/Schema.d.mts.map +1 -0
- package/dist/Schema.d.ts +3 -0
- package/dist/Schema.d.ts.map +1 -0
- package/dist/Witness.d.mts +15 -0
- package/dist/Witness.d.mts.map +1 -0
- package/dist/Witness.d.ts +15 -0
- package/dist/Witness.d.ts.map +1 -0
- package/dist/index.d.mts +7 -85
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +7 -85
- package/dist/index.d.ts.map +1 -0
- package/dist/lib/getGasFromEthers.d.mts +4 -0
- package/dist/lib/getGasFromEthers.d.mts.map +1 -0
- package/dist/lib/getGasFromEthers.d.ts +4 -0
- package/dist/lib/getGasFromEthers.d.ts.map +1 -0
- package/dist/lib/index.d.mts +2 -0
- package/dist/lib/index.d.mts.map +1 -0
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/package.json +10 -16
- package/dist/docs.json +0 -23026
- package/tsup.config.ts +0 -16
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { WitnessConfig } from '@xyo-network/witness';
|
|
2
|
+
import { EthereumGasEthersWitnessConfigSchema } from './Schema';
|
|
3
|
+
export type EthereumGasEthersWitnessConfig = WitnessConfig<{
|
|
4
|
+
schema: EthereumGasEthersWitnessConfigSchema;
|
|
5
|
+
}>;
|
|
6
|
+
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,OAAO,EAAE,oCAAoC,EAAE,MAAM,UAAU,CAAA;AAE/D,MAAM,MAAM,8BAA8B,GAAG,aAAa,CAAC;IACzD,MAAM,EAAE,oCAAoC,CAAA;CAC7C,CAAC,CAAA"}
|
package/dist/Config.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { WitnessConfig } from '@xyo-network/witness';
|
|
2
|
+
import { EthereumGasEthersWitnessConfigSchema } from './Schema';
|
|
3
|
+
export type EthereumGasEthersWitnessConfig = WitnessConfig<{
|
|
4
|
+
schema: EthereumGasEthersWitnessConfigSchema;
|
|
5
|
+
}>;
|
|
6
|
+
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,OAAO,EAAE,oCAAoC,EAAE,MAAM,UAAU,CAAA;AAE/D,MAAM,MAAM,8BAA8B,GAAG,aAAa,CAAC;IACzD,MAAM,EAAE,oCAAoC,CAAA;CAC7C,CAAC,CAAA"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { EthereumGasEthersWitness } from './Witness';
|
|
2
|
+
export declare const EthereumGasEthersPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<EthereumGasEthersWitness<import("@xyo-network/core").BaseParamsFields & {
|
|
3
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
4
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
|
|
5
|
+
accountDerivationPath?: string | undefined;
|
|
6
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
7
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
8
|
+
readonly name?: string | undefined;
|
|
9
|
+
readonly paging?: Record<string, {
|
|
10
|
+
size?: number | undefined;
|
|
11
|
+
}> | undefined;
|
|
12
|
+
readonly security?: {
|
|
13
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
14
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
15
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
readonly sign?: boolean | undefined;
|
|
18
|
+
readonly storeQueries?: boolean | undefined;
|
|
19
|
+
readonly timestamp?: boolean | undefined;
|
|
20
|
+
} & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
|
|
21
|
+
accountDerivationPath?: string | undefined;
|
|
22
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
23
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
24
|
+
readonly name?: string | undefined;
|
|
25
|
+
readonly paging?: Record<string, {
|
|
26
|
+
size?: number | undefined;
|
|
27
|
+
}> | undefined;
|
|
28
|
+
readonly security?: {
|
|
29
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
30
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
31
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
readonly sign?: boolean | undefined;
|
|
34
|
+
readonly storeQueries?: boolean | undefined;
|
|
35
|
+
readonly timestamp?: boolean | undefined;
|
|
36
|
+
} & {
|
|
37
|
+
archivist?: string | undefined;
|
|
38
|
+
schema: "network.xyo.blockchain.ethereum.gas.ethers.witness.config";
|
|
39
|
+
targetSet?: (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/payload-model").PayloadSet & {
|
|
40
|
+
schema: "network.xyo.payload.set";
|
|
41
|
+
}) | undefined;
|
|
42
|
+
} & {
|
|
43
|
+
schema: "network.xyo.blockchain.ethereum.gas.ethers.witness.config";
|
|
44
|
+
}, "schema"> & {
|
|
45
|
+
schema: "network.xyo.blockchain.ethereum.gas.ethers.witness.config";
|
|
46
|
+
}, "schema"> & {
|
|
47
|
+
schema: string;
|
|
48
|
+
}, "schema"> & {
|
|
49
|
+
schema: string;
|
|
50
|
+
};
|
|
51
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
52
|
+
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
53
|
+
} & {
|
|
54
|
+
provider?: import("@ethersproject/abstract-provider").Provider | undefined;
|
|
55
|
+
}>>;
|
|
56
|
+
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../src/Plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AAEpD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQjC,CAAA"}
|
package/dist/Plugin.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { EthereumGasEthersWitness } from './Witness';
|
|
2
|
+
export declare const EthereumGasEthersPlugin: () => import("@xyo-network/payloadset-plugin").PayloadSetWitnessPlugin<EthereumGasEthersWitness<import("@xyo-network/core").BaseParamsFields & {
|
|
3
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
4
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
|
|
5
|
+
accountDerivationPath?: string | undefined;
|
|
6
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
7
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
8
|
+
readonly name?: string | undefined;
|
|
9
|
+
readonly paging?: Record<string, {
|
|
10
|
+
size?: number | undefined;
|
|
11
|
+
}> | undefined;
|
|
12
|
+
readonly security?: {
|
|
13
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
14
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
15
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
readonly sign?: boolean | undefined;
|
|
18
|
+
readonly storeQueries?: boolean | undefined;
|
|
19
|
+
readonly timestamp?: boolean | undefined;
|
|
20
|
+
} & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
|
|
21
|
+
accountDerivationPath?: string | undefined;
|
|
22
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
23
|
+
readonly labels?: import("@xyo-network/module-model").Labels | undefined;
|
|
24
|
+
readonly name?: string | undefined;
|
|
25
|
+
readonly paging?: Record<string, {
|
|
26
|
+
size?: number | undefined;
|
|
27
|
+
}> | undefined;
|
|
28
|
+
readonly security?: {
|
|
29
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
30
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
31
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
readonly sign?: boolean | undefined;
|
|
34
|
+
readonly storeQueries?: boolean | undefined;
|
|
35
|
+
readonly timestamp?: boolean | undefined;
|
|
36
|
+
} & {
|
|
37
|
+
archivist?: string | undefined;
|
|
38
|
+
schema: "network.xyo.blockchain.ethereum.gas.ethers.witness.config";
|
|
39
|
+
targetSet?: (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/payload-model").PayloadSet & {
|
|
40
|
+
schema: "network.xyo.payload.set";
|
|
41
|
+
}) | undefined;
|
|
42
|
+
} & {
|
|
43
|
+
schema: "network.xyo.blockchain.ethereum.gas.ethers.witness.config";
|
|
44
|
+
}, "schema"> & {
|
|
45
|
+
schema: "network.xyo.blockchain.ethereum.gas.ethers.witness.config";
|
|
46
|
+
}, "schema"> & {
|
|
47
|
+
schema: string;
|
|
48
|
+
}, "schema"> & {
|
|
49
|
+
schema: string;
|
|
50
|
+
};
|
|
51
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
52
|
+
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
53
|
+
} & {
|
|
54
|
+
provider?: import("@ethersproject/abstract-provider").Provider | undefined;
|
|
55
|
+
}>>;
|
|
56
|
+
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../src/Plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AAEpD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQjC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../src/Schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oCAAoC,GAAG,2DAA2D,CAAA;AAC9G,eAAO,MAAM,oCAAoC,EAAE,oCAAkG,CAAA"}
|
package/dist/Schema.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../src/Schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oCAAoC,GAAG,2DAA2D,CAAA;AAC9G,eAAO,MAAM,oCAAoC,EAAE,oCAAkG,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Provider } from '@ethersproject/providers';
|
|
2
|
+
import { AnyConfigSchema } from '@xyo-network/module';
|
|
3
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
4
|
+
import { AbstractWitness, WitnessParams } from '@xyo-network/witness';
|
|
5
|
+
import { EthereumGasEthersWitnessConfig } from './Config';
|
|
6
|
+
export type EthereumGasEthersWitnessParams = WitnessParams<AnyConfigSchema<EthereumGasEthersWitnessConfig>, {
|
|
7
|
+
provider?: Provider;
|
|
8
|
+
}>;
|
|
9
|
+
export declare class EthereumGasEthersWitness<TParams extends EthereumGasEthersWitnessParams = EthereumGasEthersWitnessParams> extends AbstractWitness<TParams> {
|
|
10
|
+
static configSchemas: "network.xyo.blockchain.ethereum.gas.ethers.witness.config"[];
|
|
11
|
+
private _provider?;
|
|
12
|
+
protected get provider(): Provider | undefined;
|
|
13
|
+
protected observeHandler(): Promise<Payload[]>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=Witness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAGnD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAErD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAErE,OAAO,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAA;AAIzD,MAAM,MAAM,8BAA8B,GAAG,aAAa,CACxD,eAAe,CAAC,8BAA8B,CAAC,EAC/C;IACE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACpB,CACF,CAAA;AAED,qBAAa,wBAAwB,CACnC,OAAO,SAAS,8BAA8B,GAAG,8BAA8B,CAC/E,SAAQ,eAAe,CAAC,OAAO,CAAC;IAChC,OAAgB,aAAa,gEAAyC;IAEtE,OAAO,CAAC,SAAS,CAAC,CAAU;IAE5B,SAAS,KAAK,QAAQ,yBAGrB;cAEwB,cAAc,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;CAM9D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Provider } from '@ethersproject/providers';
|
|
2
|
+
import { AnyConfigSchema } from '@xyo-network/module';
|
|
3
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
4
|
+
import { AbstractWitness, WitnessParams } from '@xyo-network/witness';
|
|
5
|
+
import { EthereumGasEthersWitnessConfig } from './Config';
|
|
6
|
+
export type EthereumGasEthersWitnessParams = WitnessParams<AnyConfigSchema<EthereumGasEthersWitnessConfig>, {
|
|
7
|
+
provider?: Provider;
|
|
8
|
+
}>;
|
|
9
|
+
export declare class EthereumGasEthersWitness<TParams extends EthereumGasEthersWitnessParams = EthereumGasEthersWitnessParams> extends AbstractWitness<TParams> {
|
|
10
|
+
static configSchemas: "network.xyo.blockchain.ethereum.gas.ethers.witness.config"[];
|
|
11
|
+
private _provider?;
|
|
12
|
+
protected get provider(): Provider | undefined;
|
|
13
|
+
protected observeHandler(): Promise<Payload[]>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=Witness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../src/Witness.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AAGnD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAErD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAErE,OAAO,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAA;AAIzD,MAAM,MAAM,8BAA8B,GAAG,aAAa,CACxD,eAAe,CAAC,8BAA8B,CAAC,EAC/C;IACE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACpB,CACF,CAAA;AAED,qBAAa,wBAAwB,CACnC,OAAO,SAAS,8BAA8B,GAAG,8BAA8B,CAC/E,SAAQ,eAAe,CAAC,OAAO,CAAC;IAChC,OAAgB,aAAa,gEAAyC;IAEtE,OAAO,CAAC,SAAS,CAAC,CAAU;IAE5B,SAAS,KAAK,QAAQ,yBAGrB;cAEwB,cAAc,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;CAM9D"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,85 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import * as _xyo_network_core from '@xyo-network/core';
|
|
9
|
-
import { Provider } from '@ethersproject/providers';
|
|
10
|
-
import { AnyConfigSchema } from '@xyo-network/module';
|
|
11
|
-
import { WitnessConfig, WitnessParams, AbstractWitness } from '@xyo-network/witness';
|
|
12
|
-
|
|
13
|
-
type EthereumGasEthersWitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.ethers.witness.config';
|
|
14
|
-
declare const EthereumGasEthersWitnessConfigSchema: EthereumGasEthersWitnessConfigSchema;
|
|
15
|
-
|
|
16
|
-
type EthereumGasEthersWitnessConfig = WitnessConfig<{
|
|
17
|
-
schema: EthereumGasEthersWitnessConfigSchema;
|
|
18
|
-
}>;
|
|
19
|
-
|
|
20
|
-
type EthereumGasEthersWitnessParams = WitnessParams<AnyConfigSchema<EthereumGasEthersWitnessConfig>, {
|
|
21
|
-
provider?: Provider;
|
|
22
|
-
}>;
|
|
23
|
-
declare class EthereumGasEthersWitness<TParams extends EthereumGasEthersWitnessParams = EthereumGasEthersWitnessParams> extends AbstractWitness<TParams> {
|
|
24
|
-
static configSchemas: "network.xyo.blockchain.ethereum.gas.ethers.witness.config"[];
|
|
25
|
-
private _provider?;
|
|
26
|
-
protected get provider(): Provider | undefined;
|
|
27
|
-
protected observeHandler(): Promise<Payload[]>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare const EthereumGasEthersPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<EthereumGasEthersWitness<_xyo_network_core.BaseParamsFields & {
|
|
31
|
-
account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
|
|
32
|
-
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
33
|
-
accountDerivationPath?: string | undefined;
|
|
34
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
35
|
-
readonly name?: string | undefined;
|
|
36
|
-
readonly paging?: Record<string, {
|
|
37
|
-
size?: number | undefined;
|
|
38
|
-
}> | undefined;
|
|
39
|
-
readonly schema: string;
|
|
40
|
-
readonly security?: {
|
|
41
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
42
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
43
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
44
|
-
} | undefined;
|
|
45
|
-
readonly sign?: boolean | undefined;
|
|
46
|
-
readonly storeQueries?: boolean | undefined;
|
|
47
|
-
readonly timestamp?: boolean | undefined;
|
|
48
|
-
} & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
49
|
-
accountDerivationPath?: string | undefined;
|
|
50
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
51
|
-
readonly name?: string | undefined;
|
|
52
|
-
readonly paging?: Record<string, {
|
|
53
|
-
size?: number | undefined;
|
|
54
|
-
}> | undefined;
|
|
55
|
-
readonly schema: "network.xyo.blockchain.ethereum.gas.ethers.witness.config";
|
|
56
|
-
readonly security?: {
|
|
57
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
58
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
59
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
60
|
-
} | undefined;
|
|
61
|
-
readonly sign?: boolean | undefined;
|
|
62
|
-
readonly storeQueries?: boolean | undefined;
|
|
63
|
-
readonly timestamp?: boolean | undefined;
|
|
64
|
-
} & Omit<{
|
|
65
|
-
archivist?: string | undefined;
|
|
66
|
-
schema: "network.xyo.blockchain.ethereum.gas.ethers.witness.config";
|
|
67
|
-
targetSet?: (_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & _xyo_network_payload_model.PayloadSet & {
|
|
68
|
-
schema: "network.xyo.payload.set";
|
|
69
|
-
}) | undefined;
|
|
70
|
-
} & {
|
|
71
|
-
schema: "network.xyo.blockchain.ethereum.gas.ethers.witness.config";
|
|
72
|
-
}, "schema"> & {
|
|
73
|
-
schema: "network.xyo.blockchain.ethereum.gas.ethers.witness.config";
|
|
74
|
-
}, "schema"> & {
|
|
75
|
-
schema: string;
|
|
76
|
-
}, "schema"> & {
|
|
77
|
-
schema: string;
|
|
78
|
-
};
|
|
79
|
-
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
80
|
-
wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
|
|
81
|
-
} & {
|
|
82
|
-
provider?: _ethersproject_abstract_provider.Provider | undefined;
|
|
83
|
-
}>>;
|
|
84
|
-
|
|
85
|
-
export { EthereumGasEthersPlugin, EthereumGasEthersWitness, EthereumGasEthersWitnessConfig, EthereumGasEthersWitnessConfigSchema, EthereumGasEthersWitnessParams, EthereumGasEthersPlugin as default };
|
|
1
|
+
import { EthereumGasEthersPlugin } from './Plugin';
|
|
2
|
+
export * from './Config';
|
|
3
|
+
export * from './Schema';
|
|
4
|
+
export * from './Witness';
|
|
5
|
+
export { EthereumGasEthersPlugin };
|
|
6
|
+
export default EthereumGasEthersPlugin;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAA;AAElD,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,uBAAuB,EAAE,CAAA;AAGlC,eAAe,uBAAuB,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,85 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import * as _xyo_network_core from '@xyo-network/core';
|
|
9
|
-
import { Provider } from '@ethersproject/providers';
|
|
10
|
-
import { AnyConfigSchema } from '@xyo-network/module';
|
|
11
|
-
import { WitnessConfig, WitnessParams, AbstractWitness } from '@xyo-network/witness';
|
|
12
|
-
|
|
13
|
-
type EthereumGasEthersWitnessConfigSchema = 'network.xyo.blockchain.ethereum.gas.ethers.witness.config';
|
|
14
|
-
declare const EthereumGasEthersWitnessConfigSchema: EthereumGasEthersWitnessConfigSchema;
|
|
15
|
-
|
|
16
|
-
type EthereumGasEthersWitnessConfig = WitnessConfig<{
|
|
17
|
-
schema: EthereumGasEthersWitnessConfigSchema;
|
|
18
|
-
}>;
|
|
19
|
-
|
|
20
|
-
type EthereumGasEthersWitnessParams = WitnessParams<AnyConfigSchema<EthereumGasEthersWitnessConfig>, {
|
|
21
|
-
provider?: Provider;
|
|
22
|
-
}>;
|
|
23
|
-
declare class EthereumGasEthersWitness<TParams extends EthereumGasEthersWitnessParams = EthereumGasEthersWitnessParams> extends AbstractWitness<TParams> {
|
|
24
|
-
static configSchemas: "network.xyo.blockchain.ethereum.gas.ethers.witness.config"[];
|
|
25
|
-
private _provider?;
|
|
26
|
-
protected get provider(): Provider | undefined;
|
|
27
|
-
protected observeHandler(): Promise<Payload[]>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
declare const EthereumGasEthersPlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<EthereumGasEthersWitness<_xyo_network_core.BaseParamsFields & {
|
|
31
|
-
account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
|
|
32
|
-
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
33
|
-
accountDerivationPath?: string | undefined;
|
|
34
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
35
|
-
readonly name?: string | undefined;
|
|
36
|
-
readonly paging?: Record<string, {
|
|
37
|
-
size?: number | undefined;
|
|
38
|
-
}> | undefined;
|
|
39
|
-
readonly schema: string;
|
|
40
|
-
readonly security?: {
|
|
41
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
42
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
43
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
44
|
-
} | undefined;
|
|
45
|
-
readonly sign?: boolean | undefined;
|
|
46
|
-
readonly storeQueries?: boolean | undefined;
|
|
47
|
-
readonly timestamp?: boolean | undefined;
|
|
48
|
-
} & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
49
|
-
accountDerivationPath?: string | undefined;
|
|
50
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
51
|
-
readonly name?: string | undefined;
|
|
52
|
-
readonly paging?: Record<string, {
|
|
53
|
-
size?: number | undefined;
|
|
54
|
-
}> | undefined;
|
|
55
|
-
readonly schema: "network.xyo.blockchain.ethereum.gas.ethers.witness.config";
|
|
56
|
-
readonly security?: {
|
|
57
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
58
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
59
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
60
|
-
} | undefined;
|
|
61
|
-
readonly sign?: boolean | undefined;
|
|
62
|
-
readonly storeQueries?: boolean | undefined;
|
|
63
|
-
readonly timestamp?: boolean | undefined;
|
|
64
|
-
} & Omit<{
|
|
65
|
-
archivist?: string | undefined;
|
|
66
|
-
schema: "network.xyo.blockchain.ethereum.gas.ethers.witness.config";
|
|
67
|
-
targetSet?: (_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & _xyo_network_payload_model.PayloadSet & {
|
|
68
|
-
schema: "network.xyo.payload.set";
|
|
69
|
-
}) | undefined;
|
|
70
|
-
} & {
|
|
71
|
-
schema: "network.xyo.blockchain.ethereum.gas.ethers.witness.config";
|
|
72
|
-
}, "schema"> & {
|
|
73
|
-
schema: "network.xyo.blockchain.ethereum.gas.ethers.witness.config";
|
|
74
|
-
}, "schema"> & {
|
|
75
|
-
schema: string;
|
|
76
|
-
}, "schema"> & {
|
|
77
|
-
schema: string;
|
|
78
|
-
};
|
|
79
|
-
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
80
|
-
wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
|
|
81
|
-
} & {
|
|
82
|
-
provider?: _ethersproject_abstract_provider.Provider | undefined;
|
|
83
|
-
}>>;
|
|
84
|
-
|
|
85
|
-
export { EthereumGasEthersPlugin, EthereumGasEthersWitness, EthereumGasEthersWitnessConfig, EthereumGasEthersWitnessConfigSchema, EthereumGasEthersWitnessParams, EthereumGasEthersPlugin as default };
|
|
1
|
+
import { EthereumGasEthersPlugin } from './Plugin';
|
|
2
|
+
export * from './Config';
|
|
3
|
+
export * from './Schema';
|
|
4
|
+
export * from './Witness';
|
|
5
|
+
export { EthereumGasEthersPlugin };
|
|
6
|
+
export default EthereumGasEthersPlugin;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAA;AAElD,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,uBAAuB,EAAE,CAAA;AAGlC,eAAe,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Provider } from '@ethersproject/providers';
|
|
2
|
+
import { EthereumGasEthersResponse } from '@xyo-network/ethers-ethereum-gas-payload-plugin';
|
|
3
|
+
export declare const getGasFromEthers: (provider: Provider) => Promise<EthereumGasEthersResponse>;
|
|
4
|
+
//# sourceMappingURL=getGasFromEthers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGasFromEthers.d.ts","sourceRoot":"","sources":["../../src/lib/getGasFromEthers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAA;AAM3F,eAAO,MAAM,gBAAgB,aAAoB,QAAQ,KAAG,QAAQ,yBAAyB,CAU5F,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Provider } from '@ethersproject/providers';
|
|
2
|
+
import { EthereumGasEthersResponse } from '@xyo-network/ethers-ethereum-gas-payload-plugin';
|
|
3
|
+
export declare const getGasFromEthers: (provider: Provider) => Promise<EthereumGasEthersResponse>;
|
|
4
|
+
//# sourceMappingURL=getGasFromEthers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGasFromEthers.d.ts","sourceRoot":"","sources":["../../src/lib/getGasFromEthers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAA;AAM3F,eAAO,MAAM,gBAAgB,aAAoB,QAAQ,KAAG,QAAQ,yBAAyB,CAU5F,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
|
package/package.json
CHANGED
|
@@ -11,25 +11,19 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@ethersproject/providers": "^5.7.2",
|
|
14
|
-
"@xylabs/assert": "^2.
|
|
15
|
-
"@xyo-network/ethers-ethereum-gas-payload-plugin": "~2.
|
|
16
|
-
"@xyo-network/module": "~2.
|
|
17
|
-
"@xyo-network/payload-builder": "~2.
|
|
18
|
-
"@xyo-network/payload-model": "~2.
|
|
19
|
-
"@xyo-network/payloadset-plugin": "~2.
|
|
20
|
-
"@xyo-network/witness": "~2.
|
|
14
|
+
"@xylabs/assert": "^2.11.5",
|
|
15
|
+
"@xyo-network/ethers-ethereum-gas-payload-plugin": "~2.74.0",
|
|
16
|
+
"@xyo-network/module": "~2.74.0",
|
|
17
|
+
"@xyo-network/payload-builder": "~2.74.0",
|
|
18
|
+
"@xyo-network/payload-model": "~2.74.0",
|
|
19
|
+
"@xyo-network/payloadset-plugin": "~2.74.0",
|
|
20
|
+
"@xyo-network/witness": "~2.74.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
24
|
-
"@xylabs/tsconfig": "^
|
|
25
|
-
"publint": "^0.2.2",
|
|
26
|
-
"tsup": "^7.2.0",
|
|
23
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.27",
|
|
24
|
+
"@xylabs/tsconfig": "^3.0.27",
|
|
27
25
|
"typescript": "^5.2.2"
|
|
28
26
|
},
|
|
29
|
-
"scripts": {
|
|
30
|
-
"package-compile": "tsup && publint",
|
|
31
|
-
"package-recompile": "tsup && publint"
|
|
32
|
-
},
|
|
33
27
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
34
28
|
"docs": "dist/docs.json",
|
|
35
29
|
"types": "dist/index.d.ts",
|
|
@@ -70,5 +64,5 @@
|
|
|
70
64
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
71
65
|
},
|
|
72
66
|
"sideEffects": false,
|
|
73
|
-
"version": "2.
|
|
67
|
+
"version": "2.74.0"
|
|
74
68
|
}
|