Usage

Cosmos-SDK Authz module usage in the SGE-Network

The Authz validation has been used by the house module for deposit. deposit creator is able to participate in a market as a house on behalf of some other account. A KYC check is being made for the granter account.

For detailed info read the house documentation.

Implementations

The authorization interfaces have been implemented as

DepositAuthorization

// DepositAuthorization allows the grantee to spend up to spend_limit from
// the granter's account for deposit.
message DepositAuthorization {

  string spend_limit = 1 [
    (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
    (gogoproto.nullable) = false
  ];
}

WithdrawAuthorization

// WithdrawAuthorization allows the grantee to withdraw up to withdraw_limit
// from the granter's account for deposit.
message WithdrawAuthorization {

  string withdraw_limit = 1 [
    (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
    (gogoproto.nullable) = false
  ];
}

Last updated