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

Implement Cargo Stylus Developer Tool #93

Closed
wants to merge 65 commits into from
Closed
Show file tree
Hide file tree
Changes from 47 commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
634de02
add in cargo stylus
rauljordan Jul 21, 2023
77694af
add in first pass
rauljordan Jul 21, 2023
59066bc
add in compile
rauljordan Jul 21, 2023
47bc797
begin deploy
rauljordan Jul 21, 2023
9b4f969
better cli
rauljordan Jul 21, 2023
31699e3
support local wallet from keystore or privkey
rauljordan Jul 21, 2023
1dc0223
contracti nit code
rauljordan Jul 21, 2023
405f468
submit deployment tx
rauljordan Jul 21, 2023
d9c0c45
add in consts
rauljordan Jul 22, 2023
cea4d90
add in deployment
rauljordan Jul 23, 2023
e9285dc
do compile
rauljordan Jul 23, 2023
210226d
compile tx working
rauljordan Jul 23, 2023
3269fe0
fmt include multicall addr submit
rauljordan Jul 24, 2023
9e1f319
fmt include multicall addr submit
rauljordan Jul 24, 2023
bbea06a
args for multicall append
rauljordan Jul 24, 2023
6776f30
split up mods
rauljordan Jul 25, 2023
0f777b4
nicer code
rauljordan Jul 25, 2023
c6acc62
include the atomic multicall items
rauljordan Jul 25, 2023
a37e522
wrap up
rauljordan Jul 26, 2023
5f17794
confirmed tx
rauljordan Jul 26, 2023
bc5796b
revert
rauljordan Jul 26, 2023
025d5ba
rem file
rauljordan Jul 26, 2023
530c89a
comments
rauljordan Jul 26, 2023
9c54122
Merge branch 'stylus' into cargo-stylus
rauljordan Jul 26, 2023
eaee5be
Merge branch 'stylus' into cargo-stylus
rauljordan Aug 4, 2023
70a4320
add in custom wasm file param
rauljordan Aug 4, 2023
9fcde5e
update
rauljordan Aug 4, 2023
3ebcacd
optional wasm file path
rauljordan Aug 8, 2023
5d3735d
add in test
rauljordan Aug 8, 2023
a7d697f
Merge branch 'stylus' into cargo-stylus
rauljordan Aug 8, 2023
720e4a6
ffix up
rauljordan Aug 8, 2023
1496461
fix up cargo stylus command
rauljordan Aug 8, 2023
8d57bf6
add in test
rauljordan Aug 8, 2023
bb2297e
revert
rauljordan Aug 8, 2023
8cd16bf
fix build
rauljordan Aug 8, 2023
e1b6831
commentary
rauljordan Aug 8, 2023
72c8dd6
rev arbos
rauljordan Aug 8, 2023
5a07bda
comment
rauljordan Aug 8, 2023
7873fa1
Merge branch 'stylus' into cargo-stylus
rauljordan Aug 16, 2023
8678aca
update header
rauljordan Aug 16, 2023
4d1f048
Comments and fixes
rauljordan Aug 19, 2023
5b78279
Merge branch 'stylus' into cargo-stylus
rauljordan Aug 19, 2023
ebc92f4
cargo-stylus: small fixes
tsahee Aug 22, 2023
05465f7
buf reader for reading privkey
rauljordan Aug 22, 2023
20d7eaa
res
rauljordan Aug 22, 2023
0585fd0
address usage issues
rauljordan Aug 22, 2023
3feba74
test fix
rauljordan Aug 22, 2023
6aa8089
fix up cargo stylus subcommand usage
rauljordan Aug 23, 2023
14fff7c
rename to activate
rauljordan Aug 23, 2023
0e9c97d
Merge branch 'stylus' into cargo-stylus
rauljordan Aug 23, 2023
ac27ee3
update method hash
rauljordan Aug 23, 2023
f100759
Atomic Check Deploy/Compile Multicall
rauljordan Aug 23, 2023
01d8894
check can activate using state override
rauljordan Aug 23, 2023
3680938
abstract wallet code
rauljordan Aug 23, 2023
8a54368
fix up check
rauljordan Aug 23, 2023
5a69f16
working
rauljordan Aug 24, 2023
2a4f0c5
red
rauljordan Aug 24, 2023
589e83f
rev program test
rauljordan Aug 24, 2023
e68f32f
err format
rauljordan Aug 24, 2023
4a90853
err
rauljordan Aug 24, 2023
6a39767
fix esc
rauljordan Aug 24, 2023
24cf245
grey color
rauljordan Aug 24, 2023
a34a71b
rem from workspace
rauljordan Aug 24, 2023
16ef120
last updates
rauljordan Aug 24, 2023
6e4feff
rev
rauljordan Aug 24, 2023
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
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ COPY arbitrator/prover arbitrator/prover
COPY arbitrator/wasm-libraries arbitrator/wasm-libraries
COPY arbitrator/tools/wasmer arbitrator/tools/wasmer
COPY arbitrator/arbutil arbitrator/arbutil
COPY arbitrator/cargo-stylus arbitrator/cargo-stylus
COPY --from=brotli-wasm-export / target/
RUN . ~/.cargo/env && NITRO_BUILD_IGNORE_TIMESTAMPS=1 RUSTFLAGS='-C symbol-mangling-version=v0' make build-wasm-libs

Expand Down Expand Up @@ -96,6 +97,7 @@ COPY arbitrator/wasm-libraries arbitrator/wasm-libraries
COPY arbitrator/jit arbitrator/jit
COPY arbitrator/stylus arbitrator/stylus
COPY arbitrator/tools/wasmer arbitrator/tools/wasmer
COPY arbitrator/cargo-stylus arbitrator/cargo-stylus
RUN NITRO_BUILD_IGNORE_TIMESTAMPS=1 make build-prover-header

FROM scratch as prover-header-export
Expand All @@ -116,6 +118,7 @@ COPY arbitrator/prover/Cargo.toml arbitrator/prover/
COPY arbitrator/jit/Cargo.toml arbitrator/jit/
COPY arbitrator/stylus/Cargo.toml arbitrator/stylus/
COPY arbitrator/tools/wasmer arbitrator/tools/wasmer
COPY arbitrator/cargo-stylus arbitrator/cargo-stylus
RUN mkdir arbitrator/prover/src arbitrator/jit/src arbitrator/stylus/src && \
echo "fn test() {}" > arbitrator/jit/src/lib.rs && \
echo "fn test() {}" > arbitrator/prover/src/lib.rs && \
Expand All @@ -127,6 +130,7 @@ COPY arbitrator/prover arbitrator/prover
COPY arbitrator/wasm-libraries arbitrator/wasm-libraries
COPY arbitrator/jit arbitrator/jit
COPY arbitrator/stylus arbitrator/stylus
COPY arbitrator/cargo-stylus arbitrator/cargo-stylus
COPY --from=brotli-library-export / target/
RUN touch -a -m arbitrator/prover/src/lib.rs
RUN NITRO_BUILD_IGNORE_TIMESTAMPS=1 make build-prover-lib
Expand Down
Loading
Loading