diff --git a/.github/workflows/cargo_publish.yml b/.github/workflows/cargo_publish.yml new file mode 100644 index 00000000..e6f5f942 --- /dev/null +++ b/.github/workflows/cargo_publish.yml @@ -0,0 +1,16 @@ +name: Cargo Publish + +on: + release: + types: [published] + +jobs: + + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: rustup update + - run: cargo publish -p blend-contract-sdk + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index a956d9ab..8cc2401e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -49,7 +49,7 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "backstop" -version = "0.0.1" +version = "1.0.0" dependencies = [ "cast", "emitter", @@ -105,8 +105,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" [[package]] -name = "blend-interfaces" -version = "0.0.2" +name = "blend-contract-sdk" +version = "0.1.0" dependencies = [ "soroban-sdk", ] @@ -400,7 +400,7 @@ dependencies = [ [[package]] name = "emitter" -version = "0.0.1" +version = "1.0.0" dependencies = [ "sep-41-token", "soroban-sdk", @@ -760,7 +760,7 @@ checksum = "4503fa043bf02cee09a9582e9554b4c6403b2ef55e4612e96561d294419429f8" [[package]] name = "pool" -version = "0.0.1" +version = "1.0.0" dependencies = [ "backstop", "cast", @@ -774,7 +774,7 @@ dependencies = [ [[package]] name = "pool-factory" -version = "0.0.1" +version = "1.0.0" dependencies = [ "rand 0.7.3", "soroban-sdk", @@ -938,18 +938,18 @@ checksum = "b0293b4b29daaf487284529cc2f5675b8e57c61f70167ba415a463651fd6a918" [[package]] name = "sep-40-oracle" -version = "0.2.0" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea393e9867e2a2a73a32be6e7a7b81c78ee3779dc1cdf7b2343b23a16739a181" +checksum = "841b6a0722971d450567c6cba4b8e00fc00a8774e3cac6f4df4ce16491a7fb93" dependencies = [ "soroban-sdk", ] [[package]] name = "sep-41-token" -version = "0.3.0" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8832c57dd6d2ad1d31f9ac8434bd84677ab4f7ca0e2369fd57df49f42f2567ff" +checksum = "a0512f9829db34a9a9076e95c8137bbf88276915ec568d91e37350046fc3168c" dependencies = [ "soroban-sdk", ] diff --git a/Cargo.toml b/Cargo.toml index edd992d6..6eba7fb5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ resolver = "2" members = [ "backstop", - "blend-interfaces", + "blend-contract-sdk", "emitter", "pool", "mocks/mock-pool-factory", @@ -36,10 +36,7 @@ version = "0.3.0" default-features = false [workspace.dependencies.sep-40-oracle] -version = "0.2.0" +version = "1.0.0" [workspace.dependencies.sep-41-token] -version = "0.3.0" - -[workspace.dependencies.blend-interfaces] -path = "./blend-interfaces" \ No newline at end of file +version = "1.0.0" diff --git a/Makefile b/Makefile index 2387809c..56277bbb 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ test: build cargo test --all --tests build: + cargo build -p blend-contract-sdk cargo rustc --manifest-path=emitter/Cargo.toml --crate-type=cdylib --target=wasm32-unknown-unknown --release cargo rustc --manifest-path=pool-factory/Cargo.toml --crate-type=cdylib --target=wasm32-unknown-unknown --release cargo rustc --manifest-path=backstop/Cargo.toml --crate-type=cdylib --target=wasm32-unknown-unknown --release @@ -35,13 +36,17 @@ clean: generate-js: soroban contract bindings typescript --overwrite \ --contract-id CBWH54OKUK6U2J2A4J2REJEYB625NEFCHISWXLOPR2D2D6FTN63TJTWN \ - --wasm ./target/wasm32-unknown-unknown/optimized/backstop.wasm --output-dir ./js/js-backstop/ + --wasm ./target/wasm32-unknown-unknown/optimized/backstop.wasm --output-dir ./js/js-backstop/ \ + --rpc-url http://localhost:8000 --network-passphrase "Standalone Network ; February 2017" --network Standalone soroban contract bindings typescript --overwrite \ --contract-id CBWH54OKUK6U2J2A4J2REJEYB625NEFCHISWXLOPR2D2D6FTN63TJTWN \ - --wasm ./target/wasm32-unknown-unknown/optimized/emitter.wasm --output-dir ./js/js-emitter/ + --wasm ./target/wasm32-unknown-unknown/optimized/emitter.wasm --output-dir ./js/js-emitter/ \ + --rpc-url http://localhost:8000 --network-passphrase "Standalone Network ; February 2017" --network Standalone soroban contract bindings typescript --overwrite \ --contract-id CBWH54OKUK6U2J2A4J2REJEYB625NEFCHISWXLOPR2D2D6FTN63TJTWN \ - --wasm ./target/wasm32-unknown-unknown/optimized/pool_factory.wasm --output-dir ./js/js-pool-factory/ + --wasm ./target/wasm32-unknown-unknown/optimized/pool_factory.wasm --output-dir ./js/js-pool-factory/ \ + --rpc-url http://localhost:8000 --network-passphrase "Standalone Network ; February 2017" --network Standalone soroban contract bindings typescript --overwrite \ --contract-id CBWH54OKUK6U2J2A4J2REJEYB625NEFCHISWXLOPR2D2D6FTN63TJTWN \ - --wasm ./target/wasm32-unknown-unknown/optimized/pool.wasm --output-dir ./js/js-pool/ + --wasm ./target/wasm32-unknown-unknown/optimized/pool.wasm --output-dir ./js/js-pool/ \ + --rpc-url http://localhost:8000 --network-passphrase "Standalone Network ; February 2017" --network Standalone diff --git a/backstop/Cargo.toml b/backstop/Cargo.toml index 64ee986f..71186ed6 100644 --- a/backstop/Cargo.toml +++ b/backstop/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "backstop" -version = "0.0.1" +version = "1.0.0" authors = ["Blend Capital "] license = "AGPL-3.0" edition = "2021" diff --git a/blend-contract-sdk/Cargo.toml b/blend-contract-sdk/Cargo.toml new file mode 100644 index 00000000..d0d56108 --- /dev/null +++ b/blend-contract-sdk/Cargo.toml @@ -0,0 +1,25 @@ +[package] +name = "blend-contract-sdk" +version = "0.1.0" +description = "Traits, clients, types, and WASMs for the Blend Protocol for use in Soroban contract development." +homepage = "https://github.com/blend-capital/blend-contracts" +repository = "https://github.com/blend-capital/blend-contracts" +license = "MIT" +edition = "2021" +readme = "README.md" +keywords = ["no_std", "wasm", "soroban"] + +[lib] +crate-type = ["cdylib", "rlib"] +doctest = false + +[features] +testutils = [ + "soroban-sdk/testutils", +] + +[dependencies] +soroban-sdk = { workspace = true } + +[dev_dependencies] +soroban-sdk = { workspace = true, features = ["testutils"] } \ No newline at end of file diff --git a/blend-contract-sdk/README.md b/blend-contract-sdk/README.md new file mode 100644 index 00000000..d6addc39 --- /dev/null +++ b/blend-contract-sdk/README.md @@ -0,0 +1,86 @@ +# Blend Contract SDK + +This repository contains interfaces, clients, and WASM blobs for the Blend Protocol as implemented in the [Blend Contracts](https://github.com/blend-capital/blend-contracts) repository. + +## Documentation + +To learn more about the Blend Protocol, visit the the docs: +* [Blend Docs](https://docs.blend.capital/) + +## Modules + +The Blend Contract SDK generates modules from the `contractimport` [Soroban SDK macro](). Each module exposes a Client, WASM, and the respective types needed to interact with the Blend Protocol. The following Blend contracts are exposed as a module: + +* `backstop` - Contract import for the backstop contract +* `emitter`- Contract import for the emitter contract +* `pool` - Contract import for the pool contract +* `pool_factory` - Contract import for the pool factory contract + +## Testing (testutils) + +### External Dependencies + +The Blend Contract SDK includes `contractimport`'s of the [Comet Contracts](https://github.com/CometDEX/comet-contracts) when compiled for test purposes via the `testutils` feature. + +This includes: +* `comet` - Contract import for the comet pool contract +* `comet_factory` - Contract import for the comet pool factory contract + +NOTE: These contracts were used for testing the Blend Protocol and should not be considered to be the latest version of the Comet Protocol. Please verify any non-test usage of the Comet contracts against the [Comet GitHub](https://github.com/CometDEX/comet-contracts). + +### Setup + +The `testutils` module allows for easy deployment of Blend Contracts to be used in a unit test. The following example shows how to use the `testutils` to deploy a set of Blend Contracts and set up a pool. + +If you require using the pool, please look at the following [sep-41-oracle]() crate to deploy a mock oracle contract: + +```rust +use soroban_sdk::{symbol_short, testutils::{Address as _, BytesN as _}, Address, BytesN, Env}; + +use blend_contract_sdk::{pool, testutils::{default_reserve_config, BlendFixture}}; + +let env = Env::default(); +let deployer = Address::generate(&env); +let blnd = env.register_stellar_asset_contract(deployer.clone()); +let usdc = env.register_stellar_asset_contract(deployer.clone()); +let blend = BlendFixture::deploy(&env, &deployer, &blnd, &usdc); + +let token = env.register_stellar_asset_contract(deployer.clone()); +let pool = blend.pool_factory.mock_all_auths().deploy( + &deployer, + &symbol_short!("test"), + &BytesN::<32>::random(&env), + &Address::generate(&env), + &0_1000000, // 10% + &4, // 4 max positions +); +let pool_client = pool::Client::new(&env, &pool); +let reserve_config = default_reserve_config(); +pool_client.mock_all_auths().queue_set_reserve(&token, &reserve_config); +pool_client.mock_all_auths().set_reserve(&token); + +blend.backstop.mock_all_auths().deposit(&deployer, &pool, &50_000_0000000); +pool_client.mock_all_auths().set_status(&3); // remove pool from setup status +pool_client.mock_all_auths().update_status(); // update status based on backstop +``` + +## WASM Verification + +The WASM files included will align with the GitHub release the SDK was published with (the version numbers will match). The WASM files were generated with the Makefile. + +Since WASM builds can vary based on factors like OS, here are the details of the machine that built the WASMs included in this package: + +* Ubuntu 22.04.4 LTS +* x86 +* rustc 1.77.1 (7cf61ebde 2024-03-27) +* soroban 20.3.1 (ae5446f63ca8a275e61912019199254d598f3bd5) +* soroban-env 20.2.1 (18a10592853d9edf4e341b565b0b1638f95f0393) +* soroban-env interface version 85899345920 +* stellar-xdr 20.1.0 (8b9d623ef40423a8462442b86997155f2c04d3a1) +* xdr curr (b96148cd4acc372cc9af17b909ffe4b12c43ecb6) + +The SHA256 Checksums: +* backstop - `ac3dfcdbaff35d1b6da24096e2d67486336cd33232cf73682fca3844feb36ebd` +* emitter - `0daab61baabfb15de1f1b23ea1b8ff1744169b45257c9e3fade0cf06c543d813` +* pool_factory - `c93274926c28b7aedd294c3f8eacaa1e407c469419c0055edf4dba6dac87be6b` +* pool - `2609ae9150344ac6b54852b4490493a63ac796620a3f4161912a7358229b9db7` \ No newline at end of file diff --git a/blend-contract-sdk/src/lib.rs b/blend-contract-sdk/src/lib.rs new file mode 100644 index 00000000..92a45ca5 --- /dev/null +++ b/blend-contract-sdk/src/lib.rs @@ -0,0 +1,17 @@ +#![no_std] + +pub mod backstop { + soroban_sdk::contractimport!(file = "./wasm/backstop.wasm"); +} +pub mod emitter { + soroban_sdk::contractimport!(file = "./wasm/emitter.wasm"); +} +pub mod pool_factory { + soroban_sdk::contractimport!(file = "./wasm/pool_factory.wasm"); +} +pub mod pool { + soroban_sdk::contractimport!(file = "./wasm/pool.wasm"); +} + +#[cfg(any(test, feature = "testutils"))] +pub mod testutils; diff --git a/blend-contract-sdk/src/testutils.rs b/blend-contract-sdk/src/testutils.rs new file mode 100644 index 00000000..0f999fb3 --- /dev/null +++ b/blend-contract-sdk/src/testutils.rs @@ -0,0 +1,182 @@ +use soroban_sdk::{testutils::Address as _, token::StellarAssetClient, vec, Address, Env, Map}; + +use crate::{backstop, emitter, pool, pool_factory}; + +pub mod comet { + soroban_sdk::contractimport!(file = "./wasm/comet.wasm"); +} + +pub mod comet_factory { + soroban_sdk::contractimport!(file = "./wasm/comet_factory.wasm"); +} + +/// Create a "good enough" ReserveConfig for most testing usecases +/// +/// Can be used when creating reserves for a pool. +pub fn default_reserve_config() -> pool::ReserveConfig { + pool::ReserveConfig { + decimals: 7, + c_factor: 0_7500000, + l_factor: 0_7500000, + util: 0_7500000, + max_util: 0_9500000, + r_base: 0_0100000, + r_one: 0_0500000, + r_two: 0_5000000, + r_three: 1_5000000, + reactivity: 0_0000020, // 2e-6 + index: 0, + } +} + +/// Fixture for deploying and interacting with the Blend Protocol contracts in Rust tests. +pub struct BlendFixture<'a> { + pub backstop: backstop::Client<'a>, + pub emitter: emitter::Client<'a>, + pub backstop_token: comet::Client<'a>, + pub pool_factory: pool_factory::Client<'a>, +} + +impl<'a> BlendFixture<'a> { + /// Deploy a new set of Blend Protocol contracts. Mints 200k backstop + /// tokens to the deployer that can be used in the future to create up to 4 + /// reward zone pools (50k tokens each). + /// + /// This function also resets the env budget via `reset_unlimited`. + /// + /// ### Arguments + /// * `env` - The environment to deploy the contracts in + /// * `deployer` - The address of the deployer + /// * `blnd` - The address of the BLND token + /// * `usdc` - The address of the USDC token + pub fn deploy( + env: &Env, + deployer: &Address, + blnd: &Address, + usdc: &Address, + ) -> BlendFixture<'a> { + env.budget().reset_unlimited(); + let backstop = env.register_contract_wasm(None, backstop::WASM); + let emitter = env.register_contract_wasm(None, emitter::WASM); + let comet = env.register_contract_wasm(None, comet::WASM); + let pool_factory = env.register_contract_wasm(None, pool_factory::WASM); + let blnd_client = StellarAssetClient::new(env, &blnd); + let usdc_client = StellarAssetClient::new(env, &usdc); + blnd_client + .mock_all_auths() + .mint(deployer, &(1_000_0000000 * 2001)); + usdc_client + .mock_all_auths() + .mint(deployer, &(25_0000000 * 2001)); + + let comet_client: comet::Client<'a> = comet::Client::new(env, &comet); + comet_client + .mock_all_auths() + .init(&Address::generate(env), deployer); + + comet_client.mock_all_auths().bundle_bind( + &vec![env, blnd.clone(), usdc.clone()], + &vec![env, 1_000_0000000, 25_0000000], + &vec![env, 8_0000000, 2_0000000], + ); + comet_client + .mock_all_auths() + .set_swap_fee(&30000_i128, deployer); + comet_client + .mock_all_auths() + .set_public_swap(deployer, &true); + comet_client.mock_all_auths().finalize(); + + comet_client.mock_all_auths().join_pool( + &199_900_0000000, // finalize mints 100 + &vec![env, 1_000_0000000 * 2000, 25_0000000 * 2000], + deployer, + ); + + blnd_client.mock_all_auths().set_admin(&emitter); + let emitter_client: emitter::Client<'a> = emitter::Client::new(env, &emitter); + emitter_client + .mock_all_auths() + .initialize(&blnd, &backstop, &comet); + + let backstop_client: backstop::Client<'a> = backstop::Client::new(env, &backstop); + backstop_client.mock_all_auths().initialize( + &comet, + &emitter, + &usdc, + &blnd, + &pool_factory, + &Map::new(env), + ); + + let pool_hash = env.deployer().upload_contract_wasm(pool::WASM); + + let pool_factory_client = pool_factory::Client::new(env, &pool_factory); + pool_factory_client + .mock_all_auths() + .initialize(&pool_factory::PoolInitMeta { + backstop, + blnd_id: blnd.clone(), + pool_hash, + }); + backstop_client.update_tkn_val(); + + BlendFixture { + backstop: backstop_client, + emitter: emitter_client, + backstop_token: comet_client, + pool_factory: pool_factory_client, + } + } +} + +#[cfg(test)] +mod tests { + use soroban_sdk::{ + symbol_short, + testutils::{Address as _, BytesN as _}, + Address, BytesN, Env, + }; + + use crate::{ + pool, + testutils::{default_reserve_config, BlendFixture}, + }; + + #[test] + fn test_deploy() { + let env = Env::default(); + let deployer = Address::generate(&env); + let blnd = env.register_stellar_asset_contract(deployer.clone()); + let usdc = env.register_stellar_asset_contract(deployer.clone()); + let blend = BlendFixture::deploy(&env, &deployer, &blnd, &usdc); + assert_eq!(blend.backstop_token.balance(&deployer), 200_000_0000000); + + // deploy a pool, verify adding reserves, and backstop reward zone + let token = env.register_stellar_asset_contract(deployer.clone()); + let pool = blend.pool_factory.mock_all_auths().deploy( + &deployer, + &symbol_short!("test"), + &BytesN::<32>::random(&env), + &Address::generate(&env), + &0_1000000, // 10% + &4, // 4 max positions + ); + let pool_client = pool::Client::new(&env, &pool); + let reserve_config = default_reserve_config(); + pool_client + .mock_all_auths() + .queue_set_reserve(&token, &reserve_config); + pool_client.mock_all_auths().set_reserve(&token); + + blend + .backstop + .mock_all_auths() + .deposit(&deployer, &pool, &50_000_0000000); + pool_client.mock_all_auths().set_status(&3); // remove pool from setup status + pool_client.mock_all_auths().update_status(); + + assert_eq!(pool_client.update_status(), 1); // pool is active + assert!(blend.pool_factory.is_pool(&pool)); // pool factory knows about the pool + } +} diff --git a/blend-contract-sdk/wasm/backstop.wasm b/blend-contract-sdk/wasm/backstop.wasm new file mode 100644 index 00000000..262ff663 Binary files /dev/null and b/blend-contract-sdk/wasm/backstop.wasm differ diff --git a/blend-contract-sdk/wasm/comet.wasm b/blend-contract-sdk/wasm/comet.wasm new file mode 100644 index 00000000..82118f99 Binary files /dev/null and b/blend-contract-sdk/wasm/comet.wasm differ diff --git a/blend-contract-sdk/wasm/comet_factory.wasm b/blend-contract-sdk/wasm/comet_factory.wasm new file mode 100644 index 00000000..3a73646b Binary files /dev/null and b/blend-contract-sdk/wasm/comet_factory.wasm differ diff --git a/blend-contract-sdk/wasm/emitter.wasm b/blend-contract-sdk/wasm/emitter.wasm new file mode 100644 index 00000000..e48c7b37 Binary files /dev/null and b/blend-contract-sdk/wasm/emitter.wasm differ diff --git a/blend-contract-sdk/wasm/pool.wasm b/blend-contract-sdk/wasm/pool.wasm new file mode 100644 index 00000000..2ff73c84 Binary files /dev/null and b/blend-contract-sdk/wasm/pool.wasm differ diff --git a/blend-contract-sdk/wasm/pool_factory.wasm b/blend-contract-sdk/wasm/pool_factory.wasm new file mode 100644 index 00000000..1473ca07 Binary files /dev/null and b/blend-contract-sdk/wasm/pool_factory.wasm differ diff --git a/blend-interfaces/Cargo.toml b/blend-interfaces/Cargo.toml deleted file mode 100644 index eb1abe76..00000000 --- a/blend-interfaces/Cargo.toml +++ /dev/null @@ -1,17 +0,0 @@ -[package] -name = "blend-interfaces" -version = "0.0.2" -description = "Traits, clients, and types for the Blend Protocol" -homepage = "https://github.com/blend-capital/blend-contracts" -repository = "https://github.com/blend-capital/blend-contracts" -license = "MIT" -edition = "2021" -readme = "README.md" -keywords = ["no_std", "wasm", "soroban"] - -[lib] -crate-type = ["cdylib", "rlib"] -doctest = false - -[dependencies] -soroban-sdk = { workspace = true } \ No newline at end of file diff --git a/blend-interfaces/README.md b/blend-interfaces/README.md deleted file mode 100644 index 61a5187b..00000000 --- a/blend-interfaces/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# Blend Interfaces - -This repository contains interfaces, clients, and WASM blobs for the Blend Protocol as implemented in the [Blend Contracts](https://github.com/blend-capital/blend-contracts) repository. - -## Documentation - -To learn more about the Blend Protocol, visit the the docs: -* [Blend Docs](https://docs.blend.capital/) diff --git a/blend-interfaces/src/backstop.rs b/blend-interfaces/src/backstop.rs deleted file mode 100644 index acb79e6e..00000000 --- a/blend-interfaces/src/backstop.rs +++ /dev/null @@ -1,8 +0,0 @@ -mod wasm { - soroban_sdk::contractimport!(file = "./wasm/backstop.wasm"); -} -pub use wasm::{ - BackstopDataKey, BackstopError, Client as BackstopClient, Contract as Backstop, - PoolBackstopData, PoolBalance, PoolUserKey, UserBalance, UserEmissionData, Q4W, - WASM as BackstopWASM, -}; diff --git a/blend-interfaces/src/emitter.rs b/blend-interfaces/src/emitter.rs deleted file mode 100644 index 7a76bcd9..00000000 --- a/blend-interfaces/src/emitter.rs +++ /dev/null @@ -1,6 +0,0 @@ -mod wasm { - soroban_sdk::contractimport!(file = "./wasm/emitter.wasm"); -} -pub use wasm::{ - Client as EmitterClient, Contract as Emitter, EmitterDataKey, EmitterError, WASM as EmitterWASM, -}; diff --git a/blend-interfaces/src/lib.rs b/blend-interfaces/src/lib.rs deleted file mode 100644 index f1dae0d2..00000000 --- a/blend-interfaces/src/lib.rs +++ /dev/null @@ -1,6 +0,0 @@ -#![no_std] - -pub mod backstop; -pub mod emitter; -pub mod pool; -pub mod pool_factory; diff --git a/blend-interfaces/src/pool.rs b/blend-interfaces/src/pool.rs deleted file mode 100644 index a4c61664..00000000 --- a/blend-interfaces/src/pool.rs +++ /dev/null @@ -1,9 +0,0 @@ -mod wasm { - soroban_sdk::contractimport!(file = "./wasm/pool.wasm"); -} -pub use wasm::{ - AuctionData, AuctionKey, Client as PoolClient, Contract as Pool, PoolConfig, PoolDataKey, - PoolError, Positions, Request, ReserveConfig, ReserveData, ReserveEmissionMetadata, - ReserveEmissionsConfig, ReserveEmissionsData, UserEmissionData, UserReserveKey, - WASM as PoolWASM, -}; diff --git a/blend-interfaces/src/pool_factory.rs b/blend-interfaces/src/pool_factory.rs deleted file mode 100644 index f8ffc90f..00000000 --- a/blend-interfaces/src/pool_factory.rs +++ /dev/null @@ -1,7 +0,0 @@ -mod wasm { - soroban_sdk::contractimport!(file = "./wasm/pool_factory.wasm"); -} -pub use wasm::{ - Client as PoolFactoryClient, Contract as PoolFactory, PoolFactoryDataKey, PoolFactoryError, - PoolInitMeta, WASM as PoolFactoryWASM, -}; diff --git a/blend-interfaces/wasm/backstop.wasm b/blend-interfaces/wasm/backstop.wasm deleted file mode 100644 index cf625bea..00000000 Binary files a/blend-interfaces/wasm/backstop.wasm and /dev/null differ diff --git a/blend-interfaces/wasm/emitter.wasm b/blend-interfaces/wasm/emitter.wasm deleted file mode 100644 index 02e66e7c..00000000 Binary files a/blend-interfaces/wasm/emitter.wasm and /dev/null differ diff --git a/blend-interfaces/wasm/pool.wasm b/blend-interfaces/wasm/pool.wasm deleted file mode 100644 index 09be0311..00000000 Binary files a/blend-interfaces/wasm/pool.wasm and /dev/null differ diff --git a/blend-interfaces/wasm/pool_factory.wasm b/blend-interfaces/wasm/pool_factory.wasm deleted file mode 100644 index d4295004..00000000 Binary files a/blend-interfaces/wasm/pool_factory.wasm and /dev/null differ diff --git a/comet.wasm b/comet.wasm index dd81e86b..82118f99 100644 Binary files a/comet.wasm and b/comet.wasm differ diff --git a/emitter/Cargo.toml b/emitter/Cargo.toml index 94496f55..aa384c91 100644 --- a/emitter/Cargo.toml +++ b/emitter/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "emitter" -version = "0.0.1" +version = "1.0.0" authors = ["Blend Capital "] license = "AGPL-3.0" edition = "2021" diff --git a/pool-factory/Cargo.toml b/pool-factory/Cargo.toml index 963e52fe..767245dc 100644 --- a/pool-factory/Cargo.toml +++ b/pool-factory/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pool-factory" -version = "0.0.1" +version = "1.0.0" authors = ["Blend Capital "] license = "AGPL-3.0" edition = "2021" diff --git a/pool/Cargo.toml b/pool/Cargo.toml index 799ddf65..1aa72d62 100644 --- a/pool/Cargo.toml +++ b/pool/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pool" -version = "0.0.1" +version = "1.0.0" license = "AGPL-3.0" edition = "2021" publish = false