@nosana/kit 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,8 @@
1
1
  import { address } from 'gill';
2
2
  import { NosanaError, ErrorCodes } from '../errors/NosanaError.js';
3
3
  import { TOKEN_PROGRAM_ADDRESS } from '@solana-program/token';
4
+ // Standard SPL token account size
5
+ const TOKEN_ACCOUNT_SIZE = 165;
4
6
  // Offset of mint address in token account data structure
5
7
  const MINT_OFFSET = 0;
6
8
  export class NosService {
@@ -31,6 +33,9 @@ export class NosService {
31
33
  .getProgramAccounts(TOKEN_PROGRAM_ADDRESS, {
32
34
  encoding: 'jsonParsed',
33
35
  filters: [
36
+ {
37
+ dataSize: BigInt(TOKEN_ACCOUNT_SIZE),
38
+ },
34
39
  {
35
40
  memcmp: {
36
41
  offset: BigInt(MINT_OFFSET),
package/eslint.config.js CHANGED
@@ -40,9 +40,7 @@ export default [
40
40
  // More lenient rules for test files
41
41
  files: ['tests/**/*.ts', '**/*.test.ts', '**/*.spec.ts'],
42
42
  rules: {
43
- '@typescript-eslint/no-explicit-any': 'off',
44
- '@typescript-eslint/no-unused-vars': 'warn',
45
- 'no-console': 'off',
43
+ '@typescript-eslint/no-explicit-any': 'off'
46
44
  },
47
45
  },
48
46
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nosana/kit",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Nosana KIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",