Skip to content

Commit 92200e1

Browse files
committed
Merge branch 'main' into use-getchainconfig
2 parents f30ace6 + 3f3a1ff commit 92200e1

File tree

9 files changed

+349
-315
lines changed

9 files changed

+349
-315
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"eslint": "^8.34.0",
1212
"eslint-config-prettier": "^8.6.0",
1313
"eslint-plugin-eslint-comments": "^3.2.0",
14-
"eslint-plugin-import": "^2.27.5",
15-
"eslint-plugin-mocha": "^10.1.0",
14+
"eslint-plugin-import": "^2.31.0",
15+
"eslint-plugin-mocha": "^10.5.0",
1616
"eslint-plugin-n": "^15.6.1",
1717
"eslint-plugin-prettier": "^4.2.1",
1818
"eslint-plugin-promise": "^6.1.1",

web-modal-sdk/blockchain-connection-examples/xrpl-modal-example/package-lock.json

Lines changed: 330 additions & 284 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web-modal-sdk/blockchain-connection-examples/xrpl-modal-example/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"dependencies": {
66
"@testing-library/jest-dom": "^5.16.5",
77
"@testing-library/react": "^13.4.0",
8-
"@testing-library/user-event": "^14.4.3",
9-
"@types/jest": "^29.2.4",
8+
"@testing-library/user-event": "^14.6.1",
9+
"@types/jest": "^29.5.14",
1010
"@types/node": "^18.11.18",
1111
"@types/react": "^18.0.26",
1212
"@types/react-dom": "^18.0.10",
13-
"@vitejs/plugin-react": "^4.3.1",
13+
"@vitejs/plugin-react": "^4.3.4",
1414
"@web3auth/base": "^9.7.0",
1515
"@web3auth/modal": "^9.7.0",
1616
"@web3auth/auth-adapter": "^9.7.0",
@@ -42,9 +42,9 @@
4242
]
4343
},
4444
"devDependencies": {
45-
"assert": "^2.0.0",
45+
"assert": "^2.1.0",
4646
"buffer": "^6.0.3",
47-
"crypto-browserify": "^3.12.0",
47+
"crypto-browserify": "^3.12.1",
4848
"empty-module": "^0.0.2",
4949
"eslint-config-react-app": "^7.0.1",
5050
"process": "^0.11.10",

web-modal-sdk/blockchain-connection-examples/xrpl-modal-example/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function App() {
141141
}
142142
const rpc = new RPC(provider);
143143
const userAccount = await rpc.getAccounts();
144-
uiConsole("Accpuint info: ", userAccount);
144+
uiConsole("Account info: ", userAccount);
145145
};
146146

147147
const getBalance = async () => {

web-modal-sdk/blockchain-connection-examples/xrpl-modal-example/src/xrplRPC.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@ export default class XrplRPC {
6767
try {
6868
const msg = "Hello world";
6969
const hexMsg = convertStringToHex(msg);
70-
const txSign = await this.provider.request< { signature: string }, never>({
70+
console.log("hexMsg", hexMsg);
71+
const txSign = await this.provider.request<{ signature: string }, never>({
7172
method: "xrpl_signMessage",
7273
params: {
73-
signature: hexMsg,
74+
message: hexMsg,
7475
},
7576
});
7677
return txSign;

web-modal-sdk/blockchain-connection-examples/xrpl-modal-example/vite.config.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,8 @@ export default defineConfig({
77
resolve: {
88
alias: {
99
crypto: "empty-module",
10-
assert: "empty-module",
11-
http: "empty-module",
12-
https: "empty-module",
13-
os: "empty-module",
14-
url: "empty-module",
15-
zlib: "empty-module",
16-
stream: "empty-module",
17-
_stream_duplex: "empty-module",
18-
_stream_passthrough: "empty-module",
19-
_stream_readable: "empty-module",
20-
_stream_writable: "empty-module",
21-
_stream_transform: "empty-module",
10+
stream: "stream-browserify",
11+
assert: "assert",
2212
},
2313
},
2414
define: {

web-no-modal-sdk/blockchain-connection-examples/xrpl-no-modal-example/src/App.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ function App() {
1919
const chainConfig = {
2020
chainNamespace: CHAIN_NAMESPACES.XRPL,
2121
chainId: "0x2",
22-
rpcTarget: "https://testnet-ripple-node.tor.us",
23-
wsTarget: "wss://s.altnet.rippletest.net",
22+
rpcTarget: "https://testnet.xrpl-labs.com",
23+
wsTarget: "wss://testnet.xrpl-labs.com/",
2424
ticker: "XRP",
2525
tickerName: "XRPL",
2626
displayName: "xrpl testnet",
@@ -36,6 +36,7 @@ function App() {
3636
clientId,
3737
privateKeyProvider,
3838
web3AuthNetwork: WEB3AUTH_NETWORK.SAPPHIRE_MAINNET,
39+
enableLogging: true,
3940
});
4041

4142
const authAdapter = new AuthAdapter({

web-no-modal-sdk/blockchain-connection-examples/xrpl-no-modal-example/src/xrplRPC.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export default class XrplRPC {
1313
const accounts = await this.provider.request<never, string[]>({
1414
method: "xrpl_getAccounts",
1515
});
16+
console.log("accounts", accounts);
1617
if (accounts) {
1718
const accInfo = await this.provider.request({
1819
method: "account_info",

web-no-modal-sdk/blockchain-connection-examples/xrpl-no-modal-example/vite.config.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,13 @@ export default defineConfig({
77
resolve: {
88
alias: {
99
crypto: "empty-module",
10-
assert: "empty-module",
10+
assert: "assert",
1111
http: "empty-module",
1212
https: "empty-module",
1313
os: "empty-module",
1414
url: "empty-module",
1515
zlib: "empty-module",
16-
stream: "empty-module",
17-
_stream_duplex: "empty-module",
18-
_stream_passthrough: "empty-module",
19-
_stream_readable: "empty-module",
20-
_stream_writable: "empty-module",
21-
_stream_transform: "empty-module",
16+
stream: "stream-browserify",
2217
},
2318
},
2419
define: {

0 commit comments

Comments
 (0)