Skip to content

Commit

Permalink
use example contracts from loam-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
chadoh committed Jul 13, 2024
1 parent 8d0ef87 commit 9db8433
Show file tree
Hide file tree
Showing 33 changed files with 731 additions and 1,890 deletions.
351 changes: 255 additions & 96 deletions Cargo.lock

Large diffs are not rendered by default.

15 changes: 0 additions & 15 deletions contracts/atomic_swap/Cargo.toml

This file was deleted.

77 changes: 0 additions & 77 deletions contracts/atomic_swap/src/lib.rs

This file was deleted.

112 changes: 0 additions & 112 deletions contracts/atomic_swap/src/test.rs

This file was deleted.

14 changes: 0 additions & 14 deletions contracts/auth/Cargo.toml

This file was deleted.

65 changes: 0 additions & 65 deletions contracts/auth/src/lib.rs

This file was deleted.

57 changes: 0 additions & 57 deletions contracts/auth/src/test.rs

This file was deleted.

24 changes: 24 additions & 0 deletions contracts/core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[package]
name = "example-core"
description = "Smallest Redeployable Contract"
version = "0.0.0"
authors = ["Stellar Development Foundation <[email protected]>"]
license = "Apache-2.0"
edition = "2021"
publish = false

[lib]
crate-type = ["cdylib"]
doctest = false

[dependencies]
loam-sdk = { workspace = true, features = ["loam-soroban-sdk"] }
loam-subcontract-core = { workspace = true }
loam-soroban-sdk = { workspace = true }


[dev_dependencies]
loam-sdk = { workspace = true, features = ["soroban-sdk-testutils"] }

[package.metadata.loam]
contract = true
6 changes: 6 additions & 0 deletions contracts/core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#![no_std]
use loam_sdk::derive_contract;
use loam_subcontract_core::{admin::Admin, Core};

#[derive_contract(Core(Admin))]
pub struct Contract;
15 changes: 0 additions & 15 deletions contracts/errors/Cargo.toml

This file was deleted.

Loading

0 comments on commit 9db8433

Please sign in to comment.