mirror of https://github.com/certusone/oyster.git
fixes
This commit is contained in:
parent
e2db2f6315
commit
7d15147912
|
@ -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",
|
||||
|
|
|
@ -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) => {
|
|||
</Link>
|
||||
</Menu.Item>
|
||||
{env !== 'mainnet-beta' && (
|
||||
<Menu.Item key="8" icon={<RocketOutlined />}>
|
||||
<Menu.Item key="5" icon={<RocketOutlined />}>
|
||||
<Link
|
||||
to={{
|
||||
pathname: '/faucet',
|
||||
|
|
|
@ -1,88 +0,0 @@
|
|||
// https://github.com/project-serum/anchor/blob/master/ts/types/buffer-layout/index.d.ts
|
||||
declare module 'buffer-layout' {
|
||||
// TODO: remove `any`.
|
||||
export class Layout<T = any> {
|
||||
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<T = any> extends Layout<T> {
|
||||
span: any;
|
||||
}
|
||||
export function greedy(
|
||||
elementSpan?: number,
|
||||
property?: string,
|
||||
): Layout<number>;
|
||||
export function offset<T>(
|
||||
layout: Layout<T>,
|
||||
offset?: number,
|
||||
property?: string,
|
||||
): Layout<T>;
|
||||
export function u8(property?: string): Layout<number>;
|
||||
export function u16(property?: string): Layout<number>;
|
||||
export function u24(property?: string): Layout<number>;
|
||||
export function u32(property?: string): Layout<number>;
|
||||
export function u40(property?: string): Layout<number>;
|
||||
export function u48(property?: string): Layout<number>;
|
||||
export function nu64(property?: string): Layout<number>;
|
||||
export function u16be(property?: string): Layout<number>;
|
||||
export function u24be(property?: string): Layout<number>;
|
||||
export function u32be(property?: string): Layout<number>;
|
||||
export function u40be(property?: string): Layout<number>;
|
||||
export function u48be(property?: string): Layout<number>;
|
||||
export function nu64be(property?: string): Layout<number>;
|
||||
export function s8(property?: string): Layout<number>;
|
||||
export function s16(property?: string): Layout<number>;
|
||||
export function s24(property?: string): Layout<number>;
|
||||
export function s32(property?: string): Layout<number>;
|
||||
export function s40(property?: string): Layout<number>;
|
||||
export function s48(property?: string): Layout<number>;
|
||||
export function ns64(property?: string): Layout<number>;
|
||||
export function s16be(property?: string): Layout<number>;
|
||||
export function s24be(property?: string): Layout<number>;
|
||||
export function s32be(property?: string): Layout<number>;
|
||||
export function s40be(property?: string): Layout<number>;
|
||||
export function s48be(property?: string): Layout<number>;
|
||||
export function ns64be(property?: string): Layout<number>;
|
||||
export function f32(property?: string): Layout<number>;
|
||||
export function f32be(property?: string): Layout<number>;
|
||||
export function f64(property?: string): Layout<number>;
|
||||
export function f64be(property?: string): Layout<number>;
|
||||
export function struct<T>(
|
||||
fields: Layout<any>[],
|
||||
property?: string,
|
||||
decodePrefixes?: boolean,
|
||||
): Layout<T>;
|
||||
export function bits(
|
||||
word: Layout<number>,
|
||||
msb?: boolean,
|
||||
property?: string,
|
||||
): any;
|
||||
export function seq<T>(
|
||||
elementLayout: Layout<T>,
|
||||
count: number | Layout<number>,
|
||||
property?: string,
|
||||
): Layout<T[]>;
|
||||
export function union(
|
||||
discr: Layout<any>,
|
||||
defaultLayout?: any,
|
||||
property?: string,
|
||||
): any;
|
||||
export function unionLayoutDiscriminator(
|
||||
layout: Layout<any>,
|
||||
property?: string,
|
||||
): any;
|
||||
export function blob(
|
||||
length: number | Layout<number>,
|
||||
property?: string,
|
||||
): Layout<Buffer>;
|
||||
export function cstr(property?: string): Layout<string>;
|
||||
export function utf8(maxSpan: number, property?: string): Layout<string>;
|
||||
}
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue