@sign-global/tokentable-core 1.14.0 → 1.14.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/CHANGELOG.md +12 -0
- package/dist/index.d.mts +72 -1
- package/dist/index.d.ts +72 -1
- package/dist/index.js +36 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/constants/chain-config.ts +6 -0
- package/src/constants/network.ts +29 -0
- package/src/contracts/sui/SuiContractClient.ts +1 -1
- package/src/contracts/sui/__tests__/SuiContractClient.test.ts +48 -0
package/dist/index.mjs
CHANGED
|
@@ -268,6 +268,34 @@ var hyperEVM = defineChain({
|
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
270
|
});
|
|
271
|
+
var megaeth = /* @__PURE__ */ defineChain({
|
|
272
|
+
id: 4326,
|
|
273
|
+
blockTime: 1e3,
|
|
274
|
+
name: "MegaETH",
|
|
275
|
+
nativeCurrency: {
|
|
276
|
+
name: "Ether",
|
|
277
|
+
symbol: "ETH",
|
|
278
|
+
decimals: 18
|
|
279
|
+
},
|
|
280
|
+
rpcUrls: {
|
|
281
|
+
default: {
|
|
282
|
+
http: ["https://mainnet.megaeth.com/rpc"],
|
|
283
|
+
webSocket: ["wss://mainnet.megaeth.com/ws"]
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
blockExplorers: {
|
|
287
|
+
default: {
|
|
288
|
+
name: "Blockscout",
|
|
289
|
+
url: "https://megaeth.blockscout.com",
|
|
290
|
+
apiUrl: "https://megaeth.blockscout.com/api"
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
contracts: {
|
|
294
|
+
multicall3: {
|
|
295
|
+
address: "0xcA11bde05977b3631167028862bE2a173976CA11"
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
});
|
|
271
299
|
|
|
272
300
|
// src/constants/chain-config.ts
|
|
273
301
|
import { CHAIN as CHAIN2 } from "@tonconnect/sdk";
|
|
@@ -281,6 +309,7 @@ var SupportedChains = [
|
|
|
281
309
|
monad,
|
|
282
310
|
cronos,
|
|
283
311
|
memecore,
|
|
312
|
+
megaeth,
|
|
284
313
|
tonTestNet,
|
|
285
314
|
tonMainNet,
|
|
286
315
|
signBrBTestnet,
|
|
@@ -322,6 +351,10 @@ var ChainConfig = {
|
|
|
322
351
|
contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
|
|
323
352
|
rpcUrl: memecore.rpcUrls.default.http[0]
|
|
324
353
|
},
|
|
354
|
+
[megaeth.id]: {
|
|
355
|
+
contractAddress: "0xa6A2d42E16a690E03bDe181319fDD085880F2605",
|
|
356
|
+
rpcUrl: megaeth.rpcUrls.default.http[0]
|
|
357
|
+
},
|
|
325
358
|
[cyber.id]: {
|
|
326
359
|
contractAddress: "0x7915dA247674E430b2a4Dcf01e4471f709428Bc0",
|
|
327
360
|
rpcUrl: cyber.rpcUrls.default.http[0]
|
|
@@ -12417,7 +12450,7 @@ var SuiContractClientBase = class {
|
|
|
12417
12450
|
this.moduleName = contractInfo.moduleName;
|
|
12418
12451
|
this.distributorId = contractInfo.distributorId;
|
|
12419
12452
|
this.wallet = contractInfo.walletClient;
|
|
12420
|
-
this.client = new SuiClient({ network: this.chainId, url: getFullnodeUrl2(this.chainId) });
|
|
12453
|
+
this.client = new SuiClient({ network: this.chainId, url: contractInfo.chainRpc || getFullnodeUrl2(this.chainId) });
|
|
12421
12454
|
}
|
|
12422
12455
|
async signAndExecute(tx) {
|
|
12423
12456
|
if (!this.wallet) {
|
|
@@ -13064,6 +13097,7 @@ export {
|
|
|
13064
13097
|
isBeforeByUnix,
|
|
13065
13098
|
isGreaterThan,
|
|
13066
13099
|
isMobile,
|
|
13100
|
+
megaeth,
|
|
13067
13101
|
mevmDevNet,
|
|
13068
13102
|
retry,
|
|
13069
13103
|
safeParseJSON,
|