@toon-protocol/core 3.1.0 → 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 +30 -14
- 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,10 +4558,19 @@ var CHAIN_PRESETS = {
|
|
|
4558
4558
|
"base-sepolia": {
|
|
4559
4559
|
name: "base-sepolia",
|
|
4560
4560
|
chainId: 84532,
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
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",
|
|
4567
|
+
// Post-2026-07-19 public-chain cutover addresses (source of truth: toon-meta
|
|
4568
|
+
// docs/deployment.md). USDC is a 6-decimal mock with an ungated mint; the
|
|
4569
|
+
// retired e2e deployment (18-decimal USDC 0xac806…, TokenNetwork 0x47616F4b…,
|
|
4570
|
+
// registry 0xb9516c…) is still on-chain but MUST NOT be used.
|
|
4571
|
+
usdcAddress: "0x49beE1Bca5d15Fb0963117923403F9498119a9Ce",
|
|
4572
|
+
tokenNetworkAddress: "0x1E95493fEF46707E034b4a1945f25a8C76A1823D",
|
|
4573
|
+
registryAddress: "0xcC9079adE929b168B54145f6d25262b64FAB9D5b"
|
|
4565
4574
|
},
|
|
4566
4575
|
// Base mainnet (public). USDC is Circle's native USDC on Base.
|
|
4567
4576
|
// TOON TokenNetwork/registry not deployed yet → settlement relay-only.
|
|
@@ -4716,8 +4725,12 @@ var EVM_TIER = {
|
|
|
4716
4725
|
var SOLANA_DEPLOYED_DEVNET = {
|
|
4717
4726
|
rpcUrl: "https://api.devnet.solana.com",
|
|
4718
4727
|
cluster: "devnet",
|
|
4719
|
-
|
|
4720
|
-
|
|
4728
|
+
// Post-2026-07-19 public-chain cutover (source of truth: toon-meta
|
|
4729
|
+
// docs/deployment.md). USDC mint authority is the faucet treasury
|
|
4730
|
+
// AEPoA5xT…; the pre-cutover self-hosted-validator values (mint
|
|
4731
|
+
// 9FtYCX…, program EdJxYPD…) are retired and MUST NOT be used.
|
|
4732
|
+
usdcMint: "xyc5J8MgKFiEN13PnfftdXxUzYH34FEvw1LCrFwN7in",
|
|
4733
|
+
programId: "2aEVJ8koKD8LTZrLRSGtAtU7LBt4e7QjjCgf1kzQ7Rip"
|
|
4721
4734
|
};
|
|
4722
4735
|
var SOLANA_TIER = {
|
|
4723
4736
|
mainnet: {
|
|
@@ -4733,12 +4746,13 @@ var SOLANA_TIER = {
|
|
|
4733
4746
|
var MINA_DEPLOYED_DEVNET = {
|
|
4734
4747
|
graphqlUrl: "https://api.minascan.io/node/devnet/v1/graphql",
|
|
4735
4748
|
network: "devnet",
|
|
4736
|
-
//
|
|
4737
|
-
//
|
|
4738
|
-
//
|
|
4739
|
-
//
|
|
4740
|
-
//
|
|
4741
|
-
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"
|
|
4742
4756
|
};
|
|
4743
4757
|
var MINA_TIER = {
|
|
4744
4758
|
mainnet: {
|
|
@@ -4812,7 +4826,8 @@ function resolveNetworkProfile(network, opts = {}) {
|
|
|
4812
4826
|
chainType: "mina",
|
|
4813
4827
|
graphqlUrl: mina.graphqlUrl,
|
|
4814
4828
|
zkAppAddress: mina.zkAppAddress,
|
|
4815
|
-
network: mina.network
|
|
4829
|
+
network: mina.network,
|
|
4830
|
+
...mina.tokenId && { tokenId: mina.tokenId }
|
|
4816
4831
|
},
|
|
4817
4832
|
opts.keyId
|
|
4818
4833
|
)
|
|
@@ -4867,7 +4882,8 @@ function resolveClientNetwork(network) {
|
|
|
4867
4882
|
minaChannel = {
|
|
4868
4883
|
graphqlUrl: mina.graphqlUrl,
|
|
4869
4884
|
zkAppAddress: mina.zkAppAddress,
|
|
4870
|
-
networkId: mina.network === "mainnet" ? "mainnet" : "devnet"
|
|
4885
|
+
networkId: mina.network === "mainnet" ? "mainnet" : "devnet",
|
|
4886
|
+
...mina.tokenId && { tokenId: mina.tokenId }
|
|
4871
4887
|
};
|
|
4872
4888
|
status.mina = "configured";
|
|
4873
4889
|
}
|