Skip to content

edgeflyer/test-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

脚本

目前有的功能

  • 部署质押合约
    go run ./cmd/contract/depositContract
  • 部署退出合约
    go run ./cmd/contract/exitContract
  • 测试带错误BLS签名的质押操作
    go run ./cmd/deposit-test/deposit-sig-tamper
  • **批量发送质押请求
    并发(并发度不要太高)
    go run ./cmd/deposit-test/deposit-batch \
    -json ./deposit-data.json \
    -rpc http://127.0.0.1:8545 \
    -contract 0x5FbDB2315678afecb367f032d93F642f64180aa3 \
    -mode concurrent \
    -workers 8 \
    -amount-eth 32 \
    -limit 20 \
    -no-wait \
    -start 0
    
    严格顺序逐条发送
    go run ./cmd/deposit-test/deposit-batch \
    -json ./deposit-data.json \
    -rpc http://127.0.0.1:8545 \
    -contract 0x5FbDB2315678afecb367f032d93F642f64180aa3 \
    -mode sequential \
    -amount-eth 32 \
    -limit 20
    
  • 批量发送退出请求
    并发
    go run ./cmd/exit-test/exit-batch \
    -json ./deposit-data.json \
    -rpc http://127.0.0.1:8545 \
    -contract 0x00000961Ef480Eb55e80D19ad83579A64c007002 \
    -mode concurrent -workers 20 -start 0 -limit 20 \
    -wait=false
    
    顺序执行
    go run ./cmd/exit-test/exit-batch \
    -json ./deposit-data.json \
    -rpc http://127.0.0.1:8545 \
    -contract 0x00000961Ef480Eb55e80D19ad83579A64c007002
    
  • 运行验证者客户端(见证)
    go run ./cmd/attestion-test
    
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages