docs: updated stale examples#479
Conversation
|
There was a problem hiding this comment.
Pull request overview
Updates documentation snippets to align with the current Bridge SDK APIs, particularly around proof fetching, NEAR shims, and manual finalization flows.
Changes:
- Refreshes EVM proof and NEAR finalization examples to use current function signatures and builder params.
- Updates NEAR guide examples to use
toNearApiJsActionsand removes stale helper references. - Aligns docs
ChainKindenum examples with the current on-chain-aligned enum layout.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/reference/core.mdx | Updates proof example to pass network into getEvmProof. |
| docs/guides/near.mdx | Refreshes @near-js usage example to use toNearApiJsActions and updates shim documentation table. |
| docs/guides/advanced/token-deployment.mdx | Updates token deployment examples to convert MPC signatures correctly and uses createBridge().getBridgedToken. |
| docs/guides/advanced/manual-finalization.mdx | Modernizes manual finalization flow to parse NEAR logs directly and uses the current NEAR builder finalization API. |
| docs/core-concepts/omni-addresses.mdx | Updates documented ChainKind enum members/values to match current SDK. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| import { ProofError } from "@omni-bridge/core" | ||
|
|
| import { InMemoryKeyStore } from "@near-js/keystores" | ||
| import { KeyPair } from "@near-js/crypto" | ||
| import { InMemorySigner } from "@near-js/signers" | ||
| import type { Action } from "near-api-js" |
No description provided.