-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #77 from AbstractSDK/buckram/standalone-template
0.23 abstract + standalone template
- Loading branch information
Showing
34 changed files
with
747 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
[template] | ||
ignore = [".github", "artifacts", "target"] | ||
exclude = ["justfile"] | ||
|
||
[hooks] | ||
post = ["post-script.rhai"] | ||
|
||
[placeholders] | ||
include_app = { prompt = "Include App Module", default = true, type = "bool" } | ||
include_adapter = { prompt = "Include Adapter Module", default = true, type = "bool" } | ||
include_standalone = { prompt = "Include Standalone Module", default = true, type = "bool" } | ||
|
||
[conditional.'include_app'.placeholders] | ||
app_name = { prompt = "Enter App Name", default = "my_app", type = "string" } | ||
|
||
[conditional.'include_adapter'.placeholders] | ||
adapter_name = { prompt = "Enter Adapter Name", default = "my_adapter", type = "string" } | ||
|
||
[conditional.'include_standalone'.placeholders] | ||
standalone_name = { prompt = "Enter Standalone Name", default = "my_standalone", type = "string" } | ||
|
||
# Ignore files if not included | ||
[conditional.'!include_app'] | ||
ignore = ["contracts/{{app_name}}"] | ||
[conditional.'!include_adapter'] | ||
ignore = ["contracts/{{adapter_name}}"] | ||
[conditional.'!include_standalone'] | ||
ignore = ["contracts/{{standalone_name}}"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
[package] | ||
name = "{{standalone_name | kebab_case}}" | ||
version = "0.0.1" | ||
authors = [] | ||
edition = "2021" | ||
homepage = "" | ||
documentation = "" | ||
repository = "" | ||
license = "GPL-3.0-or-later" | ||
keywords = ["cosmos", "cosmwasm", "abstractsdk"] | ||
resolver = "2" | ||
|
||
exclude = ["contract.wasm", "hash.txt"] | ||
|
||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
|
||
[[bin]] | ||
name = "schema" | ||
required-features = ["schema"] | ||
|
||
[[bin]] | ||
name = "publish" | ||
required-features = ["daemon-bin"] | ||
|
||
[[bin]] | ||
name = "local_daemon" | ||
required-features = ["daemon-bin"] | ||
|
||
[features] | ||
default = ["export"] | ||
export = [] | ||
daemon-bin = [ | ||
"cw-orch/daemon", | ||
"dep:clap", | ||
"dep:abstract-client", | ||
"dep:dotenv", | ||
"dep:env_logger", | ||
] | ||
schema = [] | ||
|
||
[dependencies] | ||
cosmwasm-std = { workspace = true } | ||
cosmwasm-schema = { workspace = true } | ||
cw-controllers = { workspace = true } | ||
cw-storage-plus = { workspace = true } | ||
thiserror = { workspace = true } | ||
schemars = { workspace = true } | ||
cw-asset = { workspace = true } | ||
abstract-standalone = { workspace = true } | ||
const_format = { version = "0.2.32" } | ||
|
||
# Dependencies for interface | ||
cw-orch = { workspace = true } | ||
abstract-interface = { workspace = true } | ||
|
||
# Dependencies for bins | ||
clap = { workspace = true, optional = true, features = ["derive"] } | ||
abstract-client = { workspace = true, optional = true } | ||
dotenv = { workspace = true, optional = true } | ||
env_logger = { workspace = true, optional = true } | ||
|
||
[dev-dependencies] | ||
{{standalone_name | kebab_case}} = { path = "." } | ||
abstract-client = { workspace = true } | ||
abstract-standalone = { workspace = true, features = ["test-utils"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"name": "{{standalone_name | upper_camel_case}}", | ||
"description": "Standalone description.", | ||
"website": "", | ||
"docs": "", | ||
"type": "standalone", | ||
"icon": "GiTrade", | ||
"enabled": true | ||
} |
Oops, something went wrong.