Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
@tharsis/eip712
Advanced tools
EIP712 transactions creator.
yarn add @tharsis/evmosjs
import {
createEIP712,
generateFee,
generateMessage,
generateTypes,
createMsgSend,
MSG_SEND_TYPES,
} from '@tharsis/evmosjs/packages/eip712'
let fee = generateFee(
'20',
'aphoton',
'20000',
'ethm1tfegf50n5xl0hd5cxfzjca3ylsfpg0fned5gqm',
)
let types = generateTypes(MSG_SEND_TYPES)
let msg = createMsgSend(
'1',
'aphoton',
'ethm1tfegf50n5xl0hd5cxfzjca3ylsfpg0fned5gqm',
'ethm1tfegf50n5xl0hd5cxfzjca3ylsfpg0fned5gqm',
)
let messages = generateMessage('9', '0', 'ethermint_9000-1', '', fee, msg)
let complete = createEIP712(types, 9000, messages)
console.log(complete)
{
"types": {
"EIP712Domain": [
{
"name": "name",
"type": "string"
},
{
"name": "version",
"type": "string"
},
{
"name": "chainId",
"type": "uint256"
},
{
"name": "verifyingContract",
"type": "string"
},
{
"name": "salt",
"type": "string"
}
],
"Tx": [
{
"name": "account_number",
"type": "string"
},
{
"name": "chain_id",
"type": "string"
},
{
"name": "fee",
"type": "Fee"
},
{
"name": "memo",
"type": "string"
},
{
"name": "msgs",
"type": "Msg[]"
},
{
"name": "sequence",
"type": "string"
}
],
"Fee": [
{
"name": "feePayer",
"type": "string"
},
{
"name": "amount",
"type": "Coin[]"
},
{
"name": "gas",
"type": "string"
}
],
"Coin": [
{
"name": "denom",
"type": "string"
},
{
"name": "amount",
"type": "string"
}
],
"Msg": [
{
"name": "type",
"type": "string"
},
{
"name": "value",
"type": "MsgValue"
}
],
"MsgValue": [
{
"name": "from_address",
"type": "string"
},
{
"name": "to_address",
"type": "string"
},
{
"name": "amount",
"type": "TypeAmount[]"
}
],
"TypeAmount": [
{
"name": "denom",
"type": "string"
},
{
"name": "amount",
"type": "string"
}
]
},
"primaryType": "Tx",
"domain": {
"name": "Cosmos Web3",
"version": "1.0.0",
"chainId": 9000,
"verifyingContract": "cosmos",
"salt": "0"
},
"message": {
"account_number": "9",
"chain_id": "ethermint_9000-1",
"fee": {
"amount": [
{
"amount": "20",
"denom": "aphoton"
}
],
"gas": "20000",
"feePayer": "ethm1tfegf50n5xl0hd5cxfzjca3ylsfpg0fned5gqm"
},
"memo": "",
"msgs": [
{
"type": "cosmos-sdk/MsgSend",
"value": {
"amount": [
{
"amount": "1",
"denom": "aphoton"
}
],
"from_address": "ethm1tfegf50n5xl0hd5cxfzjca3ylsfpg0fned5gqm",
"to_address": "ethm1tfegf50n5xl0hd5cxfzjca3ylsfpg0fned5gqm"
}
}
],
"sequence": "0"
}
}
FAQs
EIP712 transaction creator for EVMOS.
We found that @tharsis/eip712 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.