Skip to content

Commit

Permalink
trying to fix build issue by moving submodule ref into packages dir
Browse files Browse the repository at this point in the history
  • Loading branch information
decartesol committed Feb 21, 2024
1 parent ea28c5d commit 85273eb
Show file tree
Hide file tree
Showing 25 changed files with 13,553 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "futarchy-ts"]
path = futarchy-ts
path = packages/futarchy-ts
url = https://github.com/metaDAOproject/futarchy-ts
1 change: 0 additions & 1 deletion futarchy-ts
Submodule futarchy-ts deleted from 5ea346
1 change: 1 addition & 0 deletions packages/futarchy-ts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
3 changes: 3 additions & 0 deletions packages/futarchy-ts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# futarchy-ts

The Meta-DAO Futarchy Typescript SDK
32 changes: 32 additions & 0 deletions packages/futarchy-ts/lib/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { PublicKey } from '@solana/web3.js';
import { BN } from '@coral-xyz/anchor';
import { AutocratProgram, ProgramVersion } from './types';


export const OPENBOOK_PROGRAM_ID = new PublicKey('opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb');
export const OPENBOOK_TWAP_PROGRAM_ID = new PublicKey(
'TWAPrdhADy2aTKN5iFZtNnkQYXERD9NvKjPFVPMSCNN',
);

export const NUMERAL_FORMAT = '0,0.00';
export const BASE_FORMAT = '0,0';
export const SLOTS_PER_10_SECS: number = 25;
export const TEN_DAYS_IN_SLOTS: number = 10 * 24 * 60 * 6 * SLOTS_PER_10_SECS;
export const QUOTE_LOTS = 0.0001;
export const BN_0 = new BN(0);

const AUTOCRAT_V0_IDL: AutocratProgram = require('./idl/autocrat_v0.json');
const AUTOCRAT_V0_1_IDL: AutocratProgram = require('./idl/autocrat_v0.1.json');

export const AUTOCRAT_VERSIONS: ProgramVersion[] = [
{
label: 'V0.1',
programId: new PublicKey('metaX99LHn3A7Gr7VAcCfXhpfocvpMpqQ3eyp3PGUUq'),
idl: AUTOCRAT_V0_1_IDL,
},
{
label: 'V0',
programId: new PublicKey('meta3cxKzFBmWYgCVozmvCQAS3y9b3fGxrG9HkHL7Wi'),
idl: AUTOCRAT_V0_IDL,
},
];
Loading

0 comments on commit 85273eb

Please sign in to comment.