You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PolymerCCTP add support for more chains [PolymerCCTPFacet v2.0.0] (#1630)
* Update PolymerCCTPFacet version to 1.0.1 and add support for Monad (chainId 143) and Bsc (chainId 56) in bridging logic.
* update
* added ReentracyGuard
* added audit
* updates
* added new demo cases
* updates
* deleted check for mintRecipient
* updated tests
* Refactor Solana address handling in demo scripts and update wallet address usage. Removed hardcoded addresses and implemented dynamic derivation from private keys. Updated relevant scripts to use a single source of truth for the dev wallet address.
* Update PolymerCCTPFacet version to 2.0.0
* deleted audit
* added staging diamond
* added check
* added audit
Copy file name to clipboardExpand all lines: .cursor/rules/200-typescript.mdc
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,17 @@ globs:
40
40
41
41
- When referring to "demo script", this means scripts in `script/demoScripts/`. They follow similar structural patterns (e.g., `main()` function, `setupEnvironment()`, helpers from `demoScriptHelpers`). See `demoLidoWrapper.ts`, `demoUnit.ts`, `demoEco.ts` as reference examples.
42
42
43
+
## Solana addresses and dev wallet address ([CONV:SOLANA-DEV-WALLET])
44
+
45
+
- **Solana addresses (base58, bytes32)**: Derive dynamically from the signer’s private key. Do **not** hardcode Solana addresses or store them in config (e.g. `config/global.json`).
- **Base58**: `deriveSolanaAddress(privateKey)` — use for logging, Solana APIs, or ATA computation.
48
+
- **Bytes32**: `solanaAddressToBytes32(deriveSolanaAddress(privateKey))` — use for contract/struct fields that expect bytes32 (e.g. non-EVM receiver, mintRecipient).
- **Dev wallet (EVM)**: Use a single source of truth from config.
51
+
- Use **only** `DEV_WALLET_ADDRESS` from `script/demoScripts/utils/demoScriptHelpers.ts` (it reads `config/global.json` → `devWallet`). Do not use `globalConfig.devWallet` elsewhere.
52
+
- Do not add or use separate constants for the same EVM dev wallet (e.g. no `ADDRESS_DEV_WALLET_V5`-style aliases).
53
+
43
54
## CLI and Logging
44
55
45
56
- CLI: use `citty`; logging via `consola`; validate env via `getEnvVar()`; exit 0/1 appropriately.
0 commit comments