-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trying to fix build issue by moving submodule ref into packages dir
- Loading branch information
1 parent
ea28c5d
commit 85273eb
Showing
25 changed files
with
13,553 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Submodule futarchy-ts
deleted from
5ea346
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# futarchy-ts | ||
|
||
The Meta-DAO Futarchy Typescript SDK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}, | ||
]; |
Oops, something went wrong.