Skip to content

Commit

Permalink
api: image generator
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0ece committed Apr 1, 2024
1 parent 5f95dd3 commit ec8dda3
Show file tree
Hide file tree
Showing 6 changed files with 958 additions and 5 deletions.
8 changes: 4 additions & 4 deletions anchor/Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ strategy = "Gst1YGe5vKURSWfCqM7GhZys1oML9E9t91WRyV2rt4yS"
url = "https://api.apr.dev"

[provider]
cluster = "localnet"
#cluster = "devnet"
#cluster = "localnet"
cluster = "devnet"
wallet = "~/.config/solana/id.json"

[scripts]
#test = "../node_modules/.bin/nx run anchor:jest --verbose --testPathPattern tests/ --testNamePattern glam_investor"
test = "../node_modules/.bin/nx run anchor:jest --verbose --testPathPattern tests/ --testNamePattern glam_crud"
#test = "../node_modules/.bin/nx run anchor:jest --verbose --testPathPattern tests/ --testNamePattern devnet"
#test = "../node_modules/.bin/nx run anchor:jest --verbose --testPathPattern tests/ --testNamePattern glam_crud"
test = "../node_modules/.bin/nx run anchor:jest --verbose --testPathPattern tests/ --testNamePattern devnet"

[test]
startup_wait = 50000
Expand Down
3 changes: 2 additions & 1 deletion anchor/tests/devnet.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ describe("glam_devnet", () => {
0
);
// const trader = new PublicKey("aLice3kGNMajHriHX8R1e1LmqAzojuidxSiU9JT6hVo")
const trader = manager.publicKey;
const trader = new PublicKey("GttHAZwSRndAkzfVFSBe2yyxBU8GtMF3X3FPHcYfzpHH")
// const trader = manager.publicKey;

try {
const txId = await program.methods
Expand Down
Binary file added api/glam.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"author": "",
"license": "ISC",
"dependencies": {
"@scure/base": "^1.1.6",
"canvas": "^2.11.2",
"express": "^4.19.2"
}
}
Loading

0 comments on commit ec8dda3

Please sign in to comment.