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(Radon): Enhance handling of hex-string, integers and binary buffers #2413

Open
wants to merge 25 commits into
base: 2.0-base
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5bbea50
feat: implement HttpHead as new RADType
guidiaz Oct 10, 2023
3fdf8f9
chore: cargo fmt --all
guidiaz Oct 10, 2023
721347a
feat: handle repeated headers within http/head response
guidiaz Oct 11, 2023
ef30733
test: run valid http head retrieval
guidiaz Oct 11, 2023
a665397
test: try http-head data request w/ invalid request header
guidiaz Oct 11, 2023
198e5b8
chore: bump package versions
guidiaz Oct 11, 2023
9bae448
chore: cargo fmt --all
guidiaz Oct 11, 2023
af5ff86
chore: solve clippy warnings
guidiaz Oct 11, 2023
ac57ded
fix: use http::Response::headers(&self) to transform response to HTTP…
guidiaz Oct 11, 2023
5e073f9
chore: attend pr review comments
guidiaz Oct 20, 2023
6c4d1ac
feat(rad): add support to binary sources
guidiaz Oct 20, 2023
0cfd81d
chore(rad): refactor existing tests
guidiaz Oct 20, 2023
68c7648
chore: attend pr review comments
guidiaz Oct 26, 2023
184f768
chore: cargo clippy --fix
guidiaz Oct 26, 2023
cd4641c
feat(rad): add new RadonErrors::BufferIsNotValue
guidiaz Oct 26, 2023
f1314a4
fix(rad): http-head response headers can contain 'accept-ranges'
guidiaz Nov 14, 2023
1f2402b
feat(rad): implement StringReplace
guidiaz Nov 14, 2023
533c103
feat(rad): implement StringSlice
guidiaz Nov 14, 2023
b3322b1
feat(rad): implement StringSplit
guidiaz Nov 14, 2023
88c8674
feat(rad): first approach to ArrayJoin
guidiaz Nov 14, 2023
0ab36ce
chore(rad): rename asX <-> toX depending on whether conversion may fail
guidiaz Dec 13, 2023
1c7a4a2
feat(rad): implement RadonOpCodes::BytesAsInteger
guidiaz Dec 13, 2023
ae50ed8
feat(rad): support multiple encoding schemas on RadonOpCodes::BytesSt…
guidiaz Dec 13, 2023
888ef3b
feat(rad): implement RadonOpCodes::IntegerToBytes
guidiaz Dec 13, 2023
179503c
feat(rad): implement RadonOpCodes::StringAsBytes
guidiaz Dec 13, 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
Prev Previous commit
Next Next commit
chore: attend pr review comments
  • Loading branch information
guidiaz committed Oct 20, 2023
commit 5e073f9ac26d577bc5cdbe4f619039f1f280ef6a
12 changes: 6 additions & 6 deletions 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 Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "witnet"
version = "1.7.0"
version = "2.0.0"
authors = ["Witnet Foundation <info@witnet.foundation>"]
publish = false
repository = "witnet/witnet-rust"
Expand Down
2 changes: 1 addition & 1 deletion bridges/centralized-ethereum/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "witnet-centralized-ethereum-bridge"
version = "1.7.0"
version = "2.0.0"
authors = ["Witnet Foundation <info@witnet.foundation>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion data_structures/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ authors = ["Witnet Foundation <info@witnet.foundation>"]
description = "data structures component"
edition = "2021"
name = "witnet_data_structures"
version = "1.7.0"
version = "2.0.0"
workspace = ".."

[features]
Expand Down
2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "witnet_node"
version = "1.7.0"
version = "2.0.0"
authors = ["Witnet Foundation <info@witnet.foundation>"]
workspace = ".."
description = "node component"
Expand Down
3 changes: 1 addition & 2 deletions rad/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -851,11 +851,10 @@ mod tests {
]),
]);
let packed_script_r = serde_cbor::to_vec(&script_r).unwrap();
println!("{:?}", packed_script_r);

let retrieve = RADRetrieve {
kind: RADType::HttpHead,
url: "https://witnet.io/_nuxt/img/dragon_reading.a37f8cb.png".to_string(),
url: "https://en.wikipedia.org/static/images/icons/wikipedia.png".to_string(),
script: packed_script_r,
body: vec![],
headers: vec![],
Expand Down
2 changes: 1 addition & 1 deletion toolkit/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "witnet_toolkit"
version = "1.7.0"
version = "2.0.0"
authors = ["Adán SDPC <adan.sdpc@gmail.com>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion wallet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = ["Witnet Foundation <info@witnet.foundation>"]
edition = "2021"
name = "witnet_wallet"
version = "1.7.0"
version = "2.0.0"
workspace = ".."

[dependencies]
Expand Down