Skip to content

Commit

Permalink
Update src/types.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Nicholas Rodrigues Lordello <[email protected]>
  • Loading branch information
mmv08 and nlordell committed Jul 11, 2024
1 parent 359a09b commit 7634cfc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface SingletonDeploymentJSON {
// 1.3.0: canonical, eip155, zksync
// 1.4.1: canonical, zksync
// Ex: deployments: { "canonical": { "codeHash": "0x1234", "address": "0x5678"}}
deployments: AtLeastOne<Record<AddressType, { address: string, codeHash: string }>>;
deployments: AtLeastOne<Record<AddressType, { address: string; codeHash: string }>>;

// A record of network addresses, where the key is the network identifier and the value is either a single address type or an array of address types.
networkAddresses: Record<string, AddressType | AddressType[]>;
Expand Down Expand Up @@ -63,7 +63,7 @@ export interface SingletonDeployment {
// 1.3.0: canonical, eip155, zksync
// 1.4.1: canonical, zksync
// Ex: deployments: { "canonical": { "codeHash": "0x1234", "address": "0x5678"}}
deployments: AtLeastOne<Record<AddressType, { address: string, codeHash: string }>>;
deployments: AtLeastOne<Record<AddressType, { address: string; codeHash: string }>>;

// A record of network addresses, where the key is the network identifier and the value is the address.
networkAddresses: Record<string, string>;
Expand All @@ -77,7 +77,7 @@ export interface SingletonDeploymentV2 {
released: boolean;
contractName: string;
version: string;
deployments: AtLeastOne<Record<AddressType, Record<'address' | 'codeHash', string>>>;
deployments: AtLeastOne<Record<AddressType, { address: string; codeHash: string }>>;
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
abi: any[];
networkAddresses: Record<string, string | string[]>;
Expand Down

0 comments on commit 7634cfc

Please sign in to comment.