-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade dependencies * helius switch * ordering * upgrade to esm * fix order * fix build * mkdir
- Loading branch information
Showing
31 changed files
with
2,944 additions
and
2,186 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
compileRewardersList.mjs |
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
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
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
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 |
---|---|---|
|
@@ -10,3 +10,5 @@ | |
data/ | ||
.tmp.* | ||
src/config/rewarder-list.json | ||
|
||
dist/ |
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 @@ | ||
{} |
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
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,20 @@ | ||
#!/usr/bin/env node | ||
|
||
const {existsSync} = require(`fs`); | ||
const {createRequire} = require(`module`); | ||
const {resolve} = require(`path`); | ||
|
||
const relPnpApiPath = "../../../../.pnp.cjs"; | ||
|
||
const absPnpApiPath = resolve(__dirname, relPnpApiPath); | ||
const absRequire = createRequire(absPnpApiPath); | ||
|
||
if (existsSync(absPnpApiPath)) { | ||
if (!process.versions.pnp) { | ||
// Setup the environment to be able to require eslint/use-at-your-own-risk | ||
require(absPnpApiPath).setup(); | ||
} | ||
} | ||
|
||
// Defer to the real eslint/use-at-your-own-risk your application uses | ||
module.exports = absRequire(`eslint/use-at-your-own-risk`); |
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,6 +1,14 @@ | ||
{ | ||
"name": "eslint", | ||
"version": "8.26.0-sdk", | ||
"version": "8.54.0-sdk", | ||
"main": "./lib/api.js", | ||
"type": "commonjs" | ||
"type": "commonjs", | ||
"bin": { | ||
"eslint": "./bin/eslint.js" | ||
}, | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": "./lib/api.js", | ||
"./use-at-your-own-risk": "./lib/unsupported-api.js" | ||
} | ||
} |
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,20 @@ | ||
#!/usr/bin/env node | ||
|
||
const {existsSync} = require(`fs`); | ||
const {createRequire} = require(`module`); | ||
const {resolve} = require(`path`); | ||
|
||
const relPnpApiPath = "../../../../.pnp.cjs"; | ||
|
||
const absPnpApiPath = resolve(__dirname, relPnpApiPath); | ||
const absRequire = createRequire(absPnpApiPath); | ||
|
||
if (existsSync(absPnpApiPath)) { | ||
if (!process.versions.pnp) { | ||
// Setup the environment to be able to require prettier/bin/prettier.cjs | ||
require(absPnpApiPath).setup(); | ||
} | ||
} | ||
|
||
// Defer to the real prettier/bin/prettier.cjs your application uses | ||
module.exports = absRequire(`prettier/bin/prettier.cjs`); |
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
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,6 +1,7 @@ | ||
{ | ||
"name": "prettier", | ||
"version": "2.7.1-sdk", | ||
"main": "./index.js", | ||
"type": "commonjs" | ||
"version": "3.1.0-sdk", | ||
"main": "./index.cjs", | ||
"type": "commonjs", | ||
"bin": "./bin/prettier.cjs" | ||
} |
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
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
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
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,6 +1,10 @@ | ||
{ | ||
"name": "typescript", | ||
"version": "4.8.4-sdk", | ||
"version": "5.3.2-sdk", | ||
"main": "./lib/typescript.js", | ||
"type": "commonjs" | ||
"type": "commonjs", | ||
"bin": { | ||
"tsc": "./bin/tsc", | ||
"tsserver": "./bin/tsserver" | ||
} | ||
} |
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 @@ | ||
nodeLinker: pnp | ||
|
||
yarnPath: .yarn/releases/yarn-4.0.0-rc.26.cjs | ||
yarnPath: .yarn/releases/yarn-4.0.2.cjs |
File renamed without changes.
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,23 @@ | ||
import * as fs from "fs/promises"; | ||
import * as toml from "toml"; | ||
|
||
import path from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
|
||
const main = async () => { | ||
const raw = await fs.readFile(`${__dirname}/Rewarders.toml`); | ||
const data = toml.parse(raw.toString()); | ||
await fs.mkdir(`${__dirname}/src/config`, { recursive: true }); | ||
await fs.writeFile( | ||
`${__dirname}/src/config/rewarder-list.json`, | ||
JSON.stringify(data, null, 2), | ||
); | ||
}; | ||
|
||
main().catch((err) => { | ||
console.error(err); | ||
process.exit(1); | ||
}); |
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 |
---|---|---|
|
@@ -6,50 +6,49 @@ | |
"repository": "[email protected]:quarryprotocol/rewarder-list.git", | ||
"author": "Larry Jarry <[email protected]>", | ||
"license": "AGPL-3.0", | ||
"packageManager": "[email protected].0-rc.26", | ||
"packageManager": "[email protected].2", | ||
"devDependencies": { | ||
"@rushstack/eslint-patch": "^1.2.0", | ||
"@saberhq/eslint-config": "^2.1.0", | ||
"@saberhq/tsconfig": "^2.1.0", | ||
"@types/bn.js": "^5.1.1", | ||
"@types/eslint": "^8.4.8", | ||
"@types/lodash": "^4.14.186", | ||
"@types/node": "^18.11.7", | ||
"@types/prettier": "^2.7.1", | ||
"eslint": "^8.26.0", | ||
"eslint-import-resolver-node": "^0.3.6", | ||
"eslint-plugin-import": "^2.26.0", | ||
"husky": "^8.0.1", | ||
"lint-staged": "^13.0.3", | ||
"prettier": "^2.7.1", | ||
"@rushstack/eslint-patch": "^1.6.0", | ||
"@saberhq/eslint-config": "^3.2.0", | ||
"@saberhq/tsconfig": "^3.2.0", | ||
"@types/bn.js": "^5.1.5", | ||
"@types/eslint": "^8.44.8", | ||
"@types/lodash": "^4.14.202", | ||
"@types/node": "^17.0.45", | ||
"@types/prettier": "^3.0.0", | ||
"eslint": "^8.54.0", | ||
"eslint-import-resolver-node": "^0.3.9", | ||
"eslint-plugin-import": "^2.29.0", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^15.1.0", | ||
"prettier": "^3.1.0", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.8.4" | ||
"typescript": "^5.3.2" | ||
}, | ||
"dependencies": { | ||
"@project-serum/anchor": "^0.25.0", | ||
"@project-serum/anchor": "^0.23.0", | ||
"@quarryprotocol/quarry-sdk": "^5.3.0", | ||
"@saberhq/anchor-contrib": "^1.14.9", | ||
"@saberhq/solana-contrib": "^1.14.9", | ||
"@saberhq/token-utils": "^1.14.9", | ||
"@solana/web3.js": "^1.66.2", | ||
"axios": "^0.27.2", | ||
"@saberhq/anchor-contrib": "^1.15.0", | ||
"@saberhq/solana-contrib": "^1.15.0", | ||
"@saberhq/token-utils": "^1.15.0", | ||
"@solana/web3.js": "^1.87.6", | ||
"axios": "^1.6.2", | ||
"bn.js": "^5.2.1", | ||
"fast-json-stable-stringify": "^2.1.0", | ||
"jsbi": "^4.3.0", | ||
"lodash": "^4.17.21", | ||
"superstruct": "^0.16.6", | ||
"tiny-invariant": "^1.3.1", | ||
"toml": "^3.0.0", | ||
"tslib": "^2.4.0" | ||
"tslib": "^2.6.2" | ||
}, | ||
"scripts": { | ||
"typecheck": "tsc", | ||
"build": "tsc", | ||
"lint": "eslint . --cache", | ||
"compile-rewarders-list": "ts-node src/scripts/compileRewardersList.ts", | ||
"build-token-list": "ts-node src/scripts/buildTokenList.ts", | ||
"build-tvl-list": "ts-node src/scripts/buildTVLList.ts", | ||
"fetch-all-rewarders": "ts-node src/scripts/fetchAllRewarders.ts", | ||
"decorate-rewarders": "ts-node src/scripts/decorateRewarders.ts", | ||
"compile-rewarders-list": "node compileRewardersList.mjs", | ||
"build-token-list": "node dist/scripts/buildTokenList.js", | ||
"build-tvl-list": "node dist/scripts/buildTVLList.js", | ||
"fetch-all-rewarders": "node dist/scripts/fetchAllRewarders.js", | ||
"decorate-rewarders": "node dist/scripts/decorateRewarders.js", | ||
"prepare": "husky install" | ||
}, | ||
"lint-staged": { | ||
|
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
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
Oops, something went wrong.