-
Notifications
You must be signed in to change notification settings - Fork 0
Re-purpose repository for Sprinter topology #217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
630fc77
initial implementation
MakMuftic 4b5a778
remove claude file
MakMuftic 5cd7599
move to private bucket
MakMuftic ec60452
update actions
MakMuftic 262af8c
Change bucket region
akandic47 59a5974
add staging topology
MakMuftic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| name: Publish Production Topology | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - 'production/**' | ||
|
|
||
| permissions: read-all | ||
|
|
||
| jobs: | ||
| publish_production: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Upload production topology to DO Spaces | ||
| uses: jakejarvis/s3-sync-action@v0.5.1 | ||
| with: | ||
| args: --acl public-read | ||
| env: | ||
| AWS_S3_BUCKET: sprinter-signing-config | ||
| AWS_ACCESS_KEY_ID: ${{ secrets.DO_SPACES_KEY }} | ||
| AWS_SECRET_ACCESS_KEY: ${{ secrets.DO_SPACES_SECRET }} | ||
| AWS_S3_ENDPOINT: https://fra1.digitaloceanspaces.com | ||
| AWS_REGION: fra1 | ||
| SOURCE_DIR: './production' | ||
| DEST_DIR: 'production' | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| name: Publish Staging Topology | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - 'staging/**' | ||
|
|
||
| permissions: read-all | ||
|
|
||
| jobs: | ||
| publish_staging: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Upload staging topology to DO Spaces | ||
| uses: jakejarvis/s3-sync-action@v0.5.1 | ||
| with: | ||
| args: --acl public-read | ||
| env: | ||
| AWS_S3_BUCKET: sprinter-signing-config | ||
| AWS_ACCESS_KEY_ID: ${{ secrets.DO_SPACES_KEY }} | ||
| AWS_SECRET_ACCESS_KEY: ${{ secrets.DO_SPACES_SECRET }} | ||
| AWS_S3_ENDPOINT: https://fra1.digitaloceanspaces.com | ||
| AWS_REGION: fra1 | ||
| SOURCE_DIR: './staging' | ||
| DEST_DIR: 'staging' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,9 @@ | ||
| # Binaries for programs and plugins | ||
| *.exe | ||
| *.exe~ | ||
| *.dll | ||
| *.so | ||
| *.dylib | ||
|
|
||
| # Test binary, built with `go test -c` | ||
| *.test | ||
|
|
||
| # Output of the go coverage tool, specifically when used with LiteIDE | ||
| *.out | ||
|
|
||
| # Dependency directories (remove the comment below to include it) | ||
| # vendor/ | ||
|
|
||
| # IDE | ||
| .idea | ||
| .history | ||
| .vscode | ||
|
|
||
| # OS | ||
| .DS_Store | ||
|
|
||
| CLAUDE.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,55 +1,30 @@ | ||
| # sygma-shared-configuration | ||
|
|
||
| This repository uploads shared domains configuration to IPFS (CS Storage) for each Sygma environment. | ||
|
|
||
| ## Shared Domains Configuration | ||
|
|
||
| Format of shared domains configuration for all Sygma services: | ||
|
|
||
| ```json | ||
| { | ||
| "domains": [ | ||
| { | ||
| "id": 0, | ||
| "name": "", | ||
| "type": "", | ||
| "bridgeContract": "", | ||
| "handlers": [ | ||
| { | ||
| "type": "", // erc20 / erc721 / permissionedGeneric / permissionlessGeneric / xc20 | ||
| "address": "" | ||
| } | ||
| ], | ||
| "nativeTokenSymbol": "", | ||
| "nativeTokenFullName": "", | ||
| "nativeTokenDecimals": 0, | ||
| "blockConfirmations": 0, | ||
| "startBlock": "", | ||
| "resources": [ | ||
| { | ||
| "resourceId": "", | ||
| "type": "", | ||
| "address": "", | ||
| "symbol": "" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| # Sprinter Signing Configuration | ||
|
|
||
| This repository stores MPC topology configuration files for the Sprinter signing service. Topology files are automatically uploaded to DigitalOcean Spaces on merge to main. | ||
|
|
||
| ## Repository Structure | ||
|
|
||
| ``` | ||
| - domains - array of domains that the bridge is supporting | ||
| - id - domain id | ||
| - name - domain name | ||
| - type - domain type (substrate, evm) | ||
| - bridgeContract - address of the bridge contract | ||
| - handlers - information about the type and address of the handlers contracts | ||
| - type - handler type (erc20, erc721, permissionedGeneric, permissionlessGeneric) | ||
| - address - handler contract address (hex) | ||
| - nativeTokenSymbol - string that represents symbol of the native token on the domain | ||
| - nativeTokenFullName - string that represents full name of the native token on the domain | ||
| - nativeTokenDecimals - decimal count of the native token on the domain | ||
| - resources - array of resources that the bridge is supporting. | ||
| - resourceId - any hex string | ||
| - type - resource type (erc20, erc721, permissionlessGeneric, permissionedGeneric) | ||
| - address - address of the contract to which the resourceID is mapped (empty if type permissionlessGeneric) | ||
| - symbol - symbol of the resource (eg. USDC) (empty if type permissionlessGeneric) | ||
| / | ||
| ├── staging/ | ||
| │ └── topology # Staging environment topology | ||
| ├── production/ | ||
| │ └── topology # Production environment topology | ||
| ├── .github/ | ||
| │ └── workflows/ | ||
| │ ├── publish-staging.yml | ||
| │ └── publish-production.yml | ||
| ├── README.md | ||
| └── CLAUDE.md | ||
| ``` | ||
|
|
||
| ## Topology Files | ||
|
|
||
| Topology files are hex-encoded MPC topology configurations used by the Sprinter signing service. | ||
|
|
||
| ## Deployment | ||
|
|
||
| On merge to `main`, configurations are automatically published to DigitalOcean Spaces: | ||
| - `staging/` -> `sprinter-signing-config/staging/` | ||
| - `production/` -> `sprinter-signing-config/production/` | ||
|
|
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.