Skip to content

Commit ee7bad9

Browse files
authored
Merge pull request #1644 from opentensor/devnet
testnet deploy 5/15/2025
2 parents 9f84e14 + 9fe7c7d commit ee7bad9

File tree

11 files changed

+3026
-2505
lines changed

11 files changed

+3026
-2505
lines changed

.github/workflows/rustdocs.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Publish rustdocs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
runs-on: SubtensorCI
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
20+
- name: Install rustup
21+
uses: actions-rs/toolchain@v1
22+
with:
23+
toolchain: stable
24+
25+
- name: Generate documentation
26+
uses: actions-rs/cargo@v1
27+
with:
28+
command: doc
29+
args: --document-private-items
30+
31+
- name: Fix file permissions
32+
shell: sh
33+
run: |
34+
chmod -c -R +rX "target/doc" |
35+
while read line; do
36+
echo "::warning title=Invalid file permissions automatically fixed::$line"
37+
done
38+
- name: Generate index.html file
39+
run: |
40+
echo "<meta http-equiv=refresh content=0;url=wasm_oidc_plugin/index.html>" > target/doc/index.html
41+
- name: Upload documentation
42+
uses: actions/upload-pages-artifact@v1
43+
with:
44+
path: ./target/doc
45+
46+
deploy:
47+
needs: build
48+
runs-on: SubtensorCI
49+
50+
permissions:
51+
pages: write
52+
id-token: write
53+
environment:
54+
name: github-pages
55+
url: ${{ steps.pages.outputs.page_url }}
56+
57+
steps:
58+
- name: Deploy documentation
59+
id: pages
60+
uses: actions/deploy-pages@v2

pallets/commitments/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub mod pallet {
4747
/// Because this pallet emits events, it depends on the runtime's definition of an event.
4848
type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;
4949

50-
/// Currency type that will be used to place deposits on neurons
50+
///Currency type that will be used to reserve deposits for commitments
5151
type Currency: ReservableCurrency<Self::AccountId> + Send + Sync;
5252

5353
/// Weight information for extrinsics in this pallet.
@@ -71,11 +71,11 @@ pub mod pallet {
7171
#[pallet::constant]
7272
type FieldDeposit: Get<BalanceOf<Self>>;
7373

74-
/// Used to retreive the given subnet's tempo
74+
/// Used to retrieve the given subnet's tempo
7575
type TempoInterface: GetTempoInterface;
7676
}
7777

78-
/// Used to retreive the given subnet's tempo
78+
/// Used to retrieve the given subnet's tempo
7979
pub trait GetTempoInterface {
8080
/// Used to retreive the epoch index for the given subnet.
8181
fn get_epoch_index(netuid: u16, cur_block: u64) -> u64;
@@ -113,7 +113,7 @@ pub mod pallet {
113113
pub enum Error<T> {
114114
/// Account passed too many additional fields to their commitment
115115
TooManyFieldsInCommitmentInfo,
116-
/// Account is not allow to make commitments to the chain
116+
/// Account is not allowed to make commitments to the chain
117117
AccountNotAllowedCommit,
118118
/// Space Limit Exceeded for the current interval
119119
SpaceLimitExceeded,

0 commit comments

Comments
 (0)