Initial Commit
This commit is contained in:
170
packages/money/finance/cryptocurrency/package.json
Normal file
170
packages/money/finance/cryptocurrency/package.json
Normal file
@@ -0,0 +1,170 @@
|
||||
{
|
||||
"name": "@suaveplan/cryptocurrency",
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"description": "Universal cryptocurrency utilities: wallet address validation across 15 chains with EIP-55 checksumming, unit conversion (ETH/BTC/SOL), chain registry with async adapter, EIP-1559 gas estimation, ERC-20 token registry, calldata/selector decoder, transaction hash parsing. Zero browser/Node deps; injectable LoggerLike; typed CryptocurrencyError hierarchy.",
|
||||
"license": "MIT",
|
||||
"author": "Suaveplan Team",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"./address/validator": {
|
||||
"import": {
|
||||
"types": "./dist/address/validator.d.ts",
|
||||
"default": "./dist/address/validator.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/address/validator.d.ts",
|
||||
"default": "./dist/address/validator.js"
|
||||
}
|
||||
},
|
||||
"./chains/chain-data": {
|
||||
"import": {
|
||||
"types": "./dist/chains/chain-data.d.ts",
|
||||
"default": "./dist/chains/chain-data.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/chains/chain-data.d.ts",
|
||||
"default": "./dist/chains/chain-data.js"
|
||||
}
|
||||
},
|
||||
"./chains/chain-registry": {
|
||||
"import": {
|
||||
"types": "./dist/chains/chain-registry.d.ts",
|
||||
"default": "./dist/chains/chain-registry.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/chains/chain-registry.d.ts",
|
||||
"default": "./dist/chains/chain-registry.js"
|
||||
}
|
||||
},
|
||||
"./chains/registry": {
|
||||
"import": {
|
||||
"types": "./dist/chains/registry.d.ts",
|
||||
"default": "./dist/chains/registry.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/chains/registry.d.ts",
|
||||
"default": "./dist/chains/registry.js"
|
||||
}
|
||||
},
|
||||
"./error-codes/error-codes": {
|
||||
"import": {
|
||||
"types": "./dist/error-codes/error-codes.d.ts",
|
||||
"default": "./dist/error-codes/error-codes.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/error-codes/error-codes.d.ts",
|
||||
"default": "./dist/error-codes/error-codes.js"
|
||||
}
|
||||
},
|
||||
"./gas/gas-estimator": {
|
||||
"import": {
|
||||
"types": "./dist/gas/gas-estimator.d.ts",
|
||||
"default": "./dist/gas/gas-estimator.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/gas/gas-estimator.d.ts",
|
||||
"default": "./dist/gas/gas-estimator.js"
|
||||
}
|
||||
},
|
||||
"./tokens/token-data": {
|
||||
"import": {
|
||||
"types": "./dist/tokens/token-data.d.ts",
|
||||
"default": "./dist/tokens/token-data.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/tokens/token-data.d.ts",
|
||||
"default": "./dist/tokens/token-data.js"
|
||||
}
|
||||
},
|
||||
"./tokens/token-registry": {
|
||||
"import": {
|
||||
"types": "./dist/tokens/token-registry.d.ts",
|
||||
"default": "./dist/tokens/token-registry.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/tokens/token-registry.d.ts",
|
||||
"default": "./dist/tokens/token-registry.js"
|
||||
}
|
||||
},
|
||||
"./transaction/tx-decoder": {
|
||||
"import": {
|
||||
"types": "./dist/transaction/tx-decoder.d.ts",
|
||||
"default": "./dist/transaction/tx-decoder.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/transaction/tx-decoder.d.ts",
|
||||
"default": "./dist/transaction/tx-decoder.js"
|
||||
}
|
||||
},
|
||||
"./types/crypto.types": {
|
||||
"import": {
|
||||
"types": "./dist/types/crypto.types.d.ts",
|
||||
"default": "./dist/types/crypto.types.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/types/crypto.types.d.ts",
|
||||
"default": "./dist/types/crypto.types.js"
|
||||
}
|
||||
},
|
||||
"./units/converter": {
|
||||
"import": {
|
||||
"types": "./dist/units/converter.d.ts",
|
||||
"default": "./dist/units/converter.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/units/converter.d.ts",
|
||||
"default": "./dist/units/converter.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "vite build",
|
||||
"test": "vitest run --passWithNoTests",
|
||||
"test:watch": "vitest",
|
||||
"test:coverage": "vitest run --coverage --passWithNoTests",
|
||||
"lint": "bunx biome check src/",
|
||||
"lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/",
|
||||
"format": "bunx biome format --write --max-diagnostics 500 src/",
|
||||
"check": "bunx biome check --write --unsafe --max-diagnostics 500 src/",
|
||||
"typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json",
|
||||
"docs:check": "bun run ../../../../scripts/docs-check.ts ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@suaveplan/error": "workspace:^",
|
||||
"@suaveplan/types": "workspace:^",
|
||||
"tslib": "catalog:build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@suaveplan/testing": "workspace:^",
|
||||
"@types/node": "catalog:",
|
||||
"@vitest/coverage-istanbul": "catalog:testing",
|
||||
"typescript": "catalog:",
|
||||
"vite": "catalog:build",
|
||||
"vite-plugin-dts": "catalog:build",
|
||||
"vitest": "catalog:testing"
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://npmjs.fq.io/",
|
||||
"access": "public"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"src",
|
||||
"README.md"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user