Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aeternity/aepp-calldata

Package Overview
Dependencies
Maintainers
6
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aeternity/aepp-calldata - npm Package Compare versions

Comparing version 1.6.0 to 1.7.0

10

package.json
{
"name": "@aeternity/aepp-calldata",
"description": "Aeternity data serialization library",
"version": "1.6.0",
"version": "1.7.0",
"author": "aeternity",

@@ -41,11 +41,11 @@ "license": "ISC",

"devDependencies": {
"@aeternity/aepp-cli": "4.1.0",
"ava": "6.1.0",
"@aeternity/aepp-cli": "^5.0.0",
"ava": "6.1.2",
"benchmark": "2.1.4",
"browserify": "17.0.0",
"eslint": "8.56.0",
"eslint": "8.57.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-plugin-import": "2.29.1",
"nyc": "15.1.0",
"tape": "5.7.3"
"tape": "5.7.5"
},

@@ -52,0 +52,0 @@ "ava": {

@@ -9,3 +9,5 @@ const FateVariant = require('../types/FateVariant')

'AENS.pointee',
'AENS.name'
'AENSv2.pointee',
'AENS.name',
'AENSv2.name'
]

@@ -12,0 +14,0 @@

@@ -190,2 +190,14 @@ const FateTypeVoid = () => {

const FateTypeAENSv2Pointee = () => {
const variants = [
{'AENSv2.AccountPt': [FateTypeAccountAddress()]},
{'AENSv2.OraclePt': [FateTypeAccountAddress()]},
{'AENSv2.ContractPt': [FateTypeAccountAddress()]},
{'AENSv2.ChannelPt': [FateTypeAccountAddress()]},
{'AENSv2.DataPt': [FateTypeBytes()]}, // max 1024 bytes
]
return FateTypeVariant(variants)
}
const FateTypeAENSName = () => {

@@ -203,2 +215,14 @@ const variants = [{

const FateTypeAENSv2Name = () => {
const variants = [{
'AENSv2.Name': [
FateTypeAccountAddress(),
FateTypeChainTTL(),
FateTypeMap(FateTypeString(), FateTypeAENSv2Pointee())
]
}]
return FateTypeVariant(variants)
}
const FateTypeEvent = (variantType, topics) => {

@@ -267,3 +291,5 @@ return {

FateTypeAENSPointee,
FateTypeAENSv2Pointee,
FateTypeAENSName,
FateTypeAENSv2Name,
FateTypeEvent,

@@ -270,0 +296,0 @@ FateTypeBls12381Fr,

@@ -27,3 +27,5 @@ const TypeResolveError = require('./Errors/TypeResolveError')

FateTypeAENSPointee,
FateTypeAENSv2Pointee,
FateTypeAENSName,
FateTypeAENSv2Name,
FateTypeBls12381Fr,

@@ -139,2 +141,6 @@ FateTypeBls12381Fp

if (key === 'AENSv2.pointee') {
return FateTypeAENSv2Pointee()
}
if (key === 'AENS.name') {

@@ -144,2 +150,6 @@ return FateTypeAENSName()

if (key === 'AENSv2.name') {
return FateTypeAENSv2Name()
}
if (key === 'Set.set') {

@@ -158,3 +168,3 @@ return FateTypeSet(...resolvedTypes)

if (key === 'bytes') {
return FateTypeBytes(valueTypes)
return FateTypeBytes(valueTypes === 'any' ? undefined : valueTypes)
}

@@ -161,0 +171,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc