Skip to content

Commit

Permalink
feat: perps market contract based on the cannon abis
Browse files Browse the repository at this point in the history
  • Loading branch information
asolovov committed Dec 12, 2023
1 parent 0c2d17a commit b5107b3
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 55 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ generate-perps_market-andromeda:
go run ./utils/getAbis/get-abis.go --get-mkdir ./Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-PerpsMarket.json ./contracts/perpsMarket
abigen --abi=./contracts/84531-andromeda-PerpsMarket.json --pkg=perpsMarket --out=./contracts/perpsMarket/contract.go

# generate go file for PerpsMarket contract on andromeda net from cannon abi
generate-perps_market-andromeda-c:
go run ./utils/getAbis/get-abis.go --get-mkdir ./cannon-synthetix/andromeda/perpsFactory/PerpsMarketProxy.json ./contracts/perpsMarket
abigen --abi=./contracts/PerpsMarketProxy.json --pkg=perpsMarket --out=./contracts/perpsMarket/contract.go

# generate go file for snxUSDT contract on andromeda net
generate-susdt-andromeda:
go run ./utils/getAbis/get-abis.go --get-mkdir ./Synthetix-Gitbook-v3/for-developers/abis/84531-andromeda-snxUSDToken.json ./contracts/sUSDT
Expand Down
1 change: 1 addition & 0 deletions contracts/PerpsMarketProxy.json

Large diffs are not rendered by default.

112 changes: 57 additions & 55 deletions contracts/perpsMarket/contract.go

Large diffs are not rendered by default.

0 comments on commit b5107b3

Please sign in to comment.