Skip to content

unionlabs/example-ucs01-cosmwasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UCS01 Cosmwasm Transfer Demo

This example demonstrates how to create a CosmWasm contract that calls Union’s UCS01 Relay to execute a cross-chain asset transfer.

Follow the guide at docs.union.build/integrations/ucs01/cosmwasm

Initial setup, ensure wasm32-unknown-unknown is installed

rustup target add wasm32-unknown-unknown

Build the contract

RUSTFLAGS='-C target-cpu=mvp -C opt-level=z' cargo build --target wasm32-unknown-unknown --no-default-features --lib --release -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort