Skip to content

Commit

Permalink
Merge pull request #94 from invariant-labs/init-sdk
Browse files Browse the repository at this point in the history
Init SDK npm package
  • Loading branch information
Sniezka1927 authored Jul 9, 2024
2 parents d5962fd + e27c44b commit e82d483
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ node_modules
coverage
artifacts
.project.json
.ralph-lsp
dist
.ralph-lsp
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alephium-stack/
test/
.github/
.eslintrc
.mocharc.json
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 22 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
{
"name": "invariant",
"version": "0.1.0",
"name": "@invariant-labs/alph-sdk",
"version": "0.0.1",
"collaborators": [
"Invariant Labs"
],
"description": "",
"type": "commonjs",
"main": "dist/src/index.js",
"files": [
"dist/**/*"
],
"keywords": [
"Alephium",
"DEX",
"SDK",
"Ralph"
],
"license": "GPL",
"repository": {
"type": "git",
"url": "https://github.com/invariant-labs/protocol-alephium",
"directory": "sdk"
},
"scripts": {
"build": "npm run clean:windows && npm run clean:unix && npx --yes tsc --build .",
"clean:unix": "node -e \"if (process.platform !== 'win32') process.exit(1)\" || rm -rf dist",
Expand Down
16 changes: 16 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export {
SqrtPriceScale,
LiquidityScale,
FeeGrowthScale,
FixedPointScale,
PercentageScale,
TokenAmountScale,
FixedPointDenominator,
GlobalMaxTick,
GlobalMinTick,
MaxSqrtPrice,
MinSqrtPrice,
SearchRange,
InvariantError,
MaxU256
} from './consts.js'
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"compilerOptions": {
"outDir": "dist",
"jsx": "react-jsx",
"target": "es2020",
"target": "ES2020",
"module": "commonjs",
"allowJs": true,
"esModuleInterop": true,
"strict": true,
"noImplicitAny": false,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"module": "commonjs",
"declaration": true,
"moduleResolution": "node",
"resolveJsonModule": true,
Expand Down

0 comments on commit e82d483

Please sign in to comment.