@reown/appkit-common-react-native 0.0.0-canary-20240912195440

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "ConstantsUtil", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _ConstantsUtil.ConstantsUtil;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "NetworkUtil", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _NetworkUtil.NetworkUtil;
16
+ }
17
+ });
18
+ var _ConstantsUtil = require("./utils/ConstantsUtil");
19
+ var _NetworkUtil = require("./utils/NetworkUtil");
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_ConstantsUtil","require","_NetworkUtil"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ConstantsUtil = void 0;
7
+ const ConstantsUtil = exports.ConstantsUtil = {
8
+ BLOCKCHAIN_API_RPC_URL: 'https://rpc.walletconnect.org',
9
+ PULSE_API_URL: 'https://pulse.walletconnect.org',
10
+ API_URL: 'https://api.web3modal.org',
11
+ COINBASE_CONNECTOR_ID: 'coinbaseWallet',
12
+ COINBASE_EXPLORER_ID: 'fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa'
13
+ };
14
+ //# sourceMappingURL=ConstantsUtil.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ConstantsUtil","exports","BLOCKCHAIN_API_RPC_URL","PULSE_API_URL","API_URL","COINBASE_CONNECTOR_ID","COINBASE_EXPLORER_ID"],"sourceRoot":"../../../src","sources":["utils/ConstantsUtil.ts"],"mappings":";;;;;;AAAO,MAAMA,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG;EAC3BE,sBAAsB,EAAE,+BAA+B;EACvDC,aAAa,EAAE,iCAAiC;EAChDC,OAAO,EAAE,2BAA2B;EACpCC,qBAAqB,EAAE,gBAAgB;EACvCC,oBAAoB,EAAE;AACxB,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.NetworkUtil = void 0;
7
+ const NetworkUtil = exports.NetworkUtil = {
8
+ caipNetworkIdToNumber(caipnetworkId) {
9
+ return caipnetworkId ? Number(caipnetworkId.split(':')[1]) : undefined;
10
+ }
11
+ };
12
+ //# sourceMappingURL=NetworkUtil.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NetworkUtil","exports","caipNetworkIdToNumber","caipnetworkId","Number","split","undefined"],"sourceRoot":"../../../src","sources":["utils/NetworkUtil.ts"],"mappings":";;;;;;AAAO,MAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG;EACzBE,qBAAqBA,CAACC,aAAqC,EAAE;IAC3D,OAAOA,aAAa,GAAGC,MAAM,CAACD,aAAa,CAACE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAGC,SAAS;EACxE;AACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { ConstantsUtil } from './utils/ConstantsUtil';
2
+ export { NetworkUtil } from './utils/NetworkUtil';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ConstantsUtil","NetworkUtil"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":"AAAA,SAASA,aAAa,QAAQ,uBAAuB;AACrD,SAASC,WAAW,QAAQ,qBAAqB"}
@@ -0,0 +1,8 @@
1
+ export const ConstantsUtil = {
2
+ BLOCKCHAIN_API_RPC_URL: 'https://rpc.walletconnect.org',
3
+ PULSE_API_URL: 'https://pulse.walletconnect.org',
4
+ API_URL: 'https://api.web3modal.org',
5
+ COINBASE_CONNECTOR_ID: 'coinbaseWallet',
6
+ COINBASE_EXPLORER_ID: 'fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa'
7
+ };
8
+ //# sourceMappingURL=ConstantsUtil.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ConstantsUtil","BLOCKCHAIN_API_RPC_URL","PULSE_API_URL","API_URL","COINBASE_CONNECTOR_ID","COINBASE_EXPLORER_ID"],"sourceRoot":"../../../src","sources":["utils/ConstantsUtil.ts"],"mappings":"AAAA,OAAO,MAAMA,aAAa,GAAG;EAC3BC,sBAAsB,EAAE,+BAA+B;EACvDC,aAAa,EAAE,iCAAiC;EAChDC,OAAO,EAAE,2BAA2B;EACpCC,qBAAqB,EAAE,gBAAgB;EACvCC,oBAAoB,EAAE;AACxB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export const NetworkUtil = {
2
+ caipNetworkIdToNumber(caipnetworkId) {
3
+ return caipnetworkId ? Number(caipnetworkId.split(':')[1]) : undefined;
4
+ }
5
+ };
6
+ //# sourceMappingURL=NetworkUtil.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NetworkUtil","caipNetworkIdToNumber","caipnetworkId","Number","split","undefined"],"sourceRoot":"../../../src","sources":["utils/NetworkUtil.ts"],"mappings":"AAAA,OAAO,MAAMA,WAAW,GAAG;EACzBC,qBAAqBA,CAACC,aAAqC,EAAE;IAC3D,OAAOA,aAAa,GAAGC,MAAM,CAACD,aAAa,CAACE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAGC,SAAS;EACxE;AACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { ConstantsUtil } from './utils/ConstantsUtil';
2
+ export { NetworkUtil } from './utils/NetworkUtil';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare const ConstantsUtil: {
2
+ BLOCKCHAIN_API_RPC_URL: string;
3
+ PULSE_API_URL: string;
4
+ API_URL: string;
5
+ COINBASE_CONNECTOR_ID: string;
6
+ COINBASE_EXPLORER_ID: string;
7
+ };
8
+ //# sourceMappingURL=ConstantsUtil.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConstantsUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/ConstantsUtil.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;CAMzB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const NetworkUtil: {
2
+ caipNetworkIdToNumber(caipnetworkId?: `${string}:${string}`): number | undefined;
3
+ };
4
+ //# sourceMappingURL=NetworkUtil.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NetworkUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/NetworkUtil.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;0CACgB,GAAG,MAAM,IAAI,MAAM,EAAE;CAG5D,CAAC"}
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "@reown/appkit-common-react-native",
3
+ "version": "0.0.0-canary-20240912195440",
4
+ "main": "lib/commonjs/index.js",
5
+ "types": "lib/typescript/index.d.ts",
6
+ "module": "lib/module/index.js",
7
+ "source": "src/index.ts",
8
+ "scripts": {
9
+ "build": "bob build",
10
+ "clean": "rm -rf lib",
11
+ "test": "jest --passWithNoTests",
12
+ "lint": "eslint . --ext .js,.jsx,.ts,.tsx"
13
+ },
14
+ "files": [
15
+ "src",
16
+ "lib"
17
+ ],
18
+ "keywords": [
19
+ "web3",
20
+ "crypto",
21
+ "ethereum",
22
+ "appkit",
23
+ "walletconnect",
24
+ "react-native"
25
+ ],
26
+ "repository": "https://github.com/WalletConnect/web3modal-react-native",
27
+ "author": "WalletConnect <support@walletconnect.com> (https://web3modal.com)",
28
+ "homepage": "https://github.com/WalletConnect/web3modal-react-native",
29
+ "license": "Apache-2.0",
30
+ "bugs": {
31
+ "url": "https://github.com/WalletConnect/web3modal-react-native/issues"
32
+ },
33
+ "publishConfig": {
34
+ "registry": "https://registry.npmjs.org/",
35
+ "access": "restricted"
36
+ },
37
+ "react-native": "src/index.ts",
38
+ "react-native-builder-bob": {
39
+ "source": "src",
40
+ "output": "lib",
41
+ "targets": [
42
+ "commonjs",
43
+ "module",
44
+ [
45
+ "typescript",
46
+ {
47
+ "tsc": "../../node_modules/.bin/tsc"
48
+ }
49
+ ]
50
+ ]
51
+ },
52
+ "eslintIgnore": [
53
+ "node_modules/",
54
+ "lib/"
55
+ ]
56
+ }
package/readme.md ADDED
@@ -0,0 +1,9 @@
1
+ #### 📚 [Documentation](https://docs.walletconnect.com/appkit/react-native/core/installation)
2
+
3
+ #### 🔎 [Examples](https://github.com/WalletConnect/react-native-examples)
4
+
5
+ #### 🔗 [Website](https://walletconnect.com/appkit)
6
+
7
+ # AppKit
8
+
9
+ Your on-ramp to web3 multichain. AppKit is a versatile library that makes it super easy to connect users with your Dapp and start interacting with the blockchain.
package/src/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { ConstantsUtil } from './utils/ConstantsUtil';
2
+ export { NetworkUtil } from './utils/NetworkUtil';
@@ -0,0 +1,7 @@
1
+ export const ConstantsUtil = {
2
+ BLOCKCHAIN_API_RPC_URL: 'https://rpc.walletconnect.org',
3
+ PULSE_API_URL: 'https://pulse.walletconnect.org',
4
+ API_URL: 'https://api.web3modal.org',
5
+ COINBASE_CONNECTOR_ID: 'coinbaseWallet',
6
+ COINBASE_EXPLORER_ID: 'fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa'
7
+ };
@@ -0,0 +1,5 @@
1
+ export const NetworkUtil = {
2
+ caipNetworkIdToNumber(caipnetworkId?: `${string}:${string}`) {
3
+ return caipnetworkId ? Number(caipnetworkId.split(':')[1]) : undefined;
4
+ }
5
+ };