Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@initia/amino-converter
Advanced tools
Amino types and proto registry for initia chains
npm install @initia/amino-converter
import { SigningStargateClient } from '@cosmjs/stargate'
import { registry, aminoTypes } from '@initia/amino-converter'
const signingClient = await SigningStargateClient.connectWithSigner(
'[RPC-URL]',
signer, // Offline signer
{
registry,
aminoTypes,
}
)
import { Registry } from '@cosmjs/proto-signing'
import { AminoTypes, SigningStargateClient } from '@cosmjs/stargate'
import { protoRegistry, aminoConverters } from '@initia/amino-converter'
const registry = new Registry([...protoRegistry, ...customRegistry])
const aminoTypes = new AminoTypes({
...aminoConverters,
...customAminoConverters,
})
const signingClient = await SigningStargateClient.connectWithSigner(
'[RPC-URL]',
signer, // Offline signer
{
registry,
aminoTypes,
}
)
If you need to use MsgExecuteMessages
, MsgSubmitProposal
and MsgSubmitTx
with your custom messages, you need to register your custom messages to thier amino converter.
import { Registry } from '@cosmjs/proto-signing'
import { AminoTypes, SigningStargateClient } from '@cosmjs/stargate'
import {
protoRegistry,
aminoConverters,
generateMsgExecuteMessagesAminoConverter,
generateMsgSubmitProposalAminoConverter,
generateMsgSubmitTxAminoConverter,
} from '@initia/amino-converter'
const registry = new Registry([...protoRegistry, ...customRegistry])
const msgExecuteMessagesAminoConverter =
generateMsgExecuteMessagesAminoConverter(
[...protoRegistry, ...customRegistry],
{
...aminoConverters,
...customAminoConverters,
}
) // register custom msg
const aminoTypes = new AminoTypes({
...aminoConverters,
...customAminoConverters,
msgExecuteMessagesAminoConverter,
})
const signingClient = await SigningStargateClient.connectWithSigner(
'[RPC-URL]',
signer, // Offline signer
{
registry,
aminoTypes,
}
)
FAQs
Amino types and proto registry for initia chains
We found that @initia/amino-converter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.