Skip to content

Commit

Permalink
point app to the v2 relay server.
Browse files Browse the repository at this point in the history
  • Loading branch information
jessgusclark committed Sep 7, 2023
1 parent 443b0f8 commit 103d939
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"QR_READER_BITCOIN_DEFAULT_NETWORK_MAINNET": "BITCOIN",
"QR_READER_BITCOIN_DEFAULT_NETWORK_TESTNET": "BITCOIN_TESTNET",
"RIF_RELAY_SERVER_MAINNET":"https://relay.rif-wallet-services.mainnet.rifcomputing.net",
"RIF_RELAY_SERVER_TESTNET":"https://relay.rif-wallet-services.testnet.rifcomputing.net",
"RIF_RELAY_SERVER_TESTNET":"https://v2.relay.rif-wallet-services.testnet.rifcomputing.net",
"SMART_WALLET_FACTORY_ADDRESS_MAINNET":"0x9eebec6c5157bee13b451b1dfe1ee2cb40846323",
"SMART_WALLET_FACTORY_ADDRESS_TESTNET":"0xBaDb31cAf5B95edd785446B76219b60fB1f07233",
"RELAY_VERIFIER_ADDRESS_MAINNET":"0x5C9c7d96E6C59E55dA4dCf7F791AE58dAF8DBc86",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@react-navigation/stack": "^6.0.9",
"@reduxjs/toolkit": "^1.9.0",
"@rsksmart/rif-id-mnemonic": "^0.1.1",
"@rsksmart/rif-relay-light-sdk": "^1.0.3",
"@rsksmart/rif-relay-light-sdk": "^1.0.5",
"@rsksmart/rif-wallet-abi-enhancer": "^1.0.5",
"@rsksmart/rif-wallet-adapters": "^1.0.0",
"@rsksmart/rif-wallet-bitcoin": "^1.2.0",
Expand Down
2 changes: 2 additions & 0 deletions src/core/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ export const createRIFWalletFactory =
SETTINGS.RIF_RELAY_SERVER,
chainTypesById[chainId],
),
relayVersion: 2,
}

return RIFWallet.create(
wallet.connect(jsonRpcProvider),
onRequest,
Expand Down
11 changes: 10 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2023,7 +2023,7 @@
lodash "^4.17.15"
randombytes "^2.1.0"

"@rsksmart/rif-relay-light-sdk@*", "@rsksmart/rif-relay-light-sdk@^1.0.3":
"@rsksmart/rif-relay-light-sdk@*":
version "1.0.3"
resolved "https://npm.pkg.github.com/download/@rsksmart/rif-relay-light-sdk/1.0.3/2dfc039b136c83259f5337886df2187e424b7e09#2dfc039b136c83259f5337886df2187e424b7e09"
integrity sha512-qUxgnN0h1hS6k2qqtSjJMU6oZo5AiLDFDe4mw/E+nNKeWqs7bWCCHou72XBqRKrFDTG/ZuGeVZeu1s5sM7ibhg==
Expand All @@ -2032,6 +2032,15 @@
axios "^1.2.3"
ethers "^5.7.2"

"@rsksmart/rif-relay-light-sdk@^1.0.5":
version "1.0.5"
resolved "https://npm.pkg.github.com/download/@rsksmart/rif-relay-light-sdk/1.0.5/e1c52dc436be29f518fff289b122803ccd72ea92#e1c52dc436be29f518fff289b122803ccd72ea92"
integrity sha512-DnDr2omusqy91yajEWMUof7H2gySK8rWyIu3OsHpqv/NcrulFpmQ+eAemweq7jTj4fsFW0cEewZl3TxdQ7oXEw==
dependencies:
"@ethersproject/abstract-provider" "^5.7.0"
axios "^1.2.3"
ethers "^5.7.2"

"@rsksmart/rif-wallet-abi-enhancer@*":
version "1.0.0"
resolved "https://npm.pkg.github.com/download/@rsksmart/rif-wallet-abi-enhancer/1.0.0/6f6838ac92fb4be65a225dca5f8c9ccfaa137a84#6f6838ac92fb4be65a225dca5f8c9ccfaa137a84"
Expand Down

0 comments on commit 103d939

Please sign in to comment.