@xyo-network/evm-abi-diviner 3.4.2 → 3.4.4
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/types/Diviner.d.ts +20 -0
- package/dist/types/Diviner.d.ts.map +1 -0
- package/dist/types/Payload.d.ts +11 -0
- package/dist/types/Payload.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +16 -16
- package/dist/neutral/index.d.ts +0 -31
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AbstractDiviner } from '@xyo-network/diviner-abstract';
|
|
2
|
+
import type { DivinerConfig, DivinerParams } from '@xyo-network/diviner-model';
|
|
3
|
+
import type { EvmContract } from '@xyo-network/evm-contract-witness';
|
|
4
|
+
import type { AnyConfigSchema } from '@xyo-network/module-model';
|
|
5
|
+
import type { Schema } from '@xyo-network/payload-model';
|
|
6
|
+
import type { EvmFunctionImplemented, InterfaceAbi } from './Payload.ts';
|
|
7
|
+
export declare const EvmAbiImplementedDivinerConfigSchema = "network.xyo.evm.abi.implemented.diviner.config";
|
|
8
|
+
export type EvmAbiImplementedDivinerConfigSchema = typeof EvmAbiImplementedDivinerConfigSchema;
|
|
9
|
+
export type EvmAbiImplementedDivinerConfig = DivinerConfig<{
|
|
10
|
+
abi?: InterfaceAbi;
|
|
11
|
+
schema: EvmAbiImplementedDivinerConfigSchema;
|
|
12
|
+
}>;
|
|
13
|
+
export type EvmAbiImplementedDivinerParams = DivinerParams<AnyConfigSchema<EvmAbiImplementedDivinerConfig>>;
|
|
14
|
+
export declare class EvmAbiImplementedDiviner<TParams extends EvmAbiImplementedDivinerParams = EvmAbiImplementedDivinerParams> extends AbstractDiviner<TParams, EvmContract, EvmFunctionImplemented> {
|
|
15
|
+
static readonly configSchemas: Schema[];
|
|
16
|
+
static readonly defaultConfigSchema: Schema;
|
|
17
|
+
get abi(): InterfaceAbi;
|
|
18
|
+
protected divineHandler(inPayloads?: EvmContract[]): Promise<EvmFunctionImplemented[]>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=Diviner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAEpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAIxD,OAAO,KAAK,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAGxE,eAAO,MAAM,oCAAoC,mDAAmD,CAAA;AACpG,MAAM,MAAM,oCAAoC,GAAG,OAAO,oCAAoC,CAAA;AAE9F,MAAM,MAAM,8BAA8B,GAAG,aAAa,CAAC;IAAE,GAAG,CAAC,EAAE,YAAY,CAAC;IAAC,MAAM,EAAE,oCAAoC,CAAA;CAAE,CAAC,CAAA;AAEhI,MAAM,MAAM,8BAA8B,GAAG,aAAa,CAAC,eAAe,CAAC,8BAA8B,CAAC,CAAC,CAAA;AAE3G,qBAAa,wBAAwB,CAAC,OAAO,SAAS,8BAA8B,GAAG,8BAA8B,CAAE,SAAQ,eAAe,CAC5I,OAAO,EACP,WAAW,EACX,sBAAsB,CACvB;IACC,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAAiE;IACjH,gBAAyB,mBAAmB,EAAE,MAAM,CAAuC;IAE3F,IAAI,GAAG,IAC0D,YAAY,CAC5E;cAEwB,aAAa,CAAC,UAAU,GAAE,WAAW,EAAO,GAAG,OAAO,CAAC,sBAAsB,EAAE,CAAC;CA8B1G"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import type { Fragment, JsonFragment } from 'ethers';
|
|
3
|
+
export type InterfaceAbi = string | ReadonlyArray<Fragment | JsonFragment | string>;
|
|
4
|
+
export declare const EvmFunctionImplementedSchema = "network.xyo.evm.function.implemented";
|
|
5
|
+
export type EvmFunctionImplementedSchema = typeof EvmFunctionImplementedSchema;
|
|
6
|
+
export type EvmFunctionImplemented = Payload<{
|
|
7
|
+
address: string;
|
|
8
|
+
implemented: boolean;
|
|
9
|
+
selector: string;
|
|
10
|
+
}, EvmFunctionImplementedSchema>;
|
|
11
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AAEpD,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,aAAa,CAAC,QAAQ,GAAG,YAAY,GAAG,MAAM,CAAC,CAAA;AAEnF,eAAO,MAAM,4BAA4B,yCAAyC,CAAA;AAClF,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAA;AAE9E,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAC1C;IACE,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB,EACD,4BAA4B,CAC7B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/evm-abi-diviner",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.4",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -21,30 +21,30 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
24
|
+
"types": "./dist/types/index.d.ts",
|
|
25
25
|
"default": "./dist/neutral/index.mjs"
|
|
26
26
|
},
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
|
-
"types": "dist/
|
|
30
|
+
"types": "dist/types/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/assert": "^4.
|
|
33
|
-
"@xyo-network/diviner-abstract": "^3.9.
|
|
34
|
-
"@xyo-network/diviner-model": "^3.9.
|
|
35
|
-
"@xyo-network/evm-contract-witness": "^3.4.
|
|
36
|
-
"@xyo-network/module-model": "^3.9.
|
|
37
|
-
"@xyo-network/payload-model": "^3.9.
|
|
32
|
+
"@xylabs/assert": "^4.6.0",
|
|
33
|
+
"@xyo-network/diviner-abstract": "^3.9.36",
|
|
34
|
+
"@xyo-network/diviner-model": "^3.9.36",
|
|
35
|
+
"@xyo-network/evm-contract-witness": "^3.4.4",
|
|
36
|
+
"@xyo-network/module-model": "^3.9.36",
|
|
37
|
+
"@xyo-network/payload-model": "^3.9.36",
|
|
38
38
|
"ethers": "^6.13.5"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
42
|
-
"@xylabs/tsconfig": "^
|
|
43
|
-
"@xylabs/vitest-extended": "^4.
|
|
44
|
-
"@xyo-network/open-zeppelin-typechain": "^3.4.
|
|
45
|
-
"@xyo-network/witness-evm-abstract": "^3.9.
|
|
46
|
-
"typescript": "^5.
|
|
47
|
-
"vitest": "^3.0.
|
|
41
|
+
"@xylabs/ts-scripts-yarn3": "^6.0.5",
|
|
42
|
+
"@xylabs/tsconfig": "^6.0.5",
|
|
43
|
+
"@xylabs/vitest-extended": "^4.6.0",
|
|
44
|
+
"@xyo-network/open-zeppelin-typechain": "^3.4.10",
|
|
45
|
+
"@xyo-network/witness-evm-abstract": "^3.9.36",
|
|
46
|
+
"typescript": "^5.8.2",
|
|
47
|
+
"vitest": "^3.0.8"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
package/dist/neutral/index.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { AbstractDiviner } from '@xyo-network/diviner-abstract';
|
|
2
|
-
import { DivinerConfig, DivinerParams } from '@xyo-network/diviner-model';
|
|
3
|
-
import { EvmContract } from '@xyo-network/evm-contract-witness';
|
|
4
|
-
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
5
|
-
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
6
|
-
import { Fragment, JsonFragment } from 'ethers';
|
|
7
|
-
|
|
8
|
-
type InterfaceAbi = string | ReadonlyArray<Fragment | JsonFragment | string>;
|
|
9
|
-
declare const EvmFunctionImplementedSchema = "network.xyo.evm.function.implemented";
|
|
10
|
-
type EvmFunctionImplementedSchema = typeof EvmFunctionImplementedSchema;
|
|
11
|
-
type EvmFunctionImplemented = Payload<{
|
|
12
|
-
address: string;
|
|
13
|
-
implemented: boolean;
|
|
14
|
-
selector: string;
|
|
15
|
-
}, EvmFunctionImplementedSchema>;
|
|
16
|
-
|
|
17
|
-
declare const EvmAbiImplementedDivinerConfigSchema = "network.xyo.evm.abi.implemented.diviner.config";
|
|
18
|
-
type EvmAbiImplementedDivinerConfigSchema = typeof EvmAbiImplementedDivinerConfigSchema;
|
|
19
|
-
type EvmAbiImplementedDivinerConfig = DivinerConfig<{
|
|
20
|
-
abi?: InterfaceAbi;
|
|
21
|
-
schema: EvmAbiImplementedDivinerConfigSchema;
|
|
22
|
-
}>;
|
|
23
|
-
type EvmAbiImplementedDivinerParams = DivinerParams<AnyConfigSchema<EvmAbiImplementedDivinerConfig>>;
|
|
24
|
-
declare class EvmAbiImplementedDiviner<TParams extends EvmAbiImplementedDivinerParams = EvmAbiImplementedDivinerParams> extends AbstractDiviner<TParams, EvmContract, EvmFunctionImplemented> {
|
|
25
|
-
static readonly configSchemas: Schema[];
|
|
26
|
-
static readonly defaultConfigSchema: Schema;
|
|
27
|
-
get abi(): InterfaceAbi;
|
|
28
|
-
protected divineHandler(inPayloads?: EvmContract[]): Promise<EvmFunctionImplemented[]>;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export { EvmAbiImplementedDiviner, type EvmAbiImplementedDivinerConfig, EvmAbiImplementedDivinerConfigSchema, type EvmAbiImplementedDivinerParams, type EvmFunctionImplemented, EvmFunctionImplementedSchema, type InterfaceAbi };
|