Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,4 @@ CONVERTIBLES_FACET=
EQUITY_COMPENSATION_FACET=
STOCK_PLAN_FACET=
WARRANT_FACET=
STAKEHOLDER_NFT_FACET=

# Canton config
TRANSFER_AGENT_CLIENT_SECRET=
FAIRMINT_PARTY_ID=
FAIRMINT_USER_ID=
STAKEHOLDER_NFT_FACET=
19 changes: 1 addition & 18 deletions .github/workflows/deploy.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ jobs:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
RPC_URL: ${{ secrets.RPC_URL }}
FAIRMINT_MAINNET_USER_ID: ${{ secrets.FAIRMINT_MAINNET_USER_ID }}
FAIRMINT_MAINNET_PARTY_ID: ${{ secrets.FAIRMINT_MAINNET_PARTY_ID }}
TRANSFER_AGENT_MAINNET_CLIENT_SECRET: ${{ secrets.TRANSFER_AGENT_MAINNET_CLIENT_SECRET }}
FAIRMINT_DEVNET_USER_ID: ${{ secrets.FAIRMINT_DEVNET_USER_ID }}
FAIRMINT_DEVNET_PARTY_ID: ${{ secrets.FAIRMINT_DEVNET_PARTY_ID }}
TRANSFER_AGENT_DEVNET_CLIENT_SECRET: ${{ secrets.TRANSFER_AGENT_DEVNET_CLIENT_SECRET }}

run: |
# Generate timestamp for deployment
Expand Down Expand Up @@ -127,25 +121,14 @@ jobs:
-e PORT=8080 \
-e PRIVATE_KEY='${PRIVATE_KEY}' \
-e ETHERSCAN_L2_API_KEY='${ETHERSCAN_L2_API_KEY}' \
-e FAIRMINT_MAINNET_USER_ID='${FAIRMINT_MAINNET_USER_ID}' \
-e FAIRMINT_MAINNET_PARTY_ID='${FAIRMINT_MAINNET_PARTY_ID}' \
-e TRANSFER_AGENT_MAINNET_CLIENT_SECRET='${TRANSFER_AGENT_MAINNET_CLIENT_SECRET}' \
-e FAIRMINT_DEVNET_USER_ID='${FAIRMINT_DEVNET_USER_ID}' \
-e FAIRMINT_DEVNET_PARTY_ID='${FAIRMINT_DEVNET_PARTY_ID}' \
-e TRANSFER_AGENT_DEVNET_CLIENT_SECRET='${TRANSFER_AGENT_DEVNET_CLIENT_SECRET}' \
-v '/home/ubuntu/global-bundle.pem:/global-bundle.pem' \
ocp-dev:${DEPLOY_TIME} && \

# Wait for container to be healthy
echo "Printing logs before health check:"
docker logs \$CONTAINER_NAME || true

wait_for_health "\$CONTAINER_NAME"
wait_for_health "\$CONTAINER_NAME" && \
if [ \$? -eq 0 ]; then
handle_container_switch "\$CONTAINER_NAME" "${DEPLOY_TIME}" "dev"
else
echo "Container failed health check. Printing logs:"
docker logs \$CONTAINER_NAME || true
handle_failed_deployment "\$CONTAINER_NAME" "${DEPLOY_TIME}" "dev"
fi
"
12 changes: 0 additions & 12 deletions .github/workflows/deploy.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@ jobs:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
RPC_URL: ${{ secrets.RPC_URL }}
FAIRMINT_MAINNET_USER_ID: ${{ secrets.FAIRMINT_MAINNET_USER_ID }}
FAIRMINT_MAINNET_PARTY_ID: ${{ secrets.FAIRMINT_MAINNET_PARTY_ID }}
TRANSFER_AGENT_MAINNET_CLIENT_SECRET: ${{ secrets.TRANSFER_AGENT_MAINNET_CLIENT_SECRET }}
FAIRMINT_DEVNET_USER_ID: ${{ secrets.FAIRMINT_DEVNET_USER_ID }}
FAIRMINT_DEVNET_PARTY_ID: ${{ secrets.FAIRMINT_DEVNET_PARTY_ID }}
TRANSFER_AGENT_DEVNET_CLIENT_SECRET: ${{ secrets.TRANSFER_AGENT_DEVNET_CLIENT_SECRET }}

run: |
# Generate timestamp for deployment
Expand Down Expand Up @@ -126,12 +120,6 @@ jobs:
-e PORT=8080 \
-e PRIVATE_KEY='${PRIVATE_KEY}' \
-e ETHERSCAN_L2_API_KEY='${ETHERSCAN_L2_API_KEY}' \
-e FAIRMINT_MAINNET_USER_ID='${FAIRMINT_MAINNET_USER_ID}' \
-e FAIRMINT_MAINNET_PARTY_ID='${FAIRMINT_MAINNET_PARTY_ID}' \
-e TRANSFER_AGENT_MAINNET_CLIENT_SECRET='${TRANSFER_AGENT_MAINNET_CLIENT_SECRET}' \
-e FAIRMINT_DEVNET_USER_ID='${FAIRMINT_DEVNET_USER_ID}' \
-e FAIRMINT_DEVNET_PARTY_ID='${FAIRMINT_DEVNET_PARTY_ID}' \
-e TRANSFER_AGENT_DEVNET_CLIENT_SECRET='${TRANSFER_AGENT_DEVNET_CLIENT_SECRET}' \
-v '/home/ubuntu/global-bundle.pem:/global-bundle.pem' \
ocp-prod:${DEPLOY_TIME} && \

Expand Down
3 changes: 1 addition & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/node_modules
/chain/out
.history
src/chain-operations/canton/lib

# Build output
/dist
Expand All @@ -15,4 +14,4 @@ src/chain-operations/canton/lib
.env*

# Logs
*.log
*.log
4 changes: 2 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import importPlugin from "eslint-plugin-import";
export default [
{
files: ["**/*.{js,ts,mjs,mts}"],
ignores: ["node_modules/**", "eslint.config.js", "src/chain-operations/canton/lib/**"],
ignores: ["node_modules/**", "eslint.config.js"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
Expand Down Expand Up @@ -39,7 +39,7 @@ export default [
},
{
files: ["**/*.ts"],
ignores: ["node_modules/**", "src/chain-operations/canton/lib/**"],
ignores: ["node_modules/**"],
languageOptions: {
parser: tsparser,
parserOptions: {
Expand Down
7 changes: 0 additions & 7 deletions src/chain-operations/canton/clientConfig.js

This file was deleted.

9 changes: 0 additions & 9 deletions src/chain-operations/canton/constants.js

This file was deleted.

29 changes: 0 additions & 29 deletions src/chain-operations/canton/deployCapTableCanton.js

This file was deleted.

Loading