@fioprotocol/fiosdk
Version:
The Foundation for Interwallet Operability (FIO) is a consortium of leading blockchain wallets, exchanges and payments providers that seeks to accelerate blockchain adoption by reducing the risk, complexity, and inconvenience of sending and receiving cryp
31 lines (24 loc) • 817 B
text/typescript
import {EndPoint, PermissionsResponse} from '../../entities'
import {RequestConfig} from '../Transactions'
import {Query} from './Query'
export type GranteePermissionsQueryProps = {
granteeAccount: string
limit?: number
offset?: number,
}
export type GranteePermissionsQueryData = {
grantee_account: string
limit?: number
offset?: number,
}
export class GetGranteePermissions extends Query<GranteePermissionsQueryData, PermissionsResponse> {
public ENDPOINT = `chain/${EndPoint.getGranteePermissions}` as const
constructor(config: RequestConfig, public props: GranteePermissionsQueryProps) {
super(config)
}
public getData = () => ({
grantee_account: this.props.granteeAccount,
limit: this.props.limit,
offset: this.props.offset,
})
}