@q-dev/q-ts-gdk-sdk
Version:
Typescript Library to interact with GDK Contracts
175 lines (174 loc) • 6.39 kB
TypeScript
export declare const CREATE_PERMISSION = "CREATE";
export declare const UPDATE_PERMISSION = "UPDATE";
export declare const DELETE_PERMISSION = "DELETE";
export declare const EXECUTE_PERMISSION = "EXECUTE";
export declare const MINT_PERMISSION = "MINT";
export declare const BURN_PERMISSION = "BURN";
export declare const SPEND_PERMISSION = "SPEND";
export declare const RECEIVE_PERMISSION = "RECEIVE";
export declare const CHANGE_METADATA_PERMISSION = "CHANGE_METADATA";
export declare const CREATE_VOTING_PERMISSION = "CREATE_VOTING";
export declare const VOTE_PERMISSION = "VOTE";
export declare const VETO_PERMISSION = "VETO";
export declare const VOTE_FOR_PERMISSION = "VOTE_FOR";
export declare const VETO_FOR_PERMISSION = "VETO_FOR";
export declare const EXPERT_PERMISSION = "EXPERT";
export declare const MASTER_DAO_FACTORY = "MASTER_DAO_FACTORY";
export declare const MASTER_DAO_REGISTRY = "MASTER_DAO_REGISTRY";
export declare const DAO_MAIN_PANEL_NAME = "DAO_CONSTITUTION";
export declare const DAO_VAULT_NAME = "DAO_VAULT";
export declare const DAO_REGISTRY_NAME = "DAO_REGISTRY";
export declare const PERMISSION_MANAGER_NAME = "PERMISSION_MANAGER";
export declare const DAO_TOKEN_FACTORY_NAME = "DAO_TOKEN_FACTORY";
export declare const DAO_TOKEN_REGISTRY_NAME = "DAO_TOKEN_REGISTRY";
export declare const DAO_VOTING_FACTORY_NAME = "DAO_VOTING_FACTORY";
export declare const DAO_VOTING_REGISTRY_NAME = "DAO_VOTING_REGISTRY";
export declare const DAO_MEMBER_STORAGE_NAME = "DAO_MEMBER_STORAGE";
export declare const DAO_PARAMETER_STORAGE_NAME = "DAO_PARAMETER_STORAGE";
export declare const QRC20_NAME = "QRC20";
export declare const QRC721_NAME = "QRC721";
export declare const VOTING_NAME = "VOTING";
export declare const TOKEN_REGISTRY_DEP = "TOKEN_REGISTRY";
export declare const TOKEN_FACTORY_DEP = "TOKEN_FACTORY";
export declare const VOTING_FACTORY_DEP = "VOTING_FACTORY";
export declare const VOTING_REGISTRY_DEP = "VOTING_REGISTRY";
export declare const MASTER_DAO_FACTORY_DEP = "MASTER_DAO_FACTORY";
export declare const MASTER_DAO_REGISTRY_DEP = "MASTER_DAO_REGISTRY";
export declare const MASTER_ROLE = "MASTER";
export declare const DefaultQRC20Params: {
name: string;
symbol: string;
contractURI: string;
decimals: number;
totalSupplyCap: number;
};
export declare const DefaultQRC721Params: {
name: string;
symbol: string;
contractURI: string;
baseURI: string;
totalSupplyCap: number;
};
export declare enum ParameterType {
NONE = 0,
ADDRESS = 1,
UINT256 = 2,
STRING = 3,
BYTES32 = 4,
BOOL = 5
}
export declare const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
export declare const HALF_PERCENTAGE = "500000000000000000000000000";
export declare const EmptyBytes32 = "0x0000000000000000000000000000000000000000000000000000000000000000";
export declare const ETHEREUM_ADDRESS = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
export declare const DefaultDAOPanelConstructorParameters: {
votingParams: {
votingToken: string;
panelName: string;
votingSituationConfigs: {
votingKeys: {
votingSituationKey: string;
votingPeriodKey: string;
vetoPeriodKey: string;
proposalExecutionPeriodKey: string;
requiredQuorumKey: string;
requiredVetoQuorumKey: string;
votingTypeKey: string;
};
votingValues: {
votingPeriod: number;
vetoPeriod: number;
proposalExecutionPeriod: number;
requiredQuorum: string;
requiredVetoQuorum: string;
votingType: number;
};
}[];
};
expertSetup: {
initialDuties: any[];
initialMembers: any[];
};
initialParameters: {
name: string;
value: string;
solidityType: ParameterType;
}[];
};
export declare const DefaultVotingParams: {
votingToken: string;
panelName: string;
votingSituationConfigs: {
votingKeys: {
votingSituationKey: string;
votingPeriodKey: string;
vetoPeriodKey: string;
proposalExecutionPeriodKey: string;
requiredQuorumKey: string;
requiredVetoQuorumKey: string;
votingTypeKey: string;
};
votingValues: {
votingPeriod: number;
vetoPeriod: number;
proposalExecutionPeriod: number;
requiredQuorum: string;
requiredVetoQuorum: string;
votingType: number;
};
}[];
};
export declare const DefaultDAOConstructorParams: {
masterAccess: string;
tokenNames: string[];
tokenAddresses: any[];
votingNames: string[];
votingAddresses: any[];
tokenParams: {
name: string;
symbol: string;
contractURI: string;
decimals: number;
totalSupplyCap: number;
};
mainPanelParams: {
votingParams: {
votingToken: string;
panelName: string;
votingSituationConfigs: {
votingKeys: {
votingSituationKey: string;
votingPeriodKey: string;
vetoPeriodKey: string;
proposalExecutionPeriodKey: string;
requiredQuorumKey: string;
requiredVetoQuorumKey: string;
votingTypeKey: string;
};
votingValues: {
votingPeriod: number;
vetoPeriod: number;
proposalExecutionPeriod: number;
requiredQuorum: string;
requiredVetoQuorum: string;
votingType: number;
};
}[];
};
expertSetup: {
initialDuties: any[];
initialMembers: any[];
};
initialParameters: {
name: string;
value: string;
solidityType: ParameterType;
}[];
};
};
export declare enum EventNames {
DeployedDAORegistry = "DeployedDAORegistry",
DeployedDAOPanelVoting = "DeployedDAOPanelVoting",
DeployedDAOParameterStorage = "DeployedDAOParameterStorage",
DeployedDAOMemberStorage = "DeployedDAOMemberStorage"
}