Skip to content

Commit

Permalink
PP-885/explore-solution-b2 (#140)
Browse files Browse the repository at this point in the history
* refactor: first attempt

* refactor(relayServerUtils): native token handling

* refactor: allowed destinations

* build: contracts version

* build: client update

* fix: use default values for symbol and decimals on erc20

* fix: call optional erc20 methods within try/catch

* refactor: gas handling

* refactor: allowed destinations

* feat: destionationContractHandler

* test: unit test

* chore(verifier calls): split the function into accepted contracts and token

* ci(PP-885): add boltz configuration (#142)

* ci: add boltz configuration

* ci: update deployment script to be used

* ci: update server version

* docs: fix swagger api

* chore: update contracts and client dependencies and package version

---------

Co-authored-by: Antonio <[email protected]>
  • Loading branch information
franciscotobar and antomor authored Feb 28, 2024
1 parent 560fac5 commit 2963dc2
Show file tree
Hide file tree
Showing 13 changed files with 4,511 additions and 3,598 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.boltz.testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
--document-name "AWS-RunRemoteScript" \
--instance-ids ""${{ secrets.BOLTZ_TESTNET_EC2_ID }}"" \
--region=${{ secrets.BOLTZ_TESTNET_AWS_REGION }} \
--parameters '{"sourceType":["GitHub"],"sourceInfo":["{\"owner\":\"rootstock\", \"repository\":\"ask-devops\", \"path\": \"rif-relay/\", \"tokenInfo\":\"{{ssm-secure:github-token}}\"}"],"commandLine":["deploy-testnet.sh"]}'
--parameters '{"sourceType":["GitHub"],"sourceInfo":["{\"owner\":\"rootstock\", \"repository\":\"ask-devops\", \"path\": \"rif-relay/\", \"tokenInfo\":\"{{ssm-secure:github-token}}\"}"],"commandLine":["deploy-boltz-testnet.sh"]}'
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ File [./config/default.json5](config/default.json5) contains all configuration p
*/
fixedUsdFee: 0 ,

sponsoredDestinations: [],
requestMinValidSeconds: 43200,
sponsoredDestinations: [],
requestMinValidSeconds: 43200,

},
/*
Expand Down
24 changes: 24 additions & 0 deletions config/boltz-testnet.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
app: {
url: "https://boltz.testnet.relay.rifcomputing.net",
port: 8090,
devMode: true,
logLevel: 0,
workdir: "/srv/app/environment",
disableSponsoredTx: true,
gasFeePercentage: "0",
},
blockchain: {
rskNodeUrl: "http://172.17.0.1:4444",
},
contracts: {
relayHubAddress: "0xD2EFC2B1e5296235779A79B69e7511764E2FC8cd",
feesReceiver: "0xf3846680e634D21339086CB227f353b571D95E73",
trustedVerifiers: [
"0x0D66FDeF5a900CD76476995E3e8abf322F1bFd4a",
"0xa6Bf71122b2C2Ad66c9444031b533C2e4A39F8FE",
"0xca8576621DC38F92A6Ece289398Fdb2ed494DF0D",
"0x4dB4d5DFad0E10995D6B4caC8CAAFE9343DB81CB"
],
}
}
4 changes: 2 additions & 2 deletions config/default.json5
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
*/
fixedUsdFee: 0 ,

sponsoredDestinations: [],
requestMinValidSeconds: 43200,
sponsoredDestinations: [],
requestMinValidSeconds: 43200,

},
/*
Expand Down
Loading

0 comments on commit 2963dc2

Please sign in to comment.