Skip to content

Commit

Permalink
Feature/code refactoring (#64)
Browse files Browse the repository at this point in the history
* feat: refactor

* fix: fix wasm

* feat: refactor builder

* feat: implementing tx

* feat: basic tx apis

* add test for minting two tokens with same policy

* feat: add santitization at value

* fix test for minting two tokens

* wip

* add cert and reward redeemer updates

* fix: fix input to be reference

* bump csl ver

* add v3 cost models

* remove duplicated ref inputs for datum

* fix small linting

* feat: bump version

---------

Co-authored-by: twwu123 <[email protected]>
Co-authored-by: TW <[email protected]>
  • Loading branch information
3 people authored Aug 15, 2024
1 parent 5b27cbc commit 70045b6
Show file tree
Hide file tree
Showing 63 changed files with 4,190 additions and 3,815 deletions.
Binary file removed assets/logo.png
Binary file not shown.
Binary file removed assets/word_logo.png
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"rust:doc-clear": "rm -rf ./docs && mkdir docs && echo '<meta http-equiv=\"refresh\" content=\"0; url=whisky\">' > docs/index.html",
"rust:doc": "npm run rust:doc-clear && RUSTDOCFLAGS=\"--cfg docsrs\" cargo doc --workspace --manifest-path packages/Cargo.toml --no-deps && cp -r ./packages/target/doc/* ./docs",
"start-doc": "npm run rust:doc && npx http-server ./docs",
"bump-version": "./scripts/bump-version.sh"
"sh:bump-version": "./scripts/bump-version.sh"
},
"husky": {
"hooks": {
Expand Down
51 changes: 15 additions & 36 deletions packages/Cargo.lock

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

2 changes: 1 addition & 1 deletion packages/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
version = "0.6.14"
version = "0.7.0"
resolver = "2"
members = [
"sidan-csl-rs",
Expand Down
8 changes: 4 additions & 4 deletions packages/sidan-csl-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sidan-csl-rs"
version = "0.6.14"
version = "0.7.0"
edition = "2021"
license = "Apache-2.0"
description = "Wrapper around the cardano-serialization-lib for easier transaction building, heavily inspired by cardano-cli APIs"
Expand All @@ -10,7 +10,7 @@ crate-type = ["cdylib", "rlib"]

[dependencies]
getrandom = { version = "0.2", features = ["js"] }
cardano-serialization-lib = "12.0.0-beta.2"
cardano-serialization-lib = "12.0.0-beta.6"
hex = "0.4"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
Expand All @@ -23,7 +23,7 @@ schemars = "0.8.8"
# uplc = { version = "=1.0.26-alpha", default-features = false, features = ["native-secp256k1"] }
# uplc = "=1.0.26-alpha"
uplc = "0.0.29"
wasm-bindgen = { version = "=0.2.90", features = ["serde-serialize"] }
wasm-bindgen = { version = "=0.2.92", features = ["serde-serialize"] }
rand_os = "0.1"
noop_proc_macro = "0.3.0"
pallas-codec = "0.22.0"
Expand All @@ -35,7 +35,7 @@ pallas-traverse = "0.22.0"
serde-wasm-bindgen = "0.4.5"
# uplc = { version = "=1.0.26-alpha", default-features = false, features = ["native-secp256k1"] }
uplc = "0.0.29"
wasm-bindgen = { version = "=0.2.90", features = ["serde-serialize"] }
wasm-bindgen = { version = "=0.2.92", features = ["serde-serialize"] }
rand_os = { version = "0.1", features = ["wasm-bindgen"] }
js-sys = "=0.3.61"
wasm-bindgen-futures = "=0.4.34"
Expand Down
2 changes: 1 addition & 1 deletion packages/sidan-csl-rs/json-gen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ license = "MIT"
serde_json = { version = "1.0.114", features = ["arbitrary_precision"] }
schemars = "0.8.8"
#serde = { version = "1.0", features = ["derive"] }
cardano-serialization-lib = "12.0.0-beta.2"
cardano-serialization-lib = "12.0.0-beta.6"
8 changes: 4 additions & 4 deletions packages/sidan-csl-rs/json-gen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ fn main() {
gen_json_schema!(VotingProcedures);
gen_json_schema!(CommitteeHotAuth);
gen_json_schema!(CommitteeColdResign);
gen_json_schema!(DrepDeregistration);
gen_json_schema!(DrepRegistration);
gen_json_schema!(DrepUpdate);
gen_json_schema!(DRepDeregistration);
gen_json_schema!(DRepRegistration);
gen_json_schema!(DRepUpdate);
gen_json_schema!(StakeAndVoteDelegation);
gen_json_schema!(StakeRegistrationAndDelegation);
gen_json_schema!(StakeVoteRegistrationAndDelegation);
Expand All @@ -197,6 +197,6 @@ fn main() {
gen_json_schema!(TreasuryWithdrawalsAction);
gen_json_schema!(Committee);
gen_json_schema!(Constitution);
gen_json_schema!(DrepVotingThresholds);
gen_json_schema!(DRepVotingThresholds);
gen_json_schema!(PoolVotingThresholds);
}
Loading

0 comments on commit 70045b6

Please sign in to comment.