-
Notifications
You must be signed in to change notification settings - Fork 196
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
1 parent
9467534
commit c7e31e3
Showing
1 changed file
with
54 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,55 @@ | ||
import { | ||
InjectivePermissionsV1Beta1Permissions, | ||
InjectivePermissionsV1Beta1Params | ||
} from '@injectivelabs/core-proto-ts' | ||
|
||
import { Coin } from '@injectivelabs/ts-types | ||
|
||
export interface Namespace { | ||
denom: string | ||
wasmHook: string | ||
mintsPaused: boolean | ||
sendsPaused: boolean | ||
burnsPaused: boolean | ||
rolePermissions: Role[] | ||
addressRoles: AddressRoles[] | ||
|
||
} | ||
|
||
export interface PermissionsModuleParams { | ||
wasmHookQueryMaxGas: string | ||
} | ||
|
||
|
||
export interface AddressRoles { | ||
address: string | ||
roles: string[] | ||
} | ||
|
||
|
||
export interface Role { | ||
role: string | ||
permissions: number | ||
} | ||
|
||
|
||
export interface RoleIDs { | ||
roleIds: number[] | ||
} | ||
|
||
export interface Voucher { | ||
coins: Coin[] | ||
} | ||
|
||
export interface AddressVoucher { | ||
address: string | ||
voucher?: Voucher | ||
} | ||
|
||
export type GrpcPermissionsNamespace = InjectivePermissionsV1Beta1Permissions.Namespace | ||
export type GrpcPermissionsAddressRoles = InjectivePermissionsV1Beta1Permissions.AddressRoles | ||
export type GrpcPermissionsRole = InjectivePermissionsV1Beta1Permissions.Role | ||
export type GrpcPermissionsRoleIDs = InjectivePermissionsV1Beta1Permissions.RoleIDs | ||
export type GrpcPermissionsAddressVoucher = InjectivePermissionsV1Beta1Permissions.AddressVoucher | ||
export type GrpcPermissionVoucher = InjectivePermissionsV1Beta1Permissions.Voucher | ||
export type GrpcPermissionsParams = InjectivePermissionsV1Beta1Params.Params | ||
InjectivePermissionsV1Beta1Permissions, | ||
InjectivePermissionsV1Beta1Params, | ||
} from '@injectivelabs/core-proto-ts' | ||
import { Coin } from '@injectivelabs/ts-types' | ||
|
||
export interface Namespace { | ||
denom: string | ||
wasmHook: string | ||
mintsPaused: boolean | ||
sendsPaused: boolean | ||
burnsPaused: boolean | ||
rolePermissions: Role[] | ||
addressRoles: AddressRoles[] | ||
} | ||
|
||
export interface PermissionsModuleParams { | ||
wasmHookQueryMaxGas: string | ||
} | ||
|
||
export interface AddressRoles { | ||
address: string | ||
roles: string[] | ||
} | ||
|
||
export interface Role { | ||
role: string | ||
permissions: number | ||
} | ||
|
||
export interface RoleIDs { | ||
roleIds: number[] | ||
} | ||
|
||
export interface Voucher { | ||
coins: Coin[] | ||
} | ||
|
||
export interface AddressVoucher { | ||
address: string | ||
voucher?: Voucher | ||
} | ||
|
||
export type GrpcPermissionsNamespace = | ||
InjectivePermissionsV1Beta1Permissions.Namespace | ||
export type GrpcPermissionsAddressRoles = | ||
InjectivePermissionsV1Beta1Permissions.AddressRoles | ||
export type GrpcPermissionsRole = InjectivePermissionsV1Beta1Permissions.Role | ||
export type GrpcPermissionsRoleIDs = | ||
InjectivePermissionsV1Beta1Permissions.RoleIDs | ||
export type GrpcPermissionsAddressVoucher = | ||
InjectivePermissionsV1Beta1Permissions.AddressVoucher | ||
export type GrpcPermissionVoucher = | ||
InjectivePermissionsV1Beta1Permissions.Voucher | ||
export type GrpcPermissionsParams = InjectivePermissionsV1Beta1Params.Params |