type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
MethodDeclaration | /**
* Destroy any sockets that are currently in use by the agent.
* It is usually not necessary to do this. However, if you are using an agent with KeepAlive enabled,
* then it is best to explicitly shut down the agent when you know that it will no longer be used. Otherwise,
* so... | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
send(message: any, sendHandle?: any): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
kill(signal?: string): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
destroy(signal?: string): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
disconnect(): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
isConnected(): boolean; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
isDead(): boolean; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
runInContext(contextifiedSandbox: Context, options?: RunningScriptOptions): any; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
runInNewContext(sandbox?: Context, options?: RunningScriptOptions): any; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
runInThisContext(options?: RunningScriptOptions): any; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
_read(size: number): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
read(size?: number): any; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
setEncoding(encoding: string): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
pause(): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
resume(): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
unpipe<T extends NodeJS.WritableStream>(destination?: T): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
unshift(chunk: any): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
wrap(oldStream: NodeJS.ReadableStream): NodeJS.ReadableStream; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
push(chunk: any, encoding?: string): boolean; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
_write(chunk: any, encoding: string, callback: Function): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
write(chunk: any, cb?: Function): boolean; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
write(chunk: any, encoding?: string, cb?: Function): boolean; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
end(): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
end(chunk: any, cb?: Function): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
end(chunk: any, encoding?: string, cb?: Function): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
_transform(chunk: any, encoding: string, callback: Function): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
_flush(callback: Function): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
run(fn: Function): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
add(emitter: events.EventEmitter): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
remove(emitter: events.EventEmitter): void; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
bind(cb: (err: Error, data: any) => any): any; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
MethodDeclaration |
intercept(cb: (data: any) => any): any; | ArtemAstahov/angular2-education | node_modules/@types/node/index.d.ts | TypeScript |
FunctionDeclaration |
export function debounce(func: Function, wait: number) {
let timer: NodeJS.Timeout;
return function (...args: any[]) {
if (timer) {
clearTimeout(timer);
}
timer = setTimeout(() => {
func.apply(undefined, args);
}, wait);
}
} | serendipityApe/tetris | src/utils/debounce.ts | TypeScript |
ArrowFunction |
() => {
func.apply(undefined, args);
} | serendipityApe/tetris | src/utils/debounce.ts | TypeScript |
ArrowFunction |
async (
connection: Connection,
tempCache: MetaState,
) => {
const updateTemp = makeSetter(tempCache);
const loadMetadata = () =>
pullMetadataByCreators(connection, tempCache, updateTemp);
const loadEditions = () =>
pullEditions(connection, updateTemp, tempCache, tempCache.metadata);
console.log(... | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
() =>
pullMetadataByCreators(connection, tempCache, updateTemp) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
() =>
pullEditions(connection, updateTemp, tempCache, tempCache.metadata) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
async (
connection: Connection,
userTokenAccounts: TokenAccount[],
tempCache: MetaState,
) => {
const updateTemp = makeSetter(tempCache);
console.log('--------->Pulling metadata for user.');
let currBatch: string[] = [];
let batches = [];
const editions = [];
for (let i = 0; i < userTokenAccounts.le... | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
async (
connection: Connection,
tempCache: MetaState,
) => {
const updateTemp = makeSetter(tempCache);
const forEach =
(fn: ProcessAccountsFunc) => async (accounts: AccountAndPubkey[]) => {
for (const account of accounts) {
await fn(account, updateTemp);
}
};
getProgramAccounts(c... | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
(fn: ProcessAccountsFunc) => async (accounts: AccountAndPubkey[]) => {
for (const account of accounts) {
await fn(account, updateTemp);
}
} | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
async (accounts: AccountAndPubkey[]) => {
for (const account of accounts) {
await fn(account, updateTemp);
}
} | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
async (
connection: Connection,
state: MetaState,
walletKey?: PublicKey | null,
): Promise<MetaState> => {
const updateTemp = makeSetter(state);
const forEach =
(fn: ProcessAccountsFunc) => async (accounts: AccountAndPubkey[]) => {
for (const account of accounts.flat()) {
await fn(account, ... | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
(fn: ProcessAccountsFunc) => async (accounts: AccountAndPubkey[]) => {
for (const account of accounts.flat()) {
await fn(account, updateTemp);
}
} | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
async (accounts: AccountAndPubkey[]) => {
for (const account of accounts.flat()) {
await fn(account, updateTemp);
}
} | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
packSetKey =>
getCardsByPackSet({ connection, packSetKey }) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
cards =>
cards.forEach(forEach(processPackCards)) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
packSetKey =>
getVouchersByPackSet({
connection,
packSetKey,
}) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
vouchers =>
vouchers.forEach(forEach(processPackVouchers)) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
packSetKey =>
getProvingProcessByPackSetAndWallet({
connection,
packSetKey,
walletKey,
}) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
provingProcess =>
provingProcess.forEach(forEach(processProvingProcess)) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
({ info }) => info.metadata | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
m => newState.metadataByMetadata[m] | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
async ({
connection,
state,
packSetKey,
walletKey,
}: {
connection: Connection;
state: MetaState;
packSetKey: StringPublicKey;
walletKey: PublicKey | null;
}): Promise<MetaState> => {
const updateTemp = makeSetter(state);
const packSet = await getPackSetByPubkey(connection, packSetKey);
processP... | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
card => processPackCards(card, updateTemp) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
process =>
processProvingProcess(process, updateTemp) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
async (
connection: Connection,
auction: StringPublicKey,
tempCache: MetaState,
) => {
const updateTemp = makeSetter(tempCache);
let cacheKey;
try {
cacheKey = await getAuctionCache(auction);
} catch (e) {
console.log(e);
console.log('Failed to get auction cache key');
return tempCache;
... | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
m => tempCache.metadataByMetadata[m] | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
a =>
a
? processAuctions({ pubkey: auctionExtKey, account: a }, updateTemp)
: null | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
md =>
getProgramAccounts(connection, METAPLEX_ID, {
filters: [
{
memcmp: {
offset: 1,
bytes: md,
},
},
],
}).then(forEach(processMetaplexAccounts)) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
async (
connection: Connection,
): Promise<ParsedAccount<StoreIndexer>[]> => {
let i = 0;
let pageKey = await getStoreIndexer(i);
let account = await connection.getAccountInfo(new PublicKey(pageKey));
const pages: ParsedAccount<StoreIndexer>[] = [];
while (account) {
pages.push({
info: decodeSto... | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
async (
connection: Connection,
page: number,
tempCache: MetaState,
walletKey?: PublicKey | null,
shouldFetchNftPacks?: boolean,
) => {
const updateTemp = makeSetter(tempCache);
const forEach =
(fn: ProcessAccountsFunc) => async (accounts: AccountAndPubkey[]) => {
for (const account of accounts... | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
s => s.pubkey == pageKey | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
(pubkey, i) => {
processMetaplexAccounts(
{
pubkey,
account: auctionCaches.array[i],
},
updateTemp,
);
} | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
s => tempCache.metadataByMetadata[s] | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
async (connection: Connection) => {
const tempCache: MetaState = getEmptyMetaState();
const updateTemp = makeSetter(tempCache);
const forEach =
(fn: ProcessAccountsFunc) => async (accounts: AccountAndPubkey[]) => {
for (const account of accounts) {
await fn(account, updateTemp);
}
};... | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
async (metadata: string) => {
const mdKey = new PublicKey(metadata);
const md = await connection.getAccountInfo(mdKey);
const mdObject = decodeMetadata(
Buffer.from(md?.data || new Uint8Array([])),
);
const editionKey = await getEdition(mdObject.mint);
const editionData = await connection... | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
async (auction: string) => {
const auctionExtendedKey = await getAuctionExtended({
auctionProgramId: AUCTION_ID,
resource: AUCTION_TO_VAULT[auction],
});
const auctionData = await getMultipleAccounts(
connection,
[auction, auctionExtendedKey],
'single',
);
if (auctio... | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
(pubkey, i) => {
processAuctions(
{
pubkey,
account: auctionData.array[i],
},
updateTemp,
);
} | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
async (auctionManager: string) => {
const auctionManagerKey = new PublicKey(auctionManager);
const auctionManagerData = await connection.getAccountInfo(
auctionManagerKey,
);
if (auctionManagerData) {
//@ts-ignore
auctionManagerData.owner = auctionManagerData.owner.toBase58();
p... | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
async (vault: string) => {
const vaultKey = new PublicKey(vault);
const vaultData = await connection.getAccountInfo(vaultKey);
if (vaultData) {
//@ts-ignore
vaultData.owner = vaultData.owner.toBase58();
processVaultData(
{
pubkey: vault,
account: vaultData,
... | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
md => pullMetadata(md) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
a => pullAuction(a) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
a => pullAuctionManager(a) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
a => pullVault(a) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
a =>
getProgramAccounts(connection, AUCTION_ID, {
filters: [
{
memcmp: {
offset: 32,
bytes: a,
},
},
],
}).then(forEach(processAuctions)) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
a =>
getProgramAccounts(connection, AUCTION_ID, {
filters: [
{
memcmp: {
offset: 64,
bytes: a,
},
},
],
}).then(forEach(processAuctions)) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
v =>
getProgramAccounts(connection, VAULT_ID, {
filters: [
{
memcmp: {
offset: 1,
bytes: v,
},
},
],
}).then(forEach(processVaultData)) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
a =>
getProgramAccounts(connection, METAPLEX_ID, {
filters: [
{
memcmp: {
offset: 9,
bytes: a,
},
},
],
}).then(forEach(processMetaplexAccounts)) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
a =>
getProgramAccounts(connection, METAPLEX_ID, {
filters: [
{
memcmp: {
offset: 1,
bytes: a,
},
},
],
}).then(forEach(processMetaplexAccounts)) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
key =>
AUCTION_TO_METADATA[key]
.map(md =>
getProgramAccounts(connection, METAPLEX_ID, {
filters: [
{
memcmp: {
offset: 1,
bytes: md,
},
},
],
... | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
md =>
getProgramAccounts(connection, METAPLEX_ID, {
filters: [
{
memcmp: {
offset: 1,
bytes: md,
},
},
],
}).then(forEach(processMetaplexAccounts)) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
async (connection: Connection) => {
const state: MetaState = getEmptyMetaState();
const updateState = makeSetter(state);
const forEachAccount = processingAccounts(updateState);
const forEach =
(fn: ProcessAccountsFunc) => async (accounts: AccountAndPubkey[]) => {
for (const account of accounts) {
... | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
(fn: ProcessAccountsFunc) => async (accounts: AccountAndPubkey[]) => {
for (const account of accounts) {
await fn(account, updateState);
}
} | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
async (accounts: AccountAndPubkey[]) => {
for (const account of accounts) {
await fn(account, updateState);
}
} | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
() =>
getProgramAccounts(connection, VAULT_ID).then(
forEachAccount(processVaultData),
) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
() =>
getProgramAccounts(connection, AUCTION_ID).then(
forEachAccount(processAuctions),
) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
() =>
getProgramAccounts(connection, METAPLEX_ID).then(
forEachAccount(processMetaplexAccounts),
) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
() =>
getProgramAccounts(connection, METAPLEX_ID, {
filters: [
{
dataSize: MAX_WHITELISTED_CREATOR_SIZE,
},
],
}).then(forEach(processMetaplexAccounts)) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
() =>
pullMetadataByCreators(connection, state, updateState) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
() =>
pullEditions(connection, updateState, state, state.metadata) | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
(a: ParsedAccount<Metadata>, b: ParsedAccount<Metadata>) =>
a.pubkey === b.pubkey | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
async (
connection: Connection,
updater: UpdateStateValueFunc,
state: MetaState,
metadataArr: ParsedAccount<Metadata>[],
) => {
console.log('Pulling editions for optimized metadata');
type MultipleAccounts = UnPromise<ReturnType<typeof getMultipleAccounts>>;
let setOf100MetadataEditionKeys: string[] = [... | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
() => {
editionPromises.push(
getMultipleAccounts(
connection,
setOf100MetadataEditionKeys,
'recent',
).then(processEditions),
);
setOf100MetadataEditionKeys = [];
} | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
(returnedAccounts: MultipleAccounts) => {
for (let j = 0; j < returnedAccounts.array.length; j++) {
processMetaData(
{
pubkey: returnedAccounts.keys[j],
account: returnedAccounts.array[j],
},
updater,
);
}
} | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
(
connection: Connection,
state: MetaState,
updater: UpdateStateValueFunc,
): Promise<any> => {
console.log('pulling optimized nfts');
const whitelistedCreators = Object.values(state.whitelistedCreatorsByCreator);
const setter: UpdateStateValueFunc = async (prop, key, value) => {
if (prop === 'metada... | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
async (prop, key, value) => {
if (prop === 'metadataByMint') {
await initMetadata(value, state.whitelistedCreatorsByCreator, updater);
} else {
updater(prop, key, value);
}
} | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
async (
connection: Connection,
state: MetaState,
metadataKeys: StringPublicKey[],
): Promise<MetaState> => {
const updateState = makeSetter(state);
let setOf100MetadataEditionKeys: string[] = [];
const metadataPromises: Promise<void>[] = [];
const loadBatch = () => {
metadataPromises.push(
g... | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
() => {
metadataPromises.push(
getMultipleAccounts(
connection,
setOf100MetadataEditionKeys,
'recent',
).then(({ keys, array }) => {
keys.forEach((key, index) =>
processMetaData({ pubkey: key, account: array[index] }, updateState),
);
}),
);
... | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
ArrowFunction |
({ keys, array }) => {
keys.forEach((key, index) =>
processMetaData({ pubkey: key, account: array[index] }, updateState),
);
} | 01Clarian/metaplex | js/packages/common/src/contexts/meta/loadAccounts.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.