mirror of
https://github.com/luxdao/ui-automation.git
synced 2026-10-30 19:53:14 +00:00
47 lines
1.6 KiB
TypeScript
47 lines
1.6 KiB
TypeScript
export const testDaos = {
|
|
/* ERC20: {
|
|
network: 'eth',
|
|
address: '0xB98d45F9021D71E6Fc30b43FD37FB3b1Bf12c064',
|
|
get value(): string { return `${this.network}:${this.address}`; }
|
|
},
|
|
ERC721: {
|
|
network: 'eth',
|
|
address: '0xB14AC30AA97057e2A934c47BDc45171335B91Bd',
|
|
get value(): string { return `${this.network}:${this.address}`; }
|
|
},
|
|
multisig: {
|
|
network: 'base',
|
|
address: '0x5B2396dAbD89D984F251e9fb949Fd9D97Fcb0F2b',
|
|
get value(): string { return `${this.network}:${this.address}`; }
|
|
} */
|
|
ERC20: {
|
|
network: 'sep',
|
|
address: '0xB4b01b4Dc5f8d11feD90D760a237BF4D74C3423d',
|
|
get value(): string { return `${this.network}:${this.address}`; }
|
|
},
|
|
ERC721: {
|
|
network: 'sep',
|
|
address: '0x0BB34D2e76099c72dD26665afE5710980E271382',
|
|
get value(): string { return `${this.network}:${this.address}`; }
|
|
},
|
|
multisig: {
|
|
network: 'sep',
|
|
address: '0x0B17fd112dc1B25892e7E85D486dD390A037936A',
|
|
get value(): string { return `${this.network}:${this.address}`; }
|
|
}
|
|
};
|
|
|
|
/**
|
|
* Returns the test DAO configuration for the specified governance type.
|
|
* @param governanceType Optional. One of 'erc20', 'erc721', or 'multisig'.
|
|
* If not provided, uses process.env.GOVERNANCE_TYPE or defaults to 'erc20'.
|
|
* @throws {Error} If an unknown governance type is provided.
|
|
*/
|
|
export function getTestDao(governanceType?: string) {
|
|
const type = (governanceType || 'erc20').toLowerCase();
|
|
if (type === 'erc20') return testDaos.ERC20;
|
|
if (type === 'erc721') return testDaos.ERC721;
|
|
if (type === 'multisig') return testDaos.multisig;
|
|
throw new Error(`Unknown governance type: ${governanceType}`);
|
|
}
|