How celer-network/sgn-v2-contracts works
SGN V2 Contracts is an on-chain network and cross-chain asset/messaging contract suite; the supplied tree is primarily deployment and administration scripts, not the Solidity implementation itself. The documented operator workflow is to deploy SGN/Staking and bridge components, then configure deployed contracts; the sampled scripts show concrete deployment arguments, proxy initialization, and Sentinel limit configuration. Major documented branches include message bus/apps, liquidity and pegged-token bridges, governance, and Sentinel. Source excerpts are mostly deployment/configuration evidence, so runtime contract-to-contract behavior is not inferred.
Main entry points: set_basics.ts Contract configuration · message Message bus · 000_sentinel.ts Sentinel controls · liquidity-bridge Liquidity bridge
Components 17
SGN Core
- Staking and SGN
deploy/core/000_sgn_staking.ts - Protocol messages
contracts/libraries/proto
Asset Bridges
- Liquidity bridge
deploy/liquidity-bridge - Original token vaults
deploy/pegged-bridge - Pegged token bridges
deploy/pegged-bridge - Bridge token variants
deploy/pegged-bridge/tokens - Circle bridge proxy
deploy/circle-usdc/000_circle_bridge_proxy_v2.ts - Farming rewards
deploy/liquidity-bridge/001_farming_rewards.ts
Messaging
- Message bus
deploy/message - Message applications
deploy/message/apps
Governance Operations
- Governed owner
deploy/governed-owner/000_governed_owner.ts - Sentinel controls
deploy/sentinel/000_sentinel.ts - Limit configuration
scripts/sentinel/sentinel_set_limits.ts - Contract configuration
scripts/set_basics.ts
Other components
- Protocol operator
- Deployment network
- EVM chain
Connections 24
- Protocol operator → Deployment network: initiates deployment
README.md - Deployment network → Staking and SGN: deploys
deploy/core/000_sgn_staking.ts - Deployment network → Liquidity bridge: deploys
- Deployment network → Original token vaults: deploys
README.md - Deployment network → Pegged token bridges: deploys
README.md - Deployment network → Message bus: deploys
deploy/message/000_message_bus_init.ts - Deployment network → Sentinel controls: deploys
deploy/sentinel/000_sentinel.ts - Deployment network → Governed owner: deploys
deploy/governed-owner/000_governed_owner.ts - Deployment network → Circle bridge proxy: deploys
deploy/circle-usdc/000_circle_bridge_proxy_v2.ts - Deployment network → Farming rewards: deploys
deploy/liquidity-bridge/001_farming_rewards.ts - Deployment network → Bridge token variants: deploys variants
- Protocol operator → Contract configuration: runs configuration
scripts/set_basics.ts - Contract configuration → Liquidity bridge: configures
scripts/set_basics.ts - Contract configuration → Original token vaults: configures
scripts/set_basics.ts - Contract configuration → Pegged token bridges: configures
scripts/set_basics.ts - Contract configuration → Message bus: configures
scripts/set_basics.ts - Protocol operator → Limit configuration: runs limit setup
scripts/sentinel/sentinel_set_limits.ts - Limit configuration → Sentinel controls: sets limits
scripts/sentinel/sentinel_set_limits.ts - Message bus → Liquidity bridge: references bridge
deploy/message/000_message_bus_init.ts - Message bus → Pegged token bridges: references bridges
deploy/message/000_message_bus_init.ts - Message applications → Message bus: uses message bus
- Staking and SGN → EVM chain: deploys contracts
deploy/core/000_sgn_staking.ts - Sentinel controls → EVM chain: deploys proxy
deploy/sentinel/000_sentinel.ts - Protocol messages → EVM chain: defines payloads