Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(wallet integration): pop up contract #365

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
25e8df1
feat(wallet-integration): server and API (#362)
peterwht Dec 9, 2024
b5fa054
feat(up-contract): get call data for upload-only and pass to wallet i…
peterwht Dec 6, 2024
4cd63cd
feat(up-contract): get call data for instantiate and pass to wallet i…
peterwht Dec 6, 2024
bfbbd0f
feat(up-contract): run server and pass call_data for signing -- PoC
peterwht Dec 7, 2024
8b1c8bf
feat(up-contract): submit signed payload to node
peterwht Dec 7, 2024
b709778
fix(up-contract): update to FrontendFromDir type
peterwht Dec 8, 2024
d3c3b12
refactor(pop-up): create functions for wallet integration, plus gener…
peterwht Dec 9, 2024
e82d018
chore: use git branch for cargo contract
peterwht Dec 9, 2024
ddbc759
feat(pop-up-contract): better error handling and prompt displays
peterwht Dec 9, 2024
604cecd
chore(up-contract): outdated field name and clippy allow
peterwht Dec 9, 2024
26b8f47
feat(up-contract): handle subxt events better, various improvements
peterwht Dec 11, 2024
1f95acb
feat(up-contract): custom errors in contracts crate
peterwht Dec 11, 2024
2a09b0a
fix: minor fixes after rebase
peterwht Dec 13, 2024
81ed681
fix(up-contract): test compilation after rebase
peterwht Dec 13, 2024
4c1431b
feat(up-contract): suri and use-wallet can't be used together
peterwht Dec 13, 2024
47ececb
refactor: wait for finalization
peterwht Dec 15, 2024
40c7ce6
feat(up-contract): serve HTML from string, fix deployment message on …
peterwht Dec 15, 2024
b56d46a
docs: add function comments
peterwht Dec 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions Cargo.lock

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

10 changes: 7 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,15 @@ subxt = "0.38.0"
ink_env = "5.0.0"
sp-core = "32.0.0"
sp-weights = "31.0.0"
contract-build = "5.0.0"
contract-extrinsics = "5.0.0"
contract-transcode = "5.0.0"
scale-info = { version = "2.11.4", default-features = false, features = ["derive"] }
scale-value = { version = "0.17.0", default-features = false, features = ["from-string", "parser-ss58"] }
# TODO: git deps
#contract-build = "5.0.0-alpha"
contract-build = { git = "https://github.com/use-ink/cargo-contract", branch = "peter/chore-make-types-pub" }
#contract-extrinsics = "5.0.0-alpha"
contract-extrinsics = { git = "https://github.com/use-ink/cargo-contract", branch = "peter/chore-make-types-pub" }
#contract-transcode = "5.0.0"
contract-transcode = { git = "https://github.com/use-ink/cargo-contract", branch = "peter/chore-make-types-pub" }
heck = "0.5.0"
hex = { version = "0.4.3", default-features = false }

Expand Down
4 changes: 3 additions & 1 deletion crates/pop-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ pop-common = { path = "../pop-common", version = "0.5.0" }

# wallet-integration
axum.workspace = true
tower-http = { workspace = true, features = ["fs"] }
tower-http = { workspace = true, features = ["fs", "cors"] }

[dev-dependencies]
assert_cmd.workspace = true
predicates.workspace = true
subxt.workspace = true
subxt-signer.workspace = true

[features]
default = ["contract", "parachain", "telemetry"]
Expand Down
134 changes: 134 additions & 0 deletions crates/pop-cli/src/assets/index.html

Large diffs are not rendered by default.

Loading
Loading