Add steps to publish PricingRecord and use it for determining cost of deployments #4

Merged
nabarun merged 19 commits from sk-deployment-cost into main 2025-07-25 13:36:36 +00:00
2 changed files with 1 additions and 2 deletions
Showing only changes of commit 4823ca37cf - Show all commits

View File

@ -86,7 +86,6 @@ const getAccount = async (accountPrivateKey: string): Promise<Account> => {
return account;
}
const sendTokensToAccount = async (
senderPrivateKey: string,
receiverAddress: string,

View File

@ -62,7 +62,7 @@ export const createApplicationDeploymentRequest = async (
export const resolvePricingRecordLrn = async (): Promise<PricingRecordAttributes> => {
const registry = getRegistry();
const result = await registry.resolveNames([PRICING_RECORD_LRN])
const result = await registry.resolveNames([PRICING_RECORD_LRN]);
const pricingRecordAttributes: PricingRecordAttributes = result[0].attributes;
if (pricingRecordAttributes.for !== VALID_PRICING_RECORD_FOR) {