Skip to content

Commit

Permalink
apply comments from github
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer-zq committed Apr 12, 2024
1 parent 273d21d commit 0f6d3d2
Show file tree
Hide file tree
Showing 10 changed files with 673 additions and 8,027 deletions.
26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,29 @@ format:

benchmark:
@go test -mod=readonly -bench=. ./...

###############################################################################
### Compile Solidity Contracts ###
###############################################################################

CONTRACTS_DIR := contracts
COMPILED_DIR := $(CONTRACTS_DIR)/compiled_contracts

# Compile and format solidity contracts for the erc20 module. Also install
# openzeppeling as the contracts are build on top of openzeppelin templates.
contracts-compile: contracts-clean dep-install create-contracts-abi

# Install openzeppelin solidity contracts
dep-install:
@echo "Importing openzeppelin contracts..."
@cd $(CONTRACTS_DIR) && \
npm install

# Clean tmp files
contracts-clean:
@rm -rf $(CONTRACTS_DIR)/node_modules

# Compile, filter out and format contracts into the following format.
create-contracts-abi:
solc --combined-json abi,bin --evm-version paris --include-path $(CONTRACTS_DIR)/node_modules --base-path ./contracts ./contracts/Token.sol | jq '.contracts["Token.sol:Token"]' > $(COMPILED_DIR)/Token.json

344 changes: 226 additions & 118 deletions api/irismod/token/v1/event.pulsar.go

Large diffs are not rendered by default.

363 changes: 162 additions & 201 deletions api/irismod/token/v1/tx.pulsar.go

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions api/irismod/token/v1/tx_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0f6d3d2

Please sign in to comment.