@infinex/infinex-sdk
Advanced tools
Comparing version 0.1.2 to 1.0.0-viem
102
package.json
{ | ||
"name": "@infinex/infinex-sdk", | ||
"version": "0.1.2", | ||
"description": "A SDK to interact with Infinex smart contracts", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"version": "1.0.0-viem", | ||
"main": "./sdk/index.ts", | ||
"files": [ | ||
"dist/**/*" | ||
"./sdk/contracts", | ||
"./sdk/abis", | ||
"./sdk/utils", | ||
"./sdk/chains", | ||
"./sdk/build.ts", | ||
"./sdk/config.ts", | ||
"./sdk/env.ts", | ||
"./sdk/types.ts" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/infinex-io/infinex-sdk.git" | ||
"scripts": { | ||
"build": "forge build && pnpm build:cannon", | ||
"build:cannon": "cannon build", | ||
"build:cannon-N2O": "cannon build cannonfile.N2O.toml", | ||
"build:cannon-O2": "cannon build cannonfile.O2.toml", | ||
"build:hardhat": "hardhat cannon:build", | ||
"build:sdk": "pnpm tsx ./sdk/build.ts", | ||
"cannon:inspect": "cannon inspect infinex:1 -w ./deployments/local --sources", | ||
"cannon:verify": "cannon verify infinex:0.0.1@main -c CHAIN -a ETHERSCAN_KEY", | ||
"clean": "rm -rf dist cache artifacts typechain deployments/test && pnpm cannon clean", | ||
"codecheck": "pnpm format && pnpm lint && pnpm slither && pnpm gitleaks", | ||
"debug": "cannon test cannonfile.toml --wipe -- --force -vvvv --no-match-contract OLD_* --match-test ", | ||
"dev": "forge build && pnpm cannon build --keep-alive --port 13370", | ||
"fetch:addresses": "pnpm tsx ./sdk/scripts/getPublishedContracts.ts", | ||
"forge:build": "forge build", | ||
"forge:clean": " forge clean", | ||
"format": "pnpm format:common && pnpm format:sol", | ||
"format:check": "prettier . --check && ./scripts/run forge fmt --check", | ||
"format:common": "prettier . --write", | ||
"format:sol": "forge fmt", | ||
"gitleaks": "./scripts/run gitleaks detect --no-git --config ./.gitleaks.toml --verbose", | ||
"lint": "pnpm lint:eslint && pnpm lint:sol", | ||
"lint:eslint": "eslint --no-error-on-unmatched-pattern --max-warnings=0 .", | ||
"lint:sol": "solhint --max-warnings=0 'src/**/*.sol' 'test/**/*.sol' 'script/**/*.sol'", | ||
"postinstall": "./scripts/run forge install", | ||
"slither": "./scripts/run slither .", | ||
"start": "CANNON_PROVIDER_URL=RPC_URL ./scripts/run cannon infinex:0.1.0@main -c CHAIN", | ||
"start:non-interactive": "cannon infinex:1 --non-interactive --host 0.0.0.0", | ||
"test": "cannon test cannonfile.toml --wipe -- --force --no-match-contract OLD_*", | ||
"test:cannon-fast": "cannon test cannonfile.toml --", | ||
"test:forge": "forge test --no-match-contract OLD_*", | ||
"test:hardhat": "hardhat test", | ||
"test:hardhat-debug": "DEBUG=cannon:cli:rpc pnpm test:hardhat", | ||
"test:healthcheck": "vitest run --config ./vitest.config.ts healthcheck", | ||
"test:sdk": "vitest run --config ./vitest.config.ts", | ||
"test:upgrade": "cannon test cannonfile.upgrade.toml --wipe -- --force" | ||
}, | ||
"keywords": [], | ||
"license": "MIT", | ||
"dependencies": { | ||
"@typechain/ethers-v6": "^0.5.1", | ||
"dotenv": "^16.3.1", | ||
"ethers": "^6.9.2", | ||
"typechain": "^8.3.2" | ||
"abitype": "^1.0.2", | ||
"viem": "^2.12.0", | ||
"zod": "^3.23.8" | ||
}, | ||
"devDependencies": { | ||
"@nomicfoundation/hardhat-foundry": "1.1.1", | ||
"@solana/spl-token": "^0.4.6", | ||
"@solana/web3.js": "^1.90.0", | ||
"@synthetixio/core-contracts": "^3.3.6", | ||
"@synthetixio/perps-market": "^3.3.6", | ||
"@types/node": "^20.12.12", | ||
"@typescript-eslint/eslint-plugin": "^6.14.0", | ||
"@usecannon/cli": "2.14.2", | ||
"@wormhole-foundation/wormhole-query-sdk": "0.0.6", | ||
"axios": "1.6.0", | ||
"commander": "^12.1.0", | ||
"dotenv": "10.0.0", | ||
"eslint": "^8.57.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-json": "^3.1.0", | ||
"eslint-plugin-markdown": "^3.0.1", | ||
"hardhat": "2.22.2", | ||
"hardhat-cannon": "2.14.2", | ||
"hardhat-contract-sizer": "^2.10.0", | ||
"node-fetch": "3.3.2", | ||
"prettier": "^3.2.5", | ||
"solhint": "^4.5.4", | ||
"ts-node": "^10.9.2", | ||
"typescript": "^5.3.3" | ||
}, | ||
"scripts": { | ||
"test": "jest", | ||
"dev": "tsc -p ./tsconfig.json --watch --inlineSourceMap", | ||
"build": "tsc -p ./tsconfig.json", | ||
"clean": "rm -rf ./dist/ && rm -rf ./src/deployments/", | ||
"lint": "eslint ./src/ --fix", | ||
"typecheck": "tsc --noEmit", | ||
"generate:sources": "node scripts/prepare-source-files.js", | ||
"generate": "pnpm clean && pnpm generate:sources" | ||
"typedoc": "^0.25.13", | ||
"vite": "^5.2.11", | ||
"vitest": "^1.6.0", | ||
"wormhole-solidity-sdk": "github:wormhole-foundation/wormhole-solidity-sdk" | ||
} | ||
} | ||
} |
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
3
1
78
156528
27
36
7012
1
1
+ Addedabitype@^1.0.2
+ Addedviem@^2.12.0
+ Addedzod@^3.23.8
+ Added@adraffy/ens-normalize@1.11.0(transitive)
+ Added@noble/curves@1.8.1(transitive)
+ Added@noble/hashes@1.7.1(transitive)
+ Added@scure/base@1.2.4(transitive)
+ Added@scure/bip32@1.6.2(transitive)
+ Added@scure/bip39@1.5.4(transitive)
+ Addedabitype@1.0.8(transitive)
+ Addedeventemitter3@5.0.1(transitive)
+ Addedisows@1.0.6(transitive)
+ Addedox@0.6.7(transitive)
+ Addedviem@2.23.4(transitive)
+ Addedws@8.18.0(transitive)
+ Addedzod@3.24.2(transitive)
- Removed@typechain/ethers-v6@^0.5.1
- Removeddotenv@^16.3.1
- Removedethers@^6.9.2
- Removedtypechain@^8.3.2
- Removed@adraffy/ens-normalize@1.10.1(transitive)
- Removed@noble/curves@1.2.0(transitive)
- Removed@noble/hashes@1.3.2(transitive)
- Removed@typechain/ethers-v6@0.5.1(transitive)
- Removed@types/node@22.7.5(transitive)
- Removed@types/prettier@2.7.3(transitive)
- Removedaes-js@4.0.0-beta.5(transitive)
- Removedansi-styles@3.2.14.3.0(transitive)
- Removedarray-back@3.1.04.0.2(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedchalk@2.4.24.1.2(transitive)
- Removedcolor-convert@1.9.32.0.1(transitive)
- Removedcolor-name@1.1.31.1.4(transitive)
- Removedcommand-line-args@5.2.1(transitive)
- Removedcommand-line-usage@6.1.3(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removeddebug@4.4.0(transitive)
- Removeddeep-extend@0.6.0(transitive)
- Removeddotenv@16.4.7(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedethers@6.13.5(transitive)
- Removedfind-replace@3.0.0(transitive)
- Removedfs-extra@7.0.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.1.7(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhas-flag@3.0.04.0.0(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedjs-sha3@0.8.0(transitive)
- Removedjsonfile@4.0.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedlodash.camelcase@4.3.0(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedmkdirp@1.0.4(transitive)
- Removedms@2.1.3(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedprettier@2.8.8(transitive)
- Removedreduce-flatten@2.0.0(transitive)
- Removedstring-format@2.0.0(transitive)
- Removedsupports-color@5.5.07.2.0(transitive)
- Removedtable-layout@1.0.2(transitive)
- Removedts-command-line-args@2.5.1(transitive)
- Removedts-essentials@7.0.3(transitive)
- Removedtslib@2.7.0(transitive)
- Removedtypechain@8.3.2(transitive)
- Removedtypescript@5.7.3(transitive)
- Removedtypical@4.0.05.2.0(transitive)
- Removedundici-types@6.19.8(transitive)
- Removeduniversalify@0.1.2(transitive)
- Removedwordwrapjs@4.0.1(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedws@8.17.1(transitive)