Skip to content

Commit

Permalink
Merge pull request #405 from meemproject/feature/mvp
Browse files Browse the repository at this point in the history
Email invites; Cleanup
  • Loading branch information
kengoldfarb authored May 17, 2023
2 parents cf22534 + 1cf0625 commit 2af8163
Show file tree
Hide file tree
Showing 80 changed files with 1,315 additions and 14,068 deletions.
3 changes: 2 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"PORT": "",
"BLUEBIRD_W_FORGOTTEN_RETURN": "0",
"DISABLE_ORM_SYNC": "true",
"GENERATE_SHARED_TYPES": "false"
"GENERATE_SHARED_TYPES": "false",
"DATABASE_URL": "sqlite::memory:"
}
}
]
Expand Down
25 changes: 3 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"clean": "rm -rf build/*",
"build": "npm run clean ; tsc ; echo \"Finished Building\"",
"release": "semantic-release",
"heroku-prebuild": "yarn remove puppeteer puppeteer-extra puppeteer-extra-plugin-adblocker puppeteer-extra-plugin-stealth -D && yarn add puppeteer@^13.1.3 puppeteer-extra@^3.2.3 puppeteer-extra-plugin-adblocker@^2.12.0 puppeteer-extra-plugin-stealth@^2.9.0",
"heroku-cleanup": "cp .yarnclean.ci .yarnclean && yarn autoclean --force",
"########## Run ##########": "",
"start": "NODE_ENV=local RUN_PRODUCTION=true ENABLE_GUNDB=false GENERATE_SHARED_TYPES=false node ./build/src/server.js",
Expand All @@ -20,14 +19,8 @@
"local": "npm run kill-inspect && NODE_ENV=local PORT=3005 tsnd --exit-child --inspect=4005 --respawn --transpile-only --ignore-watch=src/types/meem.generated.ts --ignore-watch=src/types/meem.public.generated.ts src/server.ts",
"########## DB Migrations ##########": "",
"migration:create": "sequelize migration:create",
"db:migrate": "sequelize db:migrate",
"db:migrate:local": "NODE_ENV=local node ./node_modules/.bin/sequelize db:migrate",
"db:migrate:development": "NODE_ENV=development node ./node_modules/.bin/sequelize db:migrate",
"db:migrate:stage": "NODE_ENV=staging node ./node_modules/.bin/sequelize db:migrate",
"db:migrate:production": "NODE_ENV=production node ./node_modules/.bin/sequelize db:migrate",
"########## Tests ##########": "",
"test": "NODE_ENV=local DISABLE_MIGRATIONS=true ALLOW_NON_SSL=true ORM_LOGGING=false LOG_LEVEL=debug TESTING=true ENABLE_GUNDB=false GENERATE_SHARED_TYPES=false DISCORD_ENABLE_LISTENERS=false PORT= mocha --exit -r ts-node/register/transpile-only 'src/**/*.test.ts'",
"#test": "DISABLE_ORM_SYNC=false NODE_ENV=local DISABLE_MIGRATIONS=true ALLOW_NON_SSL=true ORM_LOGGING=false LOG_LEVEL=debug TESTING=true ENABLE_GUNDB=false GENERATE_SHARED_TYPES=false PORT= DATABASE_URL=sqlite:./tmp/testing.db ENABLE_CONTRACT_LISTENERS=false ENABLE_TWITTER_LISTENERS=false mocha --exit -r ts-node/register/transpile-only 'src/**/*.test.ts'",
"test": "NODE_ENV=local DATABASE_URL=sqlite::memory: DISABLE_MIGRATIONS=true ALLOW_NON_SSL=true ORM_LOGGING=false LOG_LEVEL=debug TESTING=true ENABLE_GUNDB=false GENERATE_SHARED_TYPES=false DISCORD_ENABLE_LISTENERS=false PORT= mocha --exit -r ts-node/register/transpile-only 'src/**/*.test.ts'",
"########## Serverless ##########": "",
"deploy:dev": "SLS_DEBUG=* sls deploy -s dev",
"deploy:staging": "SLS_DEBUG=* sls deploy -s staging",
Expand All @@ -47,23 +40,13 @@
"postinstall": "if [ \"${RUN_POSTINSTALL:=\"false\"}\" = \"true\" ]; then npm run build; else echo \"Skipping postinstall RUN_POSTINSTALL is not set to true.\" && exit 0; fi",
"kill-inspect": "kill-port 4005",
"########## Meems ##########": "",
"#generateTypes": "typechain --target=ethers-v5 'src/abis/*.json' --out-dir='src/types'",
"fetchMeemABI": "tsnd --transpile-only src/scripts/fetchMeemABI.ts",
"fetchWhitelist": "tsnd --transpile-only src/scripts/fetchWhitelist.ts",
"fetchAccess": "tsnd --transpile-only src/scripts/fetchAccess.ts",
"fetchMeemIdABI": "tsnd --transpile-only src/scripts/fetchMeemIdABI.ts",
"fetchMeemMarketABI": "tsnd --transpile-only src/scripts/fetchMeemMarketABI.ts",
"fetchMeemContracts": "tsnd --transpile-only src/scripts/fetchMeemContracts.ts",
"fetchMeemIdContracts": "tsnd --transpile-only src/scripts/fetchMeemIdContracts.ts",
"fetchContracts": "yarn fetchMeemContracts && yarn fetchMeemIdContracts",
"swagger": "npx swagger-inline 'src/types/shared/api/**/*.ts' --base 'src/types/shared/api/swaggerBase.yaml' --format .json > 'src/types/shared/api/meem-api.json'",
"generateHasuraMetadata": "tsnd --transpile-only src/scripts/generateHasuraMetadata.ts",
"migrateSymphony": "tsnd --transpile-only src/scripts/migrateSymphony.ts",
"syncDiscordCommands": "tsnd --transpile-only src/scripts/syncDiscordCommands.ts"
},
"dependencies": {
"@discordjs/rest": "^1.6.0",
"@guildxyz/sdk": "^1.1.1",
"@kengoldfarb/log": "^1.0.3",
"@meemproject/meem-contracts": "^0.17.1",
"@meemproject/metadata": "^0.17.1",
Expand All @@ -76,6 +59,7 @@
"@typechain/ethers-v5": "^10.1.0",
"alchemy-sdk": "^2.1.1",
"auth0": "^2.42.0",
"aws-sdk": "^2.1378.0",
"bcrypt": "^5.0.1",
"body-parser": "^1.20.0",
"busboy": "^0.3.1",
Expand All @@ -97,12 +81,10 @@
"openai": "^3.2.1",
"pg": "^8.8.0",
"sequelize": "^6.23.2",
"sharp": "^0.31.0",
"slug": "^8.0.0",
"string-argv": "^0.3.1",
"superagent": "^8.0.0",
"supertest": "^6.2.4",
"tslib": "^2.4.1",
"twitter-api-sdk": "^1.2.1",
"twitter-api-v2": "^1.12.7",
"typechain": "^8.1.0",
Expand Down Expand Up @@ -141,7 +123,6 @@
"@types/uuid": "^8.3.4",
"@types/ws": "^8.5.3",
"aws-lambda": "^1.0.7",
"aws-sdk": "^2.1225.0",
"babel-eslint": "^10.1.0",
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
Expand Down Expand Up @@ -172,4 +153,4 @@
"optionalDependencies": {
"fsevents": "^2.3.2"
}
}
}
20 changes: 0 additions & 20 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,29 +44,14 @@ provider:
TWITTER_BEARER_TOKEN: ${env:TWITTER_BEARER_TOKEN, ''}
TWITTER_AUTH_CALLBACK_URL: ${env:TWITTER_AUTH_CALLBACK_URL, ''}
ENABLE_VERBOSE_ERRORS: ${env:ENABLE_VERBOSE_ERRORS, 'false'}
TWITTER_WALLET_PRIVATE_KEY: ${env:TWITTER_WALLET_PRIVATE_KEY, ''}
TWITTER_PROJECT_TOKEN_ID: ${env:TWITTER_PROJECT_TOKEN_ID, ''}
DEFAULT_PAGINATION_LIMIT: ${env:DEFAULT_PAGINATION_LIMIT, '20'}
MINT_GAS_LIMIT: ${env:MINT_GAS_LIMIT, '6000000'}
IPFS_CONTENT_GATEWAY_URL: ${env:IPFS_CONTENT_GATEWAY_URL, 'https://gateway.pinata.cloud'}
PINATA_API_KEY: ${env:PINATA_API_KEY, ''}
PINATA_API_SECRET: ${env:PINATA_API_SECRET, ''}
TWITTER_INTEGRATION_ID: ${env:TWITTER_INTEGRATION_ID, ''}
MEEM_BUNDLE_ID: ${env:MEEM_BUNDLE_ID, ''}
MEEM_PROXY_CONTRACT_ID: ${env:MEEM_PROXY_CONTRACT_ID, ''}
LAMBDA_REINITIALIZE_FUNCTION_NAME: ${env:LAMBDA_REINITIALIZE_FUNCTION_NAME, ''}
GNOSIS_MASTER_CONTRACT_ADDRESS: ${env:GNOSIS_MASTER_CONTRACT_ADDRESS, ''}
GNOSIS_PROXY_CONTRACT_ADDRESS: ${env:GNOSIS_PROXY_CONTRACT_ADDRESS, ''}
UPGRADE_AGREEMENT_FUNCTION_NAME: ${env:UPGRADE_AGREEMENT_FUNCTION_NAME, ''}
GNOSIS_DEFAULT_CALLBACK_HANDLER: ${env:GNOSIS_DEFAULT_CALLBACK_HANDLER, ''}
TWITTER_IDENTITY_INTEGRATION_ID: ${env:TWITTER_IDENTITY_INTEGRATION_ID, ''}
DISCORD_IDENTITY_INTEGRATION_ID: ${env:DISCORD_IDENTITY_INTEGRATION_ID, ''}
EMAIL_IDENTITY_INTEGRATION_ID: ${env:EMAIL_IDENTITY_INTEGRATION_ID, ''}
AUTH0_APP_DOMAIN: ${env:AUTH0_APP_DOMAIN, ''}
AUTH0_CLIENT_ID: ${env:AUTH0_CLIENT_ID, ''}
AUTH0_CLIENT_SECRET: ${env:AUTH0_CLIENT_SECRET, ''}
AUTH0_VERIFY_EMAIL_CALLBACK_URL: ${env:AUTH0_VERIFY_EMAIL_CALLBACK_URL, ''}
CHAIN_IDS: ${env:CHAIN_IDS, ''}
JSON_RPC_MAINNET: ${env:JSON_RPC_MAINNET, ''}
ALCHEMY_API_KEY_MAINNET: ${env:ALCHEMY_API_KEY_MAINNET, ''}
ALCHEMY_API_KEY_RINKEBY: ${env:ALCHEMY_API_KEY_RINKEBY, ''}
Expand All @@ -75,11 +60,6 @@ provider:
ALCHEMY_API_KEY_ARBITRUM_GOERLI: ${env:ALCHEMY_API_KEY_ARBITRUM_GOERLI, ''}
ALCHEMY_API_KEY_OPTIMISM_GOERLI: ${env:ALCHEMY_API_KEY_OPTIMISM_GOERLI, ''}
ALCHEMY_API_KEY_MUMBAI: ${env:ALCHEMY_API_KEY_MUMBAI, ''}
ARBITRUM_GAS_MULTIPLIER: ${env:ARBITRUM_GAS_MULTIPLIER, ''}
MIN_GASE_PRICE_GWEI: ${env:MIN_GASE_PRICE_GWEI, '2'}
SQS_QUEUE_URL: ${env:SQS_QUEUE_URL, ''}
SQS_QUEUE_ARN: ${env:SQS_QUEUE_ARN, ''}
TABLELAND_CONTROLLER_BUNDLE_ID: ${env:TABLELAND_CONTROLLER_BUNDLE_ID, ''}
SEGMENT_WRITE_KEY: ${env:SEGMENT_WRITE_KEY, ''}
ENCRYPTION_KEY: ${env:ENCRYPTION_KEY, ''}
TWITTER_OAUTH_CALLBACK_URL: ${env:TWITTER_OAUTH_CALLBACK_URL, ''}
Expand Down
Loading

0 comments on commit 2af8163

Please sign in to comment.