Skip to content

Commit

Permalink
refactor: update type namings
Browse files Browse the repository at this point in the history
  • Loading branch information
Lena Hierzi committed Oct 16, 2023
1 parent 8e6898f commit fb60441
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
28 changes: 14 additions & 14 deletions utils/addresses.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
interface InterfaceNetworkTokenAddresses {
interface INetworkTokenAddresses {
BCT: string;
NCT: string;
mcUSD?: string;
Expand All @@ -8,26 +8,26 @@ interface InterfaceNetworkTokenAddresses {
USDC?: string;
WMATIC?: string;
}
interface InterfaceAddresses {
celo: InterfaceNetworkTokenAddresses;
alfajores: InterfaceNetworkTokenAddresses;
polygon: InterfaceNetworkTokenAddresses;
mumbai: InterfaceNetworkTokenAddresses;
interface INetworkAddresses {
celo: INetworkTokenAddresses;
alfajores: INetworkTokenAddresses;
polygon: INetworkTokenAddresses;
mumbai: INetworkTokenAddresses;
}

interface InterfacePoolAddresses {
interface IPoolAddresses {
BCT: string;
NCT: string;
}

interface InterfaceNetworkPoolAddresses {
celo: InterfacePoolAddresses;
alfajores: InterfacePoolAddresses;
polygon: InterfacePoolAddresses;
mumbai: InterfacePoolAddresses;
interface INetworkPoolAddresses {
celo: IPoolAddresses;
alfajores: IPoolAddresses;
polygon: IPoolAddresses;
mumbai: IPoolAddresses;
}

const addresses: InterfaceAddresses = {
const addresses: INetworkAddresses = {
celo: {
BCT: "0x0CcB0071e8B8B716A2a5998aB4d97b83790873Fe",
NCT: "0x02De4766C272abc10Bc88c220D214A26960a7e92",
Expand Down Expand Up @@ -59,7 +59,7 @@ const addresses: InterfaceAddresses = {
},
};

export const poolAddresses: InterfaceNetworkPoolAddresses = {
export const poolAddresses: INetworkPoolAddresses = {
celo: {
BCT: "0x0CcB0071e8B8B716A2a5998aB4d97b83790873Fe",
NCT: "0x02De4766C272abc10Bc88c220D214A26960a7e92",
Expand Down
14 changes: 7 additions & 7 deletions utils/paths.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
interface IfcTokenAddresses {
interface ITokenPaths {
mcUSD?: string[];
cUSD?: string[];
CELO?: string[];
WETH?: string[];
USDC?: string[];
WMATIC?: string[];
}
interface IfcNetworkTokenAddresses {
celo: IfcTokenAddresses;
alfajores: IfcTokenAddresses;
polygon: IfcTokenAddresses;
mumbai: IfcTokenAddresses;
interface INetworkTokenAddresses {
celo: ITokenPaths;
alfajores: ITokenPaths;
polygon: ITokenPaths;
mumbai: ITokenPaths;
}

const paths: IfcNetworkTokenAddresses = {
const paths: INetworkTokenAddresses = {
celo: {
mcUSD: ["0x918146359264c492bd6934071c6bd31c854edbc3"],
cUSD: [
Expand Down

0 comments on commit fb60441

Please sign in to comment.