@xyo-network/erc1822-witness 7.0.2 → 7.0.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/neutral/index.d.ts +1 -3
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +2 -105
- package/dist/neutral/index.mjs.map +4 -4
- package/package.json +102 -44
- package/dist/neutral/Payload.d.ts +0 -83
- package/dist/neutral/Payload.d.ts.map +0 -1
- package/dist/neutral/Witness.d.ts +0 -18
- package/dist/neutral/Witness.d.ts.map +0 -1
- package/dist/neutral/lib/getErc1822SlotStatus.d.ts +0 -18
- package/dist/neutral/lib/getErc1822SlotStatus.d.ts.map +0 -1
- package/dist/neutral/lib/index.d.ts +0 -2
- package/dist/neutral/lib/index.d.ts.map +0 -1
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,iDAAiD,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,106 +1,3 @@
|
|
|
1
|
-
// src/
|
|
2
|
-
|
|
3
|
-
asEthAddress,
|
|
4
|
-
hexFromHexString,
|
|
5
|
-
isHexZero
|
|
6
|
-
} from "@ariestools/sdk";
|
|
7
|
-
import * as z from "zod/mini";
|
|
8
|
-
var ERC1822_PROXY_LOGIC_SLOT = "0xc5f16f0fcc639fa48a6947836d9850f504798523bf8c9a3a87d5876cf622bcf7";
|
|
9
|
-
var Erc1822DataSlotsZod = z.object({ implementation: z.optional(z.custom()) });
|
|
10
|
-
var Erc1822SlotStatusZod = z.object({
|
|
11
|
-
address: z.custom(),
|
|
12
|
-
implementation: z.custom(),
|
|
13
|
-
slots: Erc1822DataSlotsZod
|
|
14
|
-
});
|
|
15
|
-
var readAddressFromSlot = async (provider, address, slot, block) => {
|
|
16
|
-
try {
|
|
17
|
-
const slotValue = await provider.getStorage(address, slot, block);
|
|
18
|
-
return asEthAddress(hexFromHexString(slotValue, { prefix: true }));
|
|
19
|
-
} catch {
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
var getErc1822SlotStatus = async (provider, address, block) => {
|
|
24
|
-
const status = {
|
|
25
|
-
address,
|
|
26
|
-
implementation: address,
|
|
27
|
-
slots: { implementation: await readAddressFromSlot(provider, address, ERC1822_PROXY_LOGIC_SLOT, block) }
|
|
28
|
-
};
|
|
29
|
-
if (status.slots.implementation != null && isHexZero(status.slots.implementation) !== true) {
|
|
30
|
-
status.implementation = status.slots.implementation;
|
|
31
|
-
}
|
|
32
|
-
return status;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
// src/Payload.ts
|
|
36
|
-
import {
|
|
37
|
-
zodAsFactory,
|
|
38
|
-
zodIsFactory,
|
|
39
|
-
zodToFactory
|
|
40
|
-
} from "@ariestools/sdk";
|
|
41
|
-
import { asSchema, PayloadZodOfSchema } from "@xyo-network/sdk";
|
|
42
|
-
import * as z2 from "zod/mini";
|
|
43
|
-
var Erc1822StatusSchema = asSchema("network.xyo.erc1822.status", true);
|
|
44
|
-
var Erc1822StatusZod = z2.extend(PayloadZodOfSchema(Erc1822StatusSchema), {
|
|
45
|
-
address: z2.string(),
|
|
46
|
-
block: z2.number(),
|
|
47
|
-
chainId: z2.number(),
|
|
48
|
-
implementation: z2.optional(Erc1822SlotStatusZod.shape.implementation),
|
|
49
|
-
slots: z2.optional(Erc1822SlotStatusZod.shape.slots)
|
|
50
|
-
});
|
|
51
|
-
var isErc1822Status = zodIsFactory(Erc1822StatusZod);
|
|
52
|
-
var asErc1822Status = zodAsFactory(Erc1822StatusZod, "asErc1822Status");
|
|
53
|
-
var toErc1822Status = zodToFactory(Erc1822StatusZod, "toErc1822Status");
|
|
54
|
-
|
|
55
|
-
// src/Witness.ts
|
|
56
|
-
import { asEthAddress as asEthAddress2, assertEx } from "@ariestools/sdk";
|
|
57
|
-
import { asSchema as asSchema2, isPayloadOfSchemaType } from "@xyo-network/sdk";
|
|
58
|
-
import { AbstractEvmWitness, EvmAddressSchema } from "@xyo-network/witness-evm-abstract";
|
|
59
|
-
var Erc1822WitnessConfigSchema = asSchema2("network.xyo.erc1822.witness.config", true);
|
|
60
|
-
var Erc1822Witness = class extends AbstractEvmWitness {
|
|
61
|
-
static configSchemas = [...super.configSchemas, Erc1822WitnessConfigSchema];
|
|
62
|
-
static defaultConfigSchema = Erc1822WitnessConfigSchema;
|
|
63
|
-
async observeHandler(inPayloads = []) {
|
|
64
|
-
await this.startedAsync("throw");
|
|
65
|
-
await this.getProviders();
|
|
66
|
-
try {
|
|
67
|
-
const observations = await Promise.all(
|
|
68
|
-
inPayloads.filter(isPayloadOfSchemaType(EvmAddressSchema)).map(async ({ address }) => {
|
|
69
|
-
const validatedAddress = asEthAddress2(assertEx(address ?? this.config.address, () => "Missing address"), true);
|
|
70
|
-
const provider = await this.getProvider(true, true);
|
|
71
|
-
const block = await provider.getBlockNumber();
|
|
72
|
-
const { implementation, slots } = await getErc1822SlotStatus(provider, validatedAddress, block);
|
|
73
|
-
const network = await provider.getNetwork();
|
|
74
|
-
const observation = {
|
|
75
|
-
address: validatedAddress,
|
|
76
|
-
block,
|
|
77
|
-
chainId: Number(network.chainId),
|
|
78
|
-
implementation,
|
|
79
|
-
schema: Erc1822StatusSchema,
|
|
80
|
-
slots
|
|
81
|
-
};
|
|
82
|
-
return observation;
|
|
83
|
-
})
|
|
84
|
-
);
|
|
85
|
-
return observations;
|
|
86
|
-
} catch (ex) {
|
|
87
|
-
const error = ex;
|
|
88
|
-
console.log(`Error [${this.config.name}]: ${error.message}`);
|
|
89
|
-
throw error;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
export {
|
|
94
|
-
ERC1822_PROXY_LOGIC_SLOT,
|
|
95
|
-
Erc1822DataSlotsZod,
|
|
96
|
-
Erc1822SlotStatusZod,
|
|
97
|
-
Erc1822StatusSchema,
|
|
98
|
-
Erc1822StatusZod,
|
|
99
|
-
Erc1822Witness,
|
|
100
|
-
Erc1822WitnessConfigSchema,
|
|
101
|
-
asErc1822Status,
|
|
102
|
-
getErc1822SlotStatus,
|
|
103
|
-
isErc1822Status,
|
|
104
|
-
toErc1822Status
|
|
105
|
-
};
|
|
1
|
+
// src/index.ts
|
|
2
|
+
export * from "@xyo-network/payloadset-plugins/erc1822-witness";
|
|
106
3
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";AACA
|
|
6
|
-
"names": [
|
|
3
|
+
"sources": ["../../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["// Compatibility shim: this package re-exports from @xyo-network/payloadset-plugins/erc1822-witness.\nexport * from '@xyo-network/payloadset-plugins/erc1822-witness'\n"],
|
|
5
|
+
"mappings": ";AACA,cAAc;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/erc1822-witness",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.4",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -30,65 +30,123 @@
|
|
|
30
30
|
"dist",
|
|
31
31
|
"README.md"
|
|
32
32
|
],
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@xyo-network/payloadset-plugins": "~7.0.4"
|
|
35
|
+
},
|
|
33
36
|
"devDependencies": {
|
|
34
|
-
"@ariestools/
|
|
37
|
+
"@ariestools/crypto": "~8.0.3",
|
|
38
|
+
"@ariestools/eth-address": "~8.0.3",
|
|
39
|
+
"@ariestools/sdk": "~8.0.3",
|
|
40
|
+
"@ariestools/threads": "~8.0.3",
|
|
41
|
+
"@ariestools/toolchain": "~8.6.12",
|
|
42
|
+
"@ariestools/tsconfig": "~8.6.12",
|
|
35
43
|
"@bitauth/libauth": "~3.0.0",
|
|
44
|
+
"@metamask/providers": "~22.1.1",
|
|
36
45
|
"@noble/post-quantum": "~0.6.1",
|
|
46
|
+
"@opentelemetry/api": "~1.9.1",
|
|
47
|
+
"@opentelemetry/sdk-trace-base": "~2.9.0",
|
|
48
|
+
"@scure/base": "~2.2.0",
|
|
49
|
+
"@scure/bip39": "~2.2.0",
|
|
50
|
+
"@uniswap/v3-sdk": "~3.31.0",
|
|
51
|
+
"@xyo-network/diviner-hash-lease": "~7.0.11",
|
|
52
|
+
"@xyo-network/diviner-indexing": "~7.0.11",
|
|
53
|
+
"@xyo-network/open-zeppelin-typechain": "~4.1.3",
|
|
54
|
+
"@xyo-network/sdk": "~7.0.11",
|
|
55
|
+
"@xyo-network/sdk-protocol": "~7.0.15",
|
|
56
|
+
"@xyo-network/uniswap-typechain": "~4.1.3",
|
|
57
|
+
"@xyo-network/witness-blockchain-abstract": "~7.0.11",
|
|
58
|
+
"@xyo-network/witness-evm-abstract": "~7.0.11",
|
|
59
|
+
"@xyo-network/witness-timestamp": "~7.0.11",
|
|
60
|
+
"ajv": "~8.20.0",
|
|
61
|
+
"async-mutex": "~0.5.0",
|
|
62
|
+
"base64-js": "~1.5.1",
|
|
63
|
+
"bowser": "~2.14.1",
|
|
64
|
+
"crypto-js": "~4.2.0",
|
|
65
|
+
"debug": "~4.4.3",
|
|
66
|
+
"es6-dynamic-template": "~2.0.0",
|
|
67
|
+
"eslint": "~10.6.0",
|
|
68
|
+
"eslint-import-resolver-typescript": "~4.4.5",
|
|
69
|
+
"ethers": "~6.17.0",
|
|
70
|
+
"file-type": "~22.0.1",
|
|
71
|
+
"fluent-ffmpeg": "~2.1.3",
|
|
72
|
+
"geotiff": "~3.0.5",
|
|
73
|
+
"gm": "~1.25.1",
|
|
74
|
+
"graphql": "~17.0.2",
|
|
75
|
+
"hasbin": "~1.2.3",
|
|
76
|
+
"hash-wasm": "~4.12.0",
|
|
77
|
+
"idb": "~8.0.3",
|
|
78
|
+
"lru-cache": "~11.5.1",
|
|
79
|
+
"node-screenlogic": "~2.1.1",
|
|
80
|
+
"observable-fns": "~0.6.1",
|
|
81
|
+
"parse-data-url": "~6.0.0",
|
|
82
|
+
"prom-client": "~15.1.3",
|
|
83
|
+
"regression": "~2.0.1",
|
|
84
|
+
"sha.js": "~2.4.12",
|
|
85
|
+
"svg-parser": "~2.0.4",
|
|
86
|
+
"systeminformation": "~5.31.14",
|
|
87
|
+
"typescript": "~6.0.3",
|
|
88
|
+
"uuid": "~14.0.1",
|
|
89
|
+
"webextension-polyfill": "~0.12.0",
|
|
90
|
+
"xml2js": "~0.6.2",
|
|
91
|
+
"zod": "~4.4.3"
|
|
92
|
+
},
|
|
93
|
+
"peerDependencies": {
|
|
94
|
+
"@ariestools/crypto": "^8.0.3",
|
|
95
|
+
"@ariestools/eth-address": "^8.0.3",
|
|
96
|
+
"@ariestools/sdk": "^8.0.3",
|
|
97
|
+
"@ariestools/threads": "^8.0.3",
|
|
98
|
+
"@bitauth/libauth": "^3.0.0",
|
|
99
|
+
"@metamask/providers": "^22.1.1",
|
|
100
|
+
"@noble/post-quantum": "^0.6.1",
|
|
37
101
|
"@opentelemetry/api": "^1.9.1",
|
|
38
|
-
"@opentelemetry/sdk-trace-base": "^2.
|
|
102
|
+
"@opentelemetry/sdk-trace-base": "^2.9.0",
|
|
39
103
|
"@scure/base": "^2.2.0",
|
|
40
|
-
"@scure/bip39": "
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
-
"@xyo-network/sdk": "
|
|
47
|
-
"@xyo-network/
|
|
48
|
-
"@xyo-network/witness-
|
|
104
|
+
"@scure/bip39": "^2.2.0",
|
|
105
|
+
"@uniswap/v3-sdk": "^3.31.0",
|
|
106
|
+
"@xyo-network/diviner-hash-lease": "^7.0.11",
|
|
107
|
+
"@xyo-network/diviner-indexing": "^7.0.11",
|
|
108
|
+
"@xyo-network/open-zeppelin-typechain": "^4.1.3",
|
|
109
|
+
"@xyo-network/sdk": "^7.0.11",
|
|
110
|
+
"@xyo-network/sdk-protocol": "^7.0.15",
|
|
111
|
+
"@xyo-network/uniswap-typechain": "^4.1.3",
|
|
112
|
+
"@xyo-network/witness-blockchain-abstract": "^7.0.11",
|
|
113
|
+
"@xyo-network/witness-evm-abstract": "^7.0.11",
|
|
114
|
+
"@xyo-network/witness-timestamp": "^7.0.11",
|
|
49
115
|
"ajv": "^8.20.0",
|
|
50
116
|
"async-mutex": "^0.5.0",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
117
|
+
"base64-js": "^1.5.1",
|
|
118
|
+
"bowser": "^2.14.1",
|
|
119
|
+
"crypto-js": "^4.2.0",
|
|
120
|
+
"debug": "^4.4.3",
|
|
121
|
+
"es6-dynamic-template": "^2.0.0",
|
|
55
122
|
"ethers": "^6.17.0",
|
|
123
|
+
"file-type": "^22.0.1",
|
|
124
|
+
"fluent-ffmpeg": "^2.1.3",
|
|
125
|
+
"geotiff": "^3.0.5",
|
|
126
|
+
"gm": "^1.25.1",
|
|
127
|
+
"graphql": "^17.0.2",
|
|
128
|
+
"hasbin": "^1.2.3",
|
|
56
129
|
"hash-wasm": "^4.12.0",
|
|
57
130
|
"idb": "^8.0.3",
|
|
58
131
|
"lru-cache": "^11.5.1",
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
132
|
+
"node-screenlogic": "^2.1.1",
|
|
133
|
+
"observable-fns": "^0.6.1",
|
|
134
|
+
"parse-data-url": "^6.0.0",
|
|
135
|
+
"prom-client": "^15.1.3",
|
|
136
|
+
"regression": "^2.0.1",
|
|
137
|
+
"sha.js": "^2.4.12",
|
|
138
|
+
"svg-parser": "^2.0.4",
|
|
139
|
+
"systeminformation": "^5.31.14",
|
|
140
|
+
"uuid": "^14.0.1",
|
|
141
|
+
"webextension-polyfill": "^0.12.0",
|
|
142
|
+
"xml2js": "^0.6.2",
|
|
63
143
|
"zod": "^4.4.3"
|
|
64
144
|
},
|
|
65
|
-
"peerDependencies": {
|
|
66
|
-
"@ariestools/sdk": "^7.0",
|
|
67
|
-
"@bitauth/libauth": "~3.0",
|
|
68
|
-
"@noble/post-quantum": "~0.6.1",
|
|
69
|
-
"@opentelemetry/api": "^1.9",
|
|
70
|
-
"@opentelemetry/sdk-trace-base": "^2.7",
|
|
71
|
-
"@scure/base": "^2.2",
|
|
72
|
-
"@scure/bip39": "~2.2",
|
|
73
|
-
"@xylabs/geo": "^7.0",
|
|
74
|
-
"@xylabs/threads": "^7.0",
|
|
75
|
-
"@xyo-network/sdk": "~7.0",
|
|
76
|
-
"@xyo-network/sdk-protocol": "^7.0",
|
|
77
|
-
"@xyo-network/witness-evm-abstract": "^7.0",
|
|
78
|
-
"ajv": "^8.20",
|
|
79
|
-
"async-mutex": "^0.5",
|
|
80
|
-
"debug": "~4.4",
|
|
81
|
-
"ethers": "^6.16",
|
|
82
|
-
"hash-wasm": "^4.12",
|
|
83
|
-
"idb": "^8.0",
|
|
84
|
-
"lru-cache": "^11.3",
|
|
85
|
-
"observable-fns": "~0.6",
|
|
86
|
-
"zod": "^4.4"
|
|
87
|
-
},
|
|
88
145
|
"engines": {
|
|
89
146
|
"node": "^24"
|
|
90
147
|
},
|
|
91
148
|
"publishConfig": {
|
|
92
149
|
"access": "public"
|
|
93
|
-
}
|
|
150
|
+
},
|
|
151
|
+
"deprecated": "Use @xyo-network/payloadset-plugins/erc1822-witness instead. Replace @xyo-network/erc1822-witness with @xyo-network/payloadset-plugins/erc1822-witness. This package is a compatibility shim only and will not receive further updates."
|
|
94
152
|
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod/mini';
|
|
2
|
-
export declare const Erc1822StatusSchema: "network.xyo.erc1822.status" & {
|
|
3
|
-
readonly __schema: true;
|
|
4
|
-
};
|
|
5
|
-
export type Erc1822StatusSchema = typeof Erc1822StatusSchema;
|
|
6
|
-
export declare const Erc1822StatusZod: z.ZodMiniObject<{
|
|
7
|
-
schema: z.ZodMiniLiteral<"network.xyo.erc1822.status" & {
|
|
8
|
-
readonly __schema: true;
|
|
9
|
-
}>;
|
|
10
|
-
address: z.ZodMiniString<string>;
|
|
11
|
-
block: z.ZodMiniNumber<number>;
|
|
12
|
-
chainId: z.ZodMiniNumber<number>;
|
|
13
|
-
implementation: z.ZodMiniOptional<z.ZodMiniCustom<import("@ariestools/sdk").EthAddress, import("@ariestools/sdk").EthAddress>>;
|
|
14
|
-
slots: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
15
|
-
implementation: z.ZodMiniOptional<z.ZodMiniCustom<import("@ariestools/sdk").EthAddress, import("@ariestools/sdk").EthAddress>>;
|
|
16
|
-
}, z.core.$strip>>;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
export type Erc1822Status = z.infer<typeof Erc1822StatusZod>;
|
|
19
|
-
export declare const isErc1822Status: <T>(value: T) => value is T & {
|
|
20
|
-
schema: "network.xyo.erc1822.status" & {
|
|
21
|
-
readonly __schema: true;
|
|
22
|
-
};
|
|
23
|
-
address: string;
|
|
24
|
-
block: number;
|
|
25
|
-
chainId: number;
|
|
26
|
-
implementation?: import("@ariestools/sdk").EthAddress | undefined;
|
|
27
|
-
slots?: {
|
|
28
|
-
implementation?: import("@ariestools/sdk").EthAddress | undefined;
|
|
29
|
-
} | undefined;
|
|
30
|
-
};
|
|
31
|
-
export declare const asErc1822Status: {
|
|
32
|
-
<T>(value: T): (T & {
|
|
33
|
-
schema: "network.xyo.erc1822.status" & {
|
|
34
|
-
readonly __schema: true;
|
|
35
|
-
};
|
|
36
|
-
address: string;
|
|
37
|
-
block: number;
|
|
38
|
-
chainId: number;
|
|
39
|
-
implementation?: import("@ariestools/sdk").EthAddress | undefined;
|
|
40
|
-
slots?: {
|
|
41
|
-
implementation?: import("@ariestools/sdk").EthAddress | undefined;
|
|
42
|
-
} | undefined;
|
|
43
|
-
}) | undefined;
|
|
44
|
-
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
45
|
-
schema: "network.xyo.erc1822.status" & {
|
|
46
|
-
readonly __schema: true;
|
|
47
|
-
};
|
|
48
|
-
address: string;
|
|
49
|
-
block: number;
|
|
50
|
-
chainId: number;
|
|
51
|
-
implementation?: import("@ariestools/sdk").EthAddress | undefined;
|
|
52
|
-
slots?: {
|
|
53
|
-
implementation?: import("@ariestools/sdk").EthAddress | undefined;
|
|
54
|
-
} | undefined;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
export declare const toErc1822Status: {
|
|
58
|
-
<T>(value: T): (T & {
|
|
59
|
-
schema: "network.xyo.erc1822.status" & {
|
|
60
|
-
readonly __schema: true;
|
|
61
|
-
};
|
|
62
|
-
address: string;
|
|
63
|
-
block: number;
|
|
64
|
-
chainId: number;
|
|
65
|
-
implementation?: import("@ariestools/sdk").EthAddress | undefined;
|
|
66
|
-
slots?: {
|
|
67
|
-
implementation?: import("@ariestools/sdk").EthAddress | undefined;
|
|
68
|
-
} | undefined;
|
|
69
|
-
}) | undefined;
|
|
70
|
-
<T>(value: T, assert: import("@ariestools/sdk").ZodFactoryConfig): T & {
|
|
71
|
-
schema: "network.xyo.erc1822.status" & {
|
|
72
|
-
readonly __schema: true;
|
|
73
|
-
};
|
|
74
|
-
address: string;
|
|
75
|
-
block: number;
|
|
76
|
-
chainId: number;
|
|
77
|
-
implementation?: import("@ariestools/sdk").EthAddress | undefined;
|
|
78
|
-
slots?: {
|
|
79
|
-
implementation?: import("@ariestools/sdk").EthAddress | undefined;
|
|
80
|
-
} | undefined;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,eAAO,MAAM,mBAAmB;;CAA+C,CAAA;AAC/E,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA;AAE5D,eAAO,MAAM,gBAAgB;;;;;;;;;;;iBAM3B,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAE5D,eAAO,MAAM,eAAe;;;;;;;;;;;CAAiC,CAAA;AAC7D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;CAAoD,CAAA;AAChF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;CAAoD,CAAA"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Schema } from '@xyo-network/sdk';
|
|
2
|
-
import type { EvmAddress, EvmWitnessConfig, EvmWitnessParams } from '@xyo-network/witness-evm-abstract';
|
|
3
|
-
import { AbstractEvmWitness } from '@xyo-network/witness-evm-abstract';
|
|
4
|
-
import type { Erc1822Status } from './Payload.ts';
|
|
5
|
-
export declare const Erc1822WitnessConfigSchema: "network.xyo.erc1822.witness.config" & {
|
|
6
|
-
readonly __schema: true;
|
|
7
|
-
};
|
|
8
|
-
export type Erc1822WitnessConfigSchema = typeof Erc1822WitnessConfigSchema;
|
|
9
|
-
export type Erc1822WitnessConfig = EvmWitnessConfig<{
|
|
10
|
-
address?: string;
|
|
11
|
-
}, Erc1822WitnessConfigSchema>;
|
|
12
|
-
export type Erc1822WitnessParams = EvmWitnessParams<Erc1822WitnessConfig>;
|
|
13
|
-
export declare class Erc1822Witness<TParams extends Erc1822WitnessParams = Erc1822WitnessParams> extends AbstractEvmWitness<TParams, EvmAddress, Erc1822Status> {
|
|
14
|
-
static readonly configSchemas: Schema[];
|
|
15
|
-
static readonly defaultConfigSchema: Schema;
|
|
16
|
-
protected observeHandler(inPayloads?: EvmAddress[]): Promise<Erc1822Status[]>;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=Witness.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAAE,gBAAgB,EACnC,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,kBAAkB,EAAoB,MAAM,mCAAmC,CAAA;AAGxF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAGjD,eAAO,MAAM,0BAA0B;;CAAuD,CAAA;AAC9F,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAA;AAE1E,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,CAAC;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,0BAA0B,CAAC,CAAA;AAErG,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,CAAC,oBAAoB,CAAC,CAAA;AAEzE,qBAAa,cAAc,CAAC,OAAO,SAAS,oBAAoB,GAAG,oBAAoB,CAAE,SAAQ,kBAAkB,CACjH,OAAO,EACP,UAAU,EACV,aAAa,CACd;IACC,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAAuD;IACvG,gBAAyB,mBAAmB,EAAE,MAAM,CAA6B;cAExD,cAAc,CAAC,UAAU,GAAE,UAAU,EAAO,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;CAkCjG"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { EthAddress } from '@ariestools/sdk';
|
|
2
|
-
import type { Provider } from 'ethers';
|
|
3
|
-
import * as z from 'zod/mini';
|
|
4
|
-
export declare const ERC1822_PROXY_LOGIC_SLOT = "0xc5f16f0fcc639fa48a6947836d9850f504798523bf8c9a3a87d5876cf622bcf7";
|
|
5
|
-
export declare const Erc1822DataSlotsZod: z.ZodMiniObject<{
|
|
6
|
-
implementation: z.ZodMiniOptional<z.ZodMiniCustom<EthAddress, EthAddress>>;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
export type Erc1822DataSlots = z.infer<typeof Erc1822DataSlotsZod>;
|
|
9
|
-
export declare const Erc1822SlotStatusZod: z.ZodMiniObject<{
|
|
10
|
-
address: z.ZodMiniCustom<EthAddress, EthAddress>;
|
|
11
|
-
implementation: z.ZodMiniCustom<EthAddress, EthAddress>;
|
|
12
|
-
slots: z.ZodMiniObject<{
|
|
13
|
-
implementation: z.ZodMiniOptional<z.ZodMiniCustom<EthAddress, EthAddress>>;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
export type Erc1822SlotStatus = z.infer<typeof Erc1822SlotStatusZod>;
|
|
17
|
-
export declare const getErc1822SlotStatus: (provider: Provider, address: EthAddress, block?: number) => Promise<Erc1822SlotStatus>;
|
|
18
|
-
//# sourceMappingURL=getErc1822SlotStatus.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getErc1822SlotStatus.d.ts","sourceRoot":"","sources":["../../../src/lib/getErc1822SlotStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAIjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACtC,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,eAAO,MAAM,wBAAwB,uEAAuE,CAAA;AAE5G,eAAO,MAAM,mBAAmB;;iBAAmE,CAAA;AAEnG,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAElE,eAAO,MAAM,oBAAoB;;;;;;iBAI/B,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAWpE,eAAO,MAAM,oBAAoB,GAAU,UAAU,QAAQ,EAAE,SAAS,UAAU,EAAE,QAAQ,MAAM,KAAG,OAAO,CAAC,iBAAiB,CAY7H,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
|