MCPcopy Index your code
hub / github.com/AssetMantle/node

github.com/AssetMantle/node @v1.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.1 ↗ · + Follow
132 symbols 738 edges 38 files 5 documented · 4%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Node

GitHub Workflow Status Go Report Card License: Apache-2.0 Lines Of Code Version

Application implementing the minimum clique of AssetMantle modules enabling interNFT definition, issuance, ownership transfer and decentralized exchange.

Hardware Requirements

  • Minimal
  • 2vCPU
  • 4GB RAM
  • 200GB SSD
  • Recommended
  • 4vCPU
  • 8GB RAM
  • 500GB SSD

NOTE: SSDs have limited TBW before non-catastrophic data errors. Running a full node requires a TB+ writes per day, causing rapid deterioration of SSDs over HDDs of comparable quality.

Operating System

  • Linux/MacOS(x86)
  • Recommended
  • Linux(x86_64)

Installation Steps

Prerequisite: go1.18+ required. ref Prerequisite: git. ref Optional requirement: GNU make. ref

  • Clone git repository
git clone https://github.com/AssetMantle/node.git
git checkout [vX.X.X]
cd assetMantle
make all

Generate keys

mantleNode keys add [key_name]

or

mantleNode keys add [key_name] --recover to regenerate keys with your BIP39 mnemonic

Connect to a chain and start node

  • Install mantleNode application
  • Initialize node
mantleNode init [NODE_NAME]
  • Replace ${HOME}/.mantleNode/config/genesis.json with the genesis file of the chain.
  • Add persistent_peers or seeds in ${HOME}/.mantleNode/config/config.toml
  • Start node
mantleNode start

Initialize a new chain and start node

  • Initialize: mantleNode init [node_name] --chain-id [chain_name]
  • Add key for genesis account mantleNode keys add [genesis_key_name]
  • Add genesis account mantleNode add-genesis-account [genesis_key_name] 10000000000000000000stake
  • Create a validator at genesis mantleNode gentx --name [genesis_key_name] --amount 10000000stake
  • Collect genesis transactions mantleNode collect-gentxs
  • Start node mantleNode start
  • To start api server open 1317 port form app.toml

Containeirzed environment

Make sure you have latest docker version, Docker for mac can be slow. Recommend using linux

Start node and client

# port 26657 and 1317 are exposed
make docker-compose

clean

make docker-clean

Contributing

If you want to contribute to AssetMantle Modules, please read the instructions in CONTRIBUTING.md.

Discord Twitter Reddit YouTube

    <h3 style="margin:-5px 10px 5px;">Contributors</h3>
    <hr align="left" width="20%">



<img src="https://contrib.rocks/image?repo=assetmantle/node&columns=80" width="70%" height="70%"/>

Extension points exported contracts — how you extend this code

SimulationApplication (Interface)
(no doc) [1 implementers]
application/types/applications/simulationApplication.go
Application (Interface)
(no doc)
application/types/applications/application.go

Core symbols most depended-on inside this repo

Name
called by 116
application/types/applications/application.go
GetCodec
called by 50
application/types/applications/base/application.go
GetKey
called by 28
application/types/applications/simulationApplication.go
GetAppCodec
called by 22
application/types/applications/simulationApplication.go
GetAppCodec
called by 19
application/types/applications/base/simulationApplication.go
Initialize
called by 17
application/types/applications/application.go
Error
called by 17
simulation/make/utilities.go
GetDefaultNodeHome
called by 14
application/types/applications/application.go

Shape

Method 77
Function 44
Struct 7
Interface 3
TypeAlias 1

Languages

Go100%

Modules by API surface

application/types/applications/base/simulationApplication.go29 symbols
application/types/applications/application.go23 symbols
application/types/applications/base/application.go15 symbols
application/types/applications/simulationApplication.go13 symbols
application/commands/testnetCommand.go7 symbols
simulation/make/TestAppImportExport_test.go5 symbols
utilities/rest/sign/response.go4 symbols
utilities/rest/keys/add/response.go4 symbols
simulation/make/utilities.go4 symbols
utilities/rest/sign/handler.go3 symbols
application/commands/rootCommand.go3 symbols
utilities/rest/sign/request.go2 symbols

For agents

$ claude mcp add node \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact