config.ts 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. import { ChannelNames } from "./src/types";
  2. export const dbFile = "./db.json";
  3. // href
  4. export const domain = "https://pioneer.joystreamstats.live";
  5. export const apiUrl = "https://api.joystreamstats.live/api";
  6. export const statusUrl = "https://joystreamstats.live/static/status.json";
  7. export const dapplookerUrl =
  8. "https://analytics.dapplooker.com/api/public/dashboard/c70b56bd-09a0-4472-a557-796afdc64d3b/card/155";
  9. export const wsLocation = "wss://rome-rpc-endpoint.joystream.org:9944"; //"wss://joystreamstats.live:9945";
  10. // bot tokens
  11. export const discordToken = "";
  12. export const tgToken = "";
  13. // telegram chat ID
  14. export const chatid = "-1001438587296";
  15. // time between heartbeat announcement in milliseconds
  16. export const heartbeat = 60000 * 60 * 6;
  17. export const councilStatusHeartbeat = 86400000;
  18. // minutes between checking for proposal updates
  19. export const proposalDelay = 15;
  20. export const suppressedThreads = [180, 265, 275, 390]; // 180 tokens, 265 faucet, 275 pets, 390 bounty-24
  21. // storage bot
  22. export const reRunCronTimingInHour = 5;
  23. // video bot
  24. export const channelId = "938526399801729024";
  25. export const hydraLocation = "https://orion.joystream.org/graphql";
  26. export const waitFor = 60;
  27. export const waitTimeUnit = "seconds";
  28. export const createdAgo = 30;
  29. export const createdAgoUnit = "minutes";
  30. // wg bot
  31. export const channelNames: ChannelNames = {
  32. council: "council",
  33. proposals: "proposals-bot",
  34. forum: "forum-bot",
  35. tokenomics: "tokenomics",
  36. videos: "video-bot",
  37. general: "general",
  38. // groups https://github.com/Joystream/joystream/blob/giza/node/src/chain_spec/mod.rs#L302-L350
  39. contentWorkingGroup: "content-curator",
  40. storageWorkingGroup: "storage-provider",
  41. distributionWorkingGroup: "distributors",
  42. gatewayWorkingGroup: "gateways",
  43. operationsWorkingGroupAlpha: "operations",
  44. operationsWorkingGroupGamma: "kpis",
  45. operationsWorkingGroupBeta: "content-creator",
  46. };
  47. export const wgEvents = [
  48. "ApplicationTerminated",
  49. "ApplicationWithdrawn",
  50. "AppliedOnOpening",
  51. "BeganApplicationReview",
  52. "LeaderSet",
  53. "LeaderUnset",
  54. "MintCapacityChanged",
  55. "OpeningAdded",
  56. "OpeningFilled",
  57. "StakeDecreased",
  58. "StakeIncreased",
  59. "StakeSlashed",
  60. "TerminatedLeader",
  61. "TerminatedWorker",
  62. "WorkerExited",
  63. "WorkerRewardAmountUpdated",
  64. ];
  65. export const joystreamBlue = "#4038FF"; // official joystream blue, see https://www.joystream.org/brand/guides/