@algorandfoundation/algokit-utils 10.0.0-alpha.4 → 10.0.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/algod-client/index.d.ts +1 -4
  2. package/package.json +1 -1
  3. package/packages/algod_client/src/models/application-state-schema.d.ts +2 -2
  4. package/packages/algod_client/src/models/application-state-schema.js +2 -2
  5. package/packages/algod_client/src/models/application-state-schema.js.map +1 -1
  6. package/packages/algod_client/src/models/application-state-schema.mjs +2 -2
  7. package/packages/algod_client/src/models/application-state-schema.mjs.map +1 -1
  8. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.d.ts +3 -5
  9. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.js +4 -6
  10. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.js.map +1 -1
  11. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.mjs +3 -5
  12. package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.mjs.map +1 -1
  13. package/packages/indexer_client/src/models/application-state-schema.d.ts +2 -2
  14. package/packages/indexer_client/src/models/application-state-schema.js +2 -2
  15. package/packages/indexer_client/src/models/application-state-schema.js.map +1 -1
  16. package/packages/indexer_client/src/models/application-state-schema.mjs +2 -2
  17. package/packages/indexer_client/src/models/application-state-schema.mjs.map +1 -1
  18. package/packages/indexer_client/src/models/state-schema.d.ts +2 -2
  19. package/packages/indexer_client/src/models/state-schema.js +2 -2
  20. package/packages/indexer_client/src/models/state-schema.js.map +1 -1
  21. package/packages/indexer_client/src/models/state-schema.mjs +2 -2
  22. package/packages/indexer_client/src/models/state-schema.mjs.map +1 -1
  23. package/packages/indexer_client/src/models/transaction.d.ts +2 -2
  24. package/packages/indexer_client/src/models/transaction.js +2 -2
  25. package/packages/indexer_client/src/models/transaction.js.map +1 -1
  26. package/packages/indexer_client/src/models/transaction.mjs +2 -2
  27. package/packages/indexer_client/src/models/transaction.mjs.map +1 -1
  28. package/packages/transact/src/multisig.d.ts +2 -2
  29. package/packages/transact/src/multisig.js +15 -15
  30. package/packages/transact/src/multisig.js.map +1 -1
  31. package/packages/transact/src/multisig.mjs +15 -15
  32. package/packages/transact/src/multisig.mjs.map +1 -1
  33. package/packages/transact/src/transactions/app-call.d.ts +8 -8
  34. package/packages/transact/src/transactions/app-call.js.map +1 -1
  35. package/packages/transact/src/transactions/app-call.mjs.map +1 -1
  36. package/packages/transact/src/transactions/reference-types-meta.d.ts +26 -0
  37. package/packages/transact/src/transactions/reference-types-meta.js +71 -0
  38. package/packages/transact/src/transactions/reference-types-meta.js.map +1 -0
  39. package/packages/transact/src/transactions/reference-types-meta.mjs +69 -0
  40. package/packages/transact/src/transactions/reference-types-meta.mjs.map +1 -0
  41. package/packages/transact/src/transactions/transaction-meta.js +22 -22
  42. package/packages/transact/src/transactions/transaction-meta.js.map +1 -1
  43. package/packages/transact/src/transactions/transaction-meta.mjs +22 -22
  44. package/packages/transact/src/transactions/transaction-meta.mjs.map +1 -1
  45. package/transact/index.d.ts +3 -2
  46. package/transact/index.js +4 -0
  47. package/transact/index.mjs +2 -1
  48. package/transactions/app-call.d.ts +2 -2
  49. package/transactions/app-call.js +15 -15
  50. package/transactions/app-call.js.map +1 -1
  51. package/transactions/app-call.mjs +15 -15
  52. package/transactions/app-call.mjs.map +1 -1
  53. package/transactions/asset-config.d.ts +1 -1
  54. package/transactions/asset-config.js +1 -1
  55. package/transactions/asset-config.js.map +1 -1
  56. package/transactions/asset-config.mjs +1 -1
  57. package/transactions/asset-config.mjs.map +1 -1
  58. package/types/algorand-client-transaction-creator.d.ts +72 -72
  59. package/types/algorand-client-transaction-sender.d.ts +75 -75
  60. package/types/app-client.d.ts +115 -115
  61. package/types/app-factory.d.ts +64 -64
  62. package/types/app-manager.js +5 -5
  63. package/types/app-manager.js.map +1 -1
  64. package/types/app-manager.mjs +5 -5
  65. package/types/app-manager.mjs.map +1 -1
  66. package/types/composer.js +3 -3
  67. package/types/composer.js.map +1 -1
  68. package/types/composer.mjs +3 -3
  69. package/types/composer.mjs.map +1 -1
  70. package/packages/algod_client/src/models/application-local-reference.d.ts +0 -20
  71. package/packages/algod_client/src/models/application-local-reference.js +0 -23
  72. package/packages/algod_client/src/models/application-local-reference.js.map +0 -1
  73. package/packages/algod_client/src/models/application-local-reference.mjs +0 -23
  74. package/packages/algod_client/src/models/application-local-reference.mjs.map +0 -1
  75. package/packages/algod_client/src/models/asset-holding-reference.d.ts +0 -20
  76. package/packages/algod_client/src/models/asset-holding-reference.js +0 -23
  77. package/packages/algod_client/src/models/asset-holding-reference.js.map +0 -1
  78. package/packages/algod_client/src/models/asset-holding-reference.mjs +0 -23
  79. package/packages/algod_client/src/models/asset-holding-reference.mjs.map +0 -1
  80. package/packages/algod_client/src/models/box-reference.d.ts +0 -17
  81. package/packages/algod_client/src/models/box-reference.js +0 -23
  82. package/packages/algod_client/src/models/box-reference.js.map +0 -1
  83. package/packages/algod_client/src/models/box-reference.mjs +0 -23
  84. package/packages/algod_client/src/models/box-reference.mjs.map +0 -1
@@ -43,7 +43,7 @@ const buildAssetFreeze = (params, suggestedParams, defaultValidityWindow) => {
43
43
  type: require_transaction_type.TransactionType.AssetFreeze,
44
44
  assetFreeze: {
45
45
  assetId: params.assetId,
46
- freezeTarget: require_address.getAddress(params.account),
46
+ freezeTarget: require_address.getAddress(params.freezeTarget),
47
47
  frozen: params.frozen
48
48
  }
49
49
  });
@@ -1 +1 @@
1
- {"version":3,"file":"asset-config.js","names":["Transaction","buildTransactionCommonData","TransactionType","ensureString","getOptionalAddress","getAddress"],"sources":["../../src/transactions/asset-config.ts"],"sourcesContent":["import { SuggestedParams } from '@algorandfoundation/algokit-algod-client'\nimport { ReadableAddress, getAddress, getOptionalAddress } from '@algorandfoundation/algokit-common'\nimport { Transaction, TransactionType } from '@algorandfoundation/algokit-transact'\nimport { CommonTransactionParams, buildTransactionCommonData, ensureString } from './common'\n\n/** Parameters to define an asset create transaction.\n *\n * The account that sends this transaction will automatically be opted in to the asset and will hold all units after creation.\n */\nexport type AssetCreateParams = CommonTransactionParams & {\n /** The total amount of the smallest divisible (decimal) unit to create.\n *\n * For example, if `decimals` is, say, 2, then for every 100 `total` there would be 1 whole unit.\n *\n * This field can only be specified upon asset creation.\n */\n total: bigint\n\n /** The amount of decimal places the asset should have.\n *\n * If unspecified then the asset will be in whole units (i.e. `0`).\n *\n * * If 0, the asset is not divisible;\n * * If 1, the base unit of the asset is in tenths;\n * * If 2, the base unit of the asset is in hundredths;\n * * If 3, the base unit of the asset is in thousandths;\n * * and so on up to 19 decimal places.\n *\n * This field can only be specified upon asset creation.\n */\n decimals?: number\n\n /** The optional name of the asset.\n *\n * Max size is 32 bytes.\n *\n * This field can only be specified upon asset creation.\n */\n assetName?: string\n\n /** The optional name of the unit of this asset (e.g. ticker name).\n *\n * Max size is 8 bytes.\n *\n * This field can only be specified upon asset creation.\n */\n unitName?: string\n\n /** Specifies an optional URL where more information about the asset can be retrieved (e.g. metadata).\n *\n * Max size is 96 bytes.\n *\n * This field can only be specified upon asset creation.\n */\n url?: string\n\n /** 32-byte hash of some metadata that is relevant to your asset and/or asset holders.\n *\n * The format of this metadata is up to the application.\n *\n * This field can only be specified upon asset creation.\n */\n metadataHash?: string | Uint8Array\n\n /** Whether the asset is frozen by default for all accounts.\n * Defaults to `false`.\n *\n * If `true` then for anyone apart from the creator to hold the\n * asset it needs to be unfrozen per account using an asset freeze\n * transaction from the `freeze` account, which must be set on creation.\n *\n * This field can only be specified upon asset creation.\n */\n defaultFrozen?: boolean\n\n /** The address of the optional account that can manage the configuration of the asset and destroy it.\n *\n * The configuration fields it can change are `manager`, `reserve`, `clawback`, and `freeze`.\n *\n * If not set (`undefined` or `\"\"`) at asset creation or subsequently set to empty by the `manager` the asset becomes permanently immutable.\n */\n manager?: ReadableAddress\n\n /**\n * The address of the optional account that holds the reserve (uncirculated supply) units of the asset.\n *\n * This address has no specific authority in the protocol itself and is informational only.\n *\n * Some standards like [ARC-19](https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0019.md)\n * rely on this field to hold meaningful data.\n *\n * It can be used in the case where you want to signal to holders of your asset that the uncirculated units\n * of the asset reside in an account that is different from the default creator account.\n *\n * If not set (`undefined` or `\"\"`) at asset creation or subsequently set to empty by the manager the field is permanently empty.\n */\n reserve?: ReadableAddress\n\n /**\n * The address of the optional account that can be used to freeze or unfreeze holdings of this asset for any account.\n *\n * If empty, freezing is not permitted.\n *\n * If not set (`undefined` or `\"\"`) at asset creation or subsequently set to empty by the manager the field is permanently empty.\n */\n freeze?: ReadableAddress\n\n /**\n * The address of the optional account that can clawback holdings of this asset from any account.\n *\n * **This field should be used with caution** as the clawback account has the ability to **unconditionally take assets from any account**.\n *\n * If empty, clawback is not permitted.\n *\n * If not set (`undefined` or `\"\"`) at asset creation or subsequently set to empty by the manager the field is permanently empty.\n */\n clawback?: ReadableAddress\n}\n\n/** Parameters to define an asset reconfiguration transaction.\n *\n * **Note:** The manager, reserve, freeze, and clawback addresses\n * are immutably empty if they are not set. If manager is not set then\n * all fields are immutable from that point forward.\n */\nexport type AssetConfigParams = CommonTransactionParams & {\n /** ID of the asset to reconfigure */\n assetId: bigint\n /** The address of the optional account that can manage the configuration of the asset and destroy it.\n *\n * The configuration fields it can change are `manager`, `reserve`, `clawback`, and `freeze`.\n *\n * If not set (`undefined` or `\"\"`) the asset will become permanently immutable.\n */\n manager?: ReadableAddress\n /**\n * The address of the optional account that holds the reserve (uncirculated supply) units of the asset.\n *\n * This address has no specific authority in the protocol itself and is informational only.\n *\n * Some standards like [ARC-19](https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0019.md)\n * rely on this field to hold meaningful data.\n *\n * It can be used in the case where you want to signal to holders of your asset that the uncirculated units\n * of the asset reside in an account that is different from the default creator account.\n *\n * If not set (`undefined` or `\"\"`) the field will become permanently empty.\n */\n reserve?: ReadableAddress\n /**\n * The address of the optional account that can be used to freeze or unfreeze holdings of this asset for any account.\n *\n * If empty, freezing is not permitted.\n *\n * If not set (`undefined` or `\"\"`) the field will become permanently empty.\n */\n freeze?: ReadableAddress\n /**\n * The address of the optional account that can clawback holdings of this asset from any account.\n *\n * **This field should be used with caution** as the clawback account has the ability to **unconditionally take assets from any account**.\n *\n * If empty, clawback is not permitted.\n *\n * If not set (`undefined` or `\"\"`) the field will become permanently empty.\n */\n clawback?: ReadableAddress\n}\n\n/** Parameters to define an asset freeze transaction. */\nexport type AssetFreezeParams = CommonTransactionParams & {\n /** The ID of the asset to freeze/unfreeze */\n assetId: bigint\n /** The address of the account to freeze or unfreeze */\n account: ReadableAddress\n /** Whether the assets in the account should be frozen */\n frozen: boolean\n}\n\n/** Parameters to define an asset destroy transaction.\n *\n * Created assets can be destroyed only by the asset manager account. All of the assets must be owned by the creator of the asset before the asset can be deleted.\n */\nexport type AssetDestroyParams = CommonTransactionParams & {\n /** ID of the asset to destroy */\n assetId: bigint\n}\n\nexport const buildAssetCreate = (\n params: AssetCreateParams,\n suggestedParams: SuggestedParams,\n defaultValidityWindow: bigint,\n): Transaction => {\n const commonData = buildTransactionCommonData(params, suggestedParams, defaultValidityWindow)\n return new Transaction({\n ...commonData,\n type: TransactionType.AssetConfig,\n assetConfig: {\n assetId: 0n, // Asset creation always uses ID 0\n total: params.total,\n decimals: params.decimals,\n defaultFrozen: params.defaultFrozen,\n assetName: params.assetName,\n unitName: params.unitName,\n url: params.url,\n metadataHash: ensureString(params.metadataHash),\n manager: getOptionalAddress(params.manager),\n reserve: getOptionalAddress(params.reserve),\n freeze: getOptionalAddress(params.freeze),\n clawback: getOptionalAddress(params.clawback),\n },\n })\n}\n\nexport const buildAssetConfig = (\n params: AssetConfigParams,\n suggestedParams: SuggestedParams,\n defaultValidityWindow: bigint,\n): Transaction => {\n const commonData = buildTransactionCommonData(params, suggestedParams, defaultValidityWindow)\n return new Transaction({\n ...commonData,\n type: TransactionType.AssetConfig,\n assetConfig: {\n assetId: params.assetId,\n manager: getOptionalAddress(params.manager),\n reserve: getOptionalAddress(params.reserve),\n freeze: getOptionalAddress(params.freeze),\n clawback: getOptionalAddress(params.clawback),\n },\n })\n}\n\nexport const buildAssetFreeze = (\n params: AssetFreezeParams,\n suggestedParams: SuggestedParams,\n defaultValidityWindow: bigint,\n): Transaction => {\n const commonData = buildTransactionCommonData(params, suggestedParams, defaultValidityWindow)\n return new Transaction({\n ...commonData,\n type: TransactionType.AssetFreeze,\n assetFreeze: {\n assetId: params.assetId,\n freezeTarget: getAddress(params.account),\n frozen: params.frozen,\n },\n })\n}\n\nexport const buildAssetDestroy = (\n params: AssetDestroyParams,\n suggestedParams: SuggestedParams,\n defaultValidityWindow: bigint,\n): Transaction => {\n const commonData = buildTransactionCommonData(params, suggestedParams, defaultValidityWindow)\n return new Transaction({\n ...commonData,\n type: TransactionType.AssetConfig,\n assetConfig: {\n assetId: params.assetId,\n },\n })\n}\n"],"mappings":";;;;;;AA4LA,MAAa,oBACX,QACA,iBACA,0BACgB;AAEhB,QAAO,IAAIA,gCAAY;EACrB,GAFiBC,0CAA2B,QAAQ,iBAAiB,sBAAsB;EAG3F,MAAMC,yCAAgB;EACtB,aAAa;GACX,SAAS;GACT,OAAO,OAAO;GACd,UAAU,OAAO;GACjB,eAAe,OAAO;GACtB,WAAW,OAAO;GAClB,UAAU,OAAO;GACjB,KAAK,OAAO;GACZ,cAAcC,4BAAa,OAAO,aAAa;GAC/C,SAASC,mCAAmB,OAAO,QAAQ;GAC3C,SAASA,mCAAmB,OAAO,QAAQ;GAC3C,QAAQA,mCAAmB,OAAO,OAAO;GACzC,UAAUA,mCAAmB,OAAO,SAAS;GAC9C;EACF,CAAC;;AAGJ,MAAa,oBACX,QACA,iBACA,0BACgB;AAEhB,QAAO,IAAIJ,gCAAY;EACrB,GAFiBC,0CAA2B,QAAQ,iBAAiB,sBAAsB;EAG3F,MAAMC,yCAAgB;EACtB,aAAa;GACX,SAAS,OAAO;GAChB,SAASE,mCAAmB,OAAO,QAAQ;GAC3C,SAASA,mCAAmB,OAAO,QAAQ;GAC3C,QAAQA,mCAAmB,OAAO,OAAO;GACzC,UAAUA,mCAAmB,OAAO,SAAS;GAC9C;EACF,CAAC;;AAGJ,MAAa,oBACX,QACA,iBACA,0BACgB;AAEhB,QAAO,IAAIJ,gCAAY;EACrB,GAFiBC,0CAA2B,QAAQ,iBAAiB,sBAAsB;EAG3F,MAAMC,yCAAgB;EACtB,aAAa;GACX,SAAS,OAAO;GAChB,cAAcG,2BAAW,OAAO,QAAQ;GACxC,QAAQ,OAAO;GAChB;EACF,CAAC;;AAGJ,MAAa,qBACX,QACA,iBACA,0BACgB;AAEhB,QAAO,IAAIL,gCAAY;EACrB,GAFiBC,0CAA2B,QAAQ,iBAAiB,sBAAsB;EAG3F,MAAMC,yCAAgB;EACtB,aAAa,EACX,SAAS,OAAO,SACjB;EACF,CAAC"}
1
+ {"version":3,"file":"asset-config.js","names":["Transaction","buildTransactionCommonData","TransactionType","ensureString","getOptionalAddress","getAddress"],"sources":["../../src/transactions/asset-config.ts"],"sourcesContent":["import { SuggestedParams } from '@algorandfoundation/algokit-algod-client'\nimport { ReadableAddress, getAddress, getOptionalAddress } from '@algorandfoundation/algokit-common'\nimport { Transaction, TransactionType } from '@algorandfoundation/algokit-transact'\nimport { CommonTransactionParams, buildTransactionCommonData, ensureString } from './common'\n\n/** Parameters to define an asset create transaction.\n *\n * The account that sends this transaction will automatically be opted in to the asset and will hold all units after creation.\n */\nexport type AssetCreateParams = CommonTransactionParams & {\n /** The total amount of the smallest divisible (decimal) unit to create.\n *\n * For example, if `decimals` is, say, 2, then for every 100 `total` there would be 1 whole unit.\n *\n * This field can only be specified upon asset creation.\n */\n total: bigint\n\n /** The amount of decimal places the asset should have.\n *\n * If unspecified then the asset will be in whole units (i.e. `0`).\n *\n * * If 0, the asset is not divisible;\n * * If 1, the base unit of the asset is in tenths;\n * * If 2, the base unit of the asset is in hundredths;\n * * If 3, the base unit of the asset is in thousandths;\n * * and so on up to 19 decimal places.\n *\n * This field can only be specified upon asset creation.\n */\n decimals?: number\n\n /** The optional name of the asset.\n *\n * Max size is 32 bytes.\n *\n * This field can only be specified upon asset creation.\n */\n assetName?: string\n\n /** The optional name of the unit of this asset (e.g. ticker name).\n *\n * Max size is 8 bytes.\n *\n * This field can only be specified upon asset creation.\n */\n unitName?: string\n\n /** Specifies an optional URL where more information about the asset can be retrieved (e.g. metadata).\n *\n * Max size is 96 bytes.\n *\n * This field can only be specified upon asset creation.\n */\n url?: string\n\n /** 32-byte hash of some metadata that is relevant to your asset and/or asset holders.\n *\n * The format of this metadata is up to the application.\n *\n * This field can only be specified upon asset creation.\n */\n metadataHash?: string | Uint8Array\n\n /** Whether the asset is frozen by default for all accounts.\n * Defaults to `false`.\n *\n * If `true` then for anyone apart from the creator to hold the\n * asset it needs to be unfrozen per account using an asset freeze\n * transaction from the `freeze` account, which must be set on creation.\n *\n * This field can only be specified upon asset creation.\n */\n defaultFrozen?: boolean\n\n /** The address of the optional account that can manage the configuration of the asset and destroy it.\n *\n * The configuration fields it can change are `manager`, `reserve`, `clawback`, and `freeze`.\n *\n * If not set (`undefined` or `\"\"`) at asset creation or subsequently set to empty by the `manager` the asset becomes permanently immutable.\n */\n manager?: ReadableAddress\n\n /**\n * The address of the optional account that holds the reserve (uncirculated supply) units of the asset.\n *\n * This address has no specific authority in the protocol itself and is informational only.\n *\n * Some standards like [ARC-19](https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0019.md)\n * rely on this field to hold meaningful data.\n *\n * It can be used in the case where you want to signal to holders of your asset that the uncirculated units\n * of the asset reside in an account that is different from the default creator account.\n *\n * If not set (`undefined` or `\"\"`) at asset creation or subsequently set to empty by the manager the field is permanently empty.\n */\n reserve?: ReadableAddress\n\n /**\n * The address of the optional account that can be used to freeze or unfreeze holdings of this asset for any account.\n *\n * If empty, freezing is not permitted.\n *\n * If not set (`undefined` or `\"\"`) at asset creation or subsequently set to empty by the manager the field is permanently empty.\n */\n freeze?: ReadableAddress\n\n /**\n * The address of the optional account that can clawback holdings of this asset from any account.\n *\n * **This field should be used with caution** as the clawback account has the ability to **unconditionally take assets from any account**.\n *\n * If empty, clawback is not permitted.\n *\n * If not set (`undefined` or `\"\"`) at asset creation or subsequently set to empty by the manager the field is permanently empty.\n */\n clawback?: ReadableAddress\n}\n\n/** Parameters to define an asset reconfiguration transaction.\n *\n * **Note:** The manager, reserve, freeze, and clawback addresses\n * are immutably empty if they are not set. If manager is not set then\n * all fields are immutable from that point forward.\n */\nexport type AssetConfigParams = CommonTransactionParams & {\n /** ID of the asset to reconfigure */\n assetId: bigint\n /** The address of the optional account that can manage the configuration of the asset and destroy it.\n *\n * The configuration fields it can change are `manager`, `reserve`, `clawback`, and `freeze`.\n *\n * If not set (`undefined` or `\"\"`) the asset will become permanently immutable.\n */\n manager?: ReadableAddress\n /**\n * The address of the optional account that holds the reserve (uncirculated supply) units of the asset.\n *\n * This address has no specific authority in the protocol itself and is informational only.\n *\n * Some standards like [ARC-19](https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0019.md)\n * rely on this field to hold meaningful data.\n *\n * It can be used in the case where you want to signal to holders of your asset that the uncirculated units\n * of the asset reside in an account that is different from the default creator account.\n *\n * If not set (`undefined` or `\"\"`) the field will become permanently empty.\n */\n reserve?: ReadableAddress\n /**\n * The address of the optional account that can be used to freeze or unfreeze holdings of this asset for any account.\n *\n * If empty, freezing is not permitted.\n *\n * If not set (`undefined` or `\"\"`) the field will become permanently empty.\n */\n freeze?: ReadableAddress\n /**\n * The address of the optional account that can clawback holdings of this asset from any account.\n *\n * **This field should be used with caution** as the clawback account has the ability to **unconditionally take assets from any account**.\n *\n * If empty, clawback is not permitted.\n *\n * If not set (`undefined` or `\"\"`) the field will become permanently empty.\n */\n clawback?: ReadableAddress\n}\n\n/** Parameters to define an asset freeze transaction. */\nexport type AssetFreezeParams = CommonTransactionParams & {\n /** The ID of the asset to freeze/unfreeze */\n assetId: bigint\n /** The address of the account to freeze or unfreeze */\n freezeTarget: ReadableAddress\n /** Whether the assets in the account should be frozen */\n frozen: boolean\n}\n\n/** Parameters to define an asset destroy transaction.\n *\n * Created assets can be destroyed only by the asset manager account. All of the assets must be owned by the creator of the asset before the asset can be deleted.\n */\nexport type AssetDestroyParams = CommonTransactionParams & {\n /** ID of the asset to destroy */\n assetId: bigint\n}\n\nexport const buildAssetCreate = (\n params: AssetCreateParams,\n suggestedParams: SuggestedParams,\n defaultValidityWindow: bigint,\n): Transaction => {\n const commonData = buildTransactionCommonData(params, suggestedParams, defaultValidityWindow)\n return new Transaction({\n ...commonData,\n type: TransactionType.AssetConfig,\n assetConfig: {\n assetId: 0n, // Asset creation always uses ID 0\n total: params.total,\n decimals: params.decimals,\n defaultFrozen: params.defaultFrozen,\n assetName: params.assetName,\n unitName: params.unitName,\n url: params.url,\n metadataHash: ensureString(params.metadataHash),\n manager: getOptionalAddress(params.manager),\n reserve: getOptionalAddress(params.reserve),\n freeze: getOptionalAddress(params.freeze),\n clawback: getOptionalAddress(params.clawback),\n },\n })\n}\n\nexport const buildAssetConfig = (\n params: AssetConfigParams,\n suggestedParams: SuggestedParams,\n defaultValidityWindow: bigint,\n): Transaction => {\n const commonData = buildTransactionCommonData(params, suggestedParams, defaultValidityWindow)\n return new Transaction({\n ...commonData,\n type: TransactionType.AssetConfig,\n assetConfig: {\n assetId: params.assetId,\n manager: getOptionalAddress(params.manager),\n reserve: getOptionalAddress(params.reserve),\n freeze: getOptionalAddress(params.freeze),\n clawback: getOptionalAddress(params.clawback),\n },\n })\n}\n\nexport const buildAssetFreeze = (\n params: AssetFreezeParams,\n suggestedParams: SuggestedParams,\n defaultValidityWindow: bigint,\n): Transaction => {\n const commonData = buildTransactionCommonData(params, suggestedParams, defaultValidityWindow)\n return new Transaction({\n ...commonData,\n type: TransactionType.AssetFreeze,\n assetFreeze: {\n assetId: params.assetId,\n freezeTarget: getAddress(params.freezeTarget),\n frozen: params.frozen,\n },\n })\n}\n\nexport const buildAssetDestroy = (\n params: AssetDestroyParams,\n suggestedParams: SuggestedParams,\n defaultValidityWindow: bigint,\n): Transaction => {\n const commonData = buildTransactionCommonData(params, suggestedParams, defaultValidityWindow)\n return new Transaction({\n ...commonData,\n type: TransactionType.AssetConfig,\n assetConfig: {\n assetId: params.assetId,\n },\n })\n}\n"],"mappings":";;;;;;AA4LA,MAAa,oBACX,QACA,iBACA,0BACgB;AAEhB,QAAO,IAAIA,gCAAY;EACrB,GAFiBC,0CAA2B,QAAQ,iBAAiB,sBAAsB;EAG3F,MAAMC,yCAAgB;EACtB,aAAa;GACX,SAAS;GACT,OAAO,OAAO;GACd,UAAU,OAAO;GACjB,eAAe,OAAO;GACtB,WAAW,OAAO;GAClB,UAAU,OAAO;GACjB,KAAK,OAAO;GACZ,cAAcC,4BAAa,OAAO,aAAa;GAC/C,SAASC,mCAAmB,OAAO,QAAQ;GAC3C,SAASA,mCAAmB,OAAO,QAAQ;GAC3C,QAAQA,mCAAmB,OAAO,OAAO;GACzC,UAAUA,mCAAmB,OAAO,SAAS;GAC9C;EACF,CAAC;;AAGJ,MAAa,oBACX,QACA,iBACA,0BACgB;AAEhB,QAAO,IAAIJ,gCAAY;EACrB,GAFiBC,0CAA2B,QAAQ,iBAAiB,sBAAsB;EAG3F,MAAMC,yCAAgB;EACtB,aAAa;GACX,SAAS,OAAO;GAChB,SAASE,mCAAmB,OAAO,QAAQ;GAC3C,SAASA,mCAAmB,OAAO,QAAQ;GAC3C,QAAQA,mCAAmB,OAAO,OAAO;GACzC,UAAUA,mCAAmB,OAAO,SAAS;GAC9C;EACF,CAAC;;AAGJ,MAAa,oBACX,QACA,iBACA,0BACgB;AAEhB,QAAO,IAAIJ,gCAAY;EACrB,GAFiBC,0CAA2B,QAAQ,iBAAiB,sBAAsB;EAG3F,MAAMC,yCAAgB;EACtB,aAAa;GACX,SAAS,OAAO;GAChB,cAAcG,2BAAW,OAAO,aAAa;GAC7C,QAAQ,OAAO;GAChB;EACF,CAAC;;AAGJ,MAAa,qBACX,QACA,iBACA,0BACgB;AAEhB,QAAO,IAAIL,gCAAY;EACrB,GAFiBC,0CAA2B,QAAQ,iBAAiB,sBAAsB;EAG3F,MAAMC,yCAAgB;EACtB,aAAa,EACX,SAAS,OAAO,SACjB;EACF,CAAC"}
@@ -43,7 +43,7 @@ const buildAssetFreeze = (params, suggestedParams, defaultValidityWindow) => {
43
43
  type: TransactionType.AssetFreeze,
44
44
  assetFreeze: {
45
45
  assetId: params.assetId,
46
- freezeTarget: getAddress(params.account),
46
+ freezeTarget: getAddress(params.freezeTarget),
47
47
  frozen: params.frozen
48
48
  }
49
49
  });
@@ -1 +1 @@
1
- {"version":3,"file":"asset-config.mjs","names":[],"sources":["../../src/transactions/asset-config.ts"],"sourcesContent":["import { SuggestedParams } from '@algorandfoundation/algokit-algod-client'\nimport { ReadableAddress, getAddress, getOptionalAddress } from '@algorandfoundation/algokit-common'\nimport { Transaction, TransactionType } from '@algorandfoundation/algokit-transact'\nimport { CommonTransactionParams, buildTransactionCommonData, ensureString } from './common'\n\n/** Parameters to define an asset create transaction.\n *\n * The account that sends this transaction will automatically be opted in to the asset and will hold all units after creation.\n */\nexport type AssetCreateParams = CommonTransactionParams & {\n /** The total amount of the smallest divisible (decimal) unit to create.\n *\n * For example, if `decimals` is, say, 2, then for every 100 `total` there would be 1 whole unit.\n *\n * This field can only be specified upon asset creation.\n */\n total: bigint\n\n /** The amount of decimal places the asset should have.\n *\n * If unspecified then the asset will be in whole units (i.e. `0`).\n *\n * * If 0, the asset is not divisible;\n * * If 1, the base unit of the asset is in tenths;\n * * If 2, the base unit of the asset is in hundredths;\n * * If 3, the base unit of the asset is in thousandths;\n * * and so on up to 19 decimal places.\n *\n * This field can only be specified upon asset creation.\n */\n decimals?: number\n\n /** The optional name of the asset.\n *\n * Max size is 32 bytes.\n *\n * This field can only be specified upon asset creation.\n */\n assetName?: string\n\n /** The optional name of the unit of this asset (e.g. ticker name).\n *\n * Max size is 8 bytes.\n *\n * This field can only be specified upon asset creation.\n */\n unitName?: string\n\n /** Specifies an optional URL where more information about the asset can be retrieved (e.g. metadata).\n *\n * Max size is 96 bytes.\n *\n * This field can only be specified upon asset creation.\n */\n url?: string\n\n /** 32-byte hash of some metadata that is relevant to your asset and/or asset holders.\n *\n * The format of this metadata is up to the application.\n *\n * This field can only be specified upon asset creation.\n */\n metadataHash?: string | Uint8Array\n\n /** Whether the asset is frozen by default for all accounts.\n * Defaults to `false`.\n *\n * If `true` then for anyone apart from the creator to hold the\n * asset it needs to be unfrozen per account using an asset freeze\n * transaction from the `freeze` account, which must be set on creation.\n *\n * This field can only be specified upon asset creation.\n */\n defaultFrozen?: boolean\n\n /** The address of the optional account that can manage the configuration of the asset and destroy it.\n *\n * The configuration fields it can change are `manager`, `reserve`, `clawback`, and `freeze`.\n *\n * If not set (`undefined` or `\"\"`) at asset creation or subsequently set to empty by the `manager` the asset becomes permanently immutable.\n */\n manager?: ReadableAddress\n\n /**\n * The address of the optional account that holds the reserve (uncirculated supply) units of the asset.\n *\n * This address has no specific authority in the protocol itself and is informational only.\n *\n * Some standards like [ARC-19](https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0019.md)\n * rely on this field to hold meaningful data.\n *\n * It can be used in the case where you want to signal to holders of your asset that the uncirculated units\n * of the asset reside in an account that is different from the default creator account.\n *\n * If not set (`undefined` or `\"\"`) at asset creation or subsequently set to empty by the manager the field is permanently empty.\n */\n reserve?: ReadableAddress\n\n /**\n * The address of the optional account that can be used to freeze or unfreeze holdings of this asset for any account.\n *\n * If empty, freezing is not permitted.\n *\n * If not set (`undefined` or `\"\"`) at asset creation or subsequently set to empty by the manager the field is permanently empty.\n */\n freeze?: ReadableAddress\n\n /**\n * The address of the optional account that can clawback holdings of this asset from any account.\n *\n * **This field should be used with caution** as the clawback account has the ability to **unconditionally take assets from any account**.\n *\n * If empty, clawback is not permitted.\n *\n * If not set (`undefined` or `\"\"`) at asset creation or subsequently set to empty by the manager the field is permanently empty.\n */\n clawback?: ReadableAddress\n}\n\n/** Parameters to define an asset reconfiguration transaction.\n *\n * **Note:** The manager, reserve, freeze, and clawback addresses\n * are immutably empty if they are not set. If manager is not set then\n * all fields are immutable from that point forward.\n */\nexport type AssetConfigParams = CommonTransactionParams & {\n /** ID of the asset to reconfigure */\n assetId: bigint\n /** The address of the optional account that can manage the configuration of the asset and destroy it.\n *\n * The configuration fields it can change are `manager`, `reserve`, `clawback`, and `freeze`.\n *\n * If not set (`undefined` or `\"\"`) the asset will become permanently immutable.\n */\n manager?: ReadableAddress\n /**\n * The address of the optional account that holds the reserve (uncirculated supply) units of the asset.\n *\n * This address has no specific authority in the protocol itself and is informational only.\n *\n * Some standards like [ARC-19](https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0019.md)\n * rely on this field to hold meaningful data.\n *\n * It can be used in the case where you want to signal to holders of your asset that the uncirculated units\n * of the asset reside in an account that is different from the default creator account.\n *\n * If not set (`undefined` or `\"\"`) the field will become permanently empty.\n */\n reserve?: ReadableAddress\n /**\n * The address of the optional account that can be used to freeze or unfreeze holdings of this asset for any account.\n *\n * If empty, freezing is not permitted.\n *\n * If not set (`undefined` or `\"\"`) the field will become permanently empty.\n */\n freeze?: ReadableAddress\n /**\n * The address of the optional account that can clawback holdings of this asset from any account.\n *\n * **This field should be used with caution** as the clawback account has the ability to **unconditionally take assets from any account**.\n *\n * If empty, clawback is not permitted.\n *\n * If not set (`undefined` or `\"\"`) the field will become permanently empty.\n */\n clawback?: ReadableAddress\n}\n\n/** Parameters to define an asset freeze transaction. */\nexport type AssetFreezeParams = CommonTransactionParams & {\n /** The ID of the asset to freeze/unfreeze */\n assetId: bigint\n /** The address of the account to freeze or unfreeze */\n account: ReadableAddress\n /** Whether the assets in the account should be frozen */\n frozen: boolean\n}\n\n/** Parameters to define an asset destroy transaction.\n *\n * Created assets can be destroyed only by the asset manager account. All of the assets must be owned by the creator of the asset before the asset can be deleted.\n */\nexport type AssetDestroyParams = CommonTransactionParams & {\n /** ID of the asset to destroy */\n assetId: bigint\n}\n\nexport const buildAssetCreate = (\n params: AssetCreateParams,\n suggestedParams: SuggestedParams,\n defaultValidityWindow: bigint,\n): Transaction => {\n const commonData = buildTransactionCommonData(params, suggestedParams, defaultValidityWindow)\n return new Transaction({\n ...commonData,\n type: TransactionType.AssetConfig,\n assetConfig: {\n assetId: 0n, // Asset creation always uses ID 0\n total: params.total,\n decimals: params.decimals,\n defaultFrozen: params.defaultFrozen,\n assetName: params.assetName,\n unitName: params.unitName,\n url: params.url,\n metadataHash: ensureString(params.metadataHash),\n manager: getOptionalAddress(params.manager),\n reserve: getOptionalAddress(params.reserve),\n freeze: getOptionalAddress(params.freeze),\n clawback: getOptionalAddress(params.clawback),\n },\n })\n}\n\nexport const buildAssetConfig = (\n params: AssetConfigParams,\n suggestedParams: SuggestedParams,\n defaultValidityWindow: bigint,\n): Transaction => {\n const commonData = buildTransactionCommonData(params, suggestedParams, defaultValidityWindow)\n return new Transaction({\n ...commonData,\n type: TransactionType.AssetConfig,\n assetConfig: {\n assetId: params.assetId,\n manager: getOptionalAddress(params.manager),\n reserve: getOptionalAddress(params.reserve),\n freeze: getOptionalAddress(params.freeze),\n clawback: getOptionalAddress(params.clawback),\n },\n })\n}\n\nexport const buildAssetFreeze = (\n params: AssetFreezeParams,\n suggestedParams: SuggestedParams,\n defaultValidityWindow: bigint,\n): Transaction => {\n const commonData = buildTransactionCommonData(params, suggestedParams, defaultValidityWindow)\n return new Transaction({\n ...commonData,\n type: TransactionType.AssetFreeze,\n assetFreeze: {\n assetId: params.assetId,\n freezeTarget: getAddress(params.account),\n frozen: params.frozen,\n },\n })\n}\n\nexport const buildAssetDestroy = (\n params: AssetDestroyParams,\n suggestedParams: SuggestedParams,\n defaultValidityWindow: bigint,\n): Transaction => {\n const commonData = buildTransactionCommonData(params, suggestedParams, defaultValidityWindow)\n return new Transaction({\n ...commonData,\n type: TransactionType.AssetConfig,\n assetConfig: {\n assetId: params.assetId,\n },\n })\n}\n"],"mappings":";;;;;;AA4LA,MAAa,oBACX,QACA,iBACA,0BACgB;AAEhB,QAAO,IAAI,YAAY;EACrB,GAFiB,2BAA2B,QAAQ,iBAAiB,sBAAsB;EAG3F,MAAM,gBAAgB;EACtB,aAAa;GACX,SAAS;GACT,OAAO,OAAO;GACd,UAAU,OAAO;GACjB,eAAe,OAAO;GACtB,WAAW,OAAO;GAClB,UAAU,OAAO;GACjB,KAAK,OAAO;GACZ,cAAc,aAAa,OAAO,aAAa;GAC/C,SAAS,mBAAmB,OAAO,QAAQ;GAC3C,SAAS,mBAAmB,OAAO,QAAQ;GAC3C,QAAQ,mBAAmB,OAAO,OAAO;GACzC,UAAU,mBAAmB,OAAO,SAAS;GAC9C;EACF,CAAC;;AAGJ,MAAa,oBACX,QACA,iBACA,0BACgB;AAEhB,QAAO,IAAI,YAAY;EACrB,GAFiB,2BAA2B,QAAQ,iBAAiB,sBAAsB;EAG3F,MAAM,gBAAgB;EACtB,aAAa;GACX,SAAS,OAAO;GAChB,SAAS,mBAAmB,OAAO,QAAQ;GAC3C,SAAS,mBAAmB,OAAO,QAAQ;GAC3C,QAAQ,mBAAmB,OAAO,OAAO;GACzC,UAAU,mBAAmB,OAAO,SAAS;GAC9C;EACF,CAAC;;AAGJ,MAAa,oBACX,QACA,iBACA,0BACgB;AAEhB,QAAO,IAAI,YAAY;EACrB,GAFiB,2BAA2B,QAAQ,iBAAiB,sBAAsB;EAG3F,MAAM,gBAAgB;EACtB,aAAa;GACX,SAAS,OAAO;GAChB,cAAc,WAAW,OAAO,QAAQ;GACxC,QAAQ,OAAO;GAChB;EACF,CAAC;;AAGJ,MAAa,qBACX,QACA,iBACA,0BACgB;AAEhB,QAAO,IAAI,YAAY;EACrB,GAFiB,2BAA2B,QAAQ,iBAAiB,sBAAsB;EAG3F,MAAM,gBAAgB;EACtB,aAAa,EACX,SAAS,OAAO,SACjB;EACF,CAAC"}
1
+ {"version":3,"file":"asset-config.mjs","names":[],"sources":["../../src/transactions/asset-config.ts"],"sourcesContent":["import { SuggestedParams } from '@algorandfoundation/algokit-algod-client'\nimport { ReadableAddress, getAddress, getOptionalAddress } from '@algorandfoundation/algokit-common'\nimport { Transaction, TransactionType } from '@algorandfoundation/algokit-transact'\nimport { CommonTransactionParams, buildTransactionCommonData, ensureString } from './common'\n\n/** Parameters to define an asset create transaction.\n *\n * The account that sends this transaction will automatically be opted in to the asset and will hold all units after creation.\n */\nexport type AssetCreateParams = CommonTransactionParams & {\n /** The total amount of the smallest divisible (decimal) unit to create.\n *\n * For example, if `decimals` is, say, 2, then for every 100 `total` there would be 1 whole unit.\n *\n * This field can only be specified upon asset creation.\n */\n total: bigint\n\n /** The amount of decimal places the asset should have.\n *\n * If unspecified then the asset will be in whole units (i.e. `0`).\n *\n * * If 0, the asset is not divisible;\n * * If 1, the base unit of the asset is in tenths;\n * * If 2, the base unit of the asset is in hundredths;\n * * If 3, the base unit of the asset is in thousandths;\n * * and so on up to 19 decimal places.\n *\n * This field can only be specified upon asset creation.\n */\n decimals?: number\n\n /** The optional name of the asset.\n *\n * Max size is 32 bytes.\n *\n * This field can only be specified upon asset creation.\n */\n assetName?: string\n\n /** The optional name of the unit of this asset (e.g. ticker name).\n *\n * Max size is 8 bytes.\n *\n * This field can only be specified upon asset creation.\n */\n unitName?: string\n\n /** Specifies an optional URL where more information about the asset can be retrieved (e.g. metadata).\n *\n * Max size is 96 bytes.\n *\n * This field can only be specified upon asset creation.\n */\n url?: string\n\n /** 32-byte hash of some metadata that is relevant to your asset and/or asset holders.\n *\n * The format of this metadata is up to the application.\n *\n * This field can only be specified upon asset creation.\n */\n metadataHash?: string | Uint8Array\n\n /** Whether the asset is frozen by default for all accounts.\n * Defaults to `false`.\n *\n * If `true` then for anyone apart from the creator to hold the\n * asset it needs to be unfrozen per account using an asset freeze\n * transaction from the `freeze` account, which must be set on creation.\n *\n * This field can only be specified upon asset creation.\n */\n defaultFrozen?: boolean\n\n /** The address of the optional account that can manage the configuration of the asset and destroy it.\n *\n * The configuration fields it can change are `manager`, `reserve`, `clawback`, and `freeze`.\n *\n * If not set (`undefined` or `\"\"`) at asset creation or subsequently set to empty by the `manager` the asset becomes permanently immutable.\n */\n manager?: ReadableAddress\n\n /**\n * The address of the optional account that holds the reserve (uncirculated supply) units of the asset.\n *\n * This address has no specific authority in the protocol itself and is informational only.\n *\n * Some standards like [ARC-19](https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0019.md)\n * rely on this field to hold meaningful data.\n *\n * It can be used in the case where you want to signal to holders of your asset that the uncirculated units\n * of the asset reside in an account that is different from the default creator account.\n *\n * If not set (`undefined` or `\"\"`) at asset creation or subsequently set to empty by the manager the field is permanently empty.\n */\n reserve?: ReadableAddress\n\n /**\n * The address of the optional account that can be used to freeze or unfreeze holdings of this asset for any account.\n *\n * If empty, freezing is not permitted.\n *\n * If not set (`undefined` or `\"\"`) at asset creation or subsequently set to empty by the manager the field is permanently empty.\n */\n freeze?: ReadableAddress\n\n /**\n * The address of the optional account that can clawback holdings of this asset from any account.\n *\n * **This field should be used with caution** as the clawback account has the ability to **unconditionally take assets from any account**.\n *\n * If empty, clawback is not permitted.\n *\n * If not set (`undefined` or `\"\"`) at asset creation or subsequently set to empty by the manager the field is permanently empty.\n */\n clawback?: ReadableAddress\n}\n\n/** Parameters to define an asset reconfiguration transaction.\n *\n * **Note:** The manager, reserve, freeze, and clawback addresses\n * are immutably empty if they are not set. If manager is not set then\n * all fields are immutable from that point forward.\n */\nexport type AssetConfigParams = CommonTransactionParams & {\n /** ID of the asset to reconfigure */\n assetId: bigint\n /** The address of the optional account that can manage the configuration of the asset and destroy it.\n *\n * The configuration fields it can change are `manager`, `reserve`, `clawback`, and `freeze`.\n *\n * If not set (`undefined` or `\"\"`) the asset will become permanently immutable.\n */\n manager?: ReadableAddress\n /**\n * The address of the optional account that holds the reserve (uncirculated supply) units of the asset.\n *\n * This address has no specific authority in the protocol itself and is informational only.\n *\n * Some standards like [ARC-19](https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0019.md)\n * rely on this field to hold meaningful data.\n *\n * It can be used in the case where you want to signal to holders of your asset that the uncirculated units\n * of the asset reside in an account that is different from the default creator account.\n *\n * If not set (`undefined` or `\"\"`) the field will become permanently empty.\n */\n reserve?: ReadableAddress\n /**\n * The address of the optional account that can be used to freeze or unfreeze holdings of this asset for any account.\n *\n * If empty, freezing is not permitted.\n *\n * If not set (`undefined` or `\"\"`) the field will become permanently empty.\n */\n freeze?: ReadableAddress\n /**\n * The address of the optional account that can clawback holdings of this asset from any account.\n *\n * **This field should be used with caution** as the clawback account has the ability to **unconditionally take assets from any account**.\n *\n * If empty, clawback is not permitted.\n *\n * If not set (`undefined` or `\"\"`) the field will become permanently empty.\n */\n clawback?: ReadableAddress\n}\n\n/** Parameters to define an asset freeze transaction. */\nexport type AssetFreezeParams = CommonTransactionParams & {\n /** The ID of the asset to freeze/unfreeze */\n assetId: bigint\n /** The address of the account to freeze or unfreeze */\n freezeTarget: ReadableAddress\n /** Whether the assets in the account should be frozen */\n frozen: boolean\n}\n\n/** Parameters to define an asset destroy transaction.\n *\n * Created assets can be destroyed only by the asset manager account. All of the assets must be owned by the creator of the asset before the asset can be deleted.\n */\nexport type AssetDestroyParams = CommonTransactionParams & {\n /** ID of the asset to destroy */\n assetId: bigint\n}\n\nexport const buildAssetCreate = (\n params: AssetCreateParams,\n suggestedParams: SuggestedParams,\n defaultValidityWindow: bigint,\n): Transaction => {\n const commonData = buildTransactionCommonData(params, suggestedParams, defaultValidityWindow)\n return new Transaction({\n ...commonData,\n type: TransactionType.AssetConfig,\n assetConfig: {\n assetId: 0n, // Asset creation always uses ID 0\n total: params.total,\n decimals: params.decimals,\n defaultFrozen: params.defaultFrozen,\n assetName: params.assetName,\n unitName: params.unitName,\n url: params.url,\n metadataHash: ensureString(params.metadataHash),\n manager: getOptionalAddress(params.manager),\n reserve: getOptionalAddress(params.reserve),\n freeze: getOptionalAddress(params.freeze),\n clawback: getOptionalAddress(params.clawback),\n },\n })\n}\n\nexport const buildAssetConfig = (\n params: AssetConfigParams,\n suggestedParams: SuggestedParams,\n defaultValidityWindow: bigint,\n): Transaction => {\n const commonData = buildTransactionCommonData(params, suggestedParams, defaultValidityWindow)\n return new Transaction({\n ...commonData,\n type: TransactionType.AssetConfig,\n assetConfig: {\n assetId: params.assetId,\n manager: getOptionalAddress(params.manager),\n reserve: getOptionalAddress(params.reserve),\n freeze: getOptionalAddress(params.freeze),\n clawback: getOptionalAddress(params.clawback),\n },\n })\n}\n\nexport const buildAssetFreeze = (\n params: AssetFreezeParams,\n suggestedParams: SuggestedParams,\n defaultValidityWindow: bigint,\n): Transaction => {\n const commonData = buildTransactionCommonData(params, suggestedParams, defaultValidityWindow)\n return new Transaction({\n ...commonData,\n type: TransactionType.AssetFreeze,\n assetFreeze: {\n assetId: params.assetId,\n freezeTarget: getAddress(params.freezeTarget),\n frozen: params.frozen,\n },\n })\n}\n\nexport const buildAssetDestroy = (\n params: AssetDestroyParams,\n suggestedParams: SuggestedParams,\n defaultValidityWindow: bigint,\n): Transaction => {\n const commonData = buildTransactionCommonData(params, suggestedParams, defaultValidityWindow)\n return new Transaction({\n ...commonData,\n type: TransactionType.AssetConfig,\n assetConfig: {\n assetId: params.assetId,\n },\n })\n}\n"],"mappings":";;;;;;AA4LA,MAAa,oBACX,QACA,iBACA,0BACgB;AAEhB,QAAO,IAAI,YAAY;EACrB,GAFiB,2BAA2B,QAAQ,iBAAiB,sBAAsB;EAG3F,MAAM,gBAAgB;EACtB,aAAa;GACX,SAAS;GACT,OAAO,OAAO;GACd,UAAU,OAAO;GACjB,eAAe,OAAO;GACtB,WAAW,OAAO;GAClB,UAAU,OAAO;GACjB,KAAK,OAAO;GACZ,cAAc,aAAa,OAAO,aAAa;GAC/C,SAAS,mBAAmB,OAAO,QAAQ;GAC3C,SAAS,mBAAmB,OAAO,QAAQ;GAC3C,QAAQ,mBAAmB,OAAO,OAAO;GACzC,UAAU,mBAAmB,OAAO,SAAS;GAC9C;EACF,CAAC;;AAGJ,MAAa,oBACX,QACA,iBACA,0BACgB;AAEhB,QAAO,IAAI,YAAY;EACrB,GAFiB,2BAA2B,QAAQ,iBAAiB,sBAAsB;EAG3F,MAAM,gBAAgB;EACtB,aAAa;GACX,SAAS,OAAO;GAChB,SAAS,mBAAmB,OAAO,QAAQ;GAC3C,SAAS,mBAAmB,OAAO,QAAQ;GAC3C,QAAQ,mBAAmB,OAAO,OAAO;GACzC,UAAU,mBAAmB,OAAO,SAAS;GAC9C;EACF,CAAC;;AAGJ,MAAa,oBACX,QACA,iBACA,0BACgB;AAEhB,QAAO,IAAI,YAAY;EACrB,GAFiB,2BAA2B,QAAQ,iBAAiB,sBAAsB;EAG3F,MAAM,gBAAgB;EACtB,aAAa;GACX,SAAS,OAAO;GAChB,cAAc,WAAW,OAAO,aAAa;GAC7C,QAAQ,OAAO;GAChB;EACF,CAAC;;AAGJ,MAAa,qBACX,QACA,iBACA,0BACgB;AAEhB,QAAO,IAAI,YAAY;EACrB,GAFiB,2BAA2B,QAAQ,iBAAiB,sBAAsB;EAG3F,MAAM,gBAAgB;EACtB,aAAa,EACX,SAAS,OAAO,SACjB;EACF,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { ReadableAddress } from "../packages/common/src/address.js";
2
2
  import { ABIValue } from "../packages/abi/src/abi-value.js";
3
3
  import { ABIMethod } from "../packages/abi/src/abi-method.js";
4
- import { AccessReference, OnApplicationComplete } from "../packages/transact/src/transactions/app-call.js";
4
+ import { OnApplicationComplete, ResourceReference } from "../packages/transact/src/transactions/app-call.js";
5
5
  import { Transaction } from "../packages/transact/src/transactions/transaction.js";
6
6
  import { AddressWithTransactionSigner, SendingAddress, TransactionSigner } from "../packages/transact/src/signer.js";
7
7
  import { AlgoAmount } from "./amount.js";
@@ -358,13 +358,13 @@ declare class AlgorandClientTransactionCreator {
358
358
  validityWindow?: number | bigint | undefined;
359
359
  firstValidRound?: bigint | undefined;
360
360
  lastValidRound?: bigint | undefined;
361
- args?: Uint8Array[] | undefined;
362
361
  onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
362
+ args?: Uint8Array[] | undefined;
363
363
  accountReferences?: ReadableAddress[] | undefined;
364
364
  appReferences?: bigint[] | undefined;
365
365
  assetReferences?: bigint[] | undefined;
366
366
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
367
- accessReferences?: AccessReference[] | undefined;
367
+ accessReferences?: ResourceReference[] | undefined;
368
368
  rejectVersion?: number | undefined;
369
369
  approvalProgram: string | Uint8Array;
370
370
  clearStateProgram: string | Uint8Array;
@@ -431,7 +431,7 @@ declare class AlgorandClientTransactionCreator {
431
431
  appReferences?: bigint[] | undefined;
432
432
  assetReferences?: bigint[] | undefined;
433
433
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
434
- accessReferences?: AccessReference[] | undefined;
434
+ accessReferences?: ResourceReference[] | undefined;
435
435
  rejectVersion?: number | undefined;
436
436
  approvalProgram: string | Uint8Array;
437
437
  clearStateProgram: string | Uint8Array;
@@ -573,15 +573,15 @@ declare class AlgorandClientTransactionCreator {
573
573
  validityWindow?: number | bigint | undefined;
574
574
  firstValidRound?: bigint | undefined;
575
575
  lastValidRound?: bigint | undefined;
576
+ approvalProgram: string | Uint8Array;
577
+ clearStateProgram: string | Uint8Array;
576
578
  onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
577
579
  accountReferences?: ReadableAddress[] | undefined;
578
580
  appReferences?: bigint[] | undefined;
579
581
  assetReferences?: bigint[] | undefined;
580
582
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
581
- accessReferences?: AccessReference[] | undefined;
583
+ accessReferences?: ResourceReference[] | undefined;
582
584
  rejectVersion?: number | undefined;
583
- approvalProgram: string | Uint8Array;
584
- clearStateProgram: string | Uint8Array;
585
585
  schema?: {
586
586
  globalInts: number;
587
587
  globalByteSlices: number;
@@ -591,8 +591,8 @@ declare class AlgorandClientTransactionCreator {
591
591
  extraProgramPages?: number | undefined;
592
592
  method: ABIMethod;
593
593
  args?: (Transaction | ABIValue | TransactionWithSigner | AppMethodCall<{
594
- signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
595
594
  sender: SendingAddress;
595
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
596
596
  rekeyTo?: ReadableAddress | undefined;
597
597
  note?: string | Uint8Array | undefined;
598
598
  lease?: string | Uint8Array | undefined;
@@ -602,26 +602,20 @@ declare class AlgorandClientTransactionCreator {
602
602
  validityWindow?: number | bigint | undefined;
603
603
  firstValidRound?: bigint | undefined;
604
604
  lastValidRound?: bigint | undefined;
605
+ appId: bigint;
606
+ onComplete?: OnApplicationComplete.UpdateApplication | undefined;
605
607
  args?: Uint8Array[] | undefined;
606
- onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
607
608
  accountReferences?: ReadableAddress[] | undefined;
608
609
  appReferences?: bigint[] | undefined;
609
610
  assetReferences?: bigint[] | undefined;
610
611
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
611
- accessReferences?: AccessReference[] | undefined;
612
+ accessReferences?: ResourceReference[] | undefined;
612
613
  rejectVersion?: number | undefined;
613
614
  approvalProgram: string | Uint8Array;
614
615
  clearStateProgram: string | Uint8Array;
615
- schema?: {
616
- globalInts: number;
617
- globalByteSlices: number;
618
- localInts: number;
619
- localByteSlices: number;
620
- } | undefined;
621
- extraProgramPages?: number | undefined;
622
616
  }> | AppMethodCall<{
623
- sender: SendingAddress;
624
617
  signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
618
+ sender: SendingAddress;
625
619
  rekeyTo?: ReadableAddress | undefined;
626
620
  note?: string | Uint8Array | undefined;
627
621
  lease?: string | Uint8Array | undefined;
@@ -631,18 +625,24 @@ declare class AlgorandClientTransactionCreator {
631
625
  validityWindow?: number | bigint | undefined;
632
626
  firstValidRound?: bigint | undefined;
633
627
  lastValidRound?: bigint | undefined;
634
- appId: bigint;
635
- onComplete?: OnApplicationComplete.UpdateApplication | undefined;
628
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
636
629
  args?: Uint8Array[] | undefined;
637
630
  accountReferences?: ReadableAddress[] | undefined;
638
631
  appReferences?: bigint[] | undefined;
639
632
  assetReferences?: bigint[] | undefined;
640
633
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
641
- accessReferences?: AccessReference[] | undefined;
634
+ accessReferences?: ResourceReference[] | undefined;
642
635
  rejectVersion?: number | undefined;
643
636
  approvalProgram: string | Uint8Array;
644
637
  clearStateProgram: string | Uint8Array;
645
- }> | AppMethodCall<AppMethodCallParams> | Promise<Transaction> | undefined)[] | undefined;
638
+ schema?: {
639
+ globalInts: number;
640
+ globalByteSlices: number;
641
+ localInts: number;
642
+ localByteSlices: number;
643
+ } | undefined;
644
+ extraProgramPages?: number | undefined;
645
+ }> | Promise<Transaction> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
646
646
  }) => Promise<Expand<BuiltTransactions>>;
647
647
  /** Create an application update call with ABI method call transaction.
648
648
  *
@@ -705,19 +705,19 @@ declare class AlgorandClientTransactionCreator {
705
705
  firstValidRound?: bigint | undefined;
706
706
  lastValidRound?: bigint | undefined;
707
707
  appId: bigint;
708
+ approvalProgram: string | Uint8Array;
709
+ clearStateProgram: string | Uint8Array;
708
710
  onComplete?: OnApplicationComplete.UpdateApplication | undefined;
709
711
  accountReferences?: ReadableAddress[] | undefined;
710
712
  appReferences?: bigint[] | undefined;
711
713
  assetReferences?: bigint[] | undefined;
712
714
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
713
- accessReferences?: AccessReference[] | undefined;
715
+ accessReferences?: ResourceReference[] | undefined;
714
716
  rejectVersion?: number | undefined;
715
- approvalProgram: string | Uint8Array;
716
- clearStateProgram: string | Uint8Array;
717
717
  method: ABIMethod;
718
718
  args?: (Transaction | ABIValue | TransactionWithSigner | AppMethodCall<{
719
- signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
720
719
  sender: SendingAddress;
720
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
721
721
  rekeyTo?: ReadableAddress | undefined;
722
722
  note?: string | Uint8Array | undefined;
723
723
  lease?: string | Uint8Array | undefined;
@@ -727,26 +727,20 @@ declare class AlgorandClientTransactionCreator {
727
727
  validityWindow?: number | bigint | undefined;
728
728
  firstValidRound?: bigint | undefined;
729
729
  lastValidRound?: bigint | undefined;
730
+ appId: bigint;
731
+ onComplete?: OnApplicationComplete.UpdateApplication | undefined;
730
732
  args?: Uint8Array[] | undefined;
731
- onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
732
733
  accountReferences?: ReadableAddress[] | undefined;
733
734
  appReferences?: bigint[] | undefined;
734
735
  assetReferences?: bigint[] | undefined;
735
736
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
736
- accessReferences?: AccessReference[] | undefined;
737
+ accessReferences?: ResourceReference[] | undefined;
737
738
  rejectVersion?: number | undefined;
738
739
  approvalProgram: string | Uint8Array;
739
740
  clearStateProgram: string | Uint8Array;
740
- schema?: {
741
- globalInts: number;
742
- globalByteSlices: number;
743
- localInts: number;
744
- localByteSlices: number;
745
- } | undefined;
746
- extraProgramPages?: number | undefined;
747
741
  }> | AppMethodCall<{
748
- sender: SendingAddress;
749
742
  signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
743
+ sender: SendingAddress;
750
744
  rekeyTo?: ReadableAddress | undefined;
751
745
  note?: string | Uint8Array | undefined;
752
746
  lease?: string | Uint8Array | undefined;
@@ -756,18 +750,24 @@ declare class AlgorandClientTransactionCreator {
756
750
  validityWindow?: number | bigint | undefined;
757
751
  firstValidRound?: bigint | undefined;
758
752
  lastValidRound?: bigint | undefined;
759
- appId: bigint;
760
- onComplete?: OnApplicationComplete.UpdateApplication | undefined;
753
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
761
754
  args?: Uint8Array[] | undefined;
762
755
  accountReferences?: ReadableAddress[] | undefined;
763
756
  appReferences?: bigint[] | undefined;
764
757
  assetReferences?: bigint[] | undefined;
765
758
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
766
- accessReferences?: AccessReference[] | undefined;
759
+ accessReferences?: ResourceReference[] | undefined;
767
760
  rejectVersion?: number | undefined;
768
761
  approvalProgram: string | Uint8Array;
769
762
  clearStateProgram: string | Uint8Array;
770
- }> | AppMethodCall<AppMethodCallParams> | Promise<Transaction> | undefined)[] | undefined;
763
+ schema?: {
764
+ globalInts: number;
765
+ globalByteSlices: number;
766
+ localInts: number;
767
+ localByteSlices: number;
768
+ } | undefined;
769
+ extraProgramPages?: number | undefined;
770
+ }> | Promise<Transaction> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
771
771
  }) => Promise<Expand<BuiltTransactions>>;
772
772
  /** Create an application delete call with ABI method call transaction.
773
773
  *
@@ -833,12 +833,12 @@ declare class AlgorandClientTransactionCreator {
833
833
  appReferences?: bigint[] | undefined;
834
834
  assetReferences?: bigint[] | undefined;
835
835
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
836
- accessReferences?: AccessReference[] | undefined;
836
+ accessReferences?: ResourceReference[] | undefined;
837
837
  rejectVersion?: number | undefined;
838
838
  method: ABIMethod;
839
839
  args?: (Transaction | ABIValue | TransactionWithSigner | AppMethodCall<{
840
- signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
841
840
  sender: SendingAddress;
841
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
842
842
  rekeyTo?: ReadableAddress | undefined;
843
843
  note?: string | Uint8Array | undefined;
844
844
  lease?: string | Uint8Array | undefined;
@@ -848,26 +848,20 @@ declare class AlgorandClientTransactionCreator {
848
848
  validityWindow?: number | bigint | undefined;
849
849
  firstValidRound?: bigint | undefined;
850
850
  lastValidRound?: bigint | undefined;
851
+ appId: bigint;
852
+ onComplete?: OnApplicationComplete.UpdateApplication | undefined;
851
853
  args?: Uint8Array[] | undefined;
852
- onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
853
854
  accountReferences?: ReadableAddress[] | undefined;
854
855
  appReferences?: bigint[] | undefined;
855
856
  assetReferences?: bigint[] | undefined;
856
857
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
857
- accessReferences?: AccessReference[] | undefined;
858
+ accessReferences?: ResourceReference[] | undefined;
858
859
  rejectVersion?: number | undefined;
859
860
  approvalProgram: string | Uint8Array;
860
861
  clearStateProgram: string | Uint8Array;
861
- schema?: {
862
- globalInts: number;
863
- globalByteSlices: number;
864
- localInts: number;
865
- localByteSlices: number;
866
- } | undefined;
867
- extraProgramPages?: number | undefined;
868
862
  }> | AppMethodCall<{
869
- sender: SendingAddress;
870
863
  signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
864
+ sender: SendingAddress;
871
865
  rekeyTo?: ReadableAddress | undefined;
872
866
  note?: string | Uint8Array | undefined;
873
867
  lease?: string | Uint8Array | undefined;
@@ -877,18 +871,24 @@ declare class AlgorandClientTransactionCreator {
877
871
  validityWindow?: number | bigint | undefined;
878
872
  firstValidRound?: bigint | undefined;
879
873
  lastValidRound?: bigint | undefined;
880
- appId: bigint;
881
- onComplete?: OnApplicationComplete.UpdateApplication | undefined;
874
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
882
875
  args?: Uint8Array[] | undefined;
883
876
  accountReferences?: ReadableAddress[] | undefined;
884
877
  appReferences?: bigint[] | undefined;
885
878
  assetReferences?: bigint[] | undefined;
886
879
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
887
- accessReferences?: AccessReference[] | undefined;
880
+ accessReferences?: ResourceReference[] | undefined;
888
881
  rejectVersion?: number | undefined;
889
882
  approvalProgram: string | Uint8Array;
890
883
  clearStateProgram: string | Uint8Array;
891
- }> | AppMethodCall<AppMethodCallParams> | Promise<Transaction> | undefined)[] | undefined;
884
+ schema?: {
885
+ globalInts: number;
886
+ globalByteSlices: number;
887
+ localInts: number;
888
+ localByteSlices: number;
889
+ } | undefined;
890
+ extraProgramPages?: number | undefined;
891
+ }> | Promise<Transaction> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
892
892
  }) => Promise<Expand<BuiltTransactions>>;
893
893
  /** Create an application call with ABI method call transaction.
894
894
  *
@@ -954,12 +954,12 @@ declare class AlgorandClientTransactionCreator {
954
954
  appReferences?: bigint[] | undefined;
955
955
  assetReferences?: bigint[] | undefined;
956
956
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
957
- accessReferences?: AccessReference[] | undefined;
957
+ accessReferences?: ResourceReference[] | undefined;
958
958
  rejectVersion?: number | undefined;
959
959
  method: ABIMethod;
960
960
  args?: (Transaction | ABIValue | TransactionWithSigner | AppMethodCall<{
961
- signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
962
961
  sender: SendingAddress;
962
+ signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
963
963
  rekeyTo?: ReadableAddress | undefined;
964
964
  note?: string | Uint8Array | undefined;
965
965
  lease?: string | Uint8Array | undefined;
@@ -969,26 +969,20 @@ declare class AlgorandClientTransactionCreator {
969
969
  validityWindow?: number | bigint | undefined;
970
970
  firstValidRound?: bigint | undefined;
971
971
  lastValidRound?: bigint | undefined;
972
+ appId: bigint;
973
+ onComplete?: OnApplicationComplete.UpdateApplication | undefined;
972
974
  args?: Uint8Array[] | undefined;
973
- onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
974
975
  accountReferences?: ReadableAddress[] | undefined;
975
976
  appReferences?: bigint[] | undefined;
976
977
  assetReferences?: bigint[] | undefined;
977
978
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
978
- accessReferences?: AccessReference[] | undefined;
979
+ accessReferences?: ResourceReference[] | undefined;
979
980
  rejectVersion?: number | undefined;
980
981
  approvalProgram: string | Uint8Array;
981
982
  clearStateProgram: string | Uint8Array;
982
- schema?: {
983
- globalInts: number;
984
- globalByteSlices: number;
985
- localInts: number;
986
- localByteSlices: number;
987
- } | undefined;
988
- extraProgramPages?: number | undefined;
989
983
  }> | AppMethodCall<{
990
- sender: SendingAddress;
991
984
  signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
985
+ sender: SendingAddress;
992
986
  rekeyTo?: ReadableAddress | undefined;
993
987
  note?: string | Uint8Array | undefined;
994
988
  lease?: string | Uint8Array | undefined;
@@ -998,18 +992,24 @@ declare class AlgorandClientTransactionCreator {
998
992
  validityWindow?: number | bigint | undefined;
999
993
  firstValidRound?: bigint | undefined;
1000
994
  lastValidRound?: bigint | undefined;
1001
- appId: bigint;
1002
- onComplete?: OnApplicationComplete.UpdateApplication | undefined;
995
+ onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
1003
996
  args?: Uint8Array[] | undefined;
1004
997
  accountReferences?: ReadableAddress[] | undefined;
1005
998
  appReferences?: bigint[] | undefined;
1006
999
  assetReferences?: bigint[] | undefined;
1007
1000
  boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
1008
- accessReferences?: AccessReference[] | undefined;
1001
+ accessReferences?: ResourceReference[] | undefined;
1009
1002
  rejectVersion?: number | undefined;
1010
1003
  approvalProgram: string | Uint8Array;
1011
1004
  clearStateProgram: string | Uint8Array;
1012
- }> | AppMethodCall<AppMethodCallParams> | Promise<Transaction> | undefined)[] | undefined;
1005
+ schema?: {
1006
+ globalInts: number;
1007
+ globalByteSlices: number;
1008
+ localInts: number;
1009
+ localByteSlices: number;
1010
+ } | undefined;
1011
+ extraProgramPages?: number | undefined;
1012
+ }> | Promise<Transaction> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
1013
1013
  }) => Promise<Expand<BuiltTransactions>>;
1014
1014
  /**
1015
1015
  * Create an online key registration transaction.