@toon-protocol/core 3.1.1 → 3.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 +7 -1
- package/dist/index.js +17 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3980,11 +3980,17 @@ interface ClientNetworkPresets {
|
|
|
3980
3980
|
programId: string;
|
|
3981
3981
|
tokenMint?: string;
|
|
3982
3982
|
};
|
|
3983
|
-
/**
|
|
3983
|
+
/**
|
|
3984
|
+
* Mina channel params (graphqlUrl + zkAppAddress + networkId [+ tokenId]), if
|
|
3985
|
+
* deployed. `tokenId` is the settlement-token Field id — present when the
|
|
3986
|
+
* deployed channels are denominated in a custom token (client reads the token
|
|
3987
|
+
* balance with it); absent for native MINA.
|
|
3988
|
+
*/
|
|
3984
3989
|
minaChannel?: {
|
|
3985
3990
|
graphqlUrl: string;
|
|
3986
3991
|
zkAppAddress: string;
|
|
3987
3992
|
networkId: 'devnet' | 'mainnet';
|
|
3993
|
+
tokenId?: string;
|
|
3988
3994
|
};
|
|
3989
3995
|
/** Per-family settlement readiness (mirrors the node). */
|
|
3990
3996
|
status: NetworkFamilyStatus;
|
package/dist/index.js
CHANGED
|
@@ -4558,7 +4558,12 @@ var CHAIN_PRESETS = {
|
|
|
4558
4558
|
"base-sepolia": {
|
|
4559
4559
|
name: "base-sepolia",
|
|
4560
4560
|
chainId: 84532,
|
|
4561
|
-
|
|
4561
|
+
// The old `https://sepolia.base.org` is a stale-read load balancer: reads
|
|
4562
|
+
// work, but openChannel->setTotalDeposit fails with InvalidChannelState
|
|
4563
|
+
// (0xf806e9d9) because a follow-up read lands on a lagging replica. publicnode
|
|
4564
|
+
// is the working devnet/testnet default (source of truth: toon-meta
|
|
4565
|
+
// docs/deployment.md).
|
|
4566
|
+
rpcUrl: "https://base-sepolia-rpc.publicnode.com",
|
|
4562
4567
|
// Post-2026-07-19 public-chain cutover addresses (source of truth: toon-meta
|
|
4563
4568
|
// docs/deployment.md). USDC is a 6-decimal mock with an ungated mint; the
|
|
4564
4569
|
// retired e2e deployment (18-decimal USDC 0xac806…, TokenNetwork 0x47616F4b…,
|
|
@@ -4741,12 +4746,13 @@ var SOLANA_TIER = {
|
|
|
4741
4746
|
var MINA_DEPLOYED_DEVNET = {
|
|
4742
4747
|
graphqlUrl: "https://api.minascan.io/node/devnet/v1/graphql",
|
|
4743
4748
|
network: "devnet",
|
|
4744
|
-
//
|
|
4745
|
-
//
|
|
4746
|
-
//
|
|
4747
|
-
//
|
|
4748
|
-
//
|
|
4749
|
-
zkAppAddress: "
|
|
4749
|
+
// Post-2026-07-19 public-chain cutover (source of truth: toon-meta
|
|
4750
|
+
// docs/deployment.md). This is the CURRENT deployed PaymentChannel zkApp; the
|
|
4751
|
+
// previous address (B62qrH1As4…) is retired and MUST NOT be used. The channels
|
|
4752
|
+
// settle a custom USDC token, so the tokenId is required to read balances /
|
|
4753
|
+
// open channels against the right token.
|
|
4754
|
+
zkAppAddress: "B62qmgPhv2Xo6QVEtwjLja8UZJUtu8yapRFAR6gaoGtbM9zE5hG7Tkf",
|
|
4755
|
+
tokenId: "9497120696276615621907376728658022802954262638363646162765282600447713419198"
|
|
4750
4756
|
};
|
|
4751
4757
|
var MINA_TIER = {
|
|
4752
4758
|
mainnet: {
|
|
@@ -4820,7 +4826,8 @@ function resolveNetworkProfile(network, opts = {}) {
|
|
|
4820
4826
|
chainType: "mina",
|
|
4821
4827
|
graphqlUrl: mina.graphqlUrl,
|
|
4822
4828
|
zkAppAddress: mina.zkAppAddress,
|
|
4823
|
-
network: mina.network
|
|
4829
|
+
network: mina.network,
|
|
4830
|
+
...mina.tokenId && { tokenId: mina.tokenId }
|
|
4824
4831
|
},
|
|
4825
4832
|
opts.keyId
|
|
4826
4833
|
)
|
|
@@ -4875,7 +4882,8 @@ function resolveClientNetwork(network) {
|
|
|
4875
4882
|
minaChannel = {
|
|
4876
4883
|
graphqlUrl: mina.graphqlUrl,
|
|
4877
4884
|
zkAppAddress: mina.zkAppAddress,
|
|
4878
|
-
networkId: mina.network === "mainnet" ? "mainnet" : "devnet"
|
|
4885
|
+
networkId: mina.network === "mainnet" ? "mainnet" : "devnet",
|
|
4886
|
+
...mina.tokenId && { tokenId: mina.tokenId }
|
|
4879
4887
|
};
|
|
4880
4888
|
status.mina = "configured";
|
|
4881
4889
|
}
|