.env
.github
    workflows
        tests.yml
README.md
account-management
    near-account.ts
nft-minting
    integration-tests
        rs
            Cargo.toml
            src
                helpers.rs
                tests.rs
        ts
            package.json
            src
                main.ava.ts
                utils.ts
    market-contract
        Cargo.toml
        README.md
        build.sh
        src
            external.rs
            internal.rs
            lib.rs
            nft_callbacks.rs
            sale.rs
            sale_views.rs
            tests.rs
    nft-contract
        Cargo.toml
        README.md
        build.sh
        src
            approval.rs
            enumeration.rs
            events.rs
            internal.rs
            lib.rs
            metadata.rs
            mint.rs
            nft_core.rs
            royalty.rs
            tests.rs
    nft-series
        Cargo.toml
        README.md
        build.sh
        src
            approval.rs
            enumeration.rs
            events.rs
            internal.rs
            lib.rs
            metadata.rs
            nft_core.rs
            owner.rs
            royalty.rs
            series.rs
package.json
tsconfig.json

# Near account management and smart contracts

This repository is dedicated to:
- Account/sub-account management for Grindery on Near.
- Smart contracts on Near.

# Build a folder (a smart contract)

```bash
contract=contract_name npm run build

```
# Create a new Grindery sub-account

```bash
network=id accountname=name npm run new-account
```

With:
-  `network` denoting either  `testnet` or `mainnet`.
- `accountname` is the prefix to be given to the sub-account.

## Example of a sub-account name
### Principal account
```bash
grindery.testnet
```
### Sub-account account
```bash
example.grindery.testnet
```
### accountname
```bash
example
```
# TBD
# TBD
# TBD
