Skip to content

Commit

Permalink
feat(claims): add intents and oracle approval payment
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Ixo committed Oct 11, 2024
1 parent 347c925 commit d329f01
Show file tree
Hide file tree
Showing 41 changed files with 9,525 additions and 1,019 deletions.
10 changes: 5 additions & 5 deletions app/ante.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func IxoAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
authante.NewSigGasConsumeDecorator(options.AccountKeeper, sigGasConsumer),
authante.NewSigVerificationDecorator(options.AccountKeeper, options.SignModeHandler),
authante.NewIncrementSequenceDecorator(options.AccountKeeper),
ibcante.NewRedundantRelayDecorator(options.IBCKeeper),
)

// authenticatorVerificationDecorator is the new authenticator flow that's embedded into the circuit breaker ante
Expand All @@ -92,16 +93,15 @@ func IxoAnteHandler(options HandlerOptions) (sdk.AnteHandler, error) {
authante.NewValidateMemoDecorator(options.AccountKeeper),
authante.NewConsumeGasForTxSizeDecorator(options.AccountKeeper),

// TODO: analyse how to make smart accounts work for iid handlers
iidante.NewIidResolutionDecorator(options.IidKeeper),
entityante.NewBlockNftContractTransferForEntityDecorator(options.EntityKeeper),

smartaccountante.NewCircuitBreakerDecorator(
options.smartAccountKeeper,
authenticatorVerificationDecorator,
classicSignatureVerificationDecorator,
),

ibcante.NewRedundantRelayDecorator(options.IBCKeeper),
// TODO: analyse how smart accounts affect iid handlers
iidante.NewIidResolutionDecorator(options.IidKeeper),
entityante.NewBlockNftContractTransferForEntityDecorator(options.EntityKeeper),
}

return sdk.ChainAnteDecorators(anteDecorators...), nil
Expand Down
1 change: 1 addition & 0 deletions app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ func NewAppKeepers(
appKeepers.BankKeeper,
appKeepers.EntityKeeper,
appKeepers.ContractKeeper,
appKeepers.AccountKeeper,
)

// Initialize authenticators
Expand Down
Loading

0 comments on commit d329f01

Please sign in to comment.