nara-sdk 1.0.75 → 1.0.76

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/index.ts CHANGED
@@ -176,6 +176,11 @@ export {
176
176
  SOLANA_MAILBOX,
177
177
  NARA_MAILBOX,
178
178
  SPL_NOOP,
179
+ SOLANA_USDC_MINT,
180
+ NARA_USDC_MINT,
181
+ SOLANA_USDT_MINT,
182
+ NARA_USDT_MINT,
183
+ NARA_SOL_MINT,
179
184
  BRIDGE_TOKENS,
180
185
  // Token registry
181
186
  registerBridgeToken,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nara-sdk",
3
- "version": "1.0.75",
3
+ "version": "1.0.76",
4
4
  "description": "SDK for the Nara chain (Solana-compatible)",
5
5
  "module": "index.ts",
6
6
  "main": "index.ts",
package/src/bridge.ts CHANGED
@@ -105,6 +105,14 @@ export const SPL_NOOP = new PublicKey(
105
105
  "noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV"
106
106
  );
107
107
 
108
+ // ─── Token mint constants ─────────────────────────────────────────
109
+
110
+ export const SOLANA_USDC_MINT = new PublicKey("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v");
111
+ export const NARA_USDC_MINT = new PublicKey("8P7UGWjq86N3WUmwEgKeGHJZLcoMJqr5jnRUmeBN7YwR");
112
+ export const SOLANA_USDT_MINT = new PublicKey("Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB");
113
+ export const NARA_USDT_MINT = new PublicKey("8yQSyqC85A9Vcqz8gTU2Bk5Y63bnC5378sgx1biTKsjd");
114
+ export const NARA_SOL_MINT = new PublicKey("7fKh7DqPZmsYPHdGvt9Qw2rZkSEGp9F5dBa3XuuuhavU");
115
+
108
116
  function mailboxFor(chain: BridgeChain): PublicKey {
109
117
  return chain === "solana" ? SOLANA_MAILBOX : NARA_MAILBOX;
110
118
  }
@@ -122,13 +130,29 @@ export const BRIDGE_TOKENS: Record<string, BridgeTokenConfig> = {
122
130
  solana: {
123
131
  warpProgram: new PublicKey("4GcZJTa8s9vxtTz97Vj1RrwKMqPkT3DiiJkvUQDwsuZP"),
124
132
  mode: "collateral",
125
- mint: new PublicKey("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"),
133
+ mint: SOLANA_USDC_MINT,
126
134
  tokenProgram: TOKEN_PROGRAM_ID,
127
135
  },
128
136
  nara: {
129
137
  warpProgram: new PublicKey("BC2j6WrdPs9xhU9CfBwJsYSnJrGq5Tcm4SEen9ENv7go"),
130
138
  mode: "synthetic",
131
- mint: new PublicKey("8P7UGWjq86N3WUmwEgKeGHJZLcoMJqr5jnRUmeBN7YwR"),
139
+ mint: NARA_USDC_MINT,
140
+ tokenProgram: TOKEN_2022_PROGRAM_ID,
141
+ },
142
+ },
143
+ USDT: {
144
+ symbol: "USDT",
145
+ decimals: 6,
146
+ solana: {
147
+ warpProgram: new PublicKey("DCTt9H3pwwU89qC3Z4voYNThZypV68AwhYNzMNBxWXoy"),
148
+ mode: "collateral",
149
+ mint: SOLANA_USDT_MINT,
150
+ tokenProgram: TOKEN_PROGRAM_ID,
151
+ },
152
+ nara: {
153
+ warpProgram: new PublicKey("2q5HJaaagMxBM7GD5yR55xHN4tDZMh1gYraG1Y4wbry6"),
154
+ mode: "synthetic",
155
+ mint: NARA_USDT_MINT,
132
156
  tokenProgram: TOKEN_2022_PROGRAM_ID,
133
157
  },
134
158
  },
@@ -144,7 +168,7 @@ export const BRIDGE_TOKENS: Record<string, BridgeTokenConfig> = {
144
168
  nara: {
145
169
  warpProgram: new PublicKey("6bKmjEMbjcJUnqAiNw7AXuMvUALzw5XRKiV9dBsterxg"),
146
170
  mode: "synthetic",
147
- mint: new PublicKey("7fKh7DqPZmsYPHdGvt9Qw2rZkSEGp9F5dBa3XuuuhavU"),
171
+ mint: NARA_SOL_MINT,
148
172
  tokenProgram: TOKEN_2022_PROGRAM_ID,
149
173
  },
150
174
  },