0xweb
Version:
Contract package manager and other web3 tools
78 lines (69 loc) • 1.88 kB
text/typescript
import { IContractDetails } from '@dequanto/models/IContractDetails';
import { ITokenGlob } from '@dequanto/models/ITokenGlob';
import { TAddress } from '@dequanto/models/TAddress';
import { TPlatform } from '@dequanto/models/TPlatform';
import { IRpcConfig } from '@dequanto/clients/ClientPool';
import { TChain } from '@dequanto/models/TChain';
export interface IConfigData {
settings: {
/** Root path of the dequanto library */
base?: string;
/** Default generator options */
generate?: {
target?: 'js' | 'mjs' | 'ts'
}
};
accounts: {
[]: {
[]: {
address: string;
key?: string;
};
};
};
tokens: ITokenGlob[];
blockchainExplorer: {
[]: {
key: string;
host: string;
};
};
chains: TChain[]
web3: {
[]: {
chainId?: number
chainToken?: string
aliases?: string[]
endpoints: IRpcConfig[]
};
};
contracts?: {
[]: IContractDetails[];
};
erc4337?: {
name: string;
contracts: {
entryPoint: TAddress;
accountFactory: TAddress;
};
platforms: TPlatform[];
}[];
safe?: {
transactionService: Record<TPlatform, `https://${string}`>;
contracts: Record<TPlatform, {
Safe: TAddress;
SafeL2?: TAddress;
SafeProxyFactory: TAddress;
MultiSend: TAddress;
CreateCall?: TAddress;
}>;
};
flashbots?: {
[]: {
url: string;
};
};
spotPriceAggregator?: {
[]: TAddress
};
}