Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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,526 changes: 175 additions & 2,351 deletions api/uexecutor/v1/tx.pulsar.go

Large diffs are not rendered by default.

78 changes: 0 additions & 78 deletions api/uexecutor/v1/tx_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions app/txpolicy/gasless.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ func IsGaslessTx(tx sdk.Tx) bool {
GaslessMsgTypes = []string{
sdk.MsgTypeURL(&uexecutortypes.MsgMigrateUEA{}),
sdk.MsgTypeURL(&uexecutortypes.MsgExecutePayload{}),
sdk.MsgTypeURL(&uexecutortypes.MsgDeployUEA{}),
sdk.MsgTypeURL(&uexecutortypes.MsgMintPC{}),
sdk.MsgTypeURL(&uexecutortypes.MsgVoteInbound{}),
sdk.MsgTypeURL(&uexecutortypes.MsgVoteGasPrice{}),
sdk.MsgTypeURL(&utsstypes.MsgVoteTssKeyProcess{}),
Expand Down
2 changes: 2 additions & 0 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
gasoracle "github.com/pushchain/push-chain-node/app/upgrades/gas-oracle"
"github.com/pushchain/push-chain-node/app/upgrades/noop"
pcmintcap "github.com/pushchain/push-chain-node/app/upgrades/pc-mint-cap"
removefeeabsv1 "github.com/pushchain/push-chain-node/app/upgrades/remove-fee-abs-v1"
solanafix "github.com/pushchain/push-chain-node/app/upgrades/solana-fix"
tsscore "github.com/pushchain/push-chain-node/app/upgrades/tss-core"
tsscoreevmparamsfix "github.com/pushchain/push-chain-node/app/upgrades/tss-core-evm-params-fix"
Expand All @@ -31,6 +32,7 @@ var Upgrades = []upgrades.Upgrade{
tsscoreevmparamsfix.NewUpgrade(),
evmrpcfix.NewUpgrade(),
tssvotegasless.NewUpgrade(),
removefeeabsv1.NewUpgrade(),
}

// RegisterUpgradeHandlers registers the chain upgrade handlers
Expand Down
35 changes: 35 additions & 0 deletions app/upgrades/remove-fee-abs-v1/upgrade.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package inbound

import (
"context"

upgradetypes "cosmossdk.io/x/upgrade/types"
"github.com/cosmos/cosmos-sdk/types/module"

storetypes "cosmossdk.io/store/types"
"github.com/pushchain/push-chain-node/app/upgrades"
)

const UpgradeName = "remove-fee-abs-v1"

// NewUpgrade constructs the upgrade definition
func NewUpgrade() upgrades.Upgrade {
return upgrades.Upgrade{
UpgradeName: UpgradeName,
CreateUpgradeHandler: CreateUpgradeHandler,
StoreUpgrades: storetypes.StoreUpgrades{
Added: []string{},
Deleted: []string{},
},
}
}

func CreateUpgradeHandler(
mm upgrades.ModuleManager,
configurator module.Configurator,
ak *upgrades.AppKeepers,
) upgradetypes.UpgradeHandler {
return func(ctx context.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
return mm.RunMigrations(ctx, configurator, fromVM)
}
}
46 changes: 0 additions & 46 deletions proto/uexecutor/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ service Msg {
// Since: cosmos-sdk 0.47
rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse);

// DeployUEA defines a message to deploy a new smart account.
rpc DeployUEA(MsgDeployUEA) returns (MsgDeployUEAResponse);

// MintPC defines a message to mint PC tokens to a smart account,
rpc MintPC(MsgMintPC) returns (MsgMintPCResponse);

// ExecutePayload defines a message for executing a universal payload
rpc ExecutePayload(MsgExecutePayload) returns (MsgExecutePayloadResponse);

Expand Down Expand Up @@ -59,46 +53,6 @@ message MsgUpdateParams {
// Since: cosmos-sdk 0.47
message MsgUpdateParamsResponse {}

// MsgDeployUEA is the message used to deploy a new smart account.
message MsgDeployUEA {
option (amino.name) = "uexecutor/MsgDeployUEA";
option (cosmos.msg.v1.signer) = "signer";

// signer is the Cosmos address initiating the tx (used for tx signing)
string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];

// universal_account_id is the identifier of the owner account
UniversalAccountId universal_account_id = 2;

// tx_hash is the hash of the transaction in which user locked the tokens
string tx_hash = 3;
}

// MsgDeployUEAResponse defines the response for MsgDeployUEA.
message MsgDeployUEAResponse {
// uea is the address of the newly deployed smart account
bytes UEA = 1;
}

// MsgMintPC represents a message to mint PC tokens to a smart account,
// based on the amount locked by the user in the gateway contract.
message MsgMintPC {
option (amino.name) = "uexecutor/MsgMintPC";
option (cosmos.msg.v1.signer) = "signer";

// signer is the Cosmos address initiating the tx (used for tx signing)
string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];

// universal_account_id is the identifier of the owner account
UniversalAccountId universal_account_id = 2;

// tx_hash is the hash of the transaction in which user locked the tokens
string tx_hash = 3;
}

// MsgMintPCResponse defines the response for MsgMintPC.
message MsgMintPCResponse {}

// MsgExecutePayload defines a message for executing a universal payload
message MsgExecutePayload {
option (amino.name) = "uexecutor/MsgExecutePayload";
Expand Down
103 changes: 0 additions & 103 deletions test/integration/uexecutor/deploy_uea_test.go

This file was deleted.

Loading
Loading