From 7d151479128a7729164f6a6ef74b1a9196f791de Mon Sep 17 00:00:00 2001 From: jordansexton Date: Fri, 2 Jul 2021 18:01:24 -0500 Subject: [PATCH] fixes --- packages/lending/package.json | 2 +- .../lending/src/components/Layout/index.tsx | 5 +- packages/lending/types/buffer-layout.d.ts | 88 ------------------- yarn.lock | 8 +- 4 files changed, 8 insertions(+), 95 deletions(-) delete mode 100644 packages/lending/types/buffer-layout.d.ts diff --git a/packages/lending/package.json b/packages/lending/package.json index 8d730f0..f6db3f9 100644 --- a/packages/lending/package.json +++ b/packages/lending/package.json @@ -11,7 +11,7 @@ "@project-serum/sol-wallet-adapter": "^0.1.4", "@pythnetwork/client": "^2.0.0", "@solana/spl-token": "^0.1.6", - "@solana/spl-token-lending": "^0.3.3", + "@solana/spl-token-lending": "^0.3.6", "@solana/spl-token-swap": "^0.1.0", "@solana/wallet-base": "0.0.1", "@solana/wallet-ledger": "0.0.1", diff --git a/packages/lending/src/components/Layout/index.tsx b/packages/lending/src/components/Layout/index.tsx index 46b8913..b15eaa3 100644 --- a/packages/lending/src/components/Layout/index.tsx +++ b/packages/lending/src/components/Layout/index.tsx @@ -25,10 +25,11 @@ export const AppLayout = React.memo((props: any) => { const location = useLocation(); const paths: { [key: string]: string } = { + '/': '1', '/markets': '2', '/reserves': '3', '/obligations': '4', - '/faucet': '8', + '/faucet': '5', }; const current = @@ -103,7 +104,7 @@ export const AppLayout = React.memo((props: any) => { {env !== 'mainnet-beta' && ( - }> + }> { - span: number; - property?: string; - - constructor(span: number, property?: string); - - decode(b: Buffer, offset?: number): T; - encode(src: T, b: Buffer, offset?: number): number; - getSpan(b: Buffer, offset?: number): number; - replicate(name: string): this; - } - // TODO: remove any. - export class Structure extends Layout { - span: any; - } - export function greedy( - elementSpan?: number, - property?: string, - ): Layout; - export function offset( - layout: Layout, - offset?: number, - property?: string, - ): Layout; - export function u8(property?: string): Layout; - export function u16(property?: string): Layout; - export function u24(property?: string): Layout; - export function u32(property?: string): Layout; - export function u40(property?: string): Layout; - export function u48(property?: string): Layout; - export function nu64(property?: string): Layout; - export function u16be(property?: string): Layout; - export function u24be(property?: string): Layout; - export function u32be(property?: string): Layout; - export function u40be(property?: string): Layout; - export function u48be(property?: string): Layout; - export function nu64be(property?: string): Layout; - export function s8(property?: string): Layout; - export function s16(property?: string): Layout; - export function s24(property?: string): Layout; - export function s32(property?: string): Layout; - export function s40(property?: string): Layout; - export function s48(property?: string): Layout; - export function ns64(property?: string): Layout; - export function s16be(property?: string): Layout; - export function s24be(property?: string): Layout; - export function s32be(property?: string): Layout; - export function s40be(property?: string): Layout; - export function s48be(property?: string): Layout; - export function ns64be(property?: string): Layout; - export function f32(property?: string): Layout; - export function f32be(property?: string): Layout; - export function f64(property?: string): Layout; - export function f64be(property?: string): Layout; - export function struct( - fields: Layout[], - property?: string, - decodePrefixes?: boolean, - ): Layout; - export function bits( - word: Layout, - msb?: boolean, - property?: string, - ): any; - export function seq( - elementLayout: Layout, - count: number | Layout, - property?: string, - ): Layout; - export function union( - discr: Layout, - defaultLayout?: any, - property?: string, - ): any; - export function unionLayoutDiscriminator( - layout: Layout, - property?: string, - ): any; - export function blob( - length: number | Layout, - property?: string, - ): Layout; - export function cstr(property?: string): Layout; - export function utf8(maxSpan: number, property?: string): Layout; -} diff --git a/yarn.lock b/yarn.lock index a0d2528..3a7a392 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3082,10 +3082,10 @@ resolved "https://registry.yarnpkg.com/@sinonjs/text-encoding/-/text-encoding-0.7.1.tgz#8da5c6530915653f3a1f38fd5f101d8c3f8079c5" integrity sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ== -"@solana/spl-token-lending@^0.3.3": - version "0.3.3" - resolved "https://registry.yarnpkg.com/@solana/spl-token-lending/-/spl-token-lending-0.3.3.tgz#efc5813d6c45fc51340d530e8c9f498dfa4e75e7" - integrity sha512-CDNiNIu+31jLUO2ZduM4oEDXyOUn1Wwgim3/pyA0aiL7kOcOeatstnJWMUT3bsyy42FiY9GR+PT0eloShV6abg== +"@solana/spl-token-lending@^0.3.6": + version "0.3.6" + resolved "https://registry.yarnpkg.com/@solana/spl-token-lending/-/spl-token-lending-0.3.6.tgz#df88587e2d8b65a5a1ff43b8f059b91ee168c411" + integrity sha512-T6o35YfN00UHtoVo3PK5yIVg6WZnHGZnyCfge8nQFPq/r9zW1Bcqg1XVv9Tz+bXEXgbihkW/p85KQQ29+Tjpng== dependencies: bigint-buffer "^1.1.5" bignumber.js "^9.0.1"