@perspectivefi/addresses 0.1.3 → 0.2.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/README.md +97 -29
- package/dist/cli.js +327 -70
- package/dist/core-84-fTw11.d.mts +39 -0
- package/dist/core-DGXC_tzy.d.ts +39 -0
- package/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +20 -5
- package/dist/index.mjs +20 -6
- package/dist/keys-runtime-AS8fx_e7.d.ts +6 -0
- package/dist/keys-runtime-CIgeW81X.d.mts +6 -0
- package/dist/keys.d.mts +357 -0
- package/dist/keys.d.ts +357 -0
- package/dist/keys.js +713 -0
- package/dist/keys.mjs +360 -0
- package/dist/prod-keys.d.mts +357 -0
- package/dist/prod-keys.d.ts +357 -0
- package/dist/prod-keys.js +713 -0
- package/dist/prod-keys.mjs +360 -0
- package/dist/prod.d.mts +5 -3
- package/dist/prod.d.ts +5 -3
- package/dist/prod.js +20 -5
- package/dist/prod.mjs +20 -6
- package/dist/{core-CE7Q2MFR.d.mts → registry-rKK0TKIW.d.mts} +1 -26
- package/dist/{core-CE7Q2MFR.d.ts → registry-rKK0TKIW.d.ts} +1 -26
- package/dist/registry.json +19465 -19081
- package/package.json +21 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { C as ChainRef } from './registry-rKK0TKIW.mjs';
|
|
2
|
+
|
|
3
|
+
type Kind = 'contract' | 'factory' | 'beacon' | 'instance' | 'external';
|
|
4
|
+
type Status = 'unsafe' | 'role-unsafe' | 'safe' | 'blocked';
|
|
5
|
+
/** Why an entry was approved for production (required on every `safe` entry). */
|
|
6
|
+
type ApprovalBasis = 'audit' | 'prod-baseline' | 'external-integration' | 'governance';
|
|
7
|
+
interface Approval {
|
|
8
|
+
readonly basis: ApprovalBasis;
|
|
9
|
+
/** The registry PR that approved it. */
|
|
10
|
+
readonly pr: number;
|
|
11
|
+
readonly note?: string;
|
|
12
|
+
}
|
|
13
|
+
interface Source {
|
|
14
|
+
readonly repo: string;
|
|
15
|
+
readonly commit: string;
|
|
16
|
+
}
|
|
17
|
+
/** A registry entry. `chain` is the chain id (EVM) or `'stellar'`; added by the generator. */
|
|
18
|
+
interface Entry {
|
|
19
|
+
readonly chain: number | 'stellar';
|
|
20
|
+
readonly key: string;
|
|
21
|
+
readonly address: string;
|
|
22
|
+
readonly kind: Kind;
|
|
23
|
+
readonly status: Status;
|
|
24
|
+
/** Only in the full dataset (dist/registry.json), not in the bundled runtime data. */
|
|
25
|
+
readonly tags?: readonly string[];
|
|
26
|
+
readonly source?: Source;
|
|
27
|
+
readonly audit?: string;
|
|
28
|
+
readonly deployer?: string;
|
|
29
|
+
/** Only on factories / beacons: instances they create inherit this entry's status. */
|
|
30
|
+
readonly inherit?: boolean;
|
|
31
|
+
/** Only in the full dataset (dist/registry.json), not in the bundled runtime data. */
|
|
32
|
+
readonly approval?: Approval;
|
|
33
|
+
readonly notes?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** Any known chain (autocompletes) or a plain number, e.g. a runtime `chainId`. */
|
|
37
|
+
type ChainInput = ChainRef | (number & {});
|
|
38
|
+
|
|
39
|
+
export type { ChainInput as C, Entry as E, Kind as K, Status as S, Source as a };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { C as ChainRef } from './registry-rKK0TKIW.js';
|
|
2
|
+
|
|
3
|
+
type Kind = 'contract' | 'factory' | 'beacon' | 'instance' | 'external';
|
|
4
|
+
type Status = 'unsafe' | 'role-unsafe' | 'safe' | 'blocked';
|
|
5
|
+
/** Why an entry was approved for production (required on every `safe` entry). */
|
|
6
|
+
type ApprovalBasis = 'audit' | 'prod-baseline' | 'external-integration' | 'governance';
|
|
7
|
+
interface Approval {
|
|
8
|
+
readonly basis: ApprovalBasis;
|
|
9
|
+
/** The registry PR that approved it. */
|
|
10
|
+
readonly pr: number;
|
|
11
|
+
readonly note?: string;
|
|
12
|
+
}
|
|
13
|
+
interface Source {
|
|
14
|
+
readonly repo: string;
|
|
15
|
+
readonly commit: string;
|
|
16
|
+
}
|
|
17
|
+
/** A registry entry. `chain` is the chain id (EVM) or `'stellar'`; added by the generator. */
|
|
18
|
+
interface Entry {
|
|
19
|
+
readonly chain: number | 'stellar';
|
|
20
|
+
readonly key: string;
|
|
21
|
+
readonly address: string;
|
|
22
|
+
readonly kind: Kind;
|
|
23
|
+
readonly status: Status;
|
|
24
|
+
/** Only in the full dataset (dist/registry.json), not in the bundled runtime data. */
|
|
25
|
+
readonly tags?: readonly string[];
|
|
26
|
+
readonly source?: Source;
|
|
27
|
+
readonly audit?: string;
|
|
28
|
+
readonly deployer?: string;
|
|
29
|
+
/** Only on factories / beacons: instances they create inherit this entry's status. */
|
|
30
|
+
readonly inherit?: boolean;
|
|
31
|
+
/** Only in the full dataset (dist/registry.json), not in the bundled runtime data. */
|
|
32
|
+
readonly approval?: Approval;
|
|
33
|
+
readonly notes?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** Any known chain (autocompletes) or a plain number, e.g. a runtime `chainId`. */
|
|
37
|
+
type ChainInput = ChainRef | (number & {});
|
|
38
|
+
|
|
39
|
+
export type { ChainInput as C, Entry as E, Kind as K, Status as S, Source as a };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { C as ChainInput,
|
|
2
|
-
export { K as Kind,
|
|
1
|
+
import { C as ChainInput, E as Entry, S as Status } from './core-84-fTw11.mjs';
|
|
2
|
+
export { K as Kind, a as Source } from './core-84-fTw11.mjs';
|
|
3
|
+
import { A as AddressKey, C as ChainRef } from './registry-rKK0TKIW.mjs';
|
|
3
4
|
|
|
4
5
|
declare const address: (chain: ChainInput, key: AddressKey) => string | undefined;
|
|
5
6
|
declare const requireAddress: (chain: ChainInput, key: AddressKey) => string;
|
|
6
7
|
declare const entry: (chain: ChainInput, key: AddressKey) => Entry | undefined;
|
|
7
8
|
declare const findByAddress: (chain: ChainInput, address: string) => Entry | undefined;
|
|
8
9
|
declare const statusOf: (chain: ChainInput, address: string) => Status | undefined;
|
|
10
|
+
declare const isDenied: (chain: ChainInput, address: string) => boolean;
|
|
9
11
|
declare const isProdSafe: (chain: ChainInput, address: string) => boolean;
|
|
10
12
|
declare const entries: (chain?: ChainInput) => Entry[];
|
|
11
13
|
declare const chains: () => ChainRef[];
|
|
12
14
|
|
|
13
|
-
export { AddressKey, ChainRef, Entry, Status, address, chains, entries, entry, findByAddress, isProdSafe, requireAddress, statusOf };
|
|
15
|
+
export { AddressKey, ChainRef, Entry, Status, address, chains, entries, entry, findByAddress, isDenied, isProdSafe, requireAddress, statusOf };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { C as ChainInput,
|
|
2
|
-
export { K as Kind,
|
|
1
|
+
import { C as ChainInput, E as Entry, S as Status } from './core-DGXC_tzy.js';
|
|
2
|
+
export { K as Kind, a as Source } from './core-DGXC_tzy.js';
|
|
3
|
+
import { A as AddressKey, C as ChainRef } from './registry-rKK0TKIW.js';
|
|
3
4
|
|
|
4
5
|
declare const address: (chain: ChainInput, key: AddressKey) => string | undefined;
|
|
5
6
|
declare const requireAddress: (chain: ChainInput, key: AddressKey) => string;
|
|
6
7
|
declare const entry: (chain: ChainInput, key: AddressKey) => Entry | undefined;
|
|
7
8
|
declare const findByAddress: (chain: ChainInput, address: string) => Entry | undefined;
|
|
8
9
|
declare const statusOf: (chain: ChainInput, address: string) => Status | undefined;
|
|
10
|
+
declare const isDenied: (chain: ChainInput, address: string) => boolean;
|
|
9
11
|
declare const isProdSafe: (chain: ChainInput, address: string) => boolean;
|
|
10
12
|
declare const entries: (chain?: ChainInput) => Entry[];
|
|
11
13
|
declare const chains: () => ChainRef[];
|
|
12
14
|
|
|
13
|
-
export { AddressKey, ChainRef, Entry, Status, address, chains, entries, entry, findByAddress, isProdSafe, requireAddress, statusOf };
|
|
15
|
+
export { AddressKey, ChainRef, Entry, Status, address, chains, entries, entry, findByAddress, isDenied, isProdSafe, requireAddress, statusOf };
|