rise-wallet 0.1.3 → 0.1.4-beta.1
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/chain.cjs +17 -0
- package/dist/chain.d.cts +41 -0
- package/dist/chain.d.ts +41 -0
- package/dist/chain.js +13 -0
- package/dist/config.cjs +19 -0
- package/dist/config.d.cts +3 -0
- package/dist/config.d.ts +3 -0
- package/dist/config.js +16 -0
- package/dist/index.cjs +18 -0
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -50
- package/dist/index.js +2 -30
- package/package.json +23 -21
package/dist/chain.cjs
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.riseTestnet = void 0;
|
|
4
|
+
exports.define = define;
|
|
5
|
+
const chains_1 = require("viem/chains");
|
|
6
|
+
function define(chain) {
|
|
7
|
+
return chain;
|
|
8
|
+
}
|
|
9
|
+
exports.riseTestnet = define({
|
|
10
|
+
...chains_1.riseTestnet,
|
|
11
|
+
contracts: {
|
|
12
|
+
...chains_1.riseTestnet.contracts,
|
|
13
|
+
portoAccount: {
|
|
14
|
+
address: "0xc58C2A1Ce5cE4D7Fc7f997B983d9a859dbD2e507",
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
});
|
package/dist/chain.d.cts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Chain } from "porto/Chains";
|
|
2
|
+
export declare function define<const chain extends Chain>(chain: chain): chain;
|
|
3
|
+
export declare const riseTestnet: {
|
|
4
|
+
readonly contracts: {
|
|
5
|
+
readonly portoAccount: {
|
|
6
|
+
readonly address: "0xc58C2A1Ce5cE4D7Fc7f997B983d9a859dbD2e507";
|
|
7
|
+
};
|
|
8
|
+
readonly multicall3: {
|
|
9
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
readonly blockExplorers: {
|
|
13
|
+
readonly default: {
|
|
14
|
+
readonly name: "Blockscout";
|
|
15
|
+
readonly url: "https://explorer.testnet.riselabs.xyz/";
|
|
16
|
+
readonly apiUrl: "https://explorer.testnet.riselabs.xyz/api";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
readonly blockTime?: number | undefined | undefined;
|
|
20
|
+
readonly ensTlds?: readonly string[] | undefined;
|
|
21
|
+
readonly id: 11155931;
|
|
22
|
+
readonly name: "RISE Testnet";
|
|
23
|
+
readonly nativeCurrency: {
|
|
24
|
+
readonly name: "RISE Testnet Ether";
|
|
25
|
+
readonly symbol: "ETH";
|
|
26
|
+
readonly decimals: 18;
|
|
27
|
+
};
|
|
28
|
+
readonly experimental_preconfirmationTime?: number | undefined | undefined;
|
|
29
|
+
readonly rpcUrls: {
|
|
30
|
+
readonly default: {
|
|
31
|
+
readonly http: readonly ["https://testnet.riselabs.xyz"];
|
|
32
|
+
readonly webSocket: readonly ["wss://testnet.riselabs.xyz/ws"];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
readonly sourceId?: number | undefined | undefined;
|
|
36
|
+
readonly testnet: true;
|
|
37
|
+
readonly custom?: Record<string, unknown> | undefined;
|
|
38
|
+
readonly fees?: import("viem").ChainFees<undefined> | undefined;
|
|
39
|
+
readonly formatters?: undefined;
|
|
40
|
+
readonly serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
41
|
+
};
|
package/dist/chain.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Chain } from "porto/Chains";
|
|
2
|
+
export declare function define<const chain extends Chain>(chain: chain): chain;
|
|
3
|
+
export declare const riseTestnet: {
|
|
4
|
+
readonly contracts: {
|
|
5
|
+
readonly portoAccount: {
|
|
6
|
+
readonly address: "0xc58C2A1Ce5cE4D7Fc7f997B983d9a859dbD2e507";
|
|
7
|
+
};
|
|
8
|
+
readonly multicall3: {
|
|
9
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
readonly blockExplorers: {
|
|
13
|
+
readonly default: {
|
|
14
|
+
readonly name: "Blockscout";
|
|
15
|
+
readonly url: "https://explorer.testnet.riselabs.xyz/";
|
|
16
|
+
readonly apiUrl: "https://explorer.testnet.riselabs.xyz/api";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
readonly blockTime?: number | undefined | undefined;
|
|
20
|
+
readonly ensTlds?: readonly string[] | undefined;
|
|
21
|
+
readonly id: 11155931;
|
|
22
|
+
readonly name: "RISE Testnet";
|
|
23
|
+
readonly nativeCurrency: {
|
|
24
|
+
readonly name: "RISE Testnet Ether";
|
|
25
|
+
readonly symbol: "ETH";
|
|
26
|
+
readonly decimals: 18;
|
|
27
|
+
};
|
|
28
|
+
readonly experimental_preconfirmationTime?: number | undefined | undefined;
|
|
29
|
+
readonly rpcUrls: {
|
|
30
|
+
readonly default: {
|
|
31
|
+
readonly http: readonly ["https://testnet.riselabs.xyz"];
|
|
32
|
+
readonly webSocket: readonly ["wss://testnet.riselabs.xyz/ws"];
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
readonly sourceId?: number | undefined | undefined;
|
|
36
|
+
readonly testnet: true;
|
|
37
|
+
readonly custom?: Record<string, unknown> | undefined;
|
|
38
|
+
readonly fees?: import("viem").ChainFees<undefined> | undefined;
|
|
39
|
+
readonly formatters?: undefined;
|
|
40
|
+
readonly serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
41
|
+
};
|
package/dist/chain.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { riseTestnet as riseTestnetChain } from "viem/chains";
|
|
2
|
+
export function define(chain) {
|
|
3
|
+
return chain;
|
|
4
|
+
}
|
|
5
|
+
export const riseTestnet = /*#__PURE__*/ define({
|
|
6
|
+
...riseTestnetChain,
|
|
7
|
+
contracts: {
|
|
8
|
+
...riseTestnetChain.contracts,
|
|
9
|
+
portoAccount: {
|
|
10
|
+
address: "0xc58C2A1Ce5cE4D7Fc7f997B983d9a859dbD2e507",
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
});
|
package/dist/config.cjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.riseTestnetConfig = void 0;
|
|
4
|
+
const porto_1 = require("porto");
|
|
5
|
+
const Porto_1 = require("porto/Porto");
|
|
6
|
+
const viem_1 = require("viem");
|
|
7
|
+
const chain_1 = require("./chain.cjs");
|
|
8
|
+
exports.riseTestnetConfig = {
|
|
9
|
+
...Porto_1.defaultConfig,
|
|
10
|
+
chains: [chain_1.riseTestnet],
|
|
11
|
+
mode: porto_1.Mode.dialog({
|
|
12
|
+
host: "https://rise-wallet-testnet.vercel.app/dialog",
|
|
13
|
+
}),
|
|
14
|
+
relay: (0, viem_1.http)("https://rise-testnet-relay.fly.dev"),
|
|
15
|
+
feeToken: "ETH",
|
|
16
|
+
transports: {
|
|
17
|
+
[chain_1.riseTestnet.id]: (0, viem_1.http)(),
|
|
18
|
+
},
|
|
19
|
+
};
|
package/dist/config.d.ts
ADDED
package/dist/config.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Mode } from "porto";
|
|
2
|
+
import { defaultConfig } from "porto/Porto";
|
|
3
|
+
import { http } from "viem";
|
|
4
|
+
import { riseTestnet } from "./chain.js";
|
|
5
|
+
export const riseTestnetConfig = {
|
|
6
|
+
...defaultConfig,
|
|
7
|
+
chains: [riseTestnet],
|
|
8
|
+
mode: Mode.dialog({
|
|
9
|
+
host: "https://rise-wallet-testnet.vercel.app/dialog",
|
|
10
|
+
}),
|
|
11
|
+
relay: http("https://rise-testnet-relay.fly.dev"),
|
|
12
|
+
feeToken: "ETH",
|
|
13
|
+
transports: {
|
|
14
|
+
[riseTestnet.id]: http(),
|
|
15
|
+
},
|
|
16
|
+
};
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./chain.cjs"), exports);
|
|
18
|
+
__exportStar(require("./config.cjs"), exports);
|
package/dist/index.d.cts
ADDED
package/dist/index.d.ts
CHANGED
|
@@ -1,50 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { Chain } from "porto/Chains";
|
|
4
|
-
|
|
5
|
-
//#region src/chain.d.ts
|
|
6
|
-
declare function define<const chain extends Chain>(chain: chain): chain;
|
|
7
|
-
declare const riseTestnet: {
|
|
8
|
-
readonly contracts: {
|
|
9
|
-
readonly portoAccount: {
|
|
10
|
-
readonly address: "0xc58C2A1Ce5cE4D7Fc7f997B983d9a859dbD2e507";
|
|
11
|
-
};
|
|
12
|
-
readonly multicall3: {
|
|
13
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
readonly blockExplorers: {
|
|
17
|
-
readonly default: {
|
|
18
|
-
readonly name: "Blockscout";
|
|
19
|
-
readonly url: "https://explorer.testnet.riselabs.xyz/";
|
|
20
|
-
readonly apiUrl: "https://explorer.testnet.riselabs.xyz/api";
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
readonly blockTime?: number | undefined | undefined;
|
|
24
|
-
readonly ensTlds?: readonly string[] | undefined;
|
|
25
|
-
readonly id: 11155931;
|
|
26
|
-
readonly name: "RISE Testnet";
|
|
27
|
-
readonly nativeCurrency: {
|
|
28
|
-
readonly name: "RISE Testnet Ether";
|
|
29
|
-
readonly symbol: "ETH";
|
|
30
|
-
readonly decimals: 18;
|
|
31
|
-
};
|
|
32
|
-
readonly experimental_preconfirmationTime?: number | undefined | undefined;
|
|
33
|
-
readonly rpcUrls: {
|
|
34
|
-
readonly default: {
|
|
35
|
-
readonly http: readonly ["https://testnet.riselabs.xyz"];
|
|
36
|
-
readonly webSocket: readonly ["wss://testnet.riselabs.xyz/ws"];
|
|
37
|
-
};
|
|
38
|
-
};
|
|
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 };
|
|
1
|
+
export * from "./chain.js";
|
|
2
|
+
export * from "./config.js";
|
package/dist/index.js
CHANGED
|
@@ -1,30 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { defaultConfig } from "porto/Porto";
|
|
4
|
-
import { http } from "viem";
|
|
5
|
-
|
|
6
|
-
//#region src/chain.ts
|
|
7
|
-
function define(chain) {
|
|
8
|
-
return chain;
|
|
9
|
-
}
|
|
10
|
-
const riseTestnet = /* @__PURE__ */ define({
|
|
11
|
-
...riseTestnet$1,
|
|
12
|
-
contracts: {
|
|
13
|
-
...riseTestnet$1.contracts,
|
|
14
|
-
portoAccount: { address: "0xc58C2A1Ce5cE4D7Fc7f997B983d9a859dbD2e507" }
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
//#region src/config.ts
|
|
20
|
-
const riseTestnetConfig = {
|
|
21
|
-
...defaultConfig,
|
|
22
|
-
chains: [riseTestnet],
|
|
23
|
-
mode: Mode.dialog({ host: "https://rise-wallet-testnet.vercel.app/dialog" }),
|
|
24
|
-
relay: http("https://rise-testnet-porto.fly.dev"),
|
|
25
|
-
feeToken: "ETH",
|
|
26
|
-
transports: { [riseTestnet.id]: http() }
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
export { define, riseTestnet, riseTestnetConfig };
|
|
1
|
+
export * from "./chain.js";
|
|
2
|
+
export * from "./config.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rise-wallet",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4-beta.1",
|
|
4
4
|
"description": "Typescript SDK to integrate RISE wallet into your dApp.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,33 +13,35 @@
|
|
|
13
13
|
"url": "git+https://github.com/risechain/rise-wallet-sdk.git"
|
|
14
14
|
},
|
|
15
15
|
"author": "hazelnutcloud <hzlntcld@pm.me>",
|
|
16
|
-
"
|
|
17
|
-
"dist"
|
|
18
|
-
],
|
|
19
|
-
"main": "./dist/index.js",
|
|
20
|
-
"module": "./dist/index.js",
|
|
21
|
-
"types": "./dist/index.d.ts",
|
|
22
|
-
"exports": {
|
|
23
|
-
".": "./dist/index.js",
|
|
24
|
-
"./package.json": "./package.json"
|
|
25
|
-
},
|
|
16
|
+
"zshy": "./src/index.ts",
|
|
26
17
|
"publishConfig": {
|
|
27
18
|
"access": "public"
|
|
28
19
|
},
|
|
29
20
|
"scripts": {
|
|
30
|
-
"build": "
|
|
31
|
-
"dev": "tsdown --watch",
|
|
32
|
-
"typecheck": "tsc --noEmit",
|
|
33
|
-
"prepublishOnly": "bun run typecheck && bun run build && bumpp"
|
|
21
|
+
"build": "zshy"
|
|
34
22
|
},
|
|
35
23
|
"devDependencies": {
|
|
36
|
-
"@types/node": "^24.
|
|
24
|
+
"@types/node": "^24.5.2",
|
|
37
25
|
"bumpp": "^10.2.3",
|
|
38
|
-
"tsdown": "^0.
|
|
39
|
-
"typescript": "^5.9.2"
|
|
26
|
+
"tsdown": "^0.15.2",
|
|
27
|
+
"typescript": "^5.9.2",
|
|
28
|
+
"zshy": "^0.4.2"
|
|
40
29
|
},
|
|
41
30
|
"peerDependencies": {
|
|
42
|
-
"porto": "^0.
|
|
43
|
-
"viem": "^2.
|
|
31
|
+
"porto": "^0.2.10",
|
|
32
|
+
"viem": "^2.37.6"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"dist"
|
|
36
|
+
],
|
|
37
|
+
"main": "./dist/index.cjs",
|
|
38
|
+
"module": "./dist/index.js",
|
|
39
|
+
"types": "./dist/index.d.cts",
|
|
40
|
+
"exports": {
|
|
41
|
+
".": {
|
|
42
|
+
"types": "./dist/index.d.cts",
|
|
43
|
+
"import": "./dist/index.js",
|
|
44
|
+
"require": "./dist/index.cjs"
|
|
45
|
+
}
|
|
44
46
|
}
|
|
45
|
-
}
|
|
47
|
+
}
|