fmt
This commit is contained in:
parent
4ba17c7e97
commit
b0a364523a
|
@ -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);
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import * as bs58 from 'bs58';
|
||||
import * as bs58 from "bs58";
|
||||
import camelCase from "camelcase";
|
||||
import EventEmitter from "eventemitter3";
|
||||
import {
|
||||
|
|
|
@ -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: [
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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: [
|
||||
|
|
|
@ -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: [
|
||||
|
|
Loading…
Reference in New Issue