@sky-mavis/tanto-connect 0.0.21 → 0.0.22
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/README.md +2 -2
- package/dist/cjs/common/chain.cjs +13 -1
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/version.cjs +1 -1
- package/dist/mjs/common/chain.mjs +10 -2
- package/dist/mjs/index.mjs +1 -1
- package/dist/mjs/version.mjs +1 -1
- package/dist/types/common/chain.d.ts +67 -1
- package/dist/types/common/chain.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -57,9 +57,9 @@ roninWalletConnectConnector.on(ConnectorEvent.DISPLAY_URI, uri => setUri(uri));
|
|
|
57
57
|
roninWalletConnectConnector.on(ConnectorEvent.DISCONNECT, async () => {
|
|
58
58
|
setUri(null);
|
|
59
59
|
setIsConnected(false);
|
|
60
|
-
roninWalletConnectConnector.connect(
|
|
60
|
+
roninWalletConnectConnector.connect(202601);
|
|
61
61
|
});
|
|
62
|
-
roninWalletConnectConnector.connect(
|
|
62
|
+
roninWalletConnectConnector.connect(202601);
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var chains = require('viem/chains');
|
|
4
|
+
|
|
5
|
+
const ronin = {
|
|
6
|
+
...chains.ronin,
|
|
7
|
+
id: 2020
|
|
8
|
+
};
|
|
9
|
+
const saigon = {
|
|
10
|
+
...chains.saigon,
|
|
11
|
+
id: 202601
|
|
12
|
+
};
|
|
3
13
|
exports.ChainIds = void 0;
|
|
4
14
|
(function (ChainIds) {
|
|
5
15
|
ChainIds[ChainIds["Ethereum"] = 1] = "Ethereum";
|
|
6
16
|
ChainIds[ChainIds["Goerli"] = 5] = "Goerli";
|
|
7
17
|
ChainIds[ChainIds["RoninMainnet"] = 2020] = "RoninMainnet";
|
|
8
|
-
ChainIds[ChainIds["RoninTestnet"] =
|
|
18
|
+
ChainIds[ChainIds["RoninTestnet"] = 202601] = "RoninTestnet";
|
|
9
19
|
ChainIds[ChainIds["BaseMainnet"] = 8453] = "BaseMainnet";
|
|
10
20
|
})(exports.ChainIds || (exports.ChainIds = {}));
|
|
11
21
|
const CHAINS_CONFIG = {
|
|
@@ -69,3 +79,5 @@ const CHAINS_CONFIG = {
|
|
|
69
79
|
};
|
|
70
80
|
|
|
71
81
|
exports.CHAINS_CONFIG = CHAINS_CONFIG;
|
|
82
|
+
exports.ronin = ronin;
|
|
83
|
+
exports.saigon = saigon;
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -28,6 +28,8 @@ Object.defineProperty(exports, 'ChainIds', {
|
|
|
28
28
|
enumerable: true,
|
|
29
29
|
get: function () { return chain.ChainIds; }
|
|
30
30
|
});
|
|
31
|
+
exports.ronin = chain.ronin;
|
|
32
|
+
exports.saigon = chain.saigon;
|
|
31
33
|
Object.defineProperty(exports, 'ConnectorType', {
|
|
32
34
|
enumerable: true,
|
|
33
35
|
get: function () { return connectors.ConnectorType; }
|
package/dist/cjs/version.cjs
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
|
+
import {ronin as ronin$1,saigon as saigon$1}from'viem/chains';const ronin = {
|
|
2
|
+
...ronin$1,
|
|
3
|
+
id: 2020
|
|
4
|
+
};
|
|
5
|
+
const saigon = {
|
|
6
|
+
...saigon$1,
|
|
7
|
+
id: 202601
|
|
8
|
+
};
|
|
1
9
|
var ChainIds;
|
|
2
10
|
(function (ChainIds) {
|
|
3
11
|
ChainIds[ChainIds["Ethereum"] = 1] = "Ethereum";
|
|
4
12
|
ChainIds[ChainIds["Goerli"] = 5] = "Goerli";
|
|
5
13
|
ChainIds[ChainIds["RoninMainnet"] = 2020] = "RoninMainnet";
|
|
6
|
-
ChainIds[ChainIds["RoninTestnet"] =
|
|
14
|
+
ChainIds[ChainIds["RoninTestnet"] = 202601] = "RoninTestnet";
|
|
7
15
|
ChainIds[ChainIds["BaseMainnet"] = 8453] = "BaseMainnet";
|
|
8
16
|
})(ChainIds || (ChainIds = {}));
|
|
9
17
|
const CHAINS_CONFIG = {
|
|
@@ -64,4 +72,4 @@ const CHAINS_CONFIG = {
|
|
|
64
72
|
decimals: 18,
|
|
65
73
|
},
|
|
66
74
|
},
|
|
67
|
-
};export{CHAINS_CONFIG,ChainIds};
|
|
75
|
+
};export{CHAINS_CONFIG,ChainIds,ronin,saigon};
|
package/dist/mjs/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CHAINS_CONFIG,ChainIds}from'./common/chain.mjs';export{ConnectorType,DEFAULT_CONNECTORS_CONFIG,RONIN_WALLET_CONNECT_PROJECT_ID,SupportedConnectors}from'./common/connectors.mjs';export{DEFAULT_DELAY_TIME,RONIN_WALLET_RDNS,WAYPOINT_ORIGIN_STAGING,WC_CAIP_CHAIN,WC_RPC_MAP,WC_SUPPORTED_CHAIN_IDS,WC_SUPPORTED_METHODS,WC_SUPPORTED_OPTIONAL_METHODS}from'./common/constant.mjs';export{LocalStorage,ReconnectStorage,STORAGE_PREFIX,WAYPOINT_ACCESS_TOKEN_STORAGE_KEY}from'./common/storage.mjs';export{requestInjectedConnectors,requestRoninWalletConnectConnector,requestRoninWalletConnector,requestSafeConnector,requestWaypointConnector}from'./connectors/index.mjs';export{BaseConnector}from'./connectors/base/BaseConnector.mjs';export{InjectedConnector}from'./connectors/injected/InjectedConnector.mjs';export{RoninWalletConnector}from'./connectors/ronin-wallet/RoninWalletConnector.mjs';export{RoninWalletConnectConnector}from'./connectors/ronin-wallet-connect/RoninWalletConnectConnector.mjs';export{SafeConnector}from'./connectors/safe/SafeConnector.mjs';export{WaypointConnector}from'./connectors/waypoint/WaypointConnector.mjs';export{requestProviders}from'./providers/eip6963.mjs';export{requestLegacyRoninProvider,requestRoninProvider}from'./providers/ronin.mjs';export{requestRoninWalletConnectProvider}from'./providers/ronin-wallet-connect.mjs';export{requestSafeProvider}from'./providers/safe-provider.mjs';export{requestWaypointProvider}from'./providers/waypoint-provider.mjs';export{ConnectorError,ConnectorErrorType}from'./types/connector-error.mjs';export{ConnectorEvent,ConnectorEventEmitter,WCEvent}from'./types/connector-event.mjs';export{EIP1193Event}from'./types/eip1193.mjs';export{EIP6963EventNames}from'./types/eip6963.mjs';
|
|
1
|
+
export{CHAINS_CONFIG,ChainIds,ronin,saigon}from'./common/chain.mjs';export{ConnectorType,DEFAULT_CONNECTORS_CONFIG,RONIN_WALLET_CONNECT_PROJECT_ID,SupportedConnectors}from'./common/connectors.mjs';export{DEFAULT_DELAY_TIME,RONIN_WALLET_RDNS,WAYPOINT_ORIGIN_STAGING,WC_CAIP_CHAIN,WC_RPC_MAP,WC_SUPPORTED_CHAIN_IDS,WC_SUPPORTED_METHODS,WC_SUPPORTED_OPTIONAL_METHODS}from'./common/constant.mjs';export{LocalStorage,ReconnectStorage,STORAGE_PREFIX,WAYPOINT_ACCESS_TOKEN_STORAGE_KEY}from'./common/storage.mjs';export{requestInjectedConnectors,requestRoninWalletConnectConnector,requestRoninWalletConnector,requestSafeConnector,requestWaypointConnector}from'./connectors/index.mjs';export{BaseConnector}from'./connectors/base/BaseConnector.mjs';export{InjectedConnector}from'./connectors/injected/InjectedConnector.mjs';export{RoninWalletConnector}from'./connectors/ronin-wallet/RoninWalletConnector.mjs';export{RoninWalletConnectConnector}from'./connectors/ronin-wallet-connect/RoninWalletConnectConnector.mjs';export{SafeConnector}from'./connectors/safe/SafeConnector.mjs';export{WaypointConnector}from'./connectors/waypoint/WaypointConnector.mjs';export{requestProviders}from'./providers/eip6963.mjs';export{requestLegacyRoninProvider,requestRoninProvider}from'./providers/ronin.mjs';export{requestRoninWalletConnectProvider}from'./providers/ronin-wallet-connect.mjs';export{requestSafeProvider}from'./providers/safe-provider.mjs';export{requestWaypointProvider}from'./providers/waypoint-provider.mjs';export{ConnectorError,ConnectorErrorType}from'./types/connector-error.mjs';export{ConnectorEvent,ConnectorEventEmitter,WCEvent}from'./types/connector-event.mjs';export{EIP1193Event}from'./types/eip1193.mjs';export{EIP6963EventNames}from'./types/eip6963.mjs';
|
package/dist/mjs/version.mjs
CHANGED
|
@@ -1,8 +1,74 @@
|
|
|
1
|
+
export declare const ronin: {
|
|
2
|
+
id: number;
|
|
3
|
+
blockExplorers: {
|
|
4
|
+
readonly default: {
|
|
5
|
+
readonly name: "Ronin Explorer";
|
|
6
|
+
readonly url: "https://app.roninchain.com";
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
contracts: {
|
|
10
|
+
readonly multicall3: {
|
|
11
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
12
|
+
readonly blockCreated: 26023535;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
ensTlds?: readonly string[] | undefined;
|
|
16
|
+
name: "Ronin";
|
|
17
|
+
nativeCurrency: {
|
|
18
|
+
readonly name: "RON";
|
|
19
|
+
readonly symbol: "RON";
|
|
20
|
+
readonly decimals: 18;
|
|
21
|
+
};
|
|
22
|
+
rpcUrls: {
|
|
23
|
+
readonly default: {
|
|
24
|
+
readonly http: readonly ["https://api.roninchain.com/rpc"];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
sourceId?: number | undefined;
|
|
28
|
+
testnet?: boolean | undefined;
|
|
29
|
+
custom?: Record<string, unknown> | undefined;
|
|
30
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
31
|
+
formatters?: undefined;
|
|
32
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable<bigint, number>> | undefined;
|
|
33
|
+
};
|
|
34
|
+
export declare const saigon: {
|
|
35
|
+
id: number;
|
|
36
|
+
blockExplorers: {
|
|
37
|
+
readonly default: {
|
|
38
|
+
readonly name: "Saigon Explorer";
|
|
39
|
+
readonly url: "https://saigon-app.roninchain.com";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
contracts: {
|
|
43
|
+
readonly multicall3: {
|
|
44
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
45
|
+
readonly blockCreated: 18736871;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
ensTlds?: readonly string[] | undefined;
|
|
49
|
+
name: "Saigon Testnet";
|
|
50
|
+
nativeCurrency: {
|
|
51
|
+
readonly name: "RON";
|
|
52
|
+
readonly symbol: "RON";
|
|
53
|
+
readonly decimals: 18;
|
|
54
|
+
};
|
|
55
|
+
rpcUrls: {
|
|
56
|
+
readonly default: {
|
|
57
|
+
readonly http: readonly ["https://saigon-testnet.roninchain.com/rpc"];
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
sourceId?: number | undefined;
|
|
61
|
+
testnet: true;
|
|
62
|
+
custom?: Record<string, unknown> | undefined;
|
|
63
|
+
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
64
|
+
formatters?: undefined;
|
|
65
|
+
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable<bigint, number>> | undefined;
|
|
66
|
+
};
|
|
1
67
|
export declare enum ChainIds {
|
|
2
68
|
Ethereum = 1,
|
|
3
69
|
Goerli = 5,
|
|
4
70
|
RoninMainnet = 2020,
|
|
5
|
-
RoninTestnet =
|
|
71
|
+
RoninTestnet = 202601,
|
|
6
72
|
BaseMainnet = 8453
|
|
7
73
|
}
|
|
8
74
|
export interface IChainInfo {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../src/common/chain.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../src/common/chain.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGjB,CAAA;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGlB,CAAA;AAGD,oBAAY,QAAQ;IAClB,QAAQ,IAAI;IACZ,MAAM,IAAI;IACV,YAAY,OAAO;IACnB,YAAY,SAAS;IAErB,WAAW,OAAO;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,cAAc,EAAE;QACd,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAEvD,eAAO,MAAM,aAAa,EAAE,aA0D3B,CAAC"}
|
package/dist/types/version.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sky-mavis/tanto-connect",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"description": "Tanto Connect",
|
|
5
5
|
"main": "dist/cjs/index.cjs",
|
|
6
6
|
"module": "dist/mjs/index.mjs",
|
|
@@ -77,4 +77,4 @@
|
|
|
77
77
|
"ts-jest": "29.1.2",
|
|
78
78
|
"typescript": "4.9.4"
|
|
79
79
|
}
|
|
80
|
-
}
|
|
80
|
+
}
|