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

Release v0.10.0 #293

Merged
merged 147 commits into from
Jul 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
3b5a4a1
- qb1269: node tier change affect ozlimit
jialbai Feb 2, 2023
b1f447e
Merge branches 'dev' and 'qb1269_node-tier-change-affect-ozlimt' of h…
jialbai Feb 3, 2023
2f6dfd8
remove amino codec from pot module
Xiong-stratos Feb 3, 2023
66f4b7f
- qb1296: fix effectiveToken update logics
jialbai Feb 7, 2023
9f2edc9
1, remove amino codec from register module
Xiong-stratos Feb 7, 2023
6a1047c
code optimization
Xiong-stratos Feb 7, 2023
8097df1
- qb1296: add debug logs
jialbai Feb 7, 2023
00ce238
- qb1269: add update_effective_stake tx
jialbai Feb 11, 2023
8e13728
Merge branch 'dev' into qb1602_remove_amino_codec
alexstratos Feb 13, 2023
de18eda
Add EVM state breakers on new prod
BoThe1K Feb 11, 2023
142ab5c
restore attribute current stake
WangLiStratos Feb 13, 2023
d09d315
Add initial pool design
BoThe1K Feb 16, 2023
5c93abe
Force to build with go1.19
Xiong-stratos Feb 16, 2023
6e2bf36
update go.mod
Xiong-stratos Feb 16, 2023
4db1c6d
Merge pull request #217 from stratosnet/qb1602_remove_amino_codec
alexstratos Feb 16, 2023
47d122f
- qb1269: add new tx UpdateEffectiveStake (also work for unsuspending…
jialbai Feb 17, 2023
d62d9fb
Merge branches 'dev' and 'qb1269_node-tier-change-affect-ozlimt' of h…
jialbai Feb 20, 2023
c277133
- qb1269: merge with latest dev branch and remove useless effectiveSt…
jialbai Feb 20, 2023
80f9d51
bech32 sds p2pPubKey correction
Xiong-stratos Feb 20, 2023
2558a48
Merge pull request #221 from stratosnet/QB-1573_refactor_pp_fsm
alexstratos Feb 21, 2023
a54289b
Merge pull request #218 from stratosnet/QB-1574/state-breakers
alexstratos Feb 21, 2023
f925a6d
Merge pull request #222 from stratosnet/qb-1632_apphash_diff
alexstratos Feb 21, 2023
8c17360
Merge pull request #223 from stratosnet/qb-1659_sds_pukey_bech32_stri…
alexstratos Feb 21, 2023
9319793
Merge branches 'dev' and 'qb1269_node-tier-change-affect-ozlimt' of h…
jialbai Feb 22, 2023
626e586
- qb1269: fix typo
jialbai Feb 22, 2023
3df9c26
1,Implement missing grpc APIs
Xiong-stratos Feb 23, 2023
ba14e57
bug fix
Xiong-stratos Feb 23, 2023
41050bd
- qb1269: add availableStake(allStake-unbondingStake) alignment with SP
jialbai Feb 24, 2023
7cff28e
- qb1269: rename method from IsSpNode to IsMetaNode
jialbai Feb 24, 2023
28c48e7
- qb1269: GetSigners() method of message won't tolerant for error any…
jialbai Feb 24, 2023
eb47168
Merge pull request #215 from stratosnet/qb1269_node-tier-change-affec…
alexstratos Feb 24, 2023
657ea6f
"in_ten_thousand" rename to "in_bp"
Xiong-stratos Feb 24, 2023
63402f8
Improve initial design
BoThe1K Feb 20, 2023
884844b
Merge pull request #224 from stratosnet/QB-1645/evm-pool
alexstratos Feb 24, 2023
86eb581
add param validation
Xiong-stratos Feb 24, 2023
c8028a8
Merge branch 'dev' into qb-1660_implement_grpc_queries
Xiong-stratos Feb 24, 2023
201f2ee
conflict solve
Xiong-stratos Feb 24, 2023
7a29ffa
bug fix
Xiong-stratos Feb 24, 2023
40ec743
remove coin normalization from msg handler level
Xiong-stratos Feb 24, 2023
b06d81a
Merge pull request #225 from stratosnet/qb-1660_implement_grpc_queries
alexstratos Feb 24, 2023
ff4ee11
bump version to v0.10.0
alexstratos Feb 24, 2023
ee5fd8f
Apply fix with baseFee
BoThe1K Mar 3, 2023
78e7317
Merge pull request #227 from stratosnet/QB-1693/fix-base-fee
alexstratos Mar 3, 2023
e37ad12
Feat/Qb-1669: Use GRPC APIs to interact with stchain (#226)
Xiong-stratos Mar 7, 2023
135f3bd
add a query api to get the total mined token from pot module (#231)
Xiong-stratos Mar 7, 2023
a192d26
add report owner validation for MsgVolumeReport/MsgSlashingResourceNo…
Xiong-stratos Mar 8, 2023
bc075d4
Merge pull request #232 from stratosnet/qb1716_check_report_owner
alexstratos Mar 8, 2023
4618e02
Merge pull request #228 from stratosnet/audit
jinzuo-qsn Mar 9, 2023
83fbbf3
Feat/QB-1671: Prepay for other address (#230)
Xiong-stratos Mar 13, 2023
6250dc6
Fix evm contract destroy
BoThe1K Mar 26, 2023
86e6773
1, Add reporter owner validation.
Xiong-stratos Mar 27, 2023
a794975
Merge pull request #236 from stratosnet/fix-EVM-set-code
alexstratos Mar 28, 2023
78c47dd
- qb1747: fix validation of MsgUpdateEffectiveStake
jialbai Mar 30, 2023
3adad30
- qb1747: simplify GetTotalConsumedNoz impl
jialbai Mar 30, 2023
33af4f2
- qb1746: fix extreme case that remainingOzoneLimit decreases to nega…
jialbai Mar 30, 2023
9e511c3
1, Add access control for MsgRemoveResourceNode/MsgRemoveMetaNode
Xiong-stratos Mar 30, 2023
7a3c829
Remove unnecessary validation.
Xiong-stratos Mar 30, 2023
458ec96
Fix int64 overflow issue for reward distribution
Xiong-stratos Mar 31, 2023
a01fcfe
Fix: BLSSignature parameter lost in the rest API
Xiong-stratos Mar 31, 2023
a2f37ef
Revert "Fix evm contract destroy"
BoThe1K Apr 2, 2023
4f9d1e0
Rm dletion of the code which was stored
BoThe1K Apr 3, 2023
aa02786
- qb1752: fix deletion in iteration while DequeueAllMatureUBDQueue
jialbai Apr 3, 2023
dcf76d2
Fix: Validate reporters with threshold for MsgUpdateEffectiveStake
Xiong-stratos Apr 3, 2023
ddef1b8
1, Verify bls signature with threshold
Xiong-stratos Apr 3, 2023
fd83517
Merge pull request #237 from stratosnet/qb1733_fileUpload_fix_for_audit
alexstratos Apr 3, 2023
da55723
Merge pull request #240 from stratosnet/qb1751_Inconsistent_token_denoms
alexstratos Apr 4, 2023
0b8ea4d
Merge pull request #241 from stratosnet/qb1747_fix-validation-of-MsgU…
alexstratos Apr 4, 2023
d880873
Merge pull request #242 from stratosnet/qb1750_epoch_overflow
alexstratos Apr 4, 2023
853768a
Merge pull request #243 from stratosnet/qb1749_empty_bls_signature_in…
alexstratos Apr 4, 2023
66b88a3
Merge pull request #244 from stratosnet/fix-EVM-set-code
alexstratos Apr 4, 2023
a954ffe
Merge branch 'audit' into qb1770_MsgUpdateEffectiveStake_validate_thr…
Xiong-stratos Apr 4, 2023
8bcea39
Merge pull request #245 from stratosnet/qb1770_MsgUpdateEffectiveStak…
Xiong-stratos Apr 4, 2023
bda3a12
Merge branch 'audit' into qb-1748_access_control_for_remove_rs_node
Xiong-stratos Apr 4, 2023
d12aa70
conflict solve
Xiong-stratos Apr 4, 2023
34addbb
remove return value ozoneLimitChange from UnbondResourceNode()
Xiong-stratos Apr 4, 2023
5c46ae6
Verify the value of hashed volumeReport sign data equals to txData fr…
Xiong-stratos Apr 4, 2023
cf99db8
- qb1752: fix deletion in iteration while DequeueAllMatureUBDQueue
jialbai Apr 5, 2023
dcc47c3
Verify txDataHash before blsSignature validation
Xiong-stratos Apr 5, 2023
3c04493
Merge pull request #246 from stratosnet/qb1317_verify_bls_signature_f…
alexstratos Apr 5, 2023
82b7224
Merge pull request #248 from stratosnet/qb1747_fix-validation-and-del…
alexstratos Apr 5, 2023
701a4ef
Merge pull request #239 from stratosnet/qb-1748_access_control_for_re…
Xiong-stratos Apr 5, 2023
dc56e09
Merge branch 'dev' into audit
Xiong-stratos Apr 12, 2023
2381c29
Merge pull request #249 from stratosnet/audit
Xiong-stratos Apr 12, 2023
9f1fbba
error fix
Xiong-stratos Apr 12, 2023
4cfe4d6
Merge pull request #250 from stratosnet/err_fix
jinzuo-qsn Apr 12, 2023
b7c24e1
1, Add minimum stake limit param to genesis file.
Xiong-stratos Apr 18, 2023
1cd8ebf
Add not null constraint & json tags to proto files.
Xiong-stratos Apr 18, 2023
6947c13
MsgUpdateResourceNodeStake only allow to add stake
Xiong-stratos Apr 19, 2023
9c76fc4
Merge pull request #252 from stratosnet/qb1773_minimum_sds_staking
alexstratos Apr 24, 2023
e9ea0a1
fix
Xiong-stratos Apr 25, 2023
8ba9be9
Merge pull request #254 from stratosnet/threshold_fix
alexstratos Apr 25, 2023
d163325
1, Add minimum stake limit param to genesis file.
Xiong-stratos Apr 18, 2023
b79f15a
Add not null constraint & json tags to proto files.
Xiong-stratos Apr 18, 2023
a7df039
MsgUpdateResourceNodeStake only allow to add stake
Xiong-stratos Apr 19, 2023
14836dd
fix
Xiong-stratos Apr 25, 2023
9fb7f3d
Feat/Qb-1744:Reward distribution process refactor (#251)
Xiong-stratos Apr 25, 2023
afdaeef
Merge remote-tracking branch 'origin/audit' into audit
Xiong-stratos Apr 26, 2023
4d648f7
Merge pull request #255 from stratosnet/audit
jinzuo-qsn Apr 26, 2023
d94f537
Add query: circulationSupply
Xiong-stratos Apr 27, 2023
6207de4
Keep the total supply constant. (#258)
Xiong-stratos May 1, 2023
0aa9be7
Merge branch 'dev' into qb-1808_query_circulation_supply
Xiong-stratos May 2, 2023
9d32e8b
Merge pull request #257 from stratosnet/qb-1808_query_circulation_supply
Xiong-stratos May 2, 2023
75d6109
implement missing/outdated rest apis
Xiong-stratos May 8, 2023
1a7cdd6
Merge pull request #260 from stratosnet/add_missing_query_api
alexstratos May 17, 2023
b575a43
Release to dev (#268)
alexstratos May 19, 2023
ee7f850
fix missing access control
Xiong-stratos May 15, 2023
c4dc940
- qb1840: vote pool related optimization
jialbai May 16, 2023
83a09cb
add mutex for cache
Xiong-stratos May 16, 2023
df36e87
- qb1835: rename votingValidityPeriod as votingPeriod
jialbai May 17, 2023
c6ce082
resource node & meta node should not use the same network address
Xiong-stratos May 17, 2023
46d9fac
- qb1835: remove flag isPassingVote
May 18, 2023
9f4ec3d
- qb1835: remove unused key is_passing_vote
May 18, 2023
e3e181f
Merge pull request #269 from stratosnet/audit
jinzuo-qsn May 19, 2023
808f113
disable total supply reset function
Xiong-stratos May 24, 2023
27f1b08
Merge pull request #270 from stratosnet/disable_restore_total_supply
alexstratos May 24, 2023
337f502
bug fix
Xiong-stratos May 24, 2023
571cde7
Merge pull request #271 from stratosnet/mutex_bug_fix
alexstratos May 24, 2023
2d6d42b
Merge pull request #272 from stratosnet/audit
alexstratos May 24, 2023
b5ce2df
staking reward only apply to validators, remove the traversal of reso…
Xiong-stratos May 26, 2023
815b0c6
Update tx pool loading + rfactor web3 rpc starting point
BoThe1K May 29, 2023
c3bb6a1
1, Move reward distribution logic back to volumeReport tx.
Xiong-stratos May 29, 2023
8f1e08f
Merge pull request #273 from stratosnet/qb-1836_reward_distribution_r…
alexstratos May 29, 2023
07f16b3
stake renaming
Xiong-stratos May 31, 2023
6e5e8e3
Merge branch 'dev' into audit
Xiong-stratos May 31, 2023
34a685a
Merge pull request #274 from stratosnet/QB-1863/update-tx-pool
alexstratos Jun 1, 2023
272c20a
Merge pull request #275 from stratosnet/audit
alexstratos Jun 1, 2023
a3ca999
Merge branch 'dev' into qb-1874_rename_stake_to_deposit
Xiong-stratos Jun 1, 2023
24b324c
update
Xiong-stratos Jun 1, 2023
933ece4
Merge pull request #276 from stratosnet/qb-1874_rename_stake_to_deposit
alexstratos Jun 1, 2023
aba9bfb
Fix incorrect default value usage (#277)
Xiong-stratos Jun 1, 2023
cb03818
remove resource/meta node cache to prevent concurrent issue. (#278)
Xiong-stratos Jun 1, 2023
b05d09e
Qb 1816 - implement proxy, add prepay (#265)
BoThe1K Jun 2, 2023
99e2e90
update for conflicts
alexstratos Jun 2, 2023
b0405be
update for conflicts
alexstratos Jun 2, 2023
c25555b
Qb 1816 - implement proxy, add prepay (#265) (#279)
alexstratos Jun 2, 2023
f6a07a1
update for conflicts
alexstratos Jun 2, 2023
a9ff13a
fix the conflicts of merge
alexstratos Jun 2, 2023
9a6d60a
fix/qb1866: fix token supply (#280)
bjlqsnetwork Jun 12, 2023
b21d067
add address convert api (#281)
Xiong-stratos Jun 12, 2023
5894ea3
- qb1864: impl update sp deposit (#282)
bjlqsnetwork Jun 16, 2023
109574b
Feat/QB-1883: Mainnet preparation (#283)
Xiong-stratos Jun 16, 2023
59c4944
Revert "Qb 1816 - implement proxy, add prepay (#265)" (#285)
BoThe1K Jun 20, 2023
9e234d2
cherry-pick fix/qb1866: fix token supply
alexstratos Jun 20, 2023
ef7a686
Audit conflict resolve (#291)
alexstratos Jul 6, 2023
959f789
Merge branch 'dev' into audit
alexstratos Jul 6, 2023
f3ff08b
Merge pull request #287 from stratosnet/audit
jinzuo-qsn Jul 6, 2023
46c5abd
Merge branch 'release' into dev
alexstratos Jul 6, 2023
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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18-alpine AS build-env
FROM golang:1.19-alpine AS build-env

# Set up dependencies
ENV PACKAGES curl make git libc-dev bash gcc linux-headers eudev-dev python3 \
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

BUILDDIR ?= $(CURDIR)/build

APP_VER := v0.9.1
COMMIT := $(shell git log -1 --format='%H')
TEST_DOCKER_REPO=stratos-chain
APP_VER := v0.10.0
COMMIT := $(GIT_COMMIT_HASH)
TEST_DOCKER_REPO=stratos-chain-e2e

ifeq ($(COMMIT),)
VERSION := $(APP_VER)
Expand Down
3 changes: 0 additions & 3 deletions app/ante/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ func NewAnteHandler(options HandlerOptions) sdk.AnteHandler {
case "/stratos.evm.v1.ExtensionOptionsEthereumTx":
// handle as *evmtypes.MsgEthereumTx
anteHandler = newEthAnteHandler(options)
case "/stratos.types.v1.ExtensionOptionsWeb3Tx":
// handle as normal Cosmos SDK tx, except signature is checked for EIP712 representation
anteHandler = newCosmosAnteHandlerEip712(options)
default:
return ctx, sdkerrors.Wrapf(
sdkerrors.ErrUnknownExtensionOptions,
Expand Down
277 changes: 0 additions & 277 deletions app/ante/eip712.go

This file was deleted.

33 changes: 19 additions & 14 deletions app/ante/eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -550,21 +550,26 @@ func (mfd EthMempoolFeeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulat
if ctx.IsCheckTx() && !simulate {
params := mfd.evmKeeper.GetParams(ctx)
ethCfg := params.ChainConfig.EthereumConfig()
evmDenom := params.EvmDenom
baseFee := mfd.evmKeeper.GetBaseFee(ctx, ethCfg)
if baseFee == nil {
for _, msg := range tx.GetMsgs() {
ethMsg, ok := msg.(*evmtypes.MsgEthereumTx)
if !ok {
return ctx, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, "invalid message type %T, expected %T", msg, (*evmtypes.MsgEthereumTx)(nil))
}

evmDenom := params.EvmDenom
feeAmt := ethMsg.GetFee()
glDec := sdk.NewDec(int64(ethMsg.GetGas()))
requiredFee := ctx.MinGasPrices().AmountOf(evmDenom).Mul(glDec)
if sdk.NewDecFromBigInt(feeAmt).LT(requiredFee) {
return ctx, sdkerrors.Wrapf(sdkerrors.ErrInsufficientFee, "insufficient fees; got: %s required: %s", feeAmt, requiredFee)
}

for _, msg := range tx.GetMsgs() {
ethMsg, ok := msg.(*evmtypes.MsgEthereumTx)
if !ok {
return ctx, sdkerrors.Wrapf(sdkerrors.ErrUnknownRequest, "invalid message type %T, expected %T", msg, (*evmtypes.MsgEthereumTx)(nil))
}

var feeAmt *big.Int
// if base fee disabled, calculate without effective fee mechanics
if baseFee == nil {
feeAmt = ethMsg.GetFee()
} else {
feeAmt = ethMsg.GetEffectiveFee(baseFee)
}
glDec := sdk.NewDec(int64(ethMsg.GetGas()))
requiredFee := ctx.MinGasPrices().AmountOf(evmDenom).Mul(glDec)
if sdk.NewDecFromBigInt(feeAmt).LT(requiredFee) {
return ctx, sdkerrors.Wrapf(sdkerrors.ErrInsufficientFee, "insufficient fees; got: %s required: %s", feeAmt, requiredFee)
}
}
}
Expand Down
26 changes: 1 addition & 25 deletions app/ante/handler_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ func newEthAnteHandler(options HandlerOptions) sdk.AnteHandler {
NewEthSetUpContextDecorator(options.EvmKeeper), // outermost AnteDecorator. SetUpContext must be called first
NewEthMempoolFeeDecorator(options.EvmKeeper), // Check eth effective gas price against minimal-gas-prices
NewEthValidateBasicDecorator(options.EvmKeeper),
// TODO: UNCOMMENT THIS FOR PROD!!!!!!
// NewEthTxPayloadVerificationDecorator(),
NewEthTxPayloadVerificationDecorator(),
NewEthSigVerificationDecorator(options.EvmKeeper),
NewEthAccountVerificationDecorator(options.AccountKeeper, options.EvmKeeper),
NewEthGasConsumeDecorator(options.EvmKeeper, options.MaxTxGasWanted),
Expand Down Expand Up @@ -78,26 +77,3 @@ func newCosmosAnteHandler(options HandlerOptions) sdk.AnteHandler {
ibcante.NewAnteDecorator(options.IBCKeeper),
)
}

func newCosmosAnteHandlerEip712(options HandlerOptions) sdk.AnteHandler {
return sdk.ChainAnteDecorators(
RejectMessagesDecorator{}, // reject MsgEthereumTxs
ante.NewSetUpContextDecorator(),
// NOTE: extensions option decorator removed
// ante.NewRejectExtensionOptionsDecorator(),
ante.NewMempoolFeeDecorator(),
ante.NewValidateBasicDecorator(),
ante.NewTxTimeoutHeightDecorator(),
ante.NewValidateMemoDecorator(options.AccountKeeper),
ante.NewConsumeGasForTxSizeDecorator(options.AccountKeeper),
ante.NewDeductFeeDecorator(options.AccountKeeper, options.BankKeeper, options.FeegrantKeeper),
// SetPubKeyDecorator must be called before all signature verification decorators
ante.NewSetPubKeyDecorator(options.AccountKeeper),
ante.NewValidateSigCountDecorator(options.AccountKeeper),
ante.NewSigGasConsumeDecorator(options.AccountKeeper, options.SigGasConsumer),
// Note: signature verification uses EIP instead of the cosmos signature validator
NewEip712SigVerificationDecorator(options.AccountKeeper, options.EvmKeeper, options.SignModeHandler),
ante.NewIncrementSequenceDecorator(options.AccountKeeper),
ibcante.NewAnteDecorator(options.IBCKeeper),
)
}
Loading