Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
24 changes: 0 additions & 24 deletions .github/workflows/publish-mainnet.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/publish-production.yml
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'
23 changes: 0 additions & 23 deletions .github/workflows/publish-sprinter.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/publish-staging.yml
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'
24 changes: 0 additions & 24 deletions .github/workflows/publish-test.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .github/workflows/pull_request_template.md

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/update-addresses.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/validate-json.yml

This file was deleted.

23 changes: 7 additions & 16 deletions .gitignore
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
83 changes: 29 additions & 54 deletions README.md
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 removed docsResources/config.png
Binary file not shown.
3 changes: 0 additions & 3 deletions go.mod

This file was deleted.

Loading