Skip to content

Commit

Permalink
style: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
reedrosenbluth committed Apr 7, 2021
1 parent ff8729c commit 83bbd54
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions packages/bns/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ async function callReadOnlyBnsFunction(options: BnsReadOnlyOptions): Promise<Cla
* @param {StacksNetwork} network - the Stacks blockchain network to use
*/
export interface CanRegisterNameOptions {
fullyQualifiedName: string,
network: StacksNetwork,
fullyQualifiedName: string;
network: StacksNetwork;
}

/**
Expand All @@ -121,7 +121,7 @@ export interface CanRegisterNameOptions {
*/
export async function canRegisterName({
fullyQualifiedName,
network
network,
}: CanRegisterNameOptions): Promise<boolean> {
const bnsFunctionName = 'can-name-be-registered';
const { subdomain, namespace, name } = decodeFQN(fullyQualifiedName);
Expand Down Expand Up @@ -156,8 +156,8 @@ export async function canRegisterName({
* @param {StacksNetwork} network - the Stacks blockchain network to use
*/
export interface GetNamespacePriceOptions {
namespace: string,
network: StacksNetwork,
namespace: string;
network: StacksNetwork;
}

/**
Expand All @@ -168,7 +168,10 @@ export interface GetNamespacePriceOptions {
*
* @returns {Promise} that resolves to a BN object number of microstacks if the operation succeeds
*/
export async function getNamespacePrice({ namespace, network }: GetNamespacePriceOptions): Promise<BN> {
export async function getNamespacePrice({
namespace,
network,
}: GetNamespacePriceOptions): Promise<BN> {
const bnsFunctionName = 'get-namespace-price';

// Create a random address as input to read-only function call
Expand Down Expand Up @@ -204,8 +207,8 @@ export async function getNamespacePrice({ namespace, network }: GetNamespacePric
* @param {StacksNetwork} network - the Stacks blockchain network to use
*/
export interface GetNamePriceOptions {
fullyQualifiedName: string,
network: StacksNetwork,
fullyQualifiedName: string;
network: StacksNetwork;
}

/**
Expand All @@ -216,7 +219,10 @@ export interface GetNamePriceOptions {
*
* @returns {Promise} that resolves to a BN object number of microstacks if the operation succeeds
*/
export async function getNamePrice({ fullyQualifiedName, network }: GetNamePriceOptions): Promise<BN> {
export async function getNamePrice({
fullyQualifiedName,
network,
}: GetNamePriceOptions): Promise<BN> {
const bnsFunctionName = 'get-name-price';
const { subdomain, namespace, name } = decodeFQN(fullyQualifiedName);
if (subdomain) {
Expand Down

0 comments on commit 83bbd54

Please sign in to comment.