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

Remove protos, replace with custom byte serialization #1170

Merged
merged 27 commits into from
Aug 16, 2019
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
8c136b1
Step 1. Remove protos.
ilblackdragon Aug 14, 2019
70cb07a
Step 2. View for Account and AccessKey instead of special encoding on…
ilblackdragon Aug 14, 2019
0057213
Step 3. Public/SecretKey/Signature moved into views as well. Tests in…
ilblackdragon Aug 14, 2019
46aea73
Step 4. CryptoHash View
ilblackdragon Aug 14, 2019
43ba760
Adding Readable/Writable for custom deserialization
ilblackdragon Aug 14, 2019
f98b963
Step 5. Finish BlockHeader -> BlockHeaderInner. Fixups for View usage…
ilblackdragon Aug 15, 2019
604cdc0
NBOR
Aug 15, 2019
58cc5d2
NBOR
Aug 15, 2019
9cc8e29
Adding change checker for Transaction
ilblackdragon Aug 15, 2019
d3edf9e
Merge remote-tracking branch 'origin/binary_serializer' into remove-p…
ilblackdragon Aug 15, 2019
cb640c6
Switch to using NBOR instead of serde. Compiles
ilblackdragon Aug 15, 2019
1ab2215
Fix issue with unnamed fields in enums in NBOR
ilblackdragon Aug 15, 2019
a2ebf54
Clean up, making tests pass
ilblackdragon Aug 15, 2019
c0e7ea3
Fix usize suffix warning
Aug 15, 2019
a78a246
Use u8 instead of u32 for enum variants
Aug 15, 2019
8c155a1
Add transaction view for RPC and a bit of KeyFile changes to make ser…
ilblackdragon Aug 15, 2019
6320ad9
Remove #update-as from dependencies (#1168)
vgrichina Aug 14, 2019
4eb45d4
Remove #nightshade from near-shell dependency (#1169)
vgrichina Aug 14, 2019
bfd3239
Merge remote-tracking branch 'origin/staging' into remove-protos-fix-…
ilblackdragon Aug 16, 2019
9cb1f07
AccessKey changes are done
ilblackdragon Aug 16, 2019
9a5ca9c
Replace drain with into_iter
ilblackdragon Aug 16, 2019
554d4bb
Rename to_vec/from_slice -> try_to_vec/try_from_slice
ilblackdragon Aug 16, 2019
9b0224c
Fix comments
ilblackdragon Aug 16, 2019
ae720a5
Add verification for CryptoHash
ilblackdragon Aug 16, 2019
e982ef1
Switch to external repo borsh
ilblackdragon Aug 16, 2019
ca75b51
Remove nbor
ilblackdragon Aug 16, 2019
7941aef
Replace the rest of nbor usage
ilblackdragon Aug 16, 2019
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
119 changes: 43 additions & 76 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ edition = "2018"
[workspace]
members = [
"async-utils/",
"protos/builder",
"core/nbor",
"core/nbor-derive",
"core/primitives",
"core/store",
"runtime/runtime",
Expand Down Expand Up @@ -38,7 +39,6 @@ serde_json = "1.0.0"
reqwest = "0.9"
futures = "0.1.25"

near-protos = { path = "./core/protos" }
near-primitives = { path = "./core/primitives" }
near-store = { path = "./core/store" }

Expand Down
3 changes: 1 addition & 2 deletions chain/chain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ log = "0.4"
failure = "0.1"
failure_derive = "0.1"
kvdb = "0.1"
protobuf = { version = "2.7", features = ["with-bytes"] }
serde = "1.0"
serde_derive = "1.0"
cached = { git = "https://github.com/nearprotocol/cached", rev = "7e472eddef68607e344d5a106a0e6705d92e55be" }

nbor = { path = "../../core/nbor" }
near-primitives = { path = "../../core/primitives" }
near-protos = { path = "../../core/protos" }
near-store = { path = "../../core/store" }
Loading