This commit is contained in:
Armani Ferrante 2022-02-08 13:56:30 -05:00
parent 4ba17c7e97
commit b0a364523a
No known key found for this signature in database
GPG Key ID: D597A80BCF8E12B7
7 changed files with 11 additions and 11 deletions

View File

@ -42,7 +42,7 @@ export class BorshEventCoder implements EventCoder {
idl.events === undefined
? []
: idl.events.map((e) => [
base64.fromByteArray(EventHeader.discriminator(e.name)),
base64.fromByteArray(EventHeader.discriminator(e.name)),
e.name,
])
);
@ -58,7 +58,7 @@ export class BorshEventCoder implements EventCoder {
} catch (e) {
return null;
}
const disc = base64.fromByteArray(EventHeader.parseDiscriminator(logArr));
const disc = base64.fromByteArray(EventHeader.parseDiscriminator(logArr));
// Only deserialize if the discriminator implies a proper event.
const eventName = this.discriminators.get(disc);

View File

@ -45,7 +45,7 @@ export class SplTokenAccountsCoder<A extends string = string>
}
}
public memcmp(accountName: A): GetProgramAccountsFilter {
public memcmp(accountName: A): GetProgramAccountsFilter {
switch (accountName) {
case "Token": {
return {

View File

@ -1,4 +1,4 @@
import * as bs58 from 'bs58';
import * as bs58 from "bs58";
import camelCase from "camelcase";
import EventEmitter from "eventemitter3";
import {

View File

@ -19,7 +19,7 @@ export function coder(): SplTokenCoder {
* SplToken IDL.
*/
export type SplToken = {
layoutVersion: "custom";
layoutVersion: "custom";
version: "0.1.0";
name: "spl_token";
instructions: [
@ -625,7 +625,7 @@ export type SplToken = {
};
export const IDL: SplToken = {
layoutVersion: "custom",
layoutVersion: "custom",
version: "0.1.0",
name: "spl_token",
instructions: [

View File

@ -1,7 +1,7 @@
const _AVAILABLE_FEATURES = new Set([
"anchor-deprecated-state",
"debug-logs",
"deprecated-layout",
"anchor-deprecated-state",
"debug-logs",
"deprecated-layout",
]);
const _FEATURES = new Map();

View File

@ -12,7 +12,7 @@ describe("Events", () => {
"Program J2XMGdW2qQLx7rAdwWtSZpTXDgAQ988BLP9QTgUZvm54 success",
];
const idl = {
layoutVersion: "0.1.0",
layoutVersion: "0.1.0",
version: "0.0.0",
name: "basic_0",
instructions: [

View File

@ -15,7 +15,7 @@ describe("Transaction", () => {
data: Buffer.from("post"),
});
const idl = {
layoutVersion: "0.1.0",
layoutVersion: "0.1.0",
version: "0.0.0",
name: "basic_0",
instructions: [