Skip to content

Commit

Permalink
feat: ContractRegistry -> Wasmregistry + DeployedContractRegistry
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal committed May 2, 2023
1 parent e864db0 commit e0e7007
Show file tree
Hide file tree
Showing 23 changed files with 416 additions and 407 deletions.
145 changes: 118 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ lto = true

[workspace.dependencies]
# loam-sdk = { path = "../../loam/crates/loam" }
# loam-sdk-core-riffs = { path = "../../loam/crates/loam-core" }
loam-sdk = { git = "https://github.com/loambuild/loam-sdk", tag = "v0.1.0" }
loam-sdk-core-riffs = { git = "https://github.com/loambuild/loam-sdk", tag = "v0.1.0" }
# loam-sdk-core-riff = { path = "../../loam/crates/loam-core" }
loam-sdk = { git = "https://github.com/loambuild/loam-sdk", tag = "v0.3.0" }
loam-sdk-core-riff = { git = "https://github.com/loambuild/loam-sdk", tag = "v0.3.0" }
19 changes: 0 additions & 19 deletions Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion contract_id.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f0979039df1471f9f7ecc0b55bbc49f57f26e7035fd42fba97d23ad024df4df4
20b21b010268bdec6395e2b9f0db93a587e80a6207421c7f3d86f91718790e05
19 changes: 0 additions & 19 deletions crates/base/Cargo.toml

This file was deleted.

23 changes: 0 additions & 23 deletions crates/base/src/gen.rs

This file was deleted.

13 changes: 0 additions & 13 deletions crates/base/src/lib.rs

This file was deleted.

2 changes: 1 addition & 1 deletion crates/smartdeploy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ doctest = false

[dependencies]
loam-sdk = { workspace = true }
loam-sdk-core-riffs = { workspace = true }
loam-sdk-core-riff = { workspace = true }

[dev_dependencies]
loam-sdk = { workspace = true, features = ["soroban-sdk-testutils"] }
14 changes: 10 additions & 4 deletions crates/smartdeploy/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ use loam_sdk::soroban_sdk::{self, contracterror};
#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord)]
#[repr(u32)]
pub enum Error {
/// No such Contract has been registered
NoSuchContract = 1,
/// No such Contract has been published
NoSuchContractPublished = 1,
/// No such version of the contact has been published
NoSuchVersion = 2,
/// Contract already registered
AlreadyRegistered = 3,
/// Contract already published
AlreadyPublished = 3,

/// No such contract deployed
NoSuchContractDeployed = 4,

/// Contract already deployed
AlreadyDeployed = 5,
}
9 changes: 0 additions & 9 deletions crates/smartdeploy/src/fetch.rs

This file was deleted.

Loading

0 comments on commit e0e7007

Please sign in to comment.