Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
e5db8b2
first commit
codchen Feb 6, 2023
9f428ce
Add mutex around WasmVM write calls
codchen Feb 6, 2023
6faea3e
Merge pull request #9 from sei-protocol/tony-chen-mutex
codchen Feb 6, 2023
13c6315
FORKED_CHANGELOG
codchen Feb 6, 2023
09c79d5
Merge pull request #10 from sei-protocol/tony-chen-changelog
codchen Feb 6, 2023
f4c3fae
Use HexBytes with Marshal/UnmarshalJSON functions
codchen Apr 25, 2023
675e14f
bump
codchen Apr 25, 2023
a2eaca5
remove MarshalJSON etc
codchen Apr 25, 2023
9c02018
Merge pull request #21 from sei-protocol/tony-chen-update-type
codchen Apr 26, 2023
253d1df
execute contract mestrics
BrandonWeng May 18, 2023
5608ce0
done
BrandonWeng May 18, 2023
235c8bc
measure since
BrandonWeng May 18, 2023
3c36601
Merge pull request #25 from sei-protocol/v0.0.1-bweng
BrandonWeng May 19, 2023
d870721
Replace cosmos/tendermint/iavl/tmdb/ibc dependencies with forked vers…
codchen Jun 26, 2023
9847883
Merge pull request #33 from sei-protocol/tony-chen-update-deps
codchen Jun 26, 2023
9851d6f
Bump wasmvm version for cherry
philipsu522 Nov 17, 2023
175a6d9
Merge branch 'main' into wasmvm-cherry
philipsu522 Nov 17, 2023
cc59c28
Merge pull request #37 from sei-protocol/wasmvm-cherry
philipsu522 Nov 20, 2023
62caf63
refactor tx position and update usages
udpatil Oct 31, 2023
c9bc429
Merge pull request #36 from sei-protocol/refactor-tx-pos
udpatil Dec 1, 2023
8c3c5f9
Add timeout to create
codchen Jan 3, 2024
6624eb4
Bump create timeout to 15s
philipsu522 Jan 4, 2024
4a054a2
Merge pull request #39 from sei-protocol/fix-module
philipsu522 Jan 4, 2024
4318ac6
allow passing messageinfo (#40)
codchen Jan 9, 2024
a388e80
Pass codeInfo in response handler (#41)
codchen Jan 12, 2024
9ff7977
Bump wasmvm to 1.5.1 (#42)
codchen Mar 11, 2024
f67d7ef
Smart Contract Query Metrics (#43)
Kbhat1 Mar 14, 2024
e42498d
Bump wasmvm to v1.5.2 (#44)
philipsu522 Mar 21, 2024
f788205
Update LimitSimulationGasDecorator (#45)
Kbhat1 Apr 19, 2024
e779996
Remove Non-Multiplier Gas Meter (#46)
Kbhat1 Apr 29, 2024
b9c8f01
Add validation for restore (#47)
codchen May 2, 2024
6e7d32f
Fix gas meter usages (#49)
udpatil May 8, 2024
88e72d5
WIP changes to fix runtime gas and add paramsKeeper to wasmKeeper for…
udpatil May 16, 2024
5b8c208
attempt to remove `toolchain` directive (#51)
codchen May 17, 2024
8bc4988
Update wasm query behavior upon error (#54)
udpatil Jun 25, 2024
de09bf3
Modify consumeRemainingGas to not raise outofGas panic (#55)
udpatil Jun 27, 2024
e1a7477
Allow passing ctx in return values of submsg handler (#52)
codchen Jun 13, 2024
adbbde1
Fix context assignment (#53)
codchen Jun 14, 2024
007b839
Revert #52 and #53 (#56)
codchen Jun 28, 2024
71f3395
Make wasmd snapshot use SC instead of SS (#57)
yzang2019 Jul 16, 2024
5129e88
revert revert (#59)
codchen Jul 22, 2024
30e1305
Revert "revert revert (#59)" (#61)
udpatil Jul 26, 2024
20c1a8d
Fix query penalty (#60)
udpatil Jul 26, 2024
992adf7
Genesis export OOM (#58)
jewei1997 Jul 29, 2024
42c519d
Gas mispricing in CW VM patch (#62)
jewei1997 Aug 20, 2024
789a9c7
Add CW call depth (#63)
udpatil Aug 28, 2024
56a34e9
Fix typo and error wrapping (#64)
udpatil Aug 28, 2024
fb7c848
Add QuerySmartSafe in WasmViewKeeper (#65)
jewei1997 Nov 7, 2024
4a534ff
Emit CW721 token owner before transfer (#67)
codchen Nov 18, 2024
5f2da4b
Bump sei cosmos to v0.3.45 (#68)
codchen Nov 20, 2024
8e2d741
feat: add UnbondingDelegationQuery (#69)
blindchaser Dec 11, 2024
6c1fb10
Add UnbondingDelegations query (#70)
codchen Jan 3, 2025
5fe99b3
Segregate wasm engine for execution vs RPC (#71)
codchen May 12, 2025
317bfd7
Add wasmvm v1.5.2 back for tracing (#73)
codchen May 19, 2025
12956ca
update dylib (#74)
codchen May 20, 2025
5380b59
replace hardcoded height cutoff with UpgradeKeeper query (#75)
codchen May 21, 2025
2b9b08a
Add v1.5.5 WasmVM back for backward compatibility (#76)
codchen May 29, 2025
3504860
Add macos static artifacts for v1.5.2/v1.5.5 (#77)
codchen Jun 3, 2025
eb7eb5c
expose ImportCode (#78)
codchen Jun 16, 2025
25617b7
hardcode VM selection cutoff (#79)
codchen Jun 16, 2025
756a868
Merge remote-tracking branch 'src-sei-wasmd/main' into masih/mono-ish…
masih Sep 26, 2025
298d3a6
Use relative go mod path for sei-wasm* and `go mod tidy`
masih Sep 26, 2025
cc71b2b
Fix Dockerfile caching of nested module
masih Sep 26, 2025
516c6c3
Fix `gofmt` lint issues in sei-wasmd
masih Sep 26, 2025
41633f2
Move wasmd CI tests unchanged for now
masih Sep 26, 2025
9364e1b
Replace long deprecated buf CI workflow with new for sei-wasmd
masih Sep 26, 2025
bb4575d
Remove redundant nested CI workflows in sei-wasmd
masih Sep 26, 2025
04fef9d
Run Buf checks to sei-wasmd only to limit battles we need to fight
masih Sep 26, 2025
0b708d7
Drop top level buf check since it was never run in sei-wasmd
masih Sep 26, 2025
9045827
Use local sei-wasmd directory to serarch for prebuilt libs in docker
masih Sep 26, 2025
8556159
Merge branch 'main' into masih/mono-ish-wasmd
masih Sep 26, 2025
3d8b72c
`go mod tidy`
masih Sep 26, 2025
813c111
Remove wasmd CI test run until the work that fixed it is migrated
masih Sep 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,22 @@ RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates
# Cache Go modules
COPY go.mod go.sum ./
COPY sei-wasmvm/go.mod sei-wasmvm/go.sum ./sei-wasmvm/
COPY sei-wasmd/go.mod sei-wasmd/go.sum ./sei-wasmd/
RUN go mod download

# Copy source and build (CGO enabled for libwasmvm)
COPY . .
ENV CGO_ENABLED=1
RUN make build

# Collect libwasmvm*.so: try module cache; else auto-derive version and download glibc .so
# Collect libwasmvm*.so: try ./seiwasmd; else auto-derive version and download glibc .so
ARG WASMVM_VERSION=""
RUN set -eux; \
mkdir -p /build/deps; \
GOMODCACHE="$(go env GOMODCACHE)"; \
LIBWASM_DIR="./sei-wasmd"; \
found=0; \
# Copy from module cache if present
FILES="$(find "$GOMODCACHE" -type f -name 'libwasmvm*.so' -print || true)"; \
FILES="$(find "$LIBWASM_DIR" -type f -name 'libwasmvm*.so' -print || true)"; \
if [ -n "$FILES" ]; then \
echo "$FILES" | xargs -r -n1 -I{} cp -v "{}" /build/deps/; \
found=1; \
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ require (
)

replace (
github.com/CosmWasm/wasmd => github.com/sei-protocol/sei-wasmd v0.3.9
github.com/CosmWasm/wasmd => ./sei-wasmd
github.com/CosmWasm/wasmvm => ./sei-wasmvm
github.com/btcsuite/btcd => github.com/btcsuite/btcd v0.23.2
github.com/confio/ics23/go => github.com/cosmos/cosmos-sdk/ics23/go v0.8.0
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2005,8 +2005,6 @@ github.com/sei-protocol/sei-tendermint v0.6.4 h1:lMgzloTLo3ixNBHV+ETkUeh13fwOPqq
github.com/sei-protocol/sei-tendermint v0.6.4/go.mod h1:SSZv0P1NBP/4uB3gZr5XJIan3ks3Ui8FJJzIap4r6uc=
github.com/sei-protocol/sei-tm-db v0.0.5 h1:3WONKdSXEqdZZeLuWYfK5hP37TJpfaUa13vAyAlvaQY=
github.com/sei-protocol/sei-tm-db v0.0.5/go.mod h1:Cpa6rGyczgthq7/0pI31jys2Fw0Nfrc+/jKdP1prVqY=
github.com/sei-protocol/sei-wasmd v0.3.9 h1:gHbJcczxZYon4cYfdQz04sKmPdfDUtqA5mDDKW4dp2E=
github.com/sei-protocol/sei-wasmd v0.3.9/go.mod h1:/++yXN121FLs9hmArfX97ukm4q4wMC0REcUYZKrIw5Q=
github.com/sei-protocol/tm-db v0.0.4 h1:7Y4EU62Xzzg6wKAHEotm7SXQR0aPLcGhKHkh3qd0tnk=
github.com/sei-protocol/tm-db v0.0.4/go.mod h1:PWsIWOTwdwC7Ow/GUvx8HgUJTO691pBuorIQD8JvwAs=
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
Expand Down
57 changes: 57 additions & 0 deletions sei-wasmd/.codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#
# This codecov.yml is the default configuration for
# all repositories on Codecov. You may adjust the settings
# below in your own codecov.yml in your repository.
#
coverage:
precision: 2
round: down
range: 70...100

status:
# Learn more at https://docs.codecov.io/docs/commit-status
project:
default:
threshold: 1% # allow this much decrease on project
app:
target: 70%
flags:
- app
modules:
target: 70%
flags:
- modules
client:
flags:
- client
changes: false

comment:
layout: "reach, diff, files"
behavior: default # update if exists else create new
require_changes: true

flags:
app:
paths:
- "app/"
modules:
paths:
- "x/"
- "!x/**/client/" # ignore client package
client:
paths:
- "x/**/client/"

ignore:
- "cmd/"
- "contrib/"
- "docs/"
- "docker/"
- "scripts/"
- "*.md"
- "*.rst"
- "x/**/*.pb.go"
- "x/**/*.pb.gw.go"
- "x/**/test_common.go"
- "x/**/testdata/"
2 changes: 2 additions & 0 deletions sei-wasmd/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Folders we don't want to copy to Docker daemon in `docker build . -t cosmwasm/wasmd:latest`
build/
48 changes: 48 additions & 0 deletions sei-wasmd/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# OS
.DS_Store
*.swp
*.swo
*.swl
*.swm
*.swn
.vscode
.idea

# Build
vendor
build
tools/bin/*
examples/build/*
docs/_build
docs/tutorial
dist
tools-stamp
docs/node_modules

# Data - ideally these don't exist
baseapp/data/*
client/lcd/keys/*
mytestnet

# Testing
coverage.txt
profile.out

# Vagrant
.vagrant/
*.box
*.log
vagrant

# IDE
.idea/
*.iml

# Graphviz
dependency-graph.png

# Latex
*.aux
*.out
*.synctex.gz
contract_tests/*
63 changes: 63 additions & 0 deletions sei-wasmd/.golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
run:
tests: false

linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- errcheck
- goconst
- gocritic
- gofmt
- goimports
- revive
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- prealloc
- exportloopref
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unused
- varcheck

issues:
exclude-rules:
- text: "Use of weak random number generator"
linters:
- gosec
- text: "ST1003:"
linters:
- stylecheck

linters-settings:
dogsled:
max-blank-identifiers: 3
errcheck:
# report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
# default is false: such cases aren't reported by default.
check-blank: true
maligned:
# print struct with more effective memory layout or not, false by default
suggest-new: true
golint:
# minimal confidence for issues, default is 0.8
min-confidence: 0
prealloc:
# XXX: we don't recommend using this linter before doing performance profiling.
# For most programs usage of prealloc will be a premature optimization.

# Report preallocation suggestions only on simple loops that have no returns/breaks/continues/gotos in them.
# True by default.
simple: false
range-loops: true # Report preallocation suggestions on range loops, true by default
for-loops: true # Report preallocation suggestions on for loops, false by default
Loading
Loading