-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/actions-poc
# Conflicts: # packages/sdk/src/index.ts
- Loading branch information
Showing
19 changed files
with
645 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
{ | ||
"name": "@dialectlabs/blockchain-sdk-solana", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"type": "module", | ||
"repository": "[email protected]:dialectlabs/sdk.git", | ||
"author": "dialectlabs", | ||
"license": "Apache-2.0", | ||
"main": "./lib/cjs/index.js", | ||
"module": "./lib/esm/index.js", | ||
"types": "./lib/types/index.d.ts", | ||
"sideEffects": false, | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
"import": "./lib/esm/index.js", | ||
"require": "./lib/cjs/index.js" | ||
".": { | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs" | ||
} | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"clean": "rm -rf lib", | ||
"build": "yarn clean && yarn build:cjs; yarn build:esm", | ||
"build": "tsup-node", | ||
"lint": "eslint \"{src,test}/**/*.ts\" --fix", | ||
"build:cjs": "tsc --project tsconfig.cjs.json", | ||
"build:cjs:watch": "concurrently \"tsc --project tsconfig.cjs.json --watch\"", | ||
"build:esm": "tsc --project tsconfig.esm.json", | ||
"build:esm:watch": "concurrently \"tsc --project tsconfig.esm.json --watch\"", | ||
"dev": "yarn clean && concurrently \"npm:build:cjs:watch\" \"npm:build:esm:watch\"", | ||
"dev": "tsup-node --watch", | ||
"test": "jest", | ||
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { defineConfig } from 'tsup'; | ||
|
||
export default defineConfig({ | ||
entry: ['src/index.ts'], | ||
splitting: false, | ||
sourcemap: true, | ||
clean: true, | ||
dts: true, | ||
format: ['cjs', 'esm'], | ||
target: ['esnext'], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const SDK_VERSION = '1.0.0'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
{ | ||
"name": "@dialectlabs/sdk", | ||
"version": "1.7.7", | ||
"version": "1.8.0", | ||
"type": "module", | ||
"repository": "[email protected]:dialectlabs/sdk.git", | ||
"author": "dialectlabs", | ||
"license": "Apache-2.0", | ||
"main": "./lib/cjs/index.js", | ||
"module": "./lib/esm/index.js", | ||
"types": "./lib/types/index.d.ts", | ||
"sideEffects": false, | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"exports": { | ||
"import": "./lib/esm/index.js", | ||
"require": "./lib/cjs/index.js" | ||
".": { | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs" | ||
} | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"clean": "rm -rf lib", | ||
"generate-version": "node ./prebuild.js", | ||
"lint": "eslint \"{src,test}/**/*.ts\" --fix", | ||
"build": "yarn generate-version && yarn clean && yarn build:cjs; yarn build:esm", | ||
"build:cjs": "tsc --project tsconfig.cjs.json && tsc-alias --project tsconfig.cjs.json --verbose", | ||
"build:cjs:watch": "concurrently \"tsc --project tsconfig.cjs.json --watch\" \"tsc-alias --project tsconfig.cjs.json --verbose --watch\"", | ||
"build:esm": "tsc --project tsconfig.esm.json && tsc-alias --project tsconfig.esm.json --verbose", | ||
"build:esm:watch": "concurrently \"tsc --project tsconfig.esm.json --watch\" \"tsc-alias --project tsconfig.esm.json --verbose --watch\"", | ||
"dev": "yarn clean && concurrently \"npm:build:cjs:watch\" \"npm:build:esm:watch\"", | ||
"build": "tsup-node", | ||
"dev": "tsup-node --watch", | ||
"token:generate": "ts-node examples/generate-token.ts", | ||
"test": "jest", | ||
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"" | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { randomBytes, sign } from 'tweetnacl'; | ||
import nacl from 'tweetnacl'; | ||
|
||
export function generateEd25519Keypair() { | ||
return sign.keyPair.fromSeed(Uint8Array.from(randomBytes(32))); | ||
return nacl.sign.keyPair.fromSeed(Uint8Array.from(nacl.randomBytes(32))); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { version as SDK_VERSION } from '../package.json'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { defineConfig } from 'tsup'; | ||
|
||
export default defineConfig({ | ||
entry: ['src/index.ts'], | ||
splitting: false, | ||
sourcemap: true, | ||
clean: true, | ||
dts: true, | ||
format: ['cjs', 'esm'], | ||
target: ['esnext'], | ||
}); |
Oops, something went wrong.