Skip to content

Commit

Permalink
update get tokens accroding to scan new api
Browse files Browse the repository at this point in the history
add readme for use bulk sender tool.
  • Loading branch information
wangdayong228 committed Dec 27, 2023
1 parent 7e777d8 commit b90a979
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 61 deletions.
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,21 @@ test:

build_mac:
go build .
mkdir -p ./dist
mv ./conflux-toolkit ./dist/mac
cp -r ./scripts/batch_transfer/* ./dist/mac/
cd ./dist/mac && zip -r ./batch-transfer-mac.zip ./* -x *.zip *.txt && cd ../../

build_windows:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build
mkdir -p ./dist
mv ./conflux-toolkit.exe ./dist/windows/conflux-toolkit
cp -r ./scripts/batch_transfer/* ./dist/windows/
cd ./dist/windows && zip -r -l ./batch-transfer-windows.zip ./* -x *.zip *.txt && cd ../..

build:
make build_mac
make build_windows
make build_windows

zip:
make build
cd ./dist/mac && zip -r ./batch-transfer-mac.zip ./* -x *.zip *.txt && cd ../../
cd ./dist/windows && zip -r -l ./batch-transfer-windows.zip ./* -x *.zip *.txt && cd ../..
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,18 @@ Run `./conflux-toolkit` to view all supported subcommands, including:
- `contract`: interact with smart contract.
- `transfer`: batch transfer cfx to receivers.

For more details, run with `-h` flag.
For more details, run with `-h` flag.

## BulkSender tool

## Build

`make build` will create `mac` and `windows` in `./dist` folder, there are the workspace for execute BulkSender tool.

## Run

Use `./dist/mac` on Mac OS and `./dist/windows` on Windows OS.

1. Fill receiver list on `1_填写空投列表.csv`; the 1st column means "Receiver address" and 2nd column means "Send amount in CFX"

2. Run `2_双击开启空投_mac.command` on windows OS or run `2_双击开启空投_windows.`sh` on Mac OS
36 changes: 35 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/Conflux-Chain/conflux-toolkit

go 1.14
go 1.20

require (
github.com/Conflux-Chain/go-conflux-sdk v1.1.4
Expand All @@ -9,12 +9,46 @@ require (
github.com/howeyc/gopass v0.0.0-20190910152052-7cb4b85ec19c
github.com/openweb3/go-rpc-provider v0.1.2
github.com/pkg/errors v0.9.1
github.com/samber/lo v1.38.1
github.com/shopspring/decimal v1.3.1
github.com/sirupsen/logrus v1.2.0
github.com/spf13/cobra v1.0.0
github.com/stretchr/testify v1.7.0
gotest.tools v2.2.0+incompatible
)

require (
github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6 // indirect
github.com/andybalholm/brotli v1.0.4 // indirect
github.com/btcsuite/btcd v0.20.1-beta // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/deckarep/golang-set v1.8.0 // indirect
github.com/fatih/color v1.7.0 // indirect
github.com/go-ole/go-ole v1.2.1 // indirect
github.com/go-stack/stack v1.8.0 // indirect
github.com/google/go-cmp v0.5.7 // indirect
github.com/google/uuid v1.1.5 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/klauspost/compress v1.14.1 // indirect
github.com/konsorten/go-windows-terminal-sequences v1.0.1 // indirect
github.com/mattn/go-colorable v0.1.8 // indirect
github.com/mattn/go-isatty v0.0.12 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rjeczalik/notify v0.9.1 // indirect
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
github.com/spf13/pflag v1.0.3 // indirect
github.com/tklauser/go-sysconf v0.3.5 // indirect
github.com/tklauser/numcpus v0.2.2 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasthttp v1.33.0 // indirect
golang.org/x/crypto v0.0.0-20220112180741-5e0467b6c7ce // indirect
golang.org/x/exp v0.0.0-20220303212507-bbda1eaf7a17 // indirect
golang.org/x/sys v0.0.0-20220111092808-5a964db01320 // indirect
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
)

// replace github.com/Conflux-Chain/go-conflux-sdk v1.0.15 => github.com/wangdayong228/go-conflux-sdk v0.2.0
// replace github.com/Conflux-Chain/go-conflux-sdk v1.0.15 => ../go-conflux-sdk
Loading

0 comments on commit b90a979

Please sign in to comment.