stellar / soroban-examples

Example Soroban Contracts
Apache License 2.0
65 stars 68 forks source link

Use contractimport! in liquidity_pool examples #89

Closed leighmcculloch closed 2 years ago

leighmcculloch commented 2 years ago

What

Use contractimport! in liquidity_pool example to import WASM file, and to import client.

Why

Start updating contracts to use the contractimport mechanics, and to move away from importing each other's Rust crates. Lean in on using the WASM for testing.

This doesn't go all the way to using all of the contractimport machinery, because it still relies on the token contract's utilities for native testing, and the utilities for signing and nonce management in tests as well. These things will be follow up looked at in a future iteration in:

Close https://github.com/stellar/soroban-examples/issues/87