• Stars
    star
    214
  • Rank 184,678 (Top 4 %)
  • Language
    JavaScript
  • Created over 5 years ago
  • Updated 22 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The Near Enhancement Proposals repository

NEAR Protocol Specifications and Standards

project chat CI

This repository hosts the current NEAR Protocol specification and standards. This includes the core protocol specification, APIs, contract standards, processes, and workflows.

Changes to the protocol specification and standards are called NEAR Enhancement Proposals (NEPs).

NEPs

NEP # Title Author Status
0001 NEP Purpose and Guidelines @jlogelin Living
0021 Fungible Token Standard (Deprecated) @evgenykuzyakov Final
0141 Fungible Token Standard @evgenykuzyakov @oysterpack Final
0145 Storage Management @evgenykuzyakov Final
0148 Fungible Token Metadata @robert-zaremba @evgenykuzyakov @oysterpack Final
0171 Non Fungible Token Standard @mikedotexe @evgenykuzyakov @oysterpack Final
0177 Non Fungible Token Metadata @chadoh @mikedotexe Final
0178 Non Fungible Token Approval Management @chadoh @thor314 Final
0181 Non Fungible Token Enumeration @chadoh @thor314 Final
0199 Non Fungible Token Royalties and Payouts @thor314 @mattlockyer Final
0245 Multi Token Standard @zcstarr @riqi @jriemann @marcos.sun Review
0297 Events Standard @telezhnaya Final
0330 Source Metadata @BenKurrek Review
0366 Meta Transactions @ilblackdragon @e-uleyskiy @fadeevab Draft
0399 Flat Storage @Longarithm @mzhangmzz Review
0448 Zero-balance Accounts @bowenwang1996 Final
0455 Parameter Compute Costs @akashin @jakmeier Final

Specification

NEAR Specification is under active development. Specification defines how any NEAR client should be connecting, producing blocks, reaching consensus, processing state transitions, using runtime APIs, and implementing smart contract standards as well.

Standards & Processes

Standards refer to various common interfaces and APIs that are used by smart contract developers on top of the NEAR Protocol. For example, such standards include SDK for Rust, API for fungible tokens or how to manage user's social graph.

Processes include release process for spec, clients or how standards are updated.

Contributing

Expectations

Ideas presented ultimately as NEPs will need to be driven by the author through the process. It's an exciting opportunity with a fair amount of responsibility from the contributor(s). Please put care into the details. NEPs that do not present convincing motivation, demonstrate understanding of the impact of the design, or are disingenuous about the drawbacks or alternatives tend to be poorly received. Again, by the time the NEP makes it to the pull request, it has a clear plan and path forward based on the discussions in the governance forum.

Process

Spec changes are ultimately done via pull requests to this repository (formalized process here). In an effort to keep the pull request clean and readable, please follow these instructions to flesh out an idea.

  1. Sign up for the governance site and make a post to the appropriate section. For instance, during the ideation phase of a standard, one might start a new conversation in the Development Β» Standards section or the NEP Discussions Forum.

  2. The forum has comment threading which allows the community and NEAR Collective to ideate, ask questions, wrestle with approaches, etc. If more immediate responses are desired, consider bringing the conversation to Zulip.

  3. When the governance conversations have reached a point where a clear plan is evident, create a pull request, using the instructions below.

    • Clone this repository and create a branch with "my-feature".
    • Update relevant content in the current specification that are affected by the proposal.
    • Create a Pull request, using nep-0000-template.md to describe motivation and details of the new Contract or Protocol specification. In the document header, ensure the Status is marked as Draft, and any relevant discussion links are added to the DiscussionsTo section. Use the pull request number padded with zeroes. For instance, the pull request 219 should be created as neps/nep-0219.md.
    • Add your Draft standard to the NEPs section of this README.md. This helps advertise your standard via github.
    • Update Docusaurus documentation under the specs/Standards to describe the contract standard at a high level, how to integrate it into a Dapp, and a link to the standard document (ie. neps/nep-0123.md). This helps advertise your standard via nomicon. Any related nomicon sections should be prefixed and styled using the following snippet:
    :::caution
    This is part of proposed spec [NEP-123](https://github.com/near/NEPs/blob/master/neps/nep-0123.md) and subject to change.
    :::
    
    • Once complete, submit the pull request for editor review.

    • The formalization dance begins:

      • NEP Editors, who are unopinionated shepherds of the process, check document formatting, completeness and adherence to NEP-0001 and approve the pull request.
      • Once ready, the author updates the NEP status to Review allowing further community participation, to address any gaps or clarifications, normally part of the Review PR.
      • NEP Editors mark the NEP as Last Call, allowing a 14 day grace period for any final community feedback. Any unresolved show stoppers roll the state back to Review.
      • NEP Editors mark the NEP as Final, marking the standard as complete. The standard should only be updated to correct errata and add non-normative clarifications.

Tip: build consensus and integrate feedback. NEPs that have broad support are much more likely to make progress than those that don't receive any comments. Feel free to reach out to the NEP assignee in particular to get help identify stakeholders and obstacles.

Running Docusaurus

This repository uses Docusaurus for the Nomicon website.

  1. Move into the /website folder where you will run the following commands:

    • Make sure all the dependencies for the website are installed:

      # Install dependencies
      yarn
    • Run the local docs development server

      # Start the site
      yarn start

      Expected Output

      # Website with live reload is started
      Docusaurus server started on port 3000

      The website for docs will open your browser locally to port 3000

  2. Make changes to the docs

  3. Observe those changes reflected in the local docs

  4. Submit a pull request with your changes

More Repositories

1

nearcore

Reference client for NEAR Protocol
Rust
2,324
star
2

near-sdk-rs

Rust library for writing NEAR smart contracts
Rust
453
star
3

borsh

Binary Object Representation Serializer for Hashing
430
star
4

near-api-js

JavaScript library to interact with NEAR Protocol via RPC API
TypeScript
390
star
5

create-near-app

Create a starter app hooked up to the NEAR blockchain
JavaScript
348
star
6

core-contracts

Core contracts: reference staking pool, lockup, voting, whitelist, multisig.
Rust
324
star
7

borsh-rs

Rust implementation of Binary Object Representation Serializer for Hashing
Rust
320
star
8

near-wallet

Web wallet for NEAR Protocol which stores keys in browser's localStorage
JavaScript
209
star
9

near-cli

General purpose command line tools for interacting with NEAR Protocol
JavaScript
194
star
10

near-sdk-js

Tools for building NEAR smart contracts in JavaScript
TypeScript
192
star
11

assemblyscript-json

JSON encoder / decoder for AssemblyScript
TypeScript
173
star
12

wallet-selector

This is a wallet selector modal that allows users to interact with NEAR dApps with a selection of available wallets.
TypeScript
151
star
13

docs

NEAR Protocol Documentation
SCSS
147
star
14

near-indexer-for-explorer

Watch NEAR network and store all the data from NEAR blockchain to PostgreSQL database
Rust
123
star
15

near-sdk-as

Tools for building NEAR smart contracts in AssemblyScript
TypeScript
114
star
16

nearup

Public scripts to launch NEAR Protocol betanet and testnet node
Python
102
star
17

near-cli-rs

near CLI is your human-friendly companion that helps to interact with NEAR Protocol from command line.
Rust
100
star
18

borsh-js

TypeScript/JavaScript implementation of Binary Object Representation Serializer for Hashing
JavaScript
89
star
19

stakewars-iii

Stake Wars: Episode 3 challenges and place to report issues
87
star
20

near-workspaces-rs

Write tests once, run them both on NEAR TestNet and a controlled NEAR Sandbox local environment via Rust
Rust
84
star
21

near-explorer

NEAR blockchain explorer
TypeScript
82
star
22

bounties

Specs for technical and non-technical work that earns NEAR tokens
72
star
23

near-linkdrop

Contract to drop tokens via link
Rust
55
star
24

borsh-go

Go implementation of Binary Object Representation Serializer for Hashing
Go
51
star
25

near-api-py

Python API to interact with NEAR via RPC API
Python
51
star
26

near-discovery

The homebase for Near Builders
TypeScript
49
star
27

near-lake-framework-rs

Library to connect to the NEAR Lake S3 and stream the data
Rust
47
star
28

near-jsonrpc-client-rs

Lower-level API for interfacing with the NEAR Protocol via JSONRPC.
Rust
47
star
29

near-lake-indexer

Watch NEAR network and store all the events as JSON files on AWS S3
Rust
45
star
30

near-sandbox

Easily run a local NEAR blockchain
TypeScript
44
star
31

near-workspaces-js

Write tests once, run them both on NEAR TestNet and a controlled NEAR Sandbox local environment
TypeScript
42
star
32

near-sdk-contract-tools

Helpful functions and macros for developing smart contracts on NEAR Protocol.
Rust
41
star
33

mpc

Rust
41
star
34

awesome-near

Curated list of resources: examples, libraries, projects
TypeScript
40
star
35

ecosystem

Community-sourced and curated data for the NEAR Ecosystem.
Python
39
star
36

data-availability

NEAR as data availability!
Rust
39
star
37

near-seed-phrase

Utilities to work with NEAR Protocol key pairs based on BIP39 seed phrases
JavaScript
38
star
38

community

Coordination repository of Near Community
36
star
39

near-contract-helper

Micro-service used by NEAR Wallet to store & send recovery methods
JavaScript
35
star
40

cargo-near

Cargo extension for building Rust smart contracts on NEAR
Rust
33
star
41

near-evm

Obsolete EVM contract experiments. Find current development at: https://github.com/aurora-is-near/aurora-engine
Rust
33
star
42

fast-auth-signer

TypeScript
30
star
43

pagoda-relayer-rs

Rust Reference Implementation of Relayer for NEP-366 Meta Transactions
Rust
29
star
44

wiki

NEAR Wiki
JavaScript
28
star
45

bos-web-engine

Improved execution layer for NEAR decentralized frontend components
TypeScript
26
star
46

borsh-construct-py

Python implementation of Binary Object Representation Serializer for Hashing
Python
26
star
47

near-lake-framework-js

JS Library to connect to the NEAR Lake S3 and stream the data
TypeScript
25
star
48

DX

Developer Experience building on NEAR
25
star
49

finite-wasm

Cheating a little to solve the halting problem at scale
WebAssembly
23
star
50

near-api-swift

Interact with NEAR blockchain from iOS and OS X apps using Swift
Swift
22
star
51

corgis

simple solution for corgi NFT
JavaScript
22
star
52

wasmer

πŸš€ The leading WebAssembly Runtime supporting WASI and Emscripten
Rust
21
star
53

near-analytics

Python
20
star
54

sdk-docs

The book about near-sdk-rs
JavaScript
20
star
55

neardevhub-widgets

NEAR DevHub UI hosted on NEAR BOS
JavaScript
20
star
56

near-api-kotlin

Kotlin
20
star
57

bos-loader

Rust
19
star
58

near-enhanced-api-server

Rust
18
star
59

read-rpc

Read-only NEAR RPC centralized-like performant solution
Rust
18
star
60

queryapi

Near Indexing as a Service
Rust
17
star
61

near-redpacket

NEAR Redpacket based on NEAR Linkdrop
CSS
14
star
62

near-discovery-components

This is a repository that holds the source code of all NEAR discovery components that the team maintains for near.org.
JavaScript
14
star
63

near-vscode

https://marketplace.visualstudio.com/items?itemName=near-protocol.near-discovery-ide
JavaScript
14
star
64

stakewars-iv

Shell
12
star
65

omni-transaction-rs

Transaction builder for all chains in Rust
Rust
12
star
66

neardevhub-contract

NEAR DevHub contract
Rust
11
star
67

abi

NEAR contract schema and tooling
11
star
68

borshj

Borsh binary serialization format support for Java.
Java
11
star
69

near-sdk-js-template-project

A starting point to write, build and test JavaScript smart contract
JavaScript
11
star
70

near-memory-tracker

near-memory-tracker
Rust
11
star
71

devx

This is the home of NEAR collective developer experience plans and roadmap.
11
star
72

node-docs

NEAR Nodes documentation
CSS
11
star
73

cargo-near-new-project-template

temp project to become part of `cargo near new` command
Rust
11
star
74

rainbow-bridge-lib

JavaScript
10
star
75

rainbow-bridge-sol

Solidity
10
star
76

devrel

The space for DevRel
9
star
77

units-js

Easily parse and format NEAR Tokens and gas units
TypeScript
9
star
78

rainbow-bridge-rs

Rust
9
star
79

near-microindexers

Rust
8
star
80

near-api-unity

Port of https://github.com/near/near-api-js to Unity
C#
8
star
81

near-wallet-roadmap

near-wallet-roadmap
8
star
82

multichain-gas-station-contract

Rust
8
star
83

near-drop-demo

JavaScript
7
star
84

near-indexer-events

Rust
7
star
85

near-sdk-abi

ABI utilities used for generating Rust SDK cross-contract calls
Rust
6
star
86

repro-near-funcall

Repro near function call actions with local near-vm-runner-standalone
JavaScript
6
star
87

as-base64

Encode and Decode base64 strings in AssemblyScript
WebAssembly
6
star
88

near-indexer-for-wallet

Rust
6
star
89

near-ledger-js

Connect to NEAR Ledger app from browser
JavaScript
6
star
90

boilerplate-template-keypom

A github template repository of an end-to-end application that demonstrates minimal UI to build a lazy-minted NFT link drop using Keypom
TypeScript
6
star
91

near-abi-rs

NEAR smart contract ABI primitives
Rust
6
star
92

near-workspaces

Write tests once, run them both on NEAR TestNet and a controlled NEAR Sandbox local environment
6
star
93

near-abi-client-rs

Library to generate Rust client code from NEAR ABI
Rust
5
star
94

discovery-docs

NEAR Discovery Documentation
JavaScript
5
star
95

near-api-helper

Cloudflare worker that can batch RPC calls
JavaScript
5
star
96

local

5
star
97

boilerplate-template-rs

TypeScript
5
star
98

wasm_sizer

Python
5
star
99

multisig-tool

A tool / UI to manage multisig contracts
JavaScript
5
star
100

near-blake2

Pure Rust implementation of the BLAKE2 hash function family.
Rust
5
star