rise-wallet 0.1.0 → 0.1.2

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.
package/dist/index.d.ts CHANGED
@@ -1,8 +1,50 @@
1
- declare const riseTestnetConfig: {
2
- chains: unknown
3
- transports: {}
4
- };
1
+ import { Config } from "porto/Porto";
2
+ import * as viem0 from "viem";
5
3
  import { Chain } from "porto/Chains";
4
+
5
+ //#region src/chain.d.ts
6
6
  declare function define<const chain extends Chain>(chain: chain): chain;
7
- declare const riseTestnet: unknown;
8
- export { riseTestnetConfig, riseTestnet, define };
7
+ declare const riseTestnet: {
8
+ readonly contracts: {
9
+ readonly portoAccount: {
10
+ readonly address: "0x912a428b1a7e7cb7bb2709a2799a01c020c5acd9";
11
+ };
12
+ readonly multicall3: {
13
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
14
+ };
15
+ };
16
+ readonly rpcUrls: {
17
+ readonly default: {
18
+ readonly http: readonly ["https://rise-testnet-porto.fly.dev", "https://testnet.riselabs.xyz"];
19
+ readonly webSocket: readonly ["wss://testnet.riselabs.xyz/ws"];
20
+ };
21
+ };
22
+ readonly blockExplorers: {
23
+ readonly default: {
24
+ readonly name: "Blockscout";
25
+ readonly url: "https://explorer.testnet.riselabs.xyz/";
26
+ readonly apiUrl: "https://explorer.testnet.riselabs.xyz/api";
27
+ };
28
+ };
29
+ readonly blockTime?: number | undefined | undefined;
30
+ readonly ensTlds?: readonly string[] | undefined;
31
+ readonly id: 11155931;
32
+ readonly name: "RISE Testnet";
33
+ readonly nativeCurrency: {
34
+ readonly name: "RISE Testnet Ether";
35
+ readonly symbol: "ETH";
36
+ readonly decimals: 18;
37
+ };
38
+ readonly experimental_preconfirmationTime?: number | undefined | undefined;
39
+ readonly sourceId?: number | undefined | undefined;
40
+ readonly testnet: true;
41
+ readonly custom?: Record<string, unknown> | undefined;
42
+ readonly fees?: viem0.ChainFees<undefined> | undefined;
43
+ readonly formatters?: undefined;
44
+ readonly serializers?: viem0.ChainSerializers<undefined, viem0.TransactionSerializable> | undefined;
45
+ };
46
+ //#endregion
47
+ //#region src/config.d.ts
48
+ declare const riseTestnetConfig: Config<[typeof riseTestnet]>;
49
+ //#endregion
50
+ export { define, riseTestnet, riseTestnetConfig };
package/dist/index.js CHANGED
@@ -1,44 +1,32 @@
1
- // src/config.ts
1
+ import { riseTestnet as riseTestnet$1 } from "viem/chains";
2
+ import { Mode } from "porto";
2
3
  import { defaultConfig } from "porto/Porto";
4
+ import { http } from "viem";
3
5
 
4
- // src/chain.ts
5
- import { riseTestnet as riseTestnetChain } from "viem/chains";
6
+ //#region src/chain.ts
6
7
  function define(chain) {
7
- return chain;
8
+ return chain;
8
9
  }
9
- var riseTestnet = /* @__PURE__ */ define({
10
- ...riseTestnetChain,
11
- contracts: {
12
- ...riseTestnetChain.contracts,
13
- portoAccount: {
14
- address: "0x912a428b1a7e7cb7bb2709a2799a01c020c5acd9"
15
- }
16
- },
17
- rpcUrls: {
18
- default: {
19
- http: [
20
- "https://rise-testnet-porto.fly.dev",
21
- ...riseTestnetChain.rpcUrls.default.http
22
- ]
23
- }
24
- }
10
+ const riseTestnet = /* @__PURE__ */ define({
11
+ ...riseTestnet$1,
12
+ contracts: {
13
+ ...riseTestnet$1.contracts,
14
+ portoAccount: { address: "0x912a428b1a7e7cb7bb2709a2799a01c020c5acd9" }
15
+ },
16
+ rpcUrls: { default: {
17
+ ...riseTestnet$1.rpcUrls.default,
18
+ http: ["https://rise-testnet-porto.fly.dev", ...riseTestnet$1.rpcUrls.default.http]
19
+ } }
25
20
  });
26
21
 
27
- // src/config.ts
28
- import { Mode } from "porto";
29
- import { http } from "viem";
30
- var riseTestnetConfig = {
31
- ...defaultConfig,
32
- chains: [riseTestnet],
33
- mode: Mode.dialog({
34
- host: "https://rise-wallet-testnet.vercel.app/dialog"
35
- }),
36
- transports: {
37
- [riseTestnet.id]: http()
38
- }
39
- };
40
- export {
41
- riseTestnetConfig,
42
- riseTestnet,
43
- define
22
+ //#endregion
23
+ //#region src/config.ts
24
+ const riseTestnetConfig = {
25
+ ...defaultConfig,
26
+ chains: [riseTestnet],
27
+ mode: Mode.dialog({ host: "https://rise-wallet-testnet.vercel.app/dialog" }),
28
+ transports: { [riseTestnet.id]: http() }
44
29
  };
30
+
31
+ //#endregion
32
+ export { define, riseTestnet, riseTestnetConfig };
package/package.json CHANGED
@@ -1,33 +1,45 @@
1
1
  {
2
2
  "name": "rise-wallet",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
+ "description": "Typescript SDK to integrate RISE wallet into your dApp.",
4
5
  "type": "module",
6
+ "license": "MIT",
7
+ "homepage": "https://github.com/risechain/rise-wallet-sdk#readme",
8
+ "bugs": {
9
+ "url": "https://github.com/risechain/rise-wallet-sdk/issues"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/risechain/rise-wallet-sdk.git"
14
+ },
15
+ "author": "hazelnutcloud <hzlntcld@pm.me>",
5
16
  "files": [
6
17
  "dist"
7
18
  ],
19
+ "main": "./dist/index.js",
8
20
  "module": "./dist/index.js",
9
21
  "types": "./dist/index.d.ts",
10
22
  "exports": {
11
- ".": {
12
- "import": {
13
- "types": "./dist/index.d.ts",
14
- "default": "./dist/index.js"
15
- }
16
- }
23
+ ".": "./dist/index.js",
24
+ "./package.json": "./package.json"
25
+ },
26
+ "publishConfig": {
27
+ "access": "public"
28
+ },
29
+ "scripts": {
30
+ "build": "tsdown",
31
+ "dev": "tsdown --watch",
32
+ "typecheck": "tsc --noEmit",
33
+ "release": "bumpp && npm publish"
17
34
  },
18
35
  "devDependencies": {
19
- "@types/bun": "latest",
20
- "bunup": "^0.9.2",
21
- "bumpp": "^10.2.2"
36
+ "@types/node": "^24.3.0",
37
+ "bumpp": "^10.2.3",
38
+ "tsdown": "^0.14.1",
39
+ "typescript": "^5.9.2"
22
40
  },
23
41
  "peerDependencies": {
24
- "typescript": "^5",
25
- "porto": "^0.0.58",
26
- "viem": "^2.33.2"
27
- },
28
- "scripts": {
29
- "build": "bunup",
30
- "dev": "bunup --watch",
31
- "release": "bumpp --commit --push --tag"
42
+ "porto": "^0.0.77",
43
+ "viem": "^2.33.3"
32
44
  }
33
- }
45
+ }