Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

betanet #13

Merged
merged 6,664 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
6664 commits
Select commit Hold shift + click to select a range
f64c064
build fuzzers on Big machines (#10252)
Ekleog-NEAR Nov 27, 2023
0d64bc4
test: add tests for SnapshotHostInfo broadcast behavior (#10204)
jancionear Nov 27, 2023
89f1074
allow warnings for fuzzer building (#10253)
Ekleog-NEAR Nov 28, 2023
3a33ff5
fix: use header_head to determine validators for forwarding transacti…
nikurt Nov 28, 2023
cbd52ee
drop buildkite pipeline (#10227)
Ekleog-NEAR Nov 28, 2023
984d7f9
configurable tx routing horizon (#10251)
nikurt Nov 28, 2023
c9836ab
refactor: more work removing `num_shards()` (#10255)
akhi3030 Nov 29, 2023
ed9b800
fix(config): disable epoch sync, enable state sync (#10260)
nikurt Nov 29, 2023
dd80b4c
bump openssl (#10262)
Ekleog-NEAR Nov 29, 2023
176b92f
add a Justfile for reproducing CI locally, use it for CI (#10235)
Ekleog-NEAR Nov 29, 2023
6d8a716
feat: support partial mandates in chunk validator assignment (#10241)
mooori Nov 29, 2023
fcba91c
[Snyk] Upgrade @types/react-dom from 18.2.14 to 18.2.15 (#10270)
ecp88 Nov 30, 2023
426b283
feat: use the < operator instead of cmp method to improve readability…
jancionear Nov 30, 2023
935cc98
feat: add database analyse-gas-usage command (#10240)
jancionear Nov 30, 2023
90355d4
refactor: replace all remaining uses of `num_shards()` with `shard_id…
akhi3030 Dec 1, 2023
52b3287
Update resharding.md (#10264)
wacban Dec 1, 2023
b5943dc
introduce hack for fuzzers building (#10276)
Ekleog-NEAR Dec 1, 2023
cbe8556
refactor: move runtime tests into a separate file (#10274)
pugachAG Dec 1, 2023
21851d2
[ChunkValidation] Remove the feature flag protocol_feature_chunk_vali…
robin-near Dec 1, 2023
cf2700e
Chore: Removed unused imports/exports (#10288)
DavidM-D Dec 4, 2023
1ef2364
crypto: simplify split usage [trivial] (#10285)
mina86 Dec 4, 2023
cdfd8f7
[Snyk] Upgrade @types/react from 18.2.25 to 18.2.37 (#10284)
ecp88 Dec 4, 2023
e6fd79d
[Snyk] Security upgrade react-query from 3.39.3 to 4.0.0 (#10282)
ecp88 Dec 4, 2023
b5f92e0
build(deps-dev): bump @adobe/css-tools from 4.3.1 to 4.3.2 in /tools/…
dependabot[bot] Dec 4, 2023
81b7082
Update resharding.md (#10281)
wacban Dec 4, 2023
b9ae299
fix: Document HeaderSync (#10280)
nikurt Dec 4, 2023
82544e1
fix: format tcp connection error using `Display` (#10286)
itegulov Dec 4, 2023
5ec1ae5
refactor: remove some more usage of `num_shards()` (#10291)
akhi3030 Dec 4, 2023
bc3590c
feat: limit the number of shards ids in SnapshotHostInfo (#10294)
jancionear Dec 4, 2023
71d0ea8
feat(resharding): dynamic config (#10290)
wacban Dec 4, 2023
2fcbeb7
Remove rust-version.workspace = true from published crates (#10292)
Ekleog-NEAR Dec 5, 2023
6ce6eb2
[resharding] Add pytest for checking RPC calls after resharding (#10296)
Dec 5, 2023
fbc2a21
build fuzzers on ubuntu-20.04 (#10299)
Ekleog-NEAR Dec 5, 2023
345e8e0
refactor: Rename BodySync to BlockSync for consistency (#10293)
nikurt Dec 5, 2023
a908de3
fix(resharding): fix dynamic config (#10297)
wacban Dec 5, 2023
cdceb1c
refactor: don't use `Fn` when `FnOnce` will suffice (#10301)
akhi3030 Dec 6, 2023
0886a30
enable resharding v2 (#10303)
wacban Dec 6, 2023
8985a96
Reintroduce configurable cache size for the FlatState column (#10304)
nikurt Dec 6, 2023
abf6e99
refactor: same treatment for `get_shard_uids()` as for `shard_ids()` …
akhi3030 Dec 7, 2023
27b518a
refactor(state-sync): Request sync block in client actor before start…
VanBarbascu Dec 7, 2023
fe26cd5
refactor: group runtime apply_transactions block/chunk-related argume…
pugachAG Dec 8, 2023
add3187
fix: State Sync Header Request no longer crashes a node (#10313)
nikurt Dec 11, 2023
9d0d7df
feat: add a time limit for processing transactions in produce_chunk (…
jancionear Dec 11, 2023
fd724ad
fix(resharding): fix tests (#10314)
wacban Dec 11, 2023
c59d721
feat(chunk-validator-assignment): shuffle shard ids (#10298)
mooori Dec 11, 2023
5ce0d8a
docs(resharding) - described how to dynamically update the config (#1…
wacban Dec 11, 2023
5595df6
feat: stateless validation jobs in test mode (#10248)
Longarithm Dec 12, 2023
bf49c6e
[Snyk] Upgrade @types/node from 16.18.3 to 16.18.62 (#10312)
ecp88 Dec 12, 2023
72d0a5a
test(resharding) - test for getting the shard layout info by rpc (#10…
wacban Dec 12, 2023
c814b9d
fix: remove flakiness in the test try_map_result_stops_on_error (#10318)
jancionear Dec 12, 2023
4f811e7
make crates publish-able for other branches than master (#10322)
Ekleog-NEAR Dec 12, 2023
e5d808b
Fix sync_ban.py (#10323)
VanBarbascu Dec 12, 2023
3c54099
[Snyk] Upgrade @types/react-dom from 18.2.15 to 18.2.16 (#10324)
ecp88 Dec 12, 2023
a31cf71
[Snyk] Upgrade @types/node from 16.18.62 to 16.18.63 (#10326)
ecp88 Dec 12, 2023
12ebc03
refactor: various cleanups and fixes in `chain.rs` (#10327)
akhi3030 Dec 13, 2023
7ac1df7
Remove a scary warning from GCS State Sync (#10329)
nikurt Dec 13, 2023
9ca9c0b
[Snyk] Upgrade @types/react-dom from 18.2.16 to 18.2.17 (#10332)
ecp88 Dec 13, 2023
4fce209
[Snyk] Upgrade react-router-dom from 6.19.0 to 6.20.0 (#10331)
ecp88 Dec 13, 2023
686acb3
feat(resharding): making resharding interruptible (#10328)
wacban Dec 14, 2023
2e13189
bump shared crates version to 0.18, as released on the 1.36.1 branch …
Ekleog-NEAR Dec 14, 2023
c202bfc
better wording for workflow option (#10337)
Ekleog-NEAR Dec 14, 2023
2b975fc
fix: remove potential flakiness from a snapshot_hosts test (#10317)
jancionear Dec 15, 2023
52e015c
Implement simple state witness distribution, chunk validation, and ch…
robin-near Dec 15, 2023
b8fc11a
nit: remove unnecessary `?` and `return`s in chain.rs (#10340)
akhi3030 Dec 15, 2023
f5651c4
init project
Dec 18, 2023
9561443
Merge pull request #1 from utnet-org/develop
jamesavechives Dec 18, 2023
68c190d
Wallet Contract placeholder (#10269)
staffik Dec 18, 2023
5c79685
feat: support IPv6 node address in locust loadtests (#10342)
jancionear Dec 18, 2023
6c4edb2
refactor: process two ranges of missing chunks in stateless job (#10341)
Longarithm Dec 18, 2023
83b635c
add installation.md
Dec 19, 2023
4848fe2
Merge pull request #2 from utnet-org/james
jamesavechives Dec 19, 2023
6acb19b
bump zerocopy to a non-yanked version (#10356)
Ekleog-NEAR Dec 19, 2023
07a4743
fix(configs): print out underlying deserialization errors (#10345)
marcelo-gonzalez Dec 19, 2023
82b7979
style: remove cyclic dependency between primitives & vm-runner (#10343)
nagisa Dec 19, 2023
1b26a1f
Update Installation.md
jamesavechives Dec 20, 2023
9ab2406
Create genesis.json
jamesavechives Dec 20, 2023
aa33239
Update Installation.md
jamesavechives Dec 20, 2023
4947f3a
Update Installation.md
jamesavechives Dec 20, 2023
1e01a5a
Update Installation.md
jamesavechives Dec 20, 2023
66d70d0
Update Installation.md
jamesavechives Dec 20, 2023
2656cc1
Update Installation.md
jamesavechives Dec 20, 2023
38efea2
[refactor] Refactor orphan block management related functions into a …
Dec 20, 2023
090b7a5
release crates for external users at 0.19-pre.1 for testing (#10358)
Ekleog-NEAR Dec 20, 2023
fcd5644
fix(sync): Count the number of syncs (#10263)
nikurt Dec 21, 2023
a2499b2
increase crate publisher runner’s disk space (#10360)
Ekleog-NEAR Dec 21, 2023
9423f41
fix broken links (#10359)
Ekleog-NEAR Dec 21, 2023
626b8bd
bump unsafe-libyaml (#10362)
Ekleog-NEAR Dec 21, 2023
a7c3e2b
release external crates 0.19 (#10363)
Ekleog-NEAR Dec 21, 2023
e703deb
[refactor] Move garbage collection related code into a separate file …
Dec 21, 2023
25206f8
fix build on nightly (#10364)
Ekleog-NEAR Dec 22, 2023
1382c7c
refactor: minor cleanups in `create_nodes_from_seeds()` (#10365)
akhi3030 Dec 22, 2023
4942ba2
always set cfg(fuzz) when building for fuzzers (#10367)
Ekleog-NEAR Dec 22, 2023
033b61b
Update Installation.md
jamesavechives Dec 24, 2023
38ce563
Update Installation.md
jamesavechives Dec 24, 2023
4e1ec67
Update Installation.md
jamesavechives Dec 29, 2023
4e105d7
rust: 1.75.0 (#10372)
nagisa Jan 1, 2024
ba024a2
[Snyk] Upgrade react-router-dom from 6.20.0 to 6.20.1 (#10368)
dsuggs-near Jan 1, 2024
ac4db89
configure codecov properly (#10375)
Ekleog-NEAR Jan 2, 2024
7365af4
refactor: Fix delayed receipts trie key column identifier (#10370)
pugachAG Jan 2, 2024
afa5d00
feat: Change default shard trie cache size to 500MB (#10373)
pugachAG Jan 2, 2024
6ef5e73
[Snyk] Upgrade react-router from 6.20.1 to 6.21.0 (#10383)
dsuggs-near Jan 4, 2024
37b1b0b
refactor: move ChainUpdate to a separate file (#10380)
pugachAG Jan 4, 2024
ccbb5e4
lychee: only check checked-in files (#10379)
nagisa Jan 4, 2024
02c725c
add some swap to avoid memory fragmentation (#10387)
Ekleog-NEAR Jan 5, 2024
65f4ca7
rsa sign/verify from scratch
jong-un-crypto Jan 7, 2024
16a689e
refactor: restrict ChainUpdate fields visibility (#10388)
pugachAG Jan 8, 2024
454e8c5
[Snyk] Upgrade @types/react-dom from 18.2.17 to 18.2.18 (#10391)
ecp88 Jan 8, 2024
a72ab6c
[refactor] Rename store in `Chain` to chain_store (#10392)
Jan 8, 2024
dbfa229
Add support for specifying key type in keypair generation
jong-un-crypto Jan 8, 2024
d62d7f6
refactor(resharding): renaming resharding code from "state split" to …
wacban Jan 8, 2024
aa45cec
feat(amend-genesis): allow setting the gas price (#10389)
marcelo-gonzalez Jan 8, 2024
d81ac8b
Add keypair-generator command to README.md
jong-un-crypto Jan 9, 2024
8be9a23
Add support for RSA2048 keys in Rosetta
zwong91 Jan 9, 2024
d4f7970
Update keypair-generator command in README.md
zwong91 Jan 9, 2024
c03c9eb
Handshake security fixes included in 1.36.4 (#10385)
Ekleog-NEAR Jan 9, 2024
2da06db
Update Installation.md
zwong91 Jan 9, 2024
bb4dab6
Merge branch 'near:master' into master
jong-un-crypto Jan 9, 2024
f44698b
Update Installation.md
zwong91 Jan 9, 2024
dfaec0d
refactor: rename runtime apply_transactions -> apply_chunk (#10394)
pugachAG Jan 9, 2024
7a9e795
Commented out assert for PeerMessage size limit
zwong91 Jan 9, 2024
12180b4
Add panic for RSA keys
zwong91 Jan 10, 2024
b639b4a
FIX test compilerd
zwong91 Jan 10, 2024
c5eb167
#[cfg_attr(test, derive(bolero::TypeGenerator))]
zwong91 Jan 10, 2024
9652683
Delete Installation.md
zwong91 Jan 10, 2024
3158f9d
Add RSA crypto sign/verify support
zwong91 Jan 4, 2024
c951de2
Fix: compiled error
zwong91 Jan 5, 2024
a554cc5
bump generated files · 1c9e2e8d5e - nearcore - Netsyms Technologies O…
zwong91 Jan 9, 2024
3302308
Add dependencies and modules for resharding
zwong91 Jan 10, 2024
2eda1b0
Update Installation.md
zwong91 Jan 10, 2024
0a98fbd
Issue metrics: PR read permissions (#10401)
andrei-near Jan 10, 2024
6001359
[stateless validation] Real ChunkStateWitness struct, and prototype v…
robin-near Jan 10, 2024
8b7891d
[stateless_validation] Stub code for handling chunk endorsement (#10405)
Jan 10, 2024
77c5103
[Snyk] Upgrade @types/node from 16.18.63 to 16.18.64 (#10338)
ecp88 Jan 11, 2024
84f3d28
[cleanup] Remove ReceiptOutcomeRequest from RoutedMessageBody (#10406)
Jan 11, 2024
97e72b9
fix(split-storage) - optimize copying of state (#10403)
wacban Jan 11, 2024
38afdd5
config: adjust shard cache sizes (#10409)
pugachAG Jan 12, 2024
9fc06ac
style: RFC to enable clippy::perf lints (#10378)
nagisa Jan 12, 2024
98bed05
Merge branch 'near:master' into master
jong-un-crypto Jan 12, 2024
85a2e03
Disable top-level registrar requirement
jong-un-crypto Jan 13, 2024
ed0fb30
Implement RSA2048 key registration and challenge creation
zwong91 Jan 13, 2024
ad2cb7c
validate_transaction
jong-un-crypto Jan 13, 2024
7133bfd
Add is_valid_challenge_key function and use it in verifier.rs
jong-un-crypto Jan 14, 2024
53eea20
Add RSA2048 key management functions
jong-un-crypto Jan 14, 2024
5942a57
Refactor account_id in StateChangeValue enum
jong-un-crypto Jan 14, 2024
6088760
Add RsaKeyTouched state change kind
jong-un-crypto Jan 14, 2024
92f8ce1
Refactor state change value and state change kind in types.rs and vie…
jong-un-crypto Jan 14, 2024
cbf8211
Add RsaKeyTouched state change kind
jong-un-crypto Jan 14, 2024
7078102
Fixed compiled erorrs
jong-un-crypto Jan 14, 2024
85bfcba
Add RsaKeyUpdate and RsaKeyDeletion variants to StateChangeValueView
jong-un-crypto Jan 14, 2024
4e72fb3
Add RSA2048 key parsing functions and update usage in store and runtime
zwong91 Jan 15, 2024
b949b8c
Add support for RSA2048 keys
zwong91 Jan 15, 2024
e2e4609
Update runtime configuration and parameters
zwong91 Jan 15, 2024
dfeda2d
Add error handling for missing RSA keys
zwong91 Jan 15, 2024
0a47221
create_challenge
zwong91 Jan 15, 2024
f53cc23
Remove unused import statement
zwong91 Jan 15, 2024
576ab2c
Add debug configuration for testrsa
zwong91 Jan 16, 2024
e65d050
init project - add registerRsa2048key,addRsa2048Challege
Jan 17, 2024
4ea7552
Merge branch 'master' of https://github.com/jong-un-crypto/nearcore i…
Jan 18, 2024
ed91bdc
Merge pull request #5 from utnet-org/james
jamesavechives Jan 18, 2024
013ec87
change root account name
Jan 18, 2024
76992fc
validator stake to power
Jan 23, 2024
d109243
user can set power via rsa_challenge
Jan 23, 2024
aa4e572
add validator proposal when doing rsa2048 challenge
Jan 24, 2024
8094887
Merge pull request #6 from utnet-org/james
jamesavechives Jan 24, 2024
a616e94
stake_update to power_update
Jan 25, 2024
27460a5
make stake(frozen) using receiving reward and slash
Jan 26, 2024
8510477
separate power proposals and frozen proposals, add struct ValidatorPo…
Jan 26, 2024
e7698e9
Separately dealing with power_proposals and frozen_proposals in selec…
Jan 27, 2024
3590f15
new step for separating proposals
Jan 27, 2024
aaef4fc
apply separate propasals on chunks
Jan 28, 2024
999eb3f
fix issues to unwrap non-exists frozen_proposals
Jan 28, 2024
adbf3d6
fix issue for debug_assert!(*frozen < threshold)
Jan 28, 2024
e4a24a3
make frozen_propasal in stake action
Jan 29, 2024
7ce954d
change Power from u128 to u64
Jan 29, 2024
39b2352
return back validator_selection by frozen from by power
Jan 29, 2024
bcf0801
fix issue when power is 0, the frozon_propasals not included
Jan 30, 2024
1019302
enable power_info in update_validator_accounts in runtime
Jan 31, 2024
5b70382
add dbcol::AllProviders
Jan 31, 2024
f36743c
add field random_value in block_info
Feb 1, 2024
9df0d6e
add BlockSummary to replace EpochInfo
Feb 2, 2024
2f1283b
fixed compile errors
Feb 3, 2024
4468379
fix compile errors
Feb 4, 2024
85ec135
fix finalize_block_summary runtime issue
Feb 5, 2024
3b6d56d
locate issue for epoch not advanced
Feb 6, 2024
873f0bf
found no issue if put finalize_block_summary the scope as finalize_epoch
Feb 7, 2024
7b3e6b3
put epoch info into block info, so be ready to delete epoch
Feb 7, 2024
6efb600
apply validator update from block info
Feb 8, 2024
df75d11
merge proposals before new block_info in fn add_validator_proposals
Feb 9, 2024
e632062
try to get block producer from block
Feb 19, 2024
7517587
init get_block_producer rpc
Feb 19, 2024
96e64ac
provider rpc
Feb 20, 2024
d8510a2
fix issue of Rpc provider's request parse problem
Feb 20, 2024
4df67a2
Merge pull request #8 from utnet-org/james-vrf-validators
jamesavechives Feb 20, 2024
9c93935
switch block_producer selection from sampler to vrf
Feb 21, 2024
7918ebc
apply block interval to 30 sec
Feb 21, 2024
faf3cf4
update duration config
Feb 22, 2024
0182c4b
revert block interval to 1s
Feb 22, 2024
bcaff40
recover judgment is last block in epoch logic
Feb 23, 2024
35c6d6a
change judge test
Feb 23, 2024
3ca9753
update epoch block logic
Feb 23, 2024
6d13395
change epoch block
Feb 23, 2024
e6cf920
print block height info
Feb 26, 2024
001a9a1
update is next block new epoch logic
Feb 28, 2024
d7b69f0
Merge pull request #9 from utnet-org/james-vrf-validators-old
jamesavechives Feb 28, 2024
05203b2
shard layout only 1 and zero cost storage
zwong91 Feb 29, 2024
1c903df
testnet s3 genesis.json/config.json
zwong91 Feb 29, 2024
ca41603
unc account as fundation account
zwong91 Mar 1, 2024
bc65278
near-account-id 1.0.0 syntactically valid, unique account identifier
zwong91 Mar 1, 2024
e8d6cc6
nearcore zero storage) Set storage costs to zero
zwong91 Mar 1, 2024
8289e7a
rs code const params 1 pieces
zwong91 Mar 1, 2024
568a791
merge james vrf validators
zwong91 Mar 4, 2024
49ae7fe
test cdn s3
zwong91 Mar 4, 2024
8614d65
Opt rsa decode from str bs58
zwong91 Mar 4, 2024
d2b6879
Actions crates.io
zwong91 Mar 4, 2024
23e440d
cargo workspace publish
zwong91 Mar 4, 2024
7d1eead
Res replace near
zwong91 Mar 5, 2024
9306205
unc logo
zwong91 Mar 5, 2024
de5a99f
Fixed doc link
zwong91 Mar 5, 2024
128e64c
Refactor: unc crates
zwong91 Mar 5, 2024
9c26876
unc- prefix crates
zwong91 Mar 5, 2024
fae65be
Use Uncd as node name
zwong91 Mar 5, 2024
dc10653
Free Action compute 2core
zwong91 Mar 5, 2024
564bb9a
workflow near rename
zwong91 Mar 5, 2024
72c721b
schedule rotate publish crates branch develop
zwong91 Mar 5, 2024
773409c
rename file
zwong91 Mar 6, 2024
a144c66
Fixed: typos
zwong91 Mar 7, 2024
3415bf6
fixed: Typos
zwong91 Mar 7, 2024
0a44c9c
Update project attributions and contact information
zwong91 Mar 7, 2024
a9d2748
time feat
zwong91 Mar 7, 2024
2b526db
Merge pull request #11 from utnet-org/james-epoch-in-block
jamesavechives Mar 8, 2024
0bbeb38
roll back to james-epoch-in-block
Mar 8, 2024
3805ce0
delete crates license, move license project path
zwong91 Mar 8, 2024
2b371ff
Format typos
zwong91 Mar 8, 2024
48f9281
Update author email addresses
zwong91 Mar 8, 2024
c8938c9
fix all_proposals empty automactilly
Mar 8, 2024
8fb9f22
revert to james-epoch-in-block
Mar 10, 2024
9418327
change back to last code
Mar 11, 2024
9536f4c
init rpc for miner_chips_list
Mar 11, 2024
93f68d5
Merge pull request #12 from utnet-org/develop-james-rpc
jamesavechives Mar 11, 2024
cdf732a
Fixed typos
zwong91 Mar 11, 2024
0720e5b
unused import: `NumSeats`
zwong91 Mar 11, 2024
be633e1
bump 0.2.0
zwong91 Mar 11, 2024
9fdfc7b
DateTime::from_timestamp
zwong91 Mar 11, 2024
b27c971
unused import: `NaiveDateTime`
zwong91 Mar 11, 2024
4f25804
remove use unc_primitives::views::ChipView;
zwong91 Mar 11, 2024
6f0987e
chips rpc
zwong91 Mar 11, 2024
f61dd60
bump 0.3.0
zwong91 Mar 11, 2024
406e0c3
version 0.0.0 develop
zwong91 Mar 11, 2024
a8bd0bc
defalut 0.1.0
zwong91 Mar 11, 2024
9167bce
Update README.md
zwong91 Mar 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file modified .DS_Store
Binary file not shown.
30 changes: 30 additions & 0 deletions .cargo/audit.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[advisories]
ignore = [
# DO NOT ADD ANYTHING TO THIS LIST WITHOUT CAREFUL CONSIDERATION!

# dotenv being unmaintained is ignored because it is an indirect dependency of cloud-storage, which would be hard to replace.
# In addition, it is most likely not ever going to be on a security-critical path, considering it only parses trusted .env files.
# However, we should probably replace cloud-storage with tame-gcs as soon as possible to remove this ignore.
"RUSTSEC-2021-0141",

# mach is unmaintained, but seems to be required by wasmtime at its latest version, which we currently cannot do without.
# We should replace it with mach2 in our personal code, but will need to keep it there until wasmtime switches to it.
# Anyway, it cannot be a security liability in production, considering it is bindings to the OS X kernel.
"RUSTSEC-2020-0168",

# memmap is unmaintained, but is used by wasmer0, which we need to keep alive for replayability reasons.
# We should remove wasmer0 and this ignore as soon as we get limited replayability.
"RUSTSEC-2020-0077",

# parity-wasm is deprecated, but is used by our runtimes before unc-vm, which we need to keep alive for replayability reasons.
# We should remove them all, as well as this ignore, as soon as we get limited replayability.
"RUSTSEC-2022-0061",

# borsh is vulnerable, but is used by wasmer0, which we need to keep alive for replayability reasons.
# We should remove it, as well as this ignore, as soon as we get limited replayability.
"RUSTSEC-2023-0033",

# older versions of parking-lot are vulnerable, but used by wasmer0, which we need to keep alive for replayability reasons.
# We should remove it, as well as this ignore, as soon as we get limited replayability.
"RUSTSEC-2020-0070",
]
7 changes: 7 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[build]
# We compile with `panic=abort`, so we need `-Cforce-unwind-tables=y`
# to get a useful backtrace on panic.
rustflags = ["-Cforce-unwind-tables=y"]

[target.'cfg(target_arch = "x86_64")']
rustflags = ["-Ctarget-feature=+sse4.1,+sse4.2", "-Cforce-unwind-tables=y"]
36 changes: 36 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[profile.default]
slow-timeout = { period = "60s", terminate-after = 2, grace-period = "0s" }

[[profile.default.overrides]]
filter = 'test(test_full_estimator)'
slow-timeout = { period = "10m", terminate-after = 3 }
retries = 0
threads-required = 2

[[profile.default.overrides]]
filter = 'package(style-tests)'
slow-timeout = { period = "120s", terminate-after = 5 }
retries = 0
threads-required = 4

# Unfortunately no support for inheriting profiles yet:
# https://github.com/nextest-rs/nextest/issues/387
[profile.ci]
slow-timeout = { period = "120s", terminate-after = 5 }
# Try a few times before failing the whole test suite on a potentially spurious tests.
# The hope is that people will fix the spurious tests as they encounter them locally...
retries = { backoff = "fixed", count = 3, delay = "1s" }
failure-output = "final"
fail-fast = false

[[profile.ci.overrides]]
filter = 'test(test_full_estimator)'
slow-timeout = { period = "10m", terminate-after = 3 }
retries = 0
threads-required = 2

[[profile.ci.overrides]]
filter = 'package(style-tests)'
slow-timeout = { period = "120s", terminate-after = 5 }
retries = 0
threads-required = 4
25 changes: 25 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.idea/
.vscode/

docker/
!docker/scripts/
ops/
!ops/run.sh
!ops/tendermint-config.toml

**/target
storage/
keystore/
tmp/
sandbox/

# Ignore Vim swapfiles
*.swp

# Docker files shouldn't invalidate the cache because Docker itself will use these appropriately
.dockerignore
Dockerfile
Dockerfile.nightly

# Ignore git internal structure
.git/
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/package-lock.json linguist-generated=true -diff
# Disable linguist for WebAssembly files.
# Those are used to test the runtime and should not be indexed.
*.wasm linguist-detectable=false
*.wast linguist-detectable=false
*.wat linguist-detectable=false
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

<!--
Thank you for taking the time to file an issue, we highly appreciate your contribution.

Before you go ahead, please make sure that the issue has not been reported already.
For support questions, please head over to our [Discord](http://near.chat/) or ask on [StackOverflow](https://stackoverflow.com/search?q=nearprotocol).
-->

**Describe the bug**
Please provide a short description of the bug.

**To Reproduce**
Steps to reproduce the behavior.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Version (please complete the following information):**
- utility commit/branch
- rust version (if local)
- docker (if using docker)
- mainnet/testnet/local

**Additional context**
Add any other context about the problem here.
10 changes: 10 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/copilot_generated.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
### WHAT
copilot:summary
copilot:poem

### WHY
<!-- author to complete -->

### HOW
copilot:walkthrough
15 changes: 15 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/feature_stabilization.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Feature to stabilize
Describe the protocol feature you want to stabilize in this PR, what it is about, and why do we need it without assuming prior knowledge of the feature.
Feel free to link other pull requests or issues here.

# Context

- NEP (if exists): https://github.com/near/NEPs/blob/master/neps/nep-XXXX.md
- Implementation: https://github.com/utnet-org/utility/pull/XXXX

# Testing and QA
Describe the testing plan for this protocol and why you are confident that it is ready to be stabilized.

# Checklist
- [ ] Link to nightly nayduck run (`./scripts/nayduck.py`, [docs](https://github.com/utnet-org/utility/blob/master/nightly/README.md#scheduling-a-run)): https://nayduck.near.org/
- [ ] Update CHANGELOG.md to include this protocol feature in the `Unreleased` section.
8 changes: 8 additions & 0 deletions .github/weekly-digest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Configuration for weekly-digest - https://github.com/apps/weekly-digest
publishDay: 5
canPublishIssues: true
canPublishPullRequests: true
canPublishContributors: true
canPublishStargazers: true
canPublishCommits: false

45 changes: 45 additions & 0 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Book

on:
push:
branches:
- master
pull_request:
paths:
- 'docs/**'
- '.github/workflows/book.yml'

jobs:
book:
name: Book
runs-on: ubuntu-latest
env:
MDBOOK_VERSION: '0.4.21'
steps:
- uses: actions/checkout@v2
- name: Install mdbook
run: |
curl -L https://github.com/rust-lang/mdBook/releases/download/v$MDBOOK_VERSION/mdbook-v$MDBOOK_VERSION-x86_64-unknown-linux-gnu.tar.gz | tar xz -C ~/.cargo/bin
- name: Build
run: mdbook build
working-directory: docs
- uses: actions/upload-artifact@v2
with:
name: book
path: target/book

deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
contents: write
needs: book
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- uses: actions/download-artifact@v2
with:
name: book
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
Loading
Loading