Skip to content

Commit e41a942

Browse files
committed
Merge branch 'main' into yzang/STO-305
* main: update: set MaxPacketMsgPayloadSize use MB unit (#2729) fix: set max packet msg payload default to 1MB (#2725) Add CI workflow to build libwasmvm dynamic libraries (#2724) Made tcp connection context-aware (#2718) tcp multiplexer for sei giga (#2679) [STO-237] remove unused cosmos invariants (#2719)
2 parents c8256ce + b0d0f59 commit e41a942

45 files changed

Lines changed: 3448 additions & 2703 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/libwasmvm.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: libwasmvm
2+
on:
3+
workflow_call:
4+
inputs:
5+
ref:
6+
description: 'Git ref to checkout (branch, tag, or SHA)'
7+
required: false
8+
type: string
9+
default: ''
10+
push:
11+
branches:
12+
- main
13+
- release/**
14+
15+
concurrency:
16+
cancel-in-progress: true
17+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }}
18+
19+
defaults:
20+
run:
21+
working-directory: sei-wasmvm
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-latest
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
target:
30+
- release-build-alpine
31+
- release-build-linux
32+
- release-build-macos
33+
steps:
34+
- uses: actions/checkout@v6
35+
with:
36+
ref: ${{ inputs.ref || github.sha }}
37+
- name: Build
38+
run: |
39+
mkdir -p libwasmvm/artifacts
40+
make ${{ matrix.target }}
41+
ls -alh internal/api
42+
- name: Upload libraries
43+
uses: actions/upload-artifact@v5
44+
with:
45+
name: libwasmvm-${{ matrix.target }}-${{ inputs.ref || github.sha }}
46+
path: |
47+
sei-wasmvm/internal/api/*.h
48+
sei-wasmvm/internal/api/*.so
49+
sei-wasmvm/internal/api/*.a
50+
sei-wasmvm/internal/api/*.dylib
51+
if-no-files-found: warn

sei-cosmos/x/bank/keeper/invariants.go

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -8,53 +8,6 @@ import (
88
"github.com/cosmos/cosmos-sdk/x/bank/types"
99
)
1010

11-
// RegisterInvariants registers the bank module invariants
12-
func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper) {
13-
ir.RegisterRoute(types.ModuleName, "nonnegative-outstanding", NonnegativeBalanceInvariant(k))
14-
ir.RegisterRoute(types.ModuleName, "total-supply", TotalSupply(k))
15-
}
16-
17-
// AllInvariants runs all invariants of the X/bank module.
18-
func AllInvariants(k Keeper) sdk.Invariant {
19-
return func(ctx sdk.Context) (string, bool) {
20-
return TotalSupply(k)(ctx)
21-
}
22-
}
23-
24-
// NonnegativeBalanceInvariant checks that all accounts in the application have non-negative balances
25-
func NonnegativeBalanceInvariant(k ViewKeeper) sdk.Invariant {
26-
return func(ctx sdk.Context) (string, bool) {
27-
var (
28-
msg string
29-
count int
30-
)
31-
32-
k.IterateAllBalances(ctx, func(addr sdk.AccAddress, balance sdk.Coin) bool {
33-
if balance.IsNegative() {
34-
count++
35-
msg += fmt.Sprintf("\t%s has a negative balance of %s\n", addr, balance)
36-
}
37-
38-
return false
39-
})
40-
k.IterateAllWeiBalances(ctx, func(addr sdk.AccAddress, balance sdk.Int) bool {
41-
if balance.IsNegative() {
42-
count++
43-
msg += fmt.Sprintf("\t%s has a negative wei balance of %s\n", addr, balance)
44-
}
45-
46-
return false
47-
})
48-
49-
broken := count != 0
50-
51-
return sdk.FormatInvariant(
52-
types.ModuleName, "nonnegative-outstanding",
53-
fmt.Sprintf("amount of negative balances found %d\n%s", count, msg),
54-
), broken
55-
}
56-
}
57-
5811
// TotalSupply checks that the total supply reflects all the coins held in accounts
5912
func TotalSupply(k Keeper) sdk.Invariant {
6013
return func(ctx sdk.Context) (string, bool) {

sei-cosmos/x/bank/module.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,7 @@ func NewAppModule(cdc codec.Codec, keeper keeper.Keeper, accountKeeper types.Acc
130130
func (AppModule) Name() string { return types.ModuleName }
131131

132132
// RegisterInvariants registers the bank module invariants.
133-
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry) {
134-
keeper.RegisterInvariants(ir, am.keeper)
135-
}
133+
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry) {}
136134

137135
// Route returns the message routing key for the bank module.
138136
func (am AppModule) Route() sdk.Route {

sei-cosmos/x/distribution/keeper/invariants.go

Lines changed: 0 additions & 162 deletions
This file was deleted.

sei-cosmos/x/distribution/module.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,7 @@ func (AppModule) Name() string {
127127
}
128128

129129
// RegisterInvariants registers the distribution module invariants.
130-
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry) {
131-
keeper.RegisterInvariants(ir, am.keeper)
132-
}
130+
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry) {}
133131

134132
// Route returns the message routing key for the distribution module.
135133
func (am AppModule) Route() sdk.Route {

sei-cosmos/x/gov/module.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,7 @@ func (AppModule) Name() string {
142142
}
143143

144144
// RegisterInvariants registers module invariants
145-
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry) {
146-
keeper.RegisterInvariants(ir, am.keeper, am.bankKeeper)
147-
}
145+
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry) {}
148146

149147
// Route returns the message routing key for the gov module.
150148
func (am AppModule) Route() sdk.Route {

0 commit comments

Comments
 (0)