-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
135 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,19 @@ | ||
package interchain | ||
|
||
import ( | ||
"github.com/cosmos/cosmos-sdk/client" | ||
"github.com/cosmos/cosmos-sdk/codec" | ||
interchainda "github.com/dymensionxyz/dymint/types/pb/interchain_da" | ||
) | ||
|
||
type DAConfig struct { | ||
ChainID string `mapstructure:"chain_id"` // The chain ID of the DA chain | ||
ClientID string `mapstructure:"client_id"` // This is the IBC client ID on Dymension hub for the DA chain | ||
KeyringBackend string `mapstructure:"keyring_backend"` | ||
KeyringHomeDir string `mapstructure:"keyring_home_dir"` | ||
AddressPrefix string `mapstructure:"da_address_prefix"` | ||
AccountName string `mapstructure:"da_account_name"` | ||
NodeAddress string `mapstructure:"da_node_address"` | ||
GasLimit uint64 `mapstructure:"da_gas_limit"` | ||
GasPrices string `mapstructure:"da_gas_prices"` | ||
GasFees string `mapstructure:"da_gas_fees"` | ||
ChainParams interchaindatypes.Params `mapstructure:"chain_params"` // The params of the DA chain | ||
} | ||
|
||
type EncodingConfig interface { | ||
TxConfig() client.TxConfig | ||
Codec() codec.Codec | ||
ClientID string `mapstructure:"client_id"` // This is the IBC client ID on Dymension hub for the DA chain | ||
ChainID string `mapstructure:"chain_id"` // The chain ID of the DA chain | ||
KeyringBackend string `mapstructure:"keyring_backend"` | ||
KeyringHomeDir string `mapstructure:"keyring_home_dir"` | ||
AddressPrefix string `mapstructure:"address_prefix"` | ||
AccountName string `mapstructure:"account_name"` | ||
NodeAddress string `mapstructure:"node_address"` | ||
GasLimit uint64 `mapstructure:"gas_limit"` | ||
GasPrices string `mapstructure:"gas_prices"` | ||
GasFees string `mapstructure:"gas_fees"` | ||
DAParams interchainda.Params `mapstructure:"da_params"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package interchain_da | ||
|
||
import sdk "github.com/cosmos/cosmos-sdk/types" | ||
|
||
func (m MsgSubmitBlob) ValidateBasic() error { | ||
// Validation is done on the DA layer side | ||
return nil | ||
} | ||
|
||
func (m MsgSubmitBlob) GetSigners() []sdk.AccAddress { | ||
signer, _ := sdk.AccAddressFromBech32(m.Creator) | ||
return []sdk.AccAddress{signer} | ||
} |