Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Greed Mode (this branch could be broken) #26

Draft
wants to merge 122 commits into
base: release/v0.47.x
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
9386655
support sdk v0.50.x
faddat Oct 3, 2024
945b55a
update code to working state
faddat Oct 3, 2024
c79834c
use one worker per node to ensure contention
faddat Oct 3, 2024
765c863
improve perf
faddat Oct 3, 2024
b5f2cb6
lint
faddat Oct 4, 2024
41d6ed3
modularize
faddat Oct 4, 2024
590337f
modularize hardhat
faddat Oct 4, 2024
bcff102
Merge pull request #14 from somatic-labs/release/v0.50.x
faddat Oct 4, 2024
ce2e6b0
rename license to a markdown file
faddat Oct 4, 2024
882a23c
update license
faddat Oct 4, 2024
1499a54
add state file store contract
faddat Oct 4, 2024
605b1b3
clippy
faddat Oct 4, 2024
7586c10
begin to add cosmwasm support to hardhat
faddat Oct 4, 2024
c44675d
add 3 critical wasm calls
faddat Oct 4, 2024
699e6ee
update wasm support
faddat Oct 4, 2024
b46e3f6
determine if lag comes from node or from hardhat (its the node
faddat Oct 4, 2024
c36b506
compress the file first
faddat Oct 4, 2024
7b2e069
prepare uncompressed file store
faddat Oct 4, 2024
94e1178
use go 1.23 compatibility patch
faddat Oct 4, 2024
a7dbdd2
Update README.md
faddat Oct 11, 2024
93f2759
lint
faddat Oct 21, 2024
36470b7
Merge branch 'faddat/add-wasm' of https://github.com/faddat/hardhat i…
faddat Oct 21, 2024
e2750a0
implement the random account bank send feature
faddat Oct 22, 2024
1f34192
remove unnecessary go.mod comment
faddat Oct 22, 2024
0f8b8b4
add grpc client library
faddat Oct 22, 2024
4270b0d
add grpc client
faddat Oct 22, 2024
28c7c30
enhance linting for greater regularity
faddat Oct 22, 2024
740d41c
finish linting
faddat Oct 22, 2024
70f788d
Merge pull request #15 from somatic-labs/faddat/add-wasm
faddat Oct 22, 2024
9ab9718
change readme
faddat Oct 22, 2024
cf1a9e2
Merge pull request #16 from somatic-labs/faddat/add-wasm
faddat Oct 22, 2024
8da13b1
finish readme
faddat Oct 22, 2024
da4b50c
Merge pull request #17 from somatic-labs/faddat/add-wasm
faddat Oct 22, 2024
2fce1b5
remove emails folder and sentinel evidence folder to make code more v…
faddat Oct 23, 2024
8c6f934
Merge pull request #18 from somatic-labs/faddat/add-wasm
faddat Oct 23, 2024
3436a9f
rename project "metorite"
faddat Oct 23, 2024
0eb86fd
Update README.md
faddat Oct 23, 2024
d843d1c
finish renaming
faddat Oct 23, 2024
2ad6830
correct naming
faddat Oct 23, 2024
d7fd227
refactor
faddat Oct 23, 2024
9f0e018
Merge pull request #19 from somatic-labs/faddat/fix-retries
faddat Oct 24, 2024
b6bf261
add more code for grpc broadcast
faddat Oct 24, 2024
6b86992
fix main....
faddat Oct 24, 2024
28a4e3f
Update lint.yml
faddat Oct 24, 2024
16041d0
Merge branch 'main' into faddat/build-and-sign
faddat Oct 24, 2024
5e18866
add a build ci job
faddat Oct 24, 2024
d30e996
Merge branch 'faddat/build-and-sign' of https://github.com/somatic-la…
faddat Oct 24, 2024
5480783
windows is not a real operating system
faddat Oct 24, 2024
8302009
rename ci appropriately
faddat Oct 24, 2024
43d083a
Merge pull request #23 from somatic-labs/faddat/build-and-sign
faddat Oct 24, 2024
0dd85ac
add empowering text
faddat Oct 24, 2024
0a8432a
update readme
faddat Oct 26, 2024
c3830d6
abstract out the joint pieces that are used to broadcast
faddat Oct 26, 2024
e5f11cf
add the position feature
faddat Oct 27, 2024
5a5bf70
continue cleaning
faddat Oct 27, 2024
0963dd5
add cursorignore
faddat Oct 27, 2024
7972f1a
eliminate dirtiness
faddat Oct 27, 2024
87bcc32
cleanup rust contract code
faddat Oct 27, 2024
149ab9d
additional cleanup & linting
faddat Oct 27, 2024
cc71bc1
Merge branch 'main' into faddat/grpc2
faddat Oct 27, 2024
a8f5a12
additional positions related code
faddat Oct 27, 2024
0416856
fix typo
faddat Oct 27, 2024
62426e6
Merge branch 'faddat/grpc2' of https://github.com/somatic-labs/meteor…
faddat Oct 27, 2024
33706bb
run latest clippy
faddat Oct 27, 2024
187391e
additional updates while debugging
faddat Oct 27, 2024
a9b16ba
Update main.go
faddat Oct 27, 2024
588b2e2
Update types/types.go
faddat Oct 27, 2024
8fa323b
Merge branch 'faddat/grpc2' of https://github.com/somatic-labs/meteor…
faddat Oct 27, 2024
c282598
Merge branch 'faddat/grpc2' of https://github.com/somatic-labs/meteor…
faddat Oct 27, 2024
9a7e418
add tests
faddat Oct 27, 2024
99e7b0b
add main_test
faddat Oct 27, 2024
f923132
Update main.go
faddat Oct 27, 2024
bc7ffba
Update lib/lib.go
faddat Oct 27, 2024
1472db3
Update lib/lib.go
faddat Oct 27, 2024
356d029
further test related updates
faddat Oct 27, 2024
928e1a9
Merge branch 'faddat/grpc2' of https://github.com/somatic-labs/meteor…
faddat Oct 27, 2024
0f8bdd7
save place
faddat Oct 27, 2024
4ffab1d
get back to working state
faddat Oct 27, 2024
f148821
update tests
faddat Oct 27, 2024
6582f45
reduce errors to 1
faddat Oct 27, 2024
e0c2963
Update lib/lib.go
faddat Oct 27, 2024
82268b6
Update main.go
faddat Oct 27, 2024
cab072b
Update main_test.go
faddat Oct 27, 2024
ffa2175
Update main.go
faddat Oct 27, 2024
a12f662
balancing transactions now working
faddat Oct 28, 2024
0dbeb4f
Merge branch 'faddat/grpc2' of https://github.com/somatic-labs/meteor…
faddat Oct 28, 2024
f792535
bring in the army: positions are here
faddat Oct 28, 2024
066fedb
add cursor rules
faddat Oct 28, 2024
a4a90dd
early version of gatling gun mode
faddat Oct 28, 2024
6d238d0
Update main.go
faddat Oct 28, 2024
9fb70bc
Create test.yml
faddat Oct 28, 2024
b38a583
Revert "Update main.go"
faddat Oct 28, 2024
669f150
add further timing debugging tools
faddat Oct 28, 2024
33abf49
bank send....
faddat Oct 28, 2024
9c0ce57
further accelerate, supporting 50 simultaneous positions
faddat Oct 28, 2024
7a1d973
Update main.go
faddat Oct 28, 2024
82c12d3
Update lib/lib.go
faddat Oct 28, 2024
51812e6
hardhat
faddat Oct 28, 2024
5ff4bc1
fix tests
faddat Oct 28, 2024
7e0b920
Merge branch 'faddat/grpc2' of https://github.com/somatic-labs/meteor…
faddat Oct 28, 2024
26dcf75
Update lib/lib.go
faddat Oct 28, 2024
f662930
Update main.go
faddat Oct 28, 2024
6b838dc
Merge pull request #24 from somatic-labs/faddat/grpc2
faddat Oct 29, 2024
e66822b
automate gas
faddat Oct 29, 2024
ca4055c
update nodes.toml
faddat Oct 29, 2024
1e8ed5c
improve logging
faddat Oct 29, 2024
8f087a3
seemingly undo logging work
faddat Oct 29, 2024
0737b76
Revert "seemingly undo logging work"
faddat Oct 29, 2024
294924e
add more logging
faddat Oct 29, 2024
81b43b1
use all interfaces
faddat Oct 29, 2024
3ac4484
use all interfaces...
faddat Oct 29, 2024
35957cd
use-all-interfaces
faddat Oct 31, 2024
2b316c5
keep my place
faddat Nov 1, 2024
21a7748
add atone
faddat Nov 2, 2024
2ab37e3
more atonement (and backport latest features to plain jane sdk 47)
faddat Nov 2, 2024
72f84e1
lint and use the sdk patch
faddat Nov 2, 2024
2810504
update atone config
faddat Nov 2, 2024
0d670a1
remove unneded context usage
faddat Nov 2, 2024
db5c184
resolve ci issues
faddat Nov 2, 2024
5078a02
tidy
faddat Nov 2, 2024
d2698d5
update the 47 version's logger
faddat Nov 2, 2024
6320d77
save place
faddat Nov 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .cursorignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Add directories or file patterns to ignore during indexing (e.g. foo/ or *.csv)
emails/
configurations/
23 changes: 23 additions & 0 deletions .cursorrules
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Hardhat .cursorrules

// HTMX and Go best practices
const htmxGoBestPractices = [
"follow practices suited for cosmos-sdk v0.50.x",
"follow practices suited for ibc-go v8.x.x"
];

// Folder structure
const folderStructure = `
main.go
lib/

modules/
go.mod
go.sum
`;

// Additional instructions
const additionalInstructions = `
1. We are building a high speed test framework for mainnets
2. We should aim for this application to be precise and performant
`;
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
push:
branches:
- main
pull_request:
branches:
- main
name: Build
jobs:
build:
strategy:
matrix:
go-version: [1.23.x]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- run: go build ./...
29 changes: 29 additions & 0 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# .github/workflows/clippy.yml
name: Clippy

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
clippy:
name: Run Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy
- name: Run Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --manifest-path contracts/statefilestore/Cargo.toml -- -D warnings
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.23'
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.58
version: latest
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
push:
branches:
- main
pull_request:
branches:
- main
name: Test
jobs:
test:
strategy:
matrix:
go-version: [1.23.x]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- run: go test ./...
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
target/
**seedphrase
**hardhat
**meteorite
111 changes: 102 additions & 9 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,123 @@
run:
tests: true
timeout: 10m
timeout: 15m
sort-results: true
allow-parallel-runners: true
exclude-dir: testutil/testdata

linters:
disable-all: true
enable:
- exportloopref
- bodyclose
- canonicalheader
- copyloopvar
- errcheck
- gci
- dogsled
- goconst
- gocritic
- gci
- gocheckcompilerdirectives
- gofumpt
- gosec
- gosimple
- govet
- ineffassign
- maintidx
- misspell
- nakedret
- nestif
- nilerr
- nolintlint
- staticcheck
- thelper
- typecheck
- stylecheck
- revive
- typecheck
- stylecheck
- tenv
- typecheck
- tagalign
# - tagliatelle
- thelper # too many positives with table tests that have custom setup(*testing.T)
- testifylint
- perfsprint #
- promlinter
- protogetter
- unconvert
- unparam
- unused
- misspell
- unparam
- usestdlibvars
- zerologlint

issues:
exclude-files:
- server/grpc/gogoreflection/fix_registration.go
- x/wasm/migrations/v2/legacy_types.go
- ".*\\.pb\\.go$"
- ".*\\.pb\\.gw\\.\\.go$"
- ".*\\.pulsar\\.go$"

max-issues-per-linter: 10000
max-same-issues: 10000

linters-settings:
gci:
custom-order: true
sections:
- standard # Standard section: captures all standard packages.
- default # Default section: contains all imports that could not be matched to another section type.
- prefix(cosmossdk.io)
- prefix(github.com/cosmos/cosmos-sdk)
- prefix(github.com/CosmWasm/wasmd)

gosec:
# To select a subset of rules to run.
# Available rules: https://github.com/securego/gosec#available-rules
# Default: [] - means include all rules
includes:
# - G101 # Look for hard coded credentials
- G102 # Bind to all interfaces
- G103 # Audit the use of unsafe block
- G104 # Audit errors not checked
- G106 # Audit the use of ssh.InsecureIgnoreHostKey
- G107 # Url provided to HTTP request as taint input
- G108 # Profiling endpoint automatically exposed on /debug/pprof
- G109 # Potential Integer overflow made by strconv.Atoi result conversion to int16/32
- G110 # Potential DoS vulnerability via decompression bomb
- G111 # Potential directory traversal
- G112 # Potential slowloris attack
- G113 # Usage of Rat.SetString in math/big with an overflow (CVE-2022-23772)
- G114 # Use of net/http serve function that has no support for setting timeouts
- G201 # SQL query construction using format string
- G202 # SQL query construction using string concatenation
- G203 # Use of unescaped data in HTML templates
- G204 # Audit use of command execution
- G301 # Poor file permissions used when creating a directory
- G302 # Poor file permissions used with chmod
- G303 # Creating tempfile using a predictable path
- G304 # File path provided as taint input
- G305 # File traversal when extracting zip/tar archive
- G306 # Poor file permissions used when writing to a new file
- G307 # Deferring a method which returns an error
- G401 # Detect the usage of DES, RC4, MD5 or SHA1
- G402 # Look for bad TLS connection settings
- G403 # Ensure minimum RSA key length of 2048 bits
- G404 # Insecure random number source (rand)
- G501 # Import blocklist: crypto/md5
- G502 # Import blocklist: crypto/des
- G503 # Import blocklist: crypto/rc4
- G504 # Import blocklist: net/http/cgi
- G505 # Import blocklist: crypto/sha1
- G601 # Implicit memory aliasing of items from a range statement
misspell:
locale: US
gofumpt:
extra-rules: true
dogsled:
max-blank-identifiers: 6
maligned:
suggest-new: true
nolintlint:
allow-unused: false
allow-leading-space: true
require-explanation: false
require-specific: false
gosimple:
checks: ["all"]
Loading