You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

defaultParameters.ts 881B

12345678910111213141516171819202122232425262728
  1. import { time } from '@nomicfoundation/hardhat-network-helpers';
  2. import { Document, ERC20Details, Partition, Variable } from './tokenData';
  3. export const DEFAULT_ERC20_DETAILS: ERC20Details = {
  4. name: 'Security Token',
  5. symbol: 'ST',
  6. decimals: 6,
  7. maxSupply: 1_000_000,
  8. };
  9. export const DEFAULT_VARIABLES = [
  10. new Variable(
  11. 'lockup_expiration_transfer',
  12. 'uint256',
  13. // Math.floor(Date.now() / 1000) + time.duration.years(1), // a year from now on
  14. Math.floor(Date.now() / 1000) + time.duration.minutes(1), // a year from now on
  15. ),
  16. ];
  17. export const DEFAULT_PARTITIONS = [
  18. new Partition('DefaultPartition-1', DEFAULT_VARIABLES),
  19. new Partition('DefaultPartition-2', DEFAULT_VARIABLES),
  20. ];
  21. export const DEFAULT_DOCUMENTS = [
  22. new Document('DefaultDocument-1', 'https://bcg/documents/'),
  23. new Document('DefaultDocument-2', 'https://sec.net/documents/'),
  24. ];