@xyo-network/erc1822-witness 4.1.1 → 4.2.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/Witness.d.ts.map +1 -1
- package/dist/neutral/index.d.ts +4 -40
- package/dist/neutral/index.mjs +8 -3
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/lib/getErc1822SlotStatus.d.ts +5 -5
- package/dist/neutral/lib/getErc1822SlotStatus.d.ts.map +1 -1
- package/package.json +8 -9
- package/src/Witness.ts +2 -1
- package/src/lib/getErc1822SlotStatus.ts +9 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Witness.d.ts","sourceRoot":"","sources":["../../src/Witness.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAExD,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,uCAAuC,CAAA;AAC9E,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;CAiCjG"}
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,40 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 };
|
|
1
|
+
export * from './lib/index.ts';
|
|
2
|
+
export * from './Payload.ts';
|
|
3
|
+
export * from './Witness.ts';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
// src/lib/getErc1822SlotStatus.ts
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
asEthAddress,
|
|
4
|
+
hexFromHexString,
|
|
5
|
+
isHexZero
|
|
6
|
+
} from "@xylabs/hex";
|
|
3
7
|
var ERC1822_PROXY_LOGIC_SLOT = "0xc5f16f0fcc639fa48a6947836d9850f504798523bf8c9a3a87d5876cf622bcf7";
|
|
4
8
|
var readAddressFromSlot = async (provider, address, slot, block) => {
|
|
5
9
|
try {
|
|
6
10
|
const slotValue = await provider.getStorage(address, slot, block);
|
|
7
|
-
return hexFromHexString(slotValue, { prefix: true });
|
|
11
|
+
return asEthAddress(hexFromHexString(slotValue, { prefix: true }));
|
|
8
12
|
} catch {
|
|
9
13
|
return;
|
|
10
14
|
}
|
|
@@ -26,6 +30,7 @@ var Erc1822StatusSchema = "network.xyo.erc1822.status";
|
|
|
26
30
|
|
|
27
31
|
// src/Witness.ts
|
|
28
32
|
import { assertEx } from "@xylabs/assert";
|
|
33
|
+
import { asEthAddress as asEthAddress2 } from "@xylabs/hex";
|
|
29
34
|
import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
|
|
30
35
|
import { AbstractEvmWitness, EvmAddressSchema } from "@xyo-network/witness-evm-abstract";
|
|
31
36
|
var Erc1822WitnessConfigSchema = "network.xyo.erc1822.witness.config";
|
|
@@ -38,7 +43,7 @@ var Erc1822Witness = class extends AbstractEvmWitness {
|
|
|
38
43
|
try {
|
|
39
44
|
const observations = await Promise.all(
|
|
40
45
|
inPayloads.filter(isPayloadOfSchemaType(EvmAddressSchema)).map(async ({ address }) => {
|
|
41
|
-
const validatedAddress = assertEx(address ?? this.config.address, () => "Missing address")
|
|
46
|
+
const validatedAddress = asEthAddress2(assertEx(address ?? this.config.address, () => "Missing address"), true);
|
|
42
47
|
const provider = await this.getProvider(true, true);
|
|
43
48
|
const block = await provider.getBlockNumber();
|
|
44
49
|
const { implementation, slots } = await getErc1822SlotStatus(provider, validatedAddress, block);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/getErc1822SlotStatus.ts","../../src/Payload.ts","../../src/Witness.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"sources":["../../src/lib/getErc1822SlotStatus.ts","../../src/Payload.ts","../../src/Witness.ts"],"sourcesContent":["import type { EthAddress } from '@xylabs/hex'\nimport {\n asEthAddress, hexFromHexString, isHexZero,\n} from '@xylabs/hex'\nimport type { Provider } from 'ethers'\n\nexport const ERC1822_PROXY_LOGIC_SLOT = '0xc5f16f0fcc639fa48a6947836d9850f504798523bf8c9a3a87d5876cf622bcf7'\n\nexport interface Erc1822DataSlots {\n implementation?: EthAddress\n}\n\nexport interface Erc1822SlotStatus {\n address: EthAddress\n implementation: EthAddress\n slots: Erc1822DataSlots\n}\n\nconst readAddressFromSlot = async (provider: Provider, address: string, slot: string, block?: number) => {\n try {\n const slotValue = await provider.getStorage(address, slot, block)\n return asEthAddress(hexFromHexString(slotValue, { prefix: true }))\n } catch {\n return\n }\n}\n\nexport const getErc1822SlotStatus = async (provider: Provider, address: EthAddress, block?: number): Promise<Erc1822SlotStatus> => {\n const status: Erc1822SlotStatus = {\n address,\n implementation: address,\n slots: { implementation: await readAddressFromSlot(provider, address, ERC1822_PROXY_LOGIC_SLOT, block) },\n }\n\n if (status.slots.implementation && !isHexZero(status.slots.implementation)) {\n status.implementation = status.slots.implementation\n }\n\n return status\n}\n","import type { Payload } from '@xyo-network/payload-model'\n\nimport type { Erc1822SlotStatus } from './lib/index.ts'\n\nexport const Erc1822StatusSchema = 'network.xyo.erc1822.status'\nexport type Erc1822StatusSchema = typeof Erc1822StatusSchema\n\nexport type Erc1822Status = Payload<\n {\n address: string\n block: number\n chainId: number\n implementation?: Erc1822SlotStatus['implementation']\n slots?: Erc1822SlotStatus['slots']\n },\n Erc1822StatusSchema\n>\n","import { assertEx } from '@xylabs/assert'\nimport { asEthAddress } from '@xylabs/hex'\nimport type { Schema } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\nimport type {\n EvmAddress,\n EvmWitnessConfig, EvmWitnessParams,\n} from '@xyo-network/witness-evm-abstract'\nimport { AbstractEvmWitness, EvmAddressSchema } from '@xyo-network/witness-evm-abstract'\n\nimport { getErc1822SlotStatus } from './lib/index.ts'\nimport type { Erc1822Status } from './Payload.ts'\nimport { Erc1822StatusSchema } from './Payload.ts'\n\nexport const Erc1822WitnessConfigSchema = 'network.xyo.erc1822.witness.config'\nexport type Erc1822WitnessConfigSchema = typeof Erc1822WitnessConfigSchema\n\nexport type Erc1822WitnessConfig = EvmWitnessConfig<{ address?: string }, Erc1822WitnessConfigSchema>\n\nexport type Erc1822WitnessParams = EvmWitnessParams<Erc1822WitnessConfig>\n\nexport class Erc1822Witness<TParams extends Erc1822WitnessParams = Erc1822WitnessParams> extends AbstractEvmWitness<\n TParams,\n EvmAddress,\n Erc1822Status\n> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, Erc1822WitnessConfigSchema]\n static override readonly defaultConfigSchema: Schema = Erc1822WitnessConfigSchema\n\n protected override async observeHandler(inPayloads: EvmAddress[] = []): Promise<Erc1822Status[]> {\n await this.started('throw')\n // calling it here to make sure we rests the cache\n await this.getProviders()\n try {\n const observations = await Promise.all(\n inPayloads.filter(isPayloadOfSchemaType<EvmAddress>(EvmAddressSchema)).map(async ({ address }) => {\n const validatedAddress = asEthAddress(assertEx(address ?? this.config.address, () => 'Missing address'), true)\n\n const provider = await this.getProvider(true, true)\n\n const block = await provider.getBlockNumber()\n\n const { implementation, slots } = await getErc1822SlotStatus(provider, validatedAddress, block)\n\n const observation: Erc1822Status = {\n address: validatedAddress,\n block,\n chainId: Number((await provider.getNetwork()).chainId),\n implementation,\n schema: Erc1822StatusSchema,\n slots,\n }\n return observation\n }),\n )\n return observations\n } catch (ex) {\n const error = ex as Error\n console.log(`Error [${this.config.name}]: ${error.message}`)\n throw error\n }\n }\n}\n"],"mappings":";AACA;AAAA,EACE;AAAA,EAAc;AAAA,EAAkB;AAAA,OAC3B;AAGA,IAAM,2BAA2B;AAYxC,IAAM,sBAAsB,OAAO,UAAoB,SAAiB,MAAc,UAAmB;AACvG,MAAI;AACF,UAAM,YAAY,MAAM,SAAS,WAAW,SAAS,MAAM,KAAK;AAChE,WAAO,aAAa,iBAAiB,WAAW,EAAE,QAAQ,KAAK,CAAC,CAAC;AAAA,EACnE,QAAQ;AACN;AAAA,EACF;AACF;AAEO,IAAM,uBAAuB,OAAO,UAAoB,SAAqB,UAA+C;AACjI,QAAM,SAA4B;AAAA,IAChC;AAAA,IACA,gBAAgB;AAAA,IAChB,OAAO,EAAE,gBAAgB,MAAM,oBAAoB,UAAU,SAAS,0BAA0B,KAAK,EAAE;AAAA,EACzG;AAEA,MAAI,OAAO,MAAM,kBAAkB,CAAC,UAAU,OAAO,MAAM,cAAc,GAAG;AAC1E,WAAO,iBAAiB,OAAO,MAAM;AAAA,EACvC;AAEA,SAAO;AACT;;;ACnCO,IAAM,sBAAsB;;;ACJnC,SAAS,gBAAgB;AACzB,SAAS,gBAAAA,qBAAoB;AAE7B,SAAS,6BAA6B;AAKtC,SAAS,oBAAoB,wBAAwB;AAM9C,IAAM,6BAA6B;AAOnC,IAAM,iBAAN,cAA0F,mBAI/F;AAAA,EACA,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,0BAA0B;AAAA,EACtG,OAAyB,sBAA8B;AAAA,EAEvD,MAAyB,eAAe,aAA2B,CAAC,GAA6B;AAC/F,UAAM,KAAK,QAAQ,OAAO;AAE1B,UAAM,KAAK,aAAa;AACxB,QAAI;AACF,YAAM,eAAe,MAAM,QAAQ;AAAA,QACjC,WAAW,OAAO,sBAAkC,gBAAgB,CAAC,EAAE,IAAI,OAAO,EAAE,QAAQ,MAAM;AAChG,gBAAM,mBAAmBC,cAAa,SAAS,WAAW,KAAK,OAAO,SAAS,MAAM,iBAAiB,GAAG,IAAI;AAE7G,gBAAM,WAAW,MAAM,KAAK,YAAY,MAAM,IAAI;AAElD,gBAAM,QAAQ,MAAM,SAAS,eAAe;AAE5C,gBAAM,EAAE,gBAAgB,MAAM,IAAI,MAAM,qBAAqB,UAAU,kBAAkB,KAAK;AAE9F,gBAAM,cAA6B;AAAA,YACjC,SAAS;AAAA,YACT;AAAA,YACA,SAAS,QAAQ,MAAM,SAAS,WAAW,GAAG,OAAO;AAAA,YACrD;AAAA,YACA,QAAQ;AAAA,YACR;AAAA,UACF;AACA,iBAAO;AAAA,QACT,CAAC;AAAA,MACH;AACA,aAAO;AAAA,IACT,SAAS,IAAI;AACX,YAAM,QAAQ;AACd,cAAQ,IAAI,UAAU,KAAK,OAAO,IAAI,MAAM,MAAM,OAAO,EAAE;AAC3D,YAAM;AAAA,IACR;AAAA,EACF;AACF;","names":["asEthAddress","asEthAddress"]}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EthAddress } from '@xylabs/hex';
|
|
2
2
|
import type { Provider } from 'ethers';
|
|
3
3
|
export declare const ERC1822_PROXY_LOGIC_SLOT = "0xc5f16f0fcc639fa48a6947836d9850f504798523bf8c9a3a87d5876cf622bcf7";
|
|
4
4
|
export interface Erc1822DataSlots {
|
|
5
|
-
implementation?:
|
|
5
|
+
implementation?: EthAddress;
|
|
6
6
|
}
|
|
7
7
|
export interface Erc1822SlotStatus {
|
|
8
|
-
address:
|
|
9
|
-
implementation:
|
|
8
|
+
address: EthAddress;
|
|
9
|
+
implementation: EthAddress;
|
|
10
10
|
slots: Erc1822DataSlots;
|
|
11
11
|
}
|
|
12
|
-
export declare const getErc1822SlotStatus: (provider: Provider, address:
|
|
12
|
+
export declare const getErc1822SlotStatus: (provider: Provider, address: EthAddress, block?: number) => Promise<Erc1822SlotStatus>;
|
|
13
13
|
//# sourceMappingURL=getErc1822SlotStatus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getErc1822SlotStatus.d.ts","sourceRoot":"","sources":["../../../src/lib/getErc1822SlotStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"getErc1822SlotStatus.d.ts","sourceRoot":"","sources":["../../../src/lib/getErc1822SlotStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAI7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAEtC,eAAO,MAAM,wBAAwB,uEAAuE,CAAA;AAE5G,MAAM,WAAW,gBAAgB;IAC/B,cAAc,CAAC,EAAE,UAAU,CAAA;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,UAAU,CAAA;IACnB,cAAc,EAAE,UAAU,CAAA;IAC1B,KAAK,EAAE,gBAAgB,CAAA;CACxB;AAWD,eAAO,MAAM,oBAAoB,GAAU,UAAU,QAAQ,EAAE,SAAS,UAAU,EAAE,QAAQ,MAAM,KAAG,OAAO,CAAC,iBAAiB,CAY7H,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/erc1822-witness",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,17 +29,16 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/assert": "^4.
|
|
33
|
-
"@xylabs/hex": "^4.
|
|
34
|
-
"@xyo-network/payload-model": "^4.
|
|
35
|
-
"@xyo-network/witness-evm-abstract": "^4.
|
|
32
|
+
"@xylabs/assert": "^4.15.1",
|
|
33
|
+
"@xylabs/hex": "^4.15.1",
|
|
34
|
+
"@xyo-network/payload-model": "^4.3.0",
|
|
35
|
+
"@xyo-network/witness-evm-abstract": "^4.3.0",
|
|
36
36
|
"ethers": "^6.15.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@xylabs/ts-scripts-yarn3": "^7.0.
|
|
40
|
-
"@xylabs/tsconfig": "^7.0.
|
|
41
|
-
"@xylabs/vitest-extended": "^4.
|
|
42
|
-
"knip": "^5.62.0",
|
|
39
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.1",
|
|
40
|
+
"@xylabs/tsconfig": "^7.0.1",
|
|
41
|
+
"@xylabs/vitest-extended": "^4.15.1",
|
|
43
42
|
"typescript": "^5.8.3",
|
|
44
43
|
"vitest": "^3.2.4"
|
|
45
44
|
},
|
package/src/Witness.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { assertEx } from '@xylabs/assert'
|
|
2
|
+
import { asEthAddress } from '@xylabs/hex'
|
|
2
3
|
import type { Schema } from '@xyo-network/payload-model'
|
|
3
4
|
import { isPayloadOfSchemaType } from '@xyo-network/payload-model'
|
|
4
5
|
import type {
|
|
@@ -33,7 +34,7 @@ export class Erc1822Witness<TParams extends Erc1822WitnessParams = Erc1822Witnes
|
|
|
33
34
|
try {
|
|
34
35
|
const observations = await Promise.all(
|
|
35
36
|
inPayloads.filter(isPayloadOfSchemaType<EvmAddress>(EvmAddressSchema)).map(async ({ address }) => {
|
|
36
|
-
const validatedAddress = assertEx(address ?? this.config.address, () => 'Missing address')
|
|
37
|
+
const validatedAddress = asEthAddress(assertEx(address ?? this.config.address, () => 'Missing address'), true)
|
|
37
38
|
|
|
38
39
|
const provider = await this.getProvider(true, true)
|
|
39
40
|
|
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
1
|
+
import type { EthAddress } from '@xylabs/hex'
|
|
2
|
+
import {
|
|
3
|
+
asEthAddress, hexFromHexString, isHexZero,
|
|
4
|
+
} from '@xylabs/hex'
|
|
3
5
|
import type { Provider } from 'ethers'
|
|
4
6
|
|
|
5
7
|
export const ERC1822_PROXY_LOGIC_SLOT = '0xc5f16f0fcc639fa48a6947836d9850f504798523bf8c9a3a87d5876cf622bcf7'
|
|
6
8
|
|
|
7
9
|
export interface Erc1822DataSlots {
|
|
8
|
-
implementation?:
|
|
10
|
+
implementation?: EthAddress
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
export interface Erc1822SlotStatus {
|
|
12
|
-
address:
|
|
13
|
-
implementation:
|
|
14
|
+
address: EthAddress
|
|
15
|
+
implementation: EthAddress
|
|
14
16
|
slots: Erc1822DataSlots
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
const readAddressFromSlot = async (provider: Provider, address: string, slot: string, block?: number) => {
|
|
18
20
|
try {
|
|
19
21
|
const slotValue = await provider.getStorage(address, slot, block)
|
|
20
|
-
return hexFromHexString(slotValue, { prefix: true })
|
|
22
|
+
return asEthAddress(hexFromHexString(slotValue, { prefix: true }))
|
|
21
23
|
} catch {
|
|
22
24
|
return
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
27
|
|
|
26
|
-
export const getErc1822SlotStatus = async (provider: Provider, address:
|
|
28
|
+
export const getErc1822SlotStatus = async (provider: Provider, address: EthAddress, block?: number): Promise<Erc1822SlotStatus> => {
|
|
27
29
|
const status: Erc1822SlotStatus = {
|
|
28
30
|
address,
|
|
29
31
|
implementation: address,
|