Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: Deprecate txn maker functions that will be removed in v3 #886

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions src/makeTxn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ import { RenameProperties, RenameProperty, Expand } from './types/utils';
* genesisHash - string specifies hash genesis block of network in use
* genesisID - string specifies genesis ID of network in use
* @param rekeyTo - rekeyTo address, optional
*
* @deprecated This function will be removed in v3 in favor of {@link makePaymentTxnWithSuggestedParamsFromObject}
*/
export function makePaymentTxnWithSuggestedParams(
from: PaymentTxn['from'],
Expand Down Expand Up @@ -111,6 +113,8 @@ export function makePaymentTxnWithSuggestedParamsFromObject(
* @param nonParticipation - configure whether the address wants to stop participating. If true,
* voteKey, selectionKey, voteFirst, voteLast, and voteKeyDilution must be undefined.
* @param stateProofKey - state proof key. for key deregistration, leave undefined
*
* @deprecated This function will be removed in v3 in favor of {@link makeKeyRegistrationTxnWithSuggestedParamsFromObject}
*/
export function makeKeyRegistrationTxnWithSuggestedParams(
from: KeyRegistrationTxn['from'],
Expand Down Expand Up @@ -245,6 +249,8 @@ export function makeKeyRegistrationTxnWithSuggestedParamsFromObject(o: any) {
* genesisHash - string specifies hash genesis block of network in use
* genesisID - string specifies genesis ID of network in use
* @param rekeyTo - rekeyTo address, optional
*
* @deprecated This function will be removed in v3 in favor of {@link makeAssetCreateTxnWithSuggestedParamsFromObject}
*/
export function makeAssetCreateTxnWithSuggestedParams(
from: AssetCreateTxn['from'],
Expand Down Expand Up @@ -360,6 +366,8 @@ export function makeAssetCreateTxnWithSuggestedParamsFromObject(
* genesisHash - string specifies hash genesis block of network in use
* genesisID - string specifies genesis ID of network in use
* @param rekeyTo - rekeyTo address, optional
*
* @deprecated This function will be removed in v3 in favor of {@link makeAssetConfigTxnWithSuggestedParamsFromObject}
*/
export function makeAssetConfigTxnWithSuggestedParams(
from: AssetConfigTxn['from'],
Expand Down Expand Up @@ -456,6 +464,8 @@ export function makeAssetConfigTxnWithSuggestedParamsFromObject(
* genesisHash - string specifies hash genesis block of network in use
* genesisID - string specifies genesis ID of network in use
* @param rekeyTo - rekeyTo address, optional
*
* @deprecated This function will be removed in v3 in favor of {@link makeAssetDestroyTxnWithSuggestedParamsFromObject}
*/
export function makeAssetDestroyTxnWithSuggestedParams(
from: AssetDestroyTxn['from'],
Expand Down Expand Up @@ -514,6 +524,8 @@ export function makeAssetDestroyTxnWithSuggestedParamsFromObject(
* genesisHash - string specifies hash genesis block of network in use
* genesisID - string specifies genesis ID of network in use
* @param rekeyTo - rekeyTo address, optional
*
* @deprecated This function will be removed in v3 in favor of {@link makeAssetFreezeTxnWithSuggestedParamsFromObject}
*/
export function makeAssetFreezeTxnWithSuggestedParams(
from: AssetFreezeTxn['from'],
Expand Down Expand Up @@ -592,6 +604,8 @@ export function makeAssetFreezeTxnWithSuggestedParamsFromObject(
* genesisHash - string specifies hash genesis block of network in use
* genesisID - string specifies genesis ID of network in use
* @param rekeyTo - rekeyTo address, optional
*
* @deprecated This function will be removed in v3 in favor of {@link makeAssetTransferTxnWithSuggestedParamsFromObject}
*/
export function makeAssetTransferTxnWithSuggestedParams(
from: AssetTransferTxn['from'],
Expand Down Expand Up @@ -682,6 +696,8 @@ export function makeAssetTransferTxnWithSuggestedParamsFromObject(
* @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
* @param extraPages - integer extra pages of memory to rent on creation of application
* @param boxes - Array of BoxReference, app ID and name of box to be accessed
*
* @deprecated This function will be removed in v3 in favor of {@link makeApplicationCreateTxnFromObject}
*/
export function makeApplicationCreateTxn(
from: AppCreateTxn['from'],
Expand Down Expand Up @@ -813,6 +829,8 @@ export function makeApplicationCreateTxnFromObject(
* @param lease - Lease a transaction
* @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
* @param boxes - Array of BoxReference, app ID and name of box to be accessed
*
* @deprecated This function will be removed in v3 in favor of {@link makeApplicationUpdateTxnFromObject}
*/
export function makeApplicationUpdateTxn(
from: AppUpdateTxn['from'],
Expand Down Expand Up @@ -917,6 +935,8 @@ export function makeApplicationUpdateTxnFromObject(
* @param lease - Lease a transaction
* @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
* @param boxes - Array of BoxReference, app ID and name of box to be accessed
*
* @deprecated This function will be removed in v3 in favor of {@link makeApplicationDeleteTxnFromObject}
*/
export function makeApplicationDeleteTxn(
from: AppDeleteTxn['from'],
Expand Down Expand Up @@ -1011,6 +1031,8 @@ export function makeApplicationDeleteTxnFromObject(
* @param lease - Lease a transaction
* @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
* @param boxes - Array of BoxReference, app ID and name of box to be accessed
*
* @deprecated This function will be removed in v3 in favor of {@link makeApplicationOptInTxnFromObject}
*/
export function makeApplicationOptInTxn(
from: AppOptInTxn['from'],
Expand Down Expand Up @@ -1105,6 +1127,8 @@ export function makeApplicationOptInTxnFromObject(
* @param lease - Lease a transaction
* @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
* @param boxes - Array of BoxReference, app ID and name of box to be accessed
*
* @deprecated This function will be removed in v3 in favor of {@link makeApplicationCloseOutTxnFromObject}
*/
export function makeApplicationCloseOutTxn(
from: AppCloseOutTxn['from'],
Expand Down Expand Up @@ -1199,6 +1223,8 @@ export function makeApplicationCloseOutTxnFromObject(
* @param lease - Lease a transaction
* @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
* @param boxes - Array of BoxReference, app ID and name of box to be accessed
*
* @deprecated This function will be removed in v3 in favor of {@link makeApplicationClearStateTxnFromObject}
*/
export function makeApplicationClearStateTxn(
from: AppClearStateTxn['from'],
Expand Down Expand Up @@ -1293,6 +1319,8 @@ export function makeApplicationClearStateTxnFromObject(
* @param lease - Lease a transaction
* @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
* @param boxes - Array of BoxReference, app ID and name of box to be accessed
*
* @deprecated This function will be removed in v3 in favor of {@link makeApplicationNoOpTxnFromObject}
*/
export function makeApplicationNoOpTxn(
from: AppNoOpTxn['from'],
Expand Down
Loading