Skip to content

Commit

Permalink
Merge branch 'dev' into nb/update-modules
Browse files Browse the repository at this point in the history
  • Loading branch information
netbonus committed Oct 22, 2024
2 parents 64c0658 + dab6cf5 commit bf573ab
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 27 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,4 @@
"url": "https://github.com/GridPlus/gridplus-sdk.git"
},
"license": "MIT"
}
}
5 changes: 2 additions & 3 deletions src/__test__/e2e/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,8 @@ describe('API', () => {

describe('fetchAddressesByDerivationPath', () => {
test('fetch single specific address', async () => {
const addresses = await fetchAddressesByDerivationPath(
"44'/60'/0'/0/0",
);
const addresses =
await fetchAddressesByDerivationPath("44'/60'/0'/0/0");
expect(addresses).toHaveLength(1);
expect(addresses[0]).toBeTruthy();
});
Expand Down
8 changes: 7 additions & 1 deletion src/types/sign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ export type TransactionRequest = {

export interface SigningPayload {
signerPath: SigningPath;
payload: Uint8Array | Uint8Array[] | Buffer | Buffer[] | string | EIP712MessagePayload;
payload:
| Uint8Array
| Uint8Array[]
| Buffer
| Buffer[]
| string
| EIP712MessagePayload;
curveType: number;
hashType: number;
encodingType?: number;
Expand Down
28 changes: 6 additions & 22 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"jsx": "react-jsx",
"lib": [
"ES2020",
"DOM"
],
"lib": ["ES2020", "DOM"],
"module": "ESNext",
"moduleResolution": "node",
"outDir": "./dist",
Expand All @@ -31,22 +28,9 @@
"sourceMap": true,
"strict": false,
"target": "ES2020",
"typeRoots": [
"node_modules/@types",
"src/**/types"
],
"types": [
"node",
"vitest/globals"
]
"typeRoots": ["node_modules/@types", "src/**/types"],
"types": ["node", "vitest/globals"]
},
"exclude": [
"node_modules",
"**/__test__",
"**/*.spec.ts",
"**/*.test.ts"
],
"include": [
"src"
]
}
"exclude": ["node_modules", "**/__test__", "**/*.spec.ts", "**/*.test.ts"],
"include": ["src"]
}

0 comments on commit bf573ab

Please sign in to comment.