Skip to content

Commit

Permalink
Merge pull request #194 from atonoy/feature/deprecated-metaplexfounda…
Browse files Browse the repository at this point in the history
…tion-js

Fix lint & recompiled
  • Loading branch information
fukaoi authored Oct 26, 2023
2 parents 41b98dc + da5a720 commit d4cd626
Show file tree
Hide file tree
Showing 33 changed files with 126 additions and 126 deletions.
4 changes: 2 additions & 2 deletions packages/core/dist/cjs/memo/history.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Pubkey } from "@solana-suite/shared";
import { History, HistoryOptions, OnErr, OnOk } from "../types/";
import { Pubkey } from '@solana-suite/shared';
import { History, HistoryOptions, OnErr, OnOk } from '../types/';
export declare namespace Memo {
const getHistory: (target: Pubkey, onOk: OnOk<History>, onErr: OnErr, options?: Partial<HistoryOptions>) => Promise<void>;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/core/dist/cjs/signatures.js

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

4 changes: 2 additions & 2 deletions packages/core/dist/cjs/sol-native/history.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Pubkey } from "@solana-suite/shared";
import { FilterType, History, HistoryOptions, OnErr, OnOk } from "../types/";
import { Pubkey } from '@solana-suite/shared';
import { FilterType, History, HistoryOptions, OnErr, OnOk } from '../types/';
export declare namespace SolNative {
const getHistory: (target: Pubkey, filterType: FilterType, onOk: OnOk<History>, onErr: OnErr, options?: Partial<HistoryOptions>) => Promise<void>;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/core/dist/cjs/spl-token/history.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Pubkey } from "@solana-suite/shared";
import { FilterType, History, HistoryOptions, OnErr, OnOk } from "../types/";
import { Pubkey } from '@solana-suite/shared';
import { FilterType, History, HistoryOptions, OnErr, OnOk } from '../types/';
export declare namespace SplToken {
const getHistory: (target: Pubkey, filterType: FilterType, onOk: OnOk<History>, onErr: OnErr, options?: Partial<HistoryOptions>) => Promise<void>;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/dist/cjs/spl-token/history.js

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

2 changes: 1 addition & 1 deletion packages/core/dist/cjs/types/find.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UserSideOutput } from "@solana-suite/shared-metaplex";
import { UserSideOutput } from '@solana-suite/shared-metaplex';
export declare enum Sortable {
Asc = "asc",
Desc = "desc"
Expand Down
16 changes: 8 additions & 8 deletions packages/core/dist/cjs/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { UserSideOutput as SharendMetaplex } from "@solana-suite/shared-metaplex";
import { UserSideOutput as Internal } from "./user-side/output";
export * from "./find";
export * from "./infra-side/output";
export * from "./user-side/output";
export * from "./sol-native";
export * from "./spl-token";
export * from "./transaction-filter";
import { UserSideOutput as SharendMetaplex } from '@solana-suite/shared-metaplex';
import { UserSideOutput as Internal } from './user-side/output';
export * from './find';
export * from './infra-side/output';
export * from './user-side/output';
export * from './sol-native';
export * from './spl-token';
export * from './transaction-filter';
export type Find = SharendMetaplex.TokenMetadata;
export type History = Internal.History;
export type OnOk<T extends Find | History> = (ok: T[]) => void;
Expand Down
4 changes: 2 additions & 2 deletions packages/core/dist/esm/memo/history.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Pubkey } from "@solana-suite/shared";
import { History, HistoryOptions, OnErr, OnOk } from "../types/";
import { Pubkey } from '@solana-suite/shared';
import { History, HistoryOptions, OnErr, OnOk } from '../types/';
export declare namespace Memo {
const getHistory: (target: Pubkey, onOk: OnOk<History>, onErr: OnErr, options?: Partial<HistoryOptions>) => Promise<void>;
}
Expand Down
6 changes: 3 additions & 3 deletions packages/core/dist/esm/memo/history.js

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

6 changes: 3 additions & 3 deletions packages/core/dist/esm/signatures.js

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

4 changes: 2 additions & 2 deletions packages/core/dist/esm/sol-native/history.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Pubkey } from "@solana-suite/shared";
import { FilterType, History, HistoryOptions, OnErr, OnOk } from "../types/";
import { Pubkey } from '@solana-suite/shared';
import { FilterType, History, HistoryOptions, OnErr, OnOk } from '../types/';
export declare namespace SolNative {
const getHistory: (target: Pubkey, filterType: FilterType, onOk: OnOk<History>, onErr: OnErr, options?: Partial<HistoryOptions>) => Promise<void>;
}
Expand Down
6 changes: 3 additions & 3 deletions packages/core/dist/esm/sol-native/history.js

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

4 changes: 2 additions & 2 deletions packages/core/dist/esm/spl-token/history.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Pubkey } from "@solana-suite/shared";
import { FilterType, History, HistoryOptions, OnErr, OnOk } from "../types/";
import { Pubkey } from '@solana-suite/shared';
import { FilterType, History, HistoryOptions, OnErr, OnOk } from '../types/';
export declare namespace SplToken {
const getHistory: (target: Pubkey, filterType: FilterType, onOk: OnOk<History>, onErr: OnErr, options?: Partial<HistoryOptions>) => Promise<void>;
}
Expand Down
12 changes: 6 additions & 6 deletions packages/core/dist/esm/spl-token/history.js

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

2 changes: 1 addition & 1 deletion packages/core/dist/esm/types/find.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UserSideOutput } from "@solana-suite/shared-metaplex";
import { UserSideOutput } from '@solana-suite/shared-metaplex';
export declare enum Sortable {
Asc = "asc",
Desc = "desc"
Expand Down
16 changes: 8 additions & 8 deletions packages/core/dist/esm/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { UserSideOutput as SharendMetaplex } from "@solana-suite/shared-metaplex";
import { UserSideOutput as Internal } from "./user-side/output";
export * from "./find";
export * from "./infra-side/output";
export * from "./user-side/output";
export * from "./sol-native";
export * from "./spl-token";
export * from "./transaction-filter";
import { UserSideOutput as SharendMetaplex } from '@solana-suite/shared-metaplex';
import { UserSideOutput as Internal } from './user-side/output';
export * from './find';
export * from './infra-side/output';
export * from './user-side/output';
export * from './sol-native';
export * from './spl-token';
export * from './transaction-filter';
export type Find = SharendMetaplex.TokenMetadata;
export type History = Internal.History;
export type OnOk<T extends Find | History> = (ok: T[]) => void;
Expand Down
12 changes: 6 additions & 6 deletions packages/core/dist/esm/types/index.js

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

8 changes: 4 additions & 4 deletions packages/core/src/memo/history.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { Pubkey } from "@solana-suite/shared";
import { Pubkey } from '@solana-suite/shared';
import {
FilterType,
History,
HistoryOptions,
ModuleName,
OnErr,
OnOk,
} from "../types/";
import { TransactionFilter } from "../transaction-filter";
import { Signatures } from "../signatures";
} from '../types/';
import { TransactionFilter } from '../transaction-filter';
import { Signatures } from '../signatures';

export namespace Memo {
export const getHistory = async (
Expand Down
10 changes: 5 additions & 5 deletions packages/core/src/signatures.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ParsedTransactionWithMeta } from "@solana/web3.js";
import { debugLog, Node, Pubkey, Result, sleep } from "@solana-suite/shared";
import { UserSideOutput } from "./types/";
import { ParsedTransactionWithMeta } from '@solana/web3.js';
import { debugLog, Node, Pubkey, Result, sleep } from '@solana-suite/shared';
import { UserSideOutput } from './types/';

//@internal
export namespace Signatures {
Expand All @@ -27,15 +27,15 @@ export namespace Signatures {
histories: UserSideOutput.History[] = [],
): Promise<void> => {
try {
debugLog("# options: ", options);
debugLog('# options: ', options);
const transactions = await Node.getConnection().getSignaturesForAddress(
pubkey.toPublicKey(),
{
limit: options.narrowDown,
},
);

debugLog("# transactions count:", transactions.length);
debugLog('# transactions count:', transactions.length);

for (const transaction of transactions) {
parseForTransaction(transaction.signature)
Expand Down
8 changes: 4 additions & 4 deletions packages/core/src/sol-native/history.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { Pubkey } from "@solana-suite/shared";
import { Pubkey } from '@solana-suite/shared';
import {
FilterType,
History,
HistoryOptions,
ModuleName,
OnErr,
OnOk,
} from "../types/";
import { TransactionFilter } from "../transaction-filter";
import { Signatures } from "../signatures";
} from '../types/';
import { TransactionFilter } from '../transaction-filter';
import { Signatures } from '../signatures';

export namespace SolNative {
export const getHistory = async (
Expand Down
12 changes: 6 additions & 6 deletions packages/core/src/spl-token/history.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TOKEN_PROGRAM_ID } from "@solana/spl-token";
import { debugLog, Node, Pubkey } from "@solana-suite/shared";
import { TOKEN_PROGRAM_ID } from '@solana/spl-token';
import { debugLog, Node, Pubkey } from '@solana-suite/shared';
import {
FilterType,
History,
Expand All @@ -8,9 +8,9 @@ import {
OnErr,
OnOk,
UserSideOutput,
} from "../types/";
import { Signatures } from "../signatures";
import { TransactionFilter } from "../transaction-filter";
} from '../types/';
import { Signatures } from '../signatures';
import { TransactionFilter } from '../transaction-filter';

export namespace SplToken {
export const getHistory = async (
Expand Down Expand Up @@ -44,7 +44,7 @@ export namespace SplToken {
);

const storedHistories: UserSideOutput.History[] = [];
debugLog("# tokenAccounts size: ", tokenAccounts.value.length);
debugLog('# tokenAccounts size: ', tokenAccounts.value.length);
for (const account of tokenAccounts.value) {
const parser = TransactionFilter.parse(
filterType,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/types/find.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { UserSideOutput } from "@solana-suite/shared-metaplex";
import { UserSideOutput } from '@solana-suite/shared-metaplex';

export enum Sortable {
Asc = 'asc',
Expand Down
16 changes: 8 additions & 8 deletions packages/core/src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { UserSideOutput as SharendMetaplex } from "@solana-suite/shared-metaplex";
import { UserSideOutput as Internal } from "./user-side/output";
import { UserSideOutput as SharendMetaplex } from '@solana-suite/shared-metaplex';
import { UserSideOutput as Internal } from './user-side/output';

export * from "./find";
export * from "./infra-side/output";
export * from "./user-side/output";
export * from "./sol-native";
export * from "./spl-token";
export * from "./transaction-filter";
export * from './find';
export * from './infra-side/output';
export * from './user-side/output';
export * from './sol-native';
export * from './spl-token';
export * from './transaction-filter';

export type Find = SharendMetaplex.TokenMetadata;
export type History = Internal.History;
Expand Down
4 changes: 2 additions & 2 deletions packages/shared/dist/cjs/node.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Result } from "./result";
import { Commitment, Connection } from "@solana/web3.js";
import { Result } from './result';
import { Commitment, Connection } from '@solana/web3.js';
export declare namespace Node {
const getConnection: () => Connection;
const changeConnection: (param: {
Expand Down
12 changes: 6 additions & 6 deletions packages/shared/dist/cjs/node.js

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

4 changes: 2 additions & 2 deletions packages/shared/dist/esm/node.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Result } from "./result";
import { Commitment, Connection } from "@solana/web3.js";
import { Result } from './result';
import { Commitment, Connection } from '@solana/web3.js';
export declare namespace Node {
const getConnection: () => Connection;
const changeConnection: (param: {
Expand Down
Loading

0 comments on commit d4cd626

Please sign in to comment.