├── .github ├── CODEOWNERS └── workflows │ ├── analytics.yaml │ ├── localnet.yaml │ ├── slither.yaml │ └── test.yaml ├── .gitignore ├── .gitmodules ├── LICENSE ├── examples ├── call │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .gitignore │ ├── LICENSE │ ├── README.md │ ├── commands │ │ ├── common.ts │ │ ├── connected │ │ │ ├── call.ts │ │ │ ├── deposit.ts │ │ │ ├── depositAndCall.ts │ │ │ └── index.ts │ │ ├── deploy.ts │ │ ├── index.ts │ │ ├── suiDepositAndCall.ts │ │ └── universal │ │ │ ├── call.ts │ │ │ ├── index.ts │ │ │ ├── withdraw.ts │ │ │ └── withdrawAndCall.ts │ ├── contracts │ │ ├── Connected.sol │ │ └── Universal.sol │ ├── foundry.toml │ ├── hardhat.config.ts │ ├── package.json │ ├── remappings.txt │ ├── scripts │ │ └── localnet.sh │ ├── solana │ │ ├── .gitignore │ │ ├── .prettierignore │ │ ├── Anchor.toml │ │ ├── Cargo.lock │ │ ├── Cargo.toml │ │ ├── programs │ │ │ └── connected │ │ │ │ ├── Cargo.toml │ │ │ │ ├── Xargo.toml │ │ │ │ └── src │ │ │ │ └── lib.rs │ │ └── setup │ │ │ ├── connected-keypair.json │ │ │ ├── constants.ts │ │ │ ├── encodeCallArgs.ts │ │ │ └── main.ts │ ├── soldeer.lock │ ├── sui │ │ ├── Move.lock │ │ ├── Move.toml │ │ ├── setup │ │ │ └── encodeCallArgs.ts │ │ └── sources │ │ │ ├── cetusmock.move │ │ │ ├── connected.move │ │ │ └── token.move │ ├── test │ │ └── CallTest.t.sol │ ├── tsconfig.json │ └── yarn.lock ├── hello │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .gitignore │ ├── LICENSE │ ├── README.md │ ├── commands │ │ ├── common.ts │ │ ├── deploy.ts │ │ └── index.ts │ ├── contracts │ │ └── Universal.sol │ ├── foundry.toml │ ├── frontend │ │ ├── .prettierrc.json │ │ ├── README.md │ │ ├── eslint.config.mjs │ │ ├── index.html │ │ ├── package.json │ │ ├── public │ │ │ ├── favicon.ico │ │ │ ├── fonts │ │ │ │ └── inter │ │ │ │ │ ├── OFL.txt │ │ │ │ │ ├── inter-black.ttf │ │ │ │ │ ├── inter-bold.ttf │ │ │ │ │ ├── inter-extra-bold.ttf │ │ │ │ │ ├── inter-extra-light.ttf │ │ │ │ │ ├── inter-light.ttf │ │ │ │ │ ├── inter-medium.ttf │ │ │ │ │ ├── inter-regular.ttf │ │ │ │ │ ├── inter-semi-bold.ttf │ │ │ │ │ └── inter-thin.ttf │ │ │ └── logos │ │ │ │ ├── arbitrum-logo.svg │ │ │ │ ├── avalanche-logo.svg │ │ │ │ ├── base-logo.svg │ │ │ │ ├── bsc-logo.svg │ │ │ │ ├── ethereum-logo.svg │ │ │ │ ├── network-placeholder-logo.svg │ │ │ │ └── polygon-logo.svg │ │ ├── src │ │ │ ├── App.tsx │ │ │ ├── AppContent.tsx │ │ │ ├── ConfirmedContent.css │ │ │ ├── ConfirmedContent.tsx │ │ │ ├── ConnectedContent.css │ │ │ ├── ConnectedContent.tsx │ │ │ ├── DisconnectedContent.css │ │ │ ├── DisconnectedContent.tsx │ │ │ ├── DynamicAppContent.tsx │ │ │ ├── Eip6963AppContent.tsx │ │ │ ├── Footer.css │ │ │ ├── Footer.tsx │ │ │ ├── MessageFlowCard.css │ │ │ ├── MessageFlowCard.tsx │ │ │ ├── components │ │ │ │ ├── Button.css │ │ │ │ ├── Button.tsx │ │ │ │ ├── ConnectDynamicWallet.css │ │ │ │ ├── ConnectDynamicWallet.tsx │ │ │ │ ├── ConnectEip6963Wallet.css │ │ │ │ ├── ConnectEip6963Wallet.tsx │ │ │ │ ├── Dropdown.css │ │ │ │ ├── Dropdown.tsx │ │ │ │ ├── DynamicWalletControls.tsx │ │ │ │ ├── Header.css │ │ │ │ ├── Header.tsx │ │ │ │ ├── Modal.css │ │ │ │ ├── Modal.tsx │ │ │ │ ├── NetworkSelector.tsx │ │ │ │ ├── ThemeToggle.css │ │ │ │ ├── ThemeToggle.tsx │ │ │ │ ├── WalletControls.css │ │ │ │ ├── WalletControls.tsx │ │ │ │ ├── WalletSelectionModal.tsx │ │ │ │ └── icons │ │ │ │ │ ├── IconAnimation.tsx │ │ │ │ │ ├── IconApprove.tsx │ │ │ │ │ ├── IconArrowRotated.tsx │ │ │ │ │ ├── IconCloseModal.tsx │ │ │ │ │ ├── IconDisconnect.tsx │ │ │ │ │ ├── IconDiscuss.tsx │ │ │ │ │ ├── IconDocs.tsx │ │ │ │ │ ├── IconEnvelope.tsx │ │ │ │ │ ├── IconReceived.tsx │ │ │ │ │ ├── IconSendTitle.tsx │ │ │ │ │ ├── IconSpinner.tsx │ │ │ │ │ ├── IconThemeMoon.tsx │ │ │ │ │ ├── IconThemeSun.tsx │ │ │ │ │ ├── IconTutorials.tsx │ │ │ │ │ ├── IconWallet.tsx │ │ │ │ │ ├── IconZetaChainLogo.tsx │ │ │ │ │ └── index.ts │ │ │ ├── constants │ │ │ │ ├── chains.ts │ │ │ │ ├── contracts.ts │ │ │ │ └── wallets.ts │ │ │ ├── context │ │ │ │ ├── Eip6963WalletContext.ts │ │ │ │ ├── Eip6963WalletProvider.tsx │ │ │ │ ├── ThemeContext.ts │ │ │ │ ├── ThemeProvider.tsx │ │ │ │ └── UnisatWalletProvider.tsx │ │ │ ├── fonts.css │ │ │ ├── hooks │ │ │ │ ├── useDynamicSwitchChain.ts │ │ │ │ ├── useDynamicSwitchChainHook.ts │ │ │ │ ├── useEip6963SwitchChain.ts │ │ │ │ ├── useEip6963Wallet.ts │ │ │ │ ├── useEip6963WalletConnection.ts │ │ │ │ ├── useEip6963WalletEvents.ts │ │ │ │ ├── useEip6963WalletProviders.ts │ │ │ │ ├── useEip6963WalletState.ts │ │ │ │ ├── useHandleCall.ts │ │ │ │ ├── useSwitchChain.ts │ │ │ │ └── useTheme.ts │ │ │ ├── index.css │ │ │ ├── main.tsx │ │ │ ├── types │ │ │ │ ├── cctx.ts │ │ │ │ ├── eip6963.d.ts │ │ │ │ └── wallet.ts │ │ │ ├── utils │ │ │ │ ├── eip6963.ts │ │ │ │ ├── ethersHelpers.ts │ │ │ │ ├── formatNumber.ts │ │ │ │ ├── truncate.ts │ │ │ │ └── walletStorage.ts │ │ │ └── vite-env.d.ts │ │ ├── tsconfig.app.json │ │ ├── tsconfig.json │ │ ├── tsconfig.node.json │ │ ├── vite.config.ts │ │ └── yarn.lock │ ├── hardhat.config.ts │ ├── package.json │ ├── remappings.txt │ ├── scripts │ │ └── localnet.sh │ ├── soldeer.lock │ ├── test │ │ └── Universal.t.sol │ ├── tsconfig.json │ └── yarn.lock ├── messaging │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .gitignore │ ├── LICENSE │ ├── README.md │ ├── commands │ │ ├── common.ts │ │ ├── connect.ts │ │ ├── deploy.ts │ │ ├── index.ts │ │ └── message.ts │ ├── contracts │ │ └── Messaging.sol │ ├── foundry.toml │ ├── hardhat.config.ts │ ├── package.json │ ├── remappings.txt │ ├── scripts │ │ └── localnet.sh │ ├── soldeer.lock │ ├── test │ │ └── UniversalRouter.sol │ ├── tsconfig.json │ └── yarn.lock ├── nft │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .gitignore │ ├── LICENSE │ ├── README.md │ ├── commands │ │ └── index.ts │ ├── contracts │ │ ├── EVMUniversalNFT.sol │ │ └── ZetaChainUniversalNFT.sol │ ├── foundry.toml │ ├── hardhat.config.ts │ ├── package.json │ ├── remappings.txt │ ├── scripts │ │ └── localnet.sh │ ├── soldeer.lock │ ├── test │ │ └── UniversalNFTTest.t.sol │ ├── tsconfig.json │ └── yarn.lock ├── swap │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .gitignore │ ├── LICENSE │ ├── README.md │ ├── commands │ │ ├── common.ts │ │ ├── deploy.ts │ │ └── index.ts │ ├── contracts │ │ └── Swap.sol │ ├── foundry.toml │ ├── hardhat.config.ts │ ├── package.json │ ├── remappings.txt │ ├── scripts │ │ └── localnet.sh │ ├── soldeer.lock │ ├── test │ │ ├── SwapCompanion.sol │ │ └── SwapTest.t.sol │ ├── tsconfig.json │ └── yarn.lock └── token │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .gitignore │ ├── LICENSE │ ├── README.md │ ├── commands │ └── index.ts │ ├── contracts │ ├── EVMUniversalToken.sol │ └── ZetaChainUniversalToken.sol │ ├── foundry.toml │ ├── hardhat.config.ts │ ├── package.json │ ├── remappings.txt │ ├── scripts │ └── localnet.sh │ ├── soldeer.lock │ ├── test │ └── UniversalTokenTest.t.sol │ ├── tsconfig.json │ └── yarn.lock ├── package.json ├── readme.md ├── scripts └── build.sh ├── slither.config.json └── yarn.lock /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @zeta-chain/smart-contracts 2 | -------------------------------------------------------------------------------- /.github/workflows/analytics.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/.github/workflows/analytics.yaml -------------------------------------------------------------------------------- /.github/workflows/localnet.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/.github/workflows/localnet.yaml -------------------------------------------------------------------------------- /.github/workflows/slither.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/.github/workflows/slither.yaml -------------------------------------------------------------------------------- /.github/workflows/test.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/.github/workflows/test.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/.gitmodules -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/LICENSE -------------------------------------------------------------------------------- /examples/call/.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/.eslintignore -------------------------------------------------------------------------------- /examples/call/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/.eslintrc.js -------------------------------------------------------------------------------- /examples/call/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/.gitignore -------------------------------------------------------------------------------- /examples/call/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/LICENSE -------------------------------------------------------------------------------- /examples/call/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/README.md -------------------------------------------------------------------------------- /examples/call/commands/common.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/commands/common.ts -------------------------------------------------------------------------------- /examples/call/commands/connected/call.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/commands/connected/call.ts -------------------------------------------------------------------------------- /examples/call/commands/connected/deposit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/commands/connected/deposit.ts -------------------------------------------------------------------------------- /examples/call/commands/connected/depositAndCall.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/commands/connected/depositAndCall.ts -------------------------------------------------------------------------------- /examples/call/commands/connected/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/commands/connected/index.ts -------------------------------------------------------------------------------- /examples/call/commands/deploy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/commands/deploy.ts -------------------------------------------------------------------------------- /examples/call/commands/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/commands/index.ts -------------------------------------------------------------------------------- /examples/call/commands/suiDepositAndCall.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/commands/suiDepositAndCall.ts -------------------------------------------------------------------------------- /examples/call/commands/universal/call.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/commands/universal/call.ts -------------------------------------------------------------------------------- /examples/call/commands/universal/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/commands/universal/index.ts -------------------------------------------------------------------------------- /examples/call/commands/universal/withdraw.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/commands/universal/withdraw.ts -------------------------------------------------------------------------------- /examples/call/commands/universal/withdrawAndCall.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/commands/universal/withdrawAndCall.ts -------------------------------------------------------------------------------- /examples/call/contracts/Connected.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/contracts/Connected.sol -------------------------------------------------------------------------------- /examples/call/contracts/Universal.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/contracts/Universal.sol -------------------------------------------------------------------------------- /examples/call/foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/foundry.toml -------------------------------------------------------------------------------- /examples/call/hardhat.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/hardhat.config.ts -------------------------------------------------------------------------------- /examples/call/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/package.json -------------------------------------------------------------------------------- /examples/call/remappings.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/remappings.txt -------------------------------------------------------------------------------- /examples/call/scripts/localnet.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/scripts/localnet.sh -------------------------------------------------------------------------------- /examples/call/solana/.gitignore: -------------------------------------------------------------------------------- 1 | .anchor 2 | .DS_Store 3 | target 4 | **/*.rs.bk 5 | node_modules 6 | test-ledger 7 | .yarn 8 | -------------------------------------------------------------------------------- /examples/call/solana/.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/solana/.prettierignore -------------------------------------------------------------------------------- /examples/call/solana/Anchor.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/solana/Anchor.toml -------------------------------------------------------------------------------- /examples/call/solana/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/solana/Cargo.lock -------------------------------------------------------------------------------- /examples/call/solana/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/solana/Cargo.toml -------------------------------------------------------------------------------- /examples/call/solana/programs/connected/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/solana/programs/connected/Cargo.toml -------------------------------------------------------------------------------- /examples/call/solana/programs/connected/Xargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/solana/programs/connected/Xargo.toml -------------------------------------------------------------------------------- /examples/call/solana/programs/connected/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/solana/programs/connected/src/lib.rs -------------------------------------------------------------------------------- /examples/call/solana/setup/connected-keypair.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/solana/setup/connected-keypair.json -------------------------------------------------------------------------------- /examples/call/solana/setup/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/solana/setup/constants.ts -------------------------------------------------------------------------------- /examples/call/solana/setup/encodeCallArgs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/solana/setup/encodeCallArgs.ts -------------------------------------------------------------------------------- /examples/call/solana/setup/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/solana/setup/main.ts -------------------------------------------------------------------------------- /examples/call/soldeer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/soldeer.lock -------------------------------------------------------------------------------- /examples/call/sui/Move.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/sui/Move.lock -------------------------------------------------------------------------------- /examples/call/sui/Move.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/sui/Move.toml -------------------------------------------------------------------------------- /examples/call/sui/setup/encodeCallArgs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/sui/setup/encodeCallArgs.ts -------------------------------------------------------------------------------- /examples/call/sui/sources/cetusmock.move: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/sui/sources/cetusmock.move -------------------------------------------------------------------------------- /examples/call/sui/sources/connected.move: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/sui/sources/connected.move -------------------------------------------------------------------------------- /examples/call/sui/sources/token.move: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/sui/sources/token.move -------------------------------------------------------------------------------- /examples/call/test/CallTest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/test/CallTest.t.sol -------------------------------------------------------------------------------- /examples/call/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/tsconfig.json -------------------------------------------------------------------------------- /examples/call/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/call/yarn.lock -------------------------------------------------------------------------------- /examples/hello/.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/.eslintignore -------------------------------------------------------------------------------- /examples/hello/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/.eslintrc.js -------------------------------------------------------------------------------- /examples/hello/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/.gitignore -------------------------------------------------------------------------------- /examples/hello/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/LICENSE -------------------------------------------------------------------------------- /examples/hello/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/README.md -------------------------------------------------------------------------------- /examples/hello/commands/common.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/commands/common.ts -------------------------------------------------------------------------------- /examples/hello/commands/deploy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/commands/deploy.ts -------------------------------------------------------------------------------- /examples/hello/commands/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/commands/index.ts -------------------------------------------------------------------------------- /examples/hello/contracts/Universal.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/contracts/Universal.sol -------------------------------------------------------------------------------- /examples/hello/foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/foundry.toml -------------------------------------------------------------------------------- /examples/hello/frontend/.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/.prettierrc.json -------------------------------------------------------------------------------- /examples/hello/frontend/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/README.md -------------------------------------------------------------------------------- /examples/hello/frontend/eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/eslint.config.mjs -------------------------------------------------------------------------------- /examples/hello/frontend/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/index.html -------------------------------------------------------------------------------- /examples/hello/frontend/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/package.json -------------------------------------------------------------------------------- /examples/hello/frontend/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/public/favicon.ico -------------------------------------------------------------------------------- /examples/hello/frontend/public/fonts/inter/OFL.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/public/fonts/inter/OFL.txt -------------------------------------------------------------------------------- /examples/hello/frontend/public/fonts/inter/inter-black.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/public/fonts/inter/inter-black.ttf -------------------------------------------------------------------------------- /examples/hello/frontend/public/fonts/inter/inter-bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/public/fonts/inter/inter-bold.ttf -------------------------------------------------------------------------------- /examples/hello/frontend/public/fonts/inter/inter-extra-bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/public/fonts/inter/inter-extra-bold.ttf -------------------------------------------------------------------------------- /examples/hello/frontend/public/fonts/inter/inter-extra-light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/public/fonts/inter/inter-extra-light.ttf -------------------------------------------------------------------------------- /examples/hello/frontend/public/fonts/inter/inter-light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/public/fonts/inter/inter-light.ttf -------------------------------------------------------------------------------- /examples/hello/frontend/public/fonts/inter/inter-medium.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/public/fonts/inter/inter-medium.ttf -------------------------------------------------------------------------------- /examples/hello/frontend/public/fonts/inter/inter-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/public/fonts/inter/inter-regular.ttf -------------------------------------------------------------------------------- /examples/hello/frontend/public/fonts/inter/inter-semi-bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/public/fonts/inter/inter-semi-bold.ttf -------------------------------------------------------------------------------- /examples/hello/frontend/public/fonts/inter/inter-thin.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/public/fonts/inter/inter-thin.ttf -------------------------------------------------------------------------------- /examples/hello/frontend/public/logos/arbitrum-logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/public/logos/arbitrum-logo.svg -------------------------------------------------------------------------------- /examples/hello/frontend/public/logos/avalanche-logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/public/logos/avalanche-logo.svg -------------------------------------------------------------------------------- /examples/hello/frontend/public/logos/base-logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/public/logos/base-logo.svg -------------------------------------------------------------------------------- /examples/hello/frontend/public/logos/bsc-logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/public/logos/bsc-logo.svg -------------------------------------------------------------------------------- /examples/hello/frontend/public/logos/ethereum-logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/public/logos/ethereum-logo.svg -------------------------------------------------------------------------------- /examples/hello/frontend/public/logos/network-placeholder-logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/public/logos/network-placeholder-logo.svg -------------------------------------------------------------------------------- /examples/hello/frontend/public/logos/polygon-logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/public/logos/polygon-logo.svg -------------------------------------------------------------------------------- /examples/hello/frontend/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/App.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/AppContent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/AppContent.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/ConfirmedContent.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/ConfirmedContent.css -------------------------------------------------------------------------------- /examples/hello/frontend/src/ConfirmedContent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/ConfirmedContent.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/ConnectedContent.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/ConnectedContent.css -------------------------------------------------------------------------------- /examples/hello/frontend/src/ConnectedContent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/ConnectedContent.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/DisconnectedContent.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/DisconnectedContent.css -------------------------------------------------------------------------------- /examples/hello/frontend/src/DisconnectedContent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/DisconnectedContent.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/DynamicAppContent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/DynamicAppContent.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/Eip6963AppContent.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/Eip6963AppContent.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/Footer.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/Footer.css -------------------------------------------------------------------------------- /examples/hello/frontend/src/Footer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/Footer.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/MessageFlowCard.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/MessageFlowCard.css -------------------------------------------------------------------------------- /examples/hello/frontend/src/MessageFlowCard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/MessageFlowCard.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/Button.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/Button.css -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/Button.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/ConnectDynamicWallet.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/ConnectDynamicWallet.css -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/ConnectDynamicWallet.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/ConnectDynamicWallet.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/ConnectEip6963Wallet.css: -------------------------------------------------------------------------------- 1 | .header-connect-wallet-button { 2 | min-width: 200px; 3 | } 4 | -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/ConnectEip6963Wallet.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/ConnectEip6963Wallet.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/Dropdown.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/Dropdown.css -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/Dropdown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/Dropdown.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/DynamicWalletControls.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/DynamicWalletControls.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/Header.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/Header.css -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/Header.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/Modal.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/Modal.css -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/Modal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/Modal.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/NetworkSelector.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/NetworkSelector.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/ThemeToggle.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/ThemeToggle.css -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/ThemeToggle.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/ThemeToggle.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/WalletControls.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/WalletControls.css -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/WalletControls.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/WalletControls.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/WalletSelectionModal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/WalletSelectionModal.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/icons/IconAnimation.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/icons/IconAnimation.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/icons/IconApprove.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/icons/IconApprove.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/icons/IconArrowRotated.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/icons/IconArrowRotated.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/icons/IconCloseModal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/icons/IconCloseModal.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/icons/IconDisconnect.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/icons/IconDisconnect.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/icons/IconDiscuss.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/icons/IconDiscuss.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/icons/IconDocs.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/icons/IconDocs.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/icons/IconEnvelope.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/icons/IconEnvelope.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/icons/IconReceived.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/icons/IconReceived.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/icons/IconSendTitle.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/icons/IconSendTitle.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/icons/IconSpinner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/icons/IconSpinner.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/icons/IconThemeMoon.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/icons/IconThemeMoon.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/icons/IconThemeSun.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/icons/IconThemeSun.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/icons/IconTutorials.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/icons/IconTutorials.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/icons/IconWallet.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/icons/IconWallet.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/icons/IconZetaChainLogo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/icons/IconZetaChainLogo.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/components/icons/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/components/icons/index.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/constants/chains.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/constants/chains.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/constants/contracts.ts: -------------------------------------------------------------------------------- 1 | export const HELLO_UNIVERSAL_CONTRACT_ADDRESS = 2 | '0x61a184EB30D29eD0395d1ADF38CC7d2F966c4A82'; 3 | -------------------------------------------------------------------------------- /examples/hello/frontend/src/constants/wallets.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/constants/wallets.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/context/Eip6963WalletContext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/context/Eip6963WalletContext.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/context/Eip6963WalletProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/context/Eip6963WalletProvider.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/context/ThemeContext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/context/ThemeContext.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/context/ThemeProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/context/ThemeProvider.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/context/UnisatWalletProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/context/UnisatWalletProvider.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/fonts.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/fonts.css -------------------------------------------------------------------------------- /examples/hello/frontend/src/hooks/useDynamicSwitchChain.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/hooks/useDynamicSwitchChain.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/hooks/useDynamicSwitchChainHook.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/hooks/useDynamicSwitchChainHook.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/hooks/useEip6963SwitchChain.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/hooks/useEip6963SwitchChain.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/hooks/useEip6963Wallet.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/hooks/useEip6963Wallet.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/hooks/useEip6963WalletConnection.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/hooks/useEip6963WalletConnection.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/hooks/useEip6963WalletEvents.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/hooks/useEip6963WalletEvents.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/hooks/useEip6963WalletProviders.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/hooks/useEip6963WalletProviders.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/hooks/useEip6963WalletState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/hooks/useEip6963WalletState.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/hooks/useHandleCall.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/hooks/useHandleCall.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/hooks/useSwitchChain.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/hooks/useSwitchChain.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/hooks/useTheme.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/hooks/useTheme.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/index.css -------------------------------------------------------------------------------- /examples/hello/frontend/src/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/main.tsx -------------------------------------------------------------------------------- /examples/hello/frontend/src/types/cctx.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/types/cctx.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/types/eip6963.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/types/eip6963.d.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/types/wallet.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/types/wallet.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/utils/eip6963.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/utils/eip6963.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/utils/ethersHelpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/utils/ethersHelpers.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/utils/formatNumber.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/utils/formatNumber.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/utils/truncate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/utils/truncate.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/utils/walletStorage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/src/utils/walletStorage.ts -------------------------------------------------------------------------------- /examples/hello/frontend/src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /examples/hello/frontend/tsconfig.app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/tsconfig.app.json -------------------------------------------------------------------------------- /examples/hello/frontend/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/tsconfig.json -------------------------------------------------------------------------------- /examples/hello/frontend/tsconfig.node.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/tsconfig.node.json -------------------------------------------------------------------------------- /examples/hello/frontend/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/vite.config.ts -------------------------------------------------------------------------------- /examples/hello/frontend/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/frontend/yarn.lock -------------------------------------------------------------------------------- /examples/hello/hardhat.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/hardhat.config.ts -------------------------------------------------------------------------------- /examples/hello/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/package.json -------------------------------------------------------------------------------- /examples/hello/remappings.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/remappings.txt -------------------------------------------------------------------------------- /examples/hello/scripts/localnet.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/scripts/localnet.sh -------------------------------------------------------------------------------- /examples/hello/soldeer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/soldeer.lock -------------------------------------------------------------------------------- /examples/hello/test/Universal.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/test/Universal.t.sol -------------------------------------------------------------------------------- /examples/hello/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/tsconfig.json -------------------------------------------------------------------------------- /examples/hello/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/hello/yarn.lock -------------------------------------------------------------------------------- /examples/messaging/.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/messaging/.eslintignore -------------------------------------------------------------------------------- /examples/messaging/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/messaging/.eslintrc.js -------------------------------------------------------------------------------- /examples/messaging/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/messaging/.gitignore -------------------------------------------------------------------------------- /examples/messaging/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/messaging/LICENSE -------------------------------------------------------------------------------- /examples/messaging/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/messaging/README.md -------------------------------------------------------------------------------- /examples/messaging/commands/common.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/messaging/commands/common.ts -------------------------------------------------------------------------------- /examples/messaging/commands/connect.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/messaging/commands/connect.ts -------------------------------------------------------------------------------- /examples/messaging/commands/deploy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/messaging/commands/deploy.ts -------------------------------------------------------------------------------- /examples/messaging/commands/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/messaging/commands/index.ts -------------------------------------------------------------------------------- /examples/messaging/commands/message.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/messaging/commands/message.ts -------------------------------------------------------------------------------- /examples/messaging/contracts/Messaging.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/messaging/contracts/Messaging.sol -------------------------------------------------------------------------------- /examples/messaging/foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/messaging/foundry.toml -------------------------------------------------------------------------------- /examples/messaging/hardhat.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/messaging/hardhat.config.ts -------------------------------------------------------------------------------- /examples/messaging/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/messaging/package.json -------------------------------------------------------------------------------- /examples/messaging/remappings.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/messaging/remappings.txt -------------------------------------------------------------------------------- /examples/messaging/scripts/localnet.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/messaging/scripts/localnet.sh -------------------------------------------------------------------------------- /examples/messaging/soldeer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/messaging/soldeer.lock -------------------------------------------------------------------------------- /examples/messaging/test/UniversalRouter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/messaging/test/UniversalRouter.sol -------------------------------------------------------------------------------- /examples/messaging/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/messaging/tsconfig.json -------------------------------------------------------------------------------- /examples/messaging/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/messaging/yarn.lock -------------------------------------------------------------------------------- /examples/nft/.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/nft/.eslintignore -------------------------------------------------------------------------------- /examples/nft/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/nft/.eslintrc.js -------------------------------------------------------------------------------- /examples/nft/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/nft/.gitignore -------------------------------------------------------------------------------- /examples/nft/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/nft/LICENSE -------------------------------------------------------------------------------- /examples/nft/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/nft/README.md -------------------------------------------------------------------------------- /examples/nft/commands/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/nft/commands/index.ts -------------------------------------------------------------------------------- /examples/nft/contracts/EVMUniversalNFT.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/nft/contracts/EVMUniversalNFT.sol -------------------------------------------------------------------------------- /examples/nft/contracts/ZetaChainUniversalNFT.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/nft/contracts/ZetaChainUniversalNFT.sol -------------------------------------------------------------------------------- /examples/nft/foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/nft/foundry.toml -------------------------------------------------------------------------------- /examples/nft/hardhat.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/nft/hardhat.config.ts -------------------------------------------------------------------------------- /examples/nft/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/nft/package.json -------------------------------------------------------------------------------- /examples/nft/remappings.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/nft/remappings.txt -------------------------------------------------------------------------------- /examples/nft/scripts/localnet.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/nft/scripts/localnet.sh -------------------------------------------------------------------------------- /examples/nft/soldeer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/nft/soldeer.lock -------------------------------------------------------------------------------- /examples/nft/test/UniversalNFTTest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/nft/test/UniversalNFTTest.t.sol -------------------------------------------------------------------------------- /examples/nft/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/nft/tsconfig.json -------------------------------------------------------------------------------- /examples/nft/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/nft/yarn.lock -------------------------------------------------------------------------------- /examples/swap/.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/swap/.eslintignore -------------------------------------------------------------------------------- /examples/swap/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/swap/.eslintrc.js -------------------------------------------------------------------------------- /examples/swap/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/swap/.gitignore -------------------------------------------------------------------------------- /examples/swap/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/swap/LICENSE -------------------------------------------------------------------------------- /examples/swap/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/swap/README.md -------------------------------------------------------------------------------- /examples/swap/commands/common.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/swap/commands/common.ts -------------------------------------------------------------------------------- /examples/swap/commands/deploy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/swap/commands/deploy.ts -------------------------------------------------------------------------------- /examples/swap/commands/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/swap/commands/index.ts -------------------------------------------------------------------------------- /examples/swap/contracts/Swap.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/swap/contracts/Swap.sol -------------------------------------------------------------------------------- /examples/swap/foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/swap/foundry.toml -------------------------------------------------------------------------------- /examples/swap/hardhat.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/swap/hardhat.config.ts -------------------------------------------------------------------------------- /examples/swap/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/swap/package.json -------------------------------------------------------------------------------- /examples/swap/remappings.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/swap/remappings.txt -------------------------------------------------------------------------------- /examples/swap/scripts/localnet.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/swap/scripts/localnet.sh -------------------------------------------------------------------------------- /examples/swap/soldeer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/swap/soldeer.lock -------------------------------------------------------------------------------- /examples/swap/test/SwapCompanion.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/swap/test/SwapCompanion.sol -------------------------------------------------------------------------------- /examples/swap/test/SwapTest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/swap/test/SwapTest.t.sol -------------------------------------------------------------------------------- /examples/swap/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/swap/tsconfig.json -------------------------------------------------------------------------------- /examples/swap/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/swap/yarn.lock -------------------------------------------------------------------------------- /examples/token/.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/token/.eslintignore -------------------------------------------------------------------------------- /examples/token/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/token/.eslintrc.js -------------------------------------------------------------------------------- /examples/token/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/token/.gitignore -------------------------------------------------------------------------------- /examples/token/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/token/LICENSE -------------------------------------------------------------------------------- /examples/token/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/token/README.md -------------------------------------------------------------------------------- /examples/token/commands/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/token/commands/index.ts -------------------------------------------------------------------------------- /examples/token/contracts/EVMUniversalToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/token/contracts/EVMUniversalToken.sol -------------------------------------------------------------------------------- /examples/token/contracts/ZetaChainUniversalToken.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/token/contracts/ZetaChainUniversalToken.sol -------------------------------------------------------------------------------- /examples/token/foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/token/foundry.toml -------------------------------------------------------------------------------- /examples/token/hardhat.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/token/hardhat.config.ts -------------------------------------------------------------------------------- /examples/token/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/token/package.json -------------------------------------------------------------------------------- /examples/token/remappings.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/token/remappings.txt -------------------------------------------------------------------------------- /examples/token/scripts/localnet.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/token/scripts/localnet.sh -------------------------------------------------------------------------------- /examples/token/soldeer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/token/soldeer.lock -------------------------------------------------------------------------------- /examples/token/test/UniversalTokenTest.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/token/test/UniversalTokenTest.t.sol -------------------------------------------------------------------------------- /examples/token/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/token/tsconfig.json -------------------------------------------------------------------------------- /examples/token/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/examples/token/yarn.lock -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/readme.md -------------------------------------------------------------------------------- /scripts/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/scripts/build.sh -------------------------------------------------------------------------------- /slither.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/slither.config.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeta-chain/example-contracts/HEAD/yarn.lock --------------------------------------------------------------------------------