@xyo-network/erc1822-witness 3.6.1 → 4.1.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/neutral/index.d.ts +40 -0
- package/dist/neutral/spec/Witness.spec.d.ts +2 -0
- package/dist/neutral/spec/Witness.spec.d.ts.map +1 -0
- package/package.json +13 -13
- package/dist/types/index.d.ts +0 -4
- /package/dist/{types → neutral}/Payload.d.ts +0 -0
- /package/dist/{types → neutral}/Payload.d.ts.map +0 -0
- /package/dist/{types → neutral}/Witness.d.ts +0 -0
- /package/dist/{types → neutral}/Witness.d.ts.map +0 -0
- /package/dist/{types → neutral}/index.d.ts.map +0 -0
- /package/dist/{types → neutral}/lib/getErc1822SlotStatus.d.ts +0 -0
- /package/dist/{types → neutral}/lib/getErc1822SlotStatus.d.ts.map +0 -0
- /package/dist/{types → neutral}/lib/index.d.ts +0 -0
- /package/dist/{types → neutral}/lib/index.d.ts.map +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Address } from '@xylabs/hex';
|
|
2
|
+
import { Provider } from 'ethers';
|
|
3
|
+
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
4
|
+
import { EvmWitnessConfig, EvmWitnessParams, AbstractEvmWitness, EvmAddress } from '@xyo-network/witness-evm-abstract';
|
|
5
|
+
|
|
6
|
+
declare const ERC1822_PROXY_LOGIC_SLOT = "0xc5f16f0fcc639fa48a6947836d9850f504798523bf8c9a3a87d5876cf622bcf7";
|
|
7
|
+
interface Erc1822DataSlots {
|
|
8
|
+
implementation?: Address;
|
|
9
|
+
}
|
|
10
|
+
interface Erc1822SlotStatus {
|
|
11
|
+
address: string;
|
|
12
|
+
implementation: string;
|
|
13
|
+
slots: Erc1822DataSlots;
|
|
14
|
+
}
|
|
15
|
+
declare const getErc1822SlotStatus: (provider: Provider, address: string, block?: number) => Promise<Erc1822SlotStatus>;
|
|
16
|
+
|
|
17
|
+
declare const Erc1822StatusSchema = "network.xyo.erc1822.status";
|
|
18
|
+
type Erc1822StatusSchema = typeof Erc1822StatusSchema;
|
|
19
|
+
type Erc1822Status = Payload<{
|
|
20
|
+
address: string;
|
|
21
|
+
block: number;
|
|
22
|
+
chainId: number;
|
|
23
|
+
implementation?: Erc1822SlotStatus['implementation'];
|
|
24
|
+
slots?: Erc1822SlotStatus['slots'];
|
|
25
|
+
}, Erc1822StatusSchema>;
|
|
26
|
+
|
|
27
|
+
declare const Erc1822WitnessConfigSchema = "network.xyo.erc1822.witness.config";
|
|
28
|
+
type Erc1822WitnessConfigSchema = typeof Erc1822WitnessConfigSchema;
|
|
29
|
+
type Erc1822WitnessConfig = EvmWitnessConfig<{
|
|
30
|
+
address?: string;
|
|
31
|
+
}, Erc1822WitnessConfigSchema>;
|
|
32
|
+
type Erc1822WitnessParams = EvmWitnessParams<Erc1822WitnessConfig>;
|
|
33
|
+
declare class Erc1822Witness<TParams extends Erc1822WitnessParams = Erc1822WitnessParams> extends AbstractEvmWitness<TParams, EvmAddress, Erc1822Status> {
|
|
34
|
+
static readonly configSchemas: Schema[];
|
|
35
|
+
static readonly defaultConfigSchema: Schema;
|
|
36
|
+
protected observeHandler(inPayloads?: EvmAddress[]): Promise<Erc1822Status[]>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { ERC1822_PROXY_LOGIC_SLOT, Erc1822StatusSchema, Erc1822Witness, Erc1822WitnessConfigSchema, getErc1822SlotStatus };
|
|
40
|
+
export type { Erc1822DataSlots, Erc1822SlotStatus, Erc1822Status, Erc1822WitnessConfig, Erc1822WitnessParams };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Witness.spec.d.ts","sourceRoot":"","sources":["../../../src/spec/Witness.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/erc1822-witness",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -21,27 +21,27 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
24
|
+
"types": "./dist/neutral/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/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/assert": "^4.
|
|
33
|
-
"@xylabs/hex": "^4.
|
|
34
|
-
"@xyo-network/payload-model": "^
|
|
35
|
-
"@xyo-network/witness-evm-abstract": "^
|
|
36
|
-
"ethers": "^6.
|
|
32
|
+
"@xylabs/assert": "^4.13.15",
|
|
33
|
+
"@xylabs/hex": "^4.13.15",
|
|
34
|
+
"@xyo-network/payload-model": "^4.1.1",
|
|
35
|
+
"@xyo-network/witness-evm-abstract": "^4.1.1",
|
|
36
|
+
"ethers": "^6.15.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
40
|
-
"@xylabs/tsconfig": "^
|
|
41
|
-
"@xylabs/vitest-extended": "^4.
|
|
42
|
-
"knip": "^5.
|
|
39
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.24",
|
|
40
|
+
"@xylabs/tsconfig": "^7.0.0-rc.24",
|
|
41
|
+
"@xylabs/vitest-extended": "^4.13.15",
|
|
42
|
+
"knip": "^5.61.3",
|
|
43
43
|
"typescript": "^5.8.3",
|
|
44
|
-
"vitest": "^3.
|
|
44
|
+
"vitest": "^3.2.4"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
package/dist/types/index.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|