Gathering detailed insights and metrics for @pokt-network/amino-js
Gathering detailed insights and metrics for @pokt-network/amino-js
Gathering detailed insights and metrics for @pokt-network/amino-js
Gathering detailed insights and metrics for @pokt-network/amino-js
npm install @pokt-network/amino-js
Typescript
Module System
Min. Node Version
Node Version
NPM Version
Go (81.88%)
TypeScript (9.37%)
JavaScript (8.75%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Apache-2.0 License
188 Commits
1 Forks
1 Watchers
4 Branches
4 Contributors
Updated on May 20, 2020
Latest Version
0.7.5-alpha.1
Package Id
@pokt-network/amino-js@0.7.5-alpha.1
Unpacked Size
21.99 MB
Size
7.03 MB
File Count
29
NPM Version
6.14.5
Node Version
12.16.2
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
amino-js
Supported in Node.js and browsers.
Support is planned for Service Workers.
https://cosmos.github.io/amino-js/
All exported functions are documented. Some Amino registered TypeScript interfaces are documented. The codec works as is, but we'll work on adding more TS definitions to improve the developer experience.
Please note that the NPM package name is @tendermint/amino-js
rather than @cosmos/amino-js
.
1yarn add @tendermint/amino-js
1npm install --save @tendermint/amino-js
Encoding decoding of basic values:
1import { encodeString, decodeString } from '@tendermint/amino-js'; 2decodeString(encodeString('hello world')); 3// [ "hello world", 12 ]
Encoding/decoding of registered types:
1import { marshalTx, unmarshalTx } from '@tendermint/amino-js'; 2 3const tx = { 4 'type': 'cosmos-sdk/StdTx', 5 'value': { 6 'msg': [{ 7 'type': 'cosmos-sdk/MsgSend', 8 'value': { 9 'from_address': 'cosmos1h806c7khnvmjlywdrkdgk2vrayy2mmvf9rxk2r', 10 'to_address': 'cosmos1z7g5w84ynmjyg0kqpahdjqpj7yq34v3suckp0e', 11 'amount': [{ 12 'denom': 'uatom', 13 'amount': '11657995' 14 }] 15 } 16 }], 17 'fee': { 18 'amount': [{ 19 'denom': 'uatom', 20 'amount': '5000' 21 }], 22 'gas': '200000' 23 }, 24 'signatures': [{ 25 'pub_key': { 26 'type': 'tendermint/PubKeySecp256k1', 27 'value': 'AtQaCqFnshaZQp6rIkvAPyzThvCvXSDO+9AzbxVErqJP' 28 }, 29 'signature': '1nUcIH0CLT0/nQ0mBTDrT6kMG20NY/PsH7P2gc4bpYNGLEYjBmdWevXUJouSE/9A/60QG9cYeqyTe5kFDeIPxQ==' 30 }], 31 'memo': '1122672754' 32 } 33}; 34 35const encodedTx = marshalTx(tx); 36const decodedTx = unmarshalTx(encodedTx);
To register your own types with Amino, you'll need to add Go structs and interfaces, register them with the codec, compile the Go code with GopherJS, and then rebuild the JS lib.
To keep the compiled output small, the recommended way to do this is to add your Go structs, but strip out methods, private properties, and anything else that you don't plan to marshal to Amino.
This is all (hopefully) less complicated than it sounds.
See FORK.md
for instructions.
See EXTEND.md
for instructions.
amino-js
is very new! Questions, feedback, use cases, issues, and code are all very, very welcome.
Thank you for helping us help you help us all. 🎁
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/8 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
89 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More