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

Post audit #4

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
81 changes: 20 additions & 61 deletions Cargo.lock

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

7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ panic = "abort"
overflow-checks = true

[dependencies]
near-sdk = "5.5.0"
near-contract-standards = "5.5.0"
hex = "0.4"
near-sdk = "5.6.0"
near-contract-standards = "5.6.0"
borsh = "1.5.3"
hex = "0.4.3"
29 changes: 7 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ You might also want to completely remove the `Cargo.lock` file.

Build the code with:
```
anchor build
./scripts/build.sh
```

### Create NEAR accounts
Documentation (subject to change): https://docs.near.org/concepts/protocol/account-id
### Manage NEAR accounts
Create / delete accounts, transfer funds and deploy contracts on testnet:
```bash
./scripts/setup_contract_account_testnet.sh
```

Current version:
```bash
Expand All @@ -53,27 +56,9 @@ Testing with debug:
NEAR_WORKSPACES_DEBUG=true npx ava test/ServiceRegistry.ts
```

### Localnet
The local validator in this case is the project `near-sandbox`
https://github.com/near/near-sandbox
RPC: http://0.0.0.0:3030

Install sandbox:
```bash
npm i -g near-sandbox
```

Init sandbox:
```bash
# home of sandbox must be outside of repo, in /tmp
near-sandbox --home /tmp/near-sandbox init
# in another shell-windows
near-sandbox --home /tmp/near-sandbox run
```

Deploy the contract in the testnet:
```bash
near deploy contract_000.sub_olas.olas_000.testnet target/wasm32-unknown-unknown/release/registries_near.wasm --initFunction new_default_meta --initArgs '{"owner_id":"sub_olas.olas_000.testnet", "multisig_factory": "multisignature2.testnet"}' --networkId testnet
near deploy contract_000.sub_olas.olas_000.testnet target/wasm32-unknown-unknown/release/registries_near.wasm --initFunction new --initArgs '{"multisig_factory": "multisignature2.testnet", "metadata": {"spec": "nft-1.0.0", "name": "Service Registry NFT", "symbol": "SR", "icon": "data:image", base_uri: "https://gateway.autonolas.tech/ipfs/"}}' --networkId testnet
```

### Testnet
Expand Down
5 changes: 5 additions & 0 deletions audits/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Audits
This section contains audit-related materials.

### Internal audit
The latest internal audit is located in this folder: [internal audit](https://github.com/valory-xyz/registries-near/blob/main/audits/internal).
Loading