token-swap: Migrate to `@solana/buffer-layout` (#2629)

This commit is contained in:
Abhimanyu Singh Gaur 2021-12-11 02:23:46 +05:30 committed by GitHub
parent 442ff895e9
commit 70973850d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5230 additions and 37 deletions

File diff suppressed because it is too large Load Diff

View File

@ -48,7 +48,7 @@
"dependencies": {
"@solana/web3.js": "^1.10.0",
"bn.js": "^5.1.3",
"buffer-layout": "^1.2.0",
"@solana/buffer-layout": "^3.0.0",
"dotenv": "10.0.0",
"json-to-pretty-yaml": "^1.2.2",
"mkdirp": "1.0.4"

View File

@ -1 +1 @@
declare module 'buffer-layout';
declare module '@solana/buffer-layout';

View File

@ -1,7 +1,7 @@
import assert from 'assert';
import BN from 'bn.js';
import {Buffer} from 'buffer';
import * as BufferLayout from 'buffer-layout';
import * as BufferLayout from '@solana/buffer-layout';
import type {Connection, TransactionSignature} from '@solana/web3.js';
import {
Account,

View File

@ -1,4 +1,4 @@
import * as BufferLayout from 'buffer-layout';
import * as BufferLayout from '@solana/buffer-layout';
/**
* Layout for a public key