Skip to content

solace-fi/solace-swap-bribes

Repository files navigation

Offchain bribing system component for Solace Swap. Written using Serverless framework to smoothen the process of writing a Typescript codebase for AWS SAM framework (yes, Serverless is a framework on top of another framework).

Currently the codebase will work for Ethereum mainnet transaction volumes, however will need refactoring to handle 5x+ volumes.

Deploy

npm run deploy

Redeploy

npm run redeploy

Viewing deployed resources (useful for getting API URL)

serverless info

Take snapshot of current blockchain state (generate Merkle trees for bribes)

npm run update

Obtain claims data for 'address'

curl <API_URL>/claims/?address=0x71C7656EC7ab88b098defB751B7401B5f6d8976F

Obtain updateRewardsMetadata parameters

curl <API_URL>/rewardsmetadata

Obtain transferBribes parameters

curl <API_URL>/transferbribes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published