-
Notifications
You must be signed in to change notification settings - Fork 24
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
chore: bumped package to include both permissions and peggy messages #229
Conversation
WalkthroughThe recent updates to the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant ChainA
participant ChainB
participant PeggyModule
User->>PeggyModule: Initiate asset transfer
PeggyModule->>ChainA: Validate and process request
ChainA->>PeggyModule: Confirm transaction
PeggyModule->>ChainB: Forward transfer request
ChainB->>PeggyModule: Confirm receipt
PeggyModule->>User: Notify success
TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 6
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
Cargo.lock
is excluded by!**/*.lock
Files selected for processing (9)
- packages/injective-std/Cargo.toml (1 hunks)
- packages/injective-std/src/types/cosmos/base/query/v1beta1.rs (2 hunks)
- packages/injective-std/src/types/cosmos/base/v1beta1.rs (3 hunks)
- packages/injective-std/src/types/injective/exchange/v1beta1.rs (2 hunks)
- packages/injective-std/src/types/injective/mod.rs (1 hunks)
- packages/injective-std/src/types/injective/peggy/mod.rs (1 hunks)
- packages/injective-std/src/types/injective/peggy/v1.rs (1 hunks)
- packages/injective-std/src/types/injective/permissions/mod.rs (1 hunks)
- packages/injective-std/src/types/injective/permissions/v1beta1.rs (1 hunks)
Files skipped from review due to trivial changes (1)
- packages/injective-std/Cargo.toml
Additional comments not posted (48)
packages/injective-std/src/types/injective/peggy/mod.rs (1)
1-1
: Module Declaration: Ensure Consistency and CompletenessThe new module
v1
is declared correctly. Ensure that the correspondingv1
module file exists and is correctly implemented.packages/injective-std/src/types/injective/permissions/mod.rs (1)
1-1
: Module Declaration: Ensure Consistency and CompletenessThe new module
v1beta1
is declared correctly. Ensure that the correspondingv1beta1
module file exists and is correctly implemented.packages/injective-std/src/types/injective/mod.rs (1)
5-6
: Module Declarations: Ensure Consistency and CompletenessThe new modules
peggy
andpermissions
are declared correctly. Ensure that the corresponding module files exist and are correctly implemented.packages/injective-std/src/types/injective/permissions/v1beta1.rs (16)
3-6
: Verify the necessity of the emptyParams
struct.The
Params
struct is currently empty. Ensure that this is intentional and aligns with the module's requirements.
8-28
: LGTM!The
Namespace
struct is well-defined and appears to be correctly implemented.
32-42
: LGTM!The
Role
struct is well-defined and appears to be correctly implemented.
45-49
: LGTM!The
Roles
struct is well-defined and appears to be correctly implemented.
53-58
: LGTM!The
RoleIDs
struct is well-defined and appears to be correctly implemented.
61-65
: LGTM!The
Voucher
struct is well-defined and appears to be correctly implemented.
69-99
: LGTM!The
Action
enum is well-defined and appears to be correctly implemented.
103-110
: LGTM!The
GenesisState
struct is well-defined and appears to be correctly implemented.
114-120
: LGTM!The
QueryParamsRequest
struct is well-defined and appears to be correctly implemented.
123-128
: LGTM!The
QueryParamsResponse
struct is well-defined and appears to be correctly implemented.
133-139
: LGTM!The
QueryAllNamespacesRequest
struct is well-defined and appears to be correctly implemented.
143-147
: LGTM!The
QueryAllNamespacesResponse
struct is well-defined and appears to be correctly implemented.
152-160
: LGTM!The
QueryNamespaceByDenomRequest
struct is well-defined and appears to be correctly implemented.
167-171
: LGTM!The
QueryNamespaceByDenomResponse
struct is well-defined and appears to be correctly implemented.
176-186
: LGTM!The
QueryAddressesByRoleRequest
struct is well-defined and appears to be correctly implemented.
191-195
: LGTM!The
QueryAddressesByRoleResponse
struct is well-defined and appears to be correctly implemented.packages/injective-std/src/types/injective/peggy/v1.rs (27)
1-33
: LGTM! StructAttestation
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
34-48
: LGTM! StructErc20Token
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
49-86
: LGTM! EnumClaimType
is well-defined.The enum is well-documented and includes appropriate methods for string conversion.
87-114
: LGTM! StructOutgoingTxBatch
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
115-135
: LGTM! StructOutgoingTransferTx
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
136-166
: LGTM! EnumSignType
is well-defined.The enum is well-documented and includes appropriate methods for string conversion.
167-179
: LGTM! StructBridgeValidator
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
181-207
: LGTM! StructValset
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
208-228
: LGTM! StructLastObservedEthereumBlockHeight
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
230-247
: LGTM! StructLastClaimEvent
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
248-258
: LGTM! StructErc20ToDenom
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
259-287
: LGTM! StructEventAttestationObserved
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
288-301
: LGTM! StructEventBridgeWithdrawCanceled
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
303-325
: LGTM! StructEventOutgoingBatch
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
326-351
: LGTM! StructEventOutgoingBatchCanceled
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
352-375
: LGTM! StructEventValsetUpdateRequest
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
377-386
: LGTM! StructEventSetOrchestratorAddresses
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
388-399
: LGTM! StructEventValsetConfirm
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
400-419
: LGTM! StructEventSendToEth
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
420-432
: LGTM! StructEventConfirmBatch
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
433-448
: LGTM! StructEventAttestationVote
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
449-479
: LGTM! StructEventDepositClaim
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
481-510
: LGTM! StructEventWithdrawClaim
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
511-545
: LGTM! StructEventErc20DeployedClaim
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
547-577
: LGTM! StructEventValsetUpdateClaim
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
583-592
: LGTM! StructEventCancelSendToEth
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
593-601
: LGTM! StructEventSubmitBadSignatureEvidence
is well-defined.The struct is well-documented and includes appropriate attributes for serialization and deserialization.
[packages/injective-std/src/types/injective/exchange/v1beta1.rs (2)
Line range hint
1-5
:
Verify the correctness and consistency of themin_quantity_tick_size
field.Ensure that the
min_quantity_tick_size
field is correctly added or modified in theMsgInstantSpotMarketLaunch
struct. Verify that the tag value6
is unique and consistent with the rest of the struct.Verification successful
The
min_quantity_tick_size
field in theMsgInstantSpotMarketLaunch
struct is correctly added and consistent with the rest of the struct. The tag value6
is unique and properly used.
- Location:
packages/injective-std/src/types/injective/exchange/v1beta1.rs
,MsgInstantSpotMarketLaunch
struct.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the correctness and consistency of the `min_quantity_tick_size` field in `MsgInstantSpotMarketLaunch` struct. # Test: Search for the `MsgInstantSpotMarketLaunch` struct definition. Expect: The tag value `6` is unique and consistent. rg --type rust -A 10 $'struct MsgInstantSpotMarketLaunch'Length of output: 4390
Script:
#!/bin/bash # Description: Verify the completeness and consistency of the `MsgInstantSpotMarketLaunch` struct definition. # Test: Search for the complete definition of the `MsgInstantSpotMarketLaunch` struct. rg --type rust -A 20 $'struct MsgInstantSpotMarketLaunch'Length of output: 8005
Line range hint
6-10
:
Verify the correctness and consistency of themin_quantity_tick_size
field.Ensure that the
min_quantity_tick_size
field is correctly added or modified in theMsgInstantPerpetualMarketLaunch
struct. Verify that the tag value13
is unique and consistent with the rest of the struct.Verification successful
The
min_quantity_tick_size
field is correctly added and consistent with the rest of theMsgInstantPerpetualMarketLaunch
struct.
- The field
min_quantity_tick_size
is present with the tag value13
.- All tag values in the struct are unique and consistent.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the correctness and consistency of the `min_quantity_tick_size` field in `MsgInstantPerpetualMarketLaunch` struct. # Test: Search for the `MsgInstantPerpetualMarketLaunch` struct definition. Expect: The tag value `13` is unique and consistent. rg --type rust -A 10 $'struct MsgInstantPerpetualMarketLaunch'Length of output: 4427
Script:
#!/bin/bash # Description: Verify the correctness and consistency of the `min_quantity_tick_size` field in `MsgInstantPerpetualMarketLaunch` struct. # Test: Search for the complete definition of the `MsgInstantPerpetualMarketLaunch` struct to check the presence and correctness of the `min_quantity_tick_size` field and its tag value `13`. rg --type rust -A 50 $'struct MsgInstantPerpetualMarketLaunch'Length of output: 18799
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- packages/injective-std/src/types/injective/exchange/v1beta1.rs (2 hunks)
Files skipped from review as they are similar to previous changes (1)
- packages/injective-std/src/types/injective/exchange/v1beta1.rs
As per:
this issue
BUT.
I think it's healthier for us to transition to supporting
injective-std
more actively and secondlywasmbindings
have no peggy message integrations so 🤷Summary by CodeRabbit
New Features
peggy
module to facilitate cross-chain transactions between Cosmos and Ethereum networks.permissions
module to manage permissions within the blockchain application, enhancing security and access control.Bug Fixes
injective-std
package, indicating minor revisions and potential bug fixes.Refactor
min_notional
field from market launch messages.Enhancements
type_url
attributes for various Protobuf message structures, improving organization and compatibility.