Armani Ferrante преди 3 години
родител
ревизия
b0a364523a

+ 2 - 2
ts/src/coder/borsh/event.ts

@@ -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);

+ 1 - 1
ts/src/coder/spl-token/accounts.ts

@@ -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 - 1
ts/src/program/namespace/account.ts

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

+ 2 - 2
ts/src/spl/token.ts

@@ -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: [

+ 3 - 3
ts/src/utils/features.ts

@@ -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();

+ 1 - 1
ts/tests/events.spec.ts

@@ -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: [

+ 1 - 1
ts/tests/transaction.spec.ts

@@ -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: [