Skip to content

Commit

Permalink
Solita to anchor methods (#25)
Browse files Browse the repository at this point in the history
* solita to anchor methods

* fixing accounts

* Anchor idl accounts

* updates on tests

* fix tests

* fixing build

* fix test

* follow up updates

* cleanup

* fix build

* fixing tests

Co-authored-by: jpbogle <jpbogle22@gmail.com>
  • Loading branch information
Giannis Chatziveroglou and jpbogle authored Dec 7, 2022
1 parent eb48544 commit 9541fcb
Show file tree
Hide file tree
Showing 87 changed files with 1,834 additions and 8,561 deletions.
6 changes: 0 additions & 6 deletions .github/actions/install-linux-build-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ runs:
sudo apt-get update
shell: bash

- name: apt-get install clang
run: |
sudo apt-get install -y clang-7 --allow-unauthenticated
clang-7 --version
shell: bash

- name: apt-get install ssl libs
run: |
sudo apt-get install -y openssl --allow-unauthenticated
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ install:
yarn install

build:
anchor build && cargo +nightly fmt
yarn idl:generate && yarn sdk:generate && yarn lint && yarn build
anchor build
yarn idl:generate && yarn lint && yarn build

start:
solana-test-validator --url https://api.mainnet-beta.solana.com \
Expand Down
33 changes: 0 additions & 33 deletions generate-sdk.js

This file was deleted.

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cardinal/rewards-center",
"version": "0.2.8",
"version": "2.1.0-beta.4",
"description": "Cardinal rewards center",
"keywords": [
"solana",
Expand Down Expand Up @@ -29,7 +29,6 @@
"build": "rm -fr dist/ && tsc -P tsconfig.cjs.json && tsc -P tsconfig.esm.json",
"clean": "rm -fr dist/",
"idl:generate": "./generate-idls.sh",
"sdk:generate": "node generate-sdk.js",
"erd:generate": "node generate-erd.js",
"docs:generate": "typedoc --excludePrivate --includeVersion --out site/ sdk/index.ts",
"typecheck": "tsc",
Expand All @@ -39,10 +38,10 @@
"dependencies": {
"@cardinal/common": "^4.0.1",
"@metaplex-foundation/rustbin": "^0.3.1",
"@metaplex-foundation/solita": "^0.12.2",
"@project-serum/anchor": "0.25.0",
"@solana/web3.js": "^1.66.2",
"bn.js": "^5.2.0"
"bn.js": "^5.2.0",
"js-sha256": "^0.9.0"
},
"resolutions": {
"@solana/spl-token": "=0.3.6"
Expand All @@ -65,7 +64,6 @@
"eslint-plugin-unused-imports": "^2.0.0",
"jest": "^29.2.1",
"lint-staged": "^13.0.3",
"mpl-token-metadata-v1": "npm:@metaplex-foundation/mpl-token-metadata@1.2.5",
"pretty-quick": "^3.1.3",
"readline": "^1.3.0",
"ts-jest": "^29.0.3",
Expand Down
Loading

0 comments on commit 9541fcb

Please sign in to comment.