algosdk 1.24.1 → 2.0.0
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.
- package/README.md +4 -4
- package/dist/browser/algosdk.min.js +1 -1
- package/dist/browser/algosdk.min.js.LICENSE.txt +0 -18
- package/dist/browser/algosdk.min.js.map +1 -1
- package/dist/cjs/client/v2/algod/algod.js +1 -1
- package/dist/cjs/client/v2/algod/algod.js.map +1 -1
- package/dist/cjs/client/v2/algod/models/types.js +161 -123
- package/dist/cjs/client/v2/algod/models/types.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAssetTransactions.js +0 -7
- package/dist/cjs/client/v2/indexer/lookupAssetTransactions.js.map +1 -1
- package/dist/cjs/dryrun.js +16 -7
- package/dist/cjs/dryrun.js.map +1 -1
- package/dist/cjs/logicsig.js +3 -14
- package/dist/cjs/logicsig.js.map +1 -1
- package/dist/cjs/main.js +3 -6
- package/dist/cjs/main.js.map +1 -1
- package/dist/cjs/makeTxn.js +1 -193
- package/dist/cjs/makeTxn.js.map +1 -1
- package/dist/esm/client/v2/algod/algod.js +1 -1
- package/dist/esm/client/v2/algod/algod.js.map +1 -1
- package/dist/esm/client/v2/algod/models/types.js +160 -120
- package/dist/esm/client/v2/algod/models/types.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAssetTransactions.js +0 -7
- package/dist/esm/client/v2/indexer/lookupAssetTransactions.js.map +1 -1
- package/dist/esm/dryrun.js +16 -7
- package/dist/esm/dryrun.js.map +1 -1
- package/dist/esm/logicsig.js +2 -12
- package/dist/esm/logicsig.js.map +1 -1
- package/dist/esm/main.js +1 -4
- package/dist/esm/main.js.map +1 -1
- package/dist/esm/makeTxn.js +0 -185
- package/dist/esm/makeTxn.js.map +1 -1
- package/dist/types/client/v2/algod/algod.d.ts +1 -1
- package/dist/types/client/v2/algod/models/types.d.ts +122 -67
- package/dist/types/client/v2/indexer/lookupAssetTransactions.d.ts +0 -4
- package/dist/types/logicsig.d.ts +2 -10
- package/dist/types/main.d.ts +1 -3
- package/dist/types/makeTxn.d.ts +1 -147
- package/dist/types/types/transactions/encoded.d.ts +0 -15
- package/package.json +1 -1
- package/src/client/v2/algod/algod.ts +2 -2
- package/src/client/v2/algod/models/types.ts +318 -249
- package/src/client/v2/indexer/lookupAssetTransactions.ts +0 -8
- package/src/dryrun.ts +13 -13
- package/src/logicsig.ts +2 -13
- package/src/main.ts +1 -5
- package/src/makeTxn.ts +0 -421
- package/src/types/transactions/encoded.ts +0 -17
- package/dist/cjs/client/algod.js +0 -295
- package/dist/cjs/client/algod.js.map +0 -1
- package/dist/cjs/logic/langspec.json +0 -2014
- package/dist/cjs/logic/logic.js +0 -262
- package/dist/cjs/logic/logic.js.map +0 -1
- package/dist/cjs/logicTemplates/dynamicfee.js +0 -192
- package/dist/cjs/logicTemplates/dynamicfee.js.map +0 -1
- package/dist/cjs/logicTemplates/htlc.js +0 -145
- package/dist/cjs/logicTemplates/htlc.js.map +0 -1
- package/dist/cjs/logicTemplates/index.js +0 -19
- package/dist/cjs/logicTemplates/index.js.map +0 -1
- package/dist/cjs/logicTemplates/limitorder.js +0 -167
- package/dist/cjs/logicTemplates/limitorder.js.map +0 -1
- package/dist/cjs/logicTemplates/periodicpayment.js +0 -163
- package/dist/cjs/logicTemplates/periodicpayment.js.map +0 -1
- package/dist/cjs/logicTemplates/split.js +0 -154
- package/dist/cjs/logicTemplates/split.js.map +0 -1
- package/dist/cjs/logicTemplates/templates.js +0 -67
- package/dist/cjs/logicTemplates/templates.js.map +0 -1
- package/dist/esm/client/algod.js +0 -295
- package/dist/esm/client/algod.js.map +0 -1
- package/dist/esm/logic/langspec.json +0 -2014
- package/dist/esm/logic/logic.js +0 -249
- package/dist/esm/logic/logic.js.map +0 -1
- package/dist/esm/logicTemplates/dynamicfee.js +0 -192
- package/dist/esm/logicTemplates/dynamicfee.js.map +0 -1
- package/dist/esm/logicTemplates/htlc.js +0 -145
- package/dist/esm/logicTemplates/htlc.js.map +0 -1
- package/dist/esm/logicTemplates/index.js +0 -19
- package/dist/esm/logicTemplates/index.js.map +0 -1
- package/dist/esm/logicTemplates/limitorder.js +0 -167
- package/dist/esm/logicTemplates/limitorder.js.map +0 -1
- package/dist/esm/logicTemplates/periodicpayment.js +0 -163
- package/dist/esm/logicTemplates/periodicpayment.js.map +0 -1
- package/dist/esm/logicTemplates/split.js +0 -154
- package/dist/esm/logicTemplates/split.js.map +0 -1
- package/dist/esm/logicTemplates/templates.js +0 -67
- package/dist/esm/logicTemplates/templates.js.map +0 -1
- package/dist/types/client/algod.d.ts +0 -162
- package/dist/types/logic/logic.d.ts +0 -45
- package/dist/types/logicTemplates/dynamicfee.d.ts +0 -59
- package/dist/types/logicTemplates/htlc.d.ts +0 -51
- package/dist/types/logicTemplates/index.d.ts +0 -16
- package/dist/types/logicTemplates/limitorder.d.ts +0 -70
- package/dist/types/logicTemplates/periodicpayment.d.ts +0 -58
- package/dist/types/logicTemplates/split.d.ts +0 -57
- package/dist/types/logicTemplates/templates.d.ts +0 -6
- package/src/client/algod.js +0 -365
- package/src/logic/langspec.json +0 -2014
- package/src/logic/logic.ts +0 -316
- package/src/logicTemplates/dynamicfee.js +0 -219
- package/src/logicTemplates/htlc.js +0 -165
- package/src/logicTemplates/index.js +0 -20
- package/src/logicTemplates/limitorder.js +0 -227
- package/src/logicTemplates/periodicpayment.js +0 -208
- package/src/logicTemplates/split.js +0 -208
- package/src/logicTemplates/templates.js +0 -78
package/dist/types/makeTxn.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as txnBuilder from './transaction';
|
|
2
|
-
import { PaymentTxn, KeyRegistrationTxn, MustHaveSuggestedParams,
|
|
2
|
+
import { PaymentTxn, KeyRegistrationTxn, MustHaveSuggestedParams, AssetCreateTxn, AssetConfigTxn, AssetDestroyTxn, AssetFreezeTxn, AssetTransferTxn, AppCreateTxn, AppUpdateTxn, AppDeleteTxn, AppOptInTxn, AppCloseOutTxn, AppClearStateTxn, AppNoOpTxn } from './types/transactions';
|
|
3
3
|
import { RenameProperties, RenameProperty, Expand } from './types/utils';
|
|
4
4
|
/**
|
|
5
5
|
* makePaymentTxnWithSuggestedParams takes payment arguments and returns a Transaction object
|
|
@@ -19,23 +19,6 @@ import { RenameProperties, RenameProperty, Expand } from './types/utils';
|
|
|
19
19
|
* @param rekeyTo - rekeyTo address, optional
|
|
20
20
|
*/
|
|
21
21
|
export declare function makePaymentTxnWithSuggestedParams(from: PaymentTxn['from'], to: PaymentTxn['to'], amount: PaymentTxn['amount'], closeRemainderTo: PaymentTxn['closeRemainderTo'], note: PaymentTxn['note'], suggestedParams: MustHaveSuggestedParams<PaymentTxn>['suggestedParams'], rekeyTo?: PaymentTxn['reKeyTo']): txnBuilder.Transaction;
|
|
22
|
-
/**
|
|
23
|
-
* makePaymentTxn takes payment arguments and returns a Transaction object
|
|
24
|
-
* @param from - string representation of Algorand address of sender
|
|
25
|
-
* @param to - string representation of Algorand address of recipient
|
|
26
|
-
* @param fee - integer fee per byte, in microAlgos. for a flat fee, overwrite the fee property on the returned object
|
|
27
|
-
* If the final calculated fee is lower than the protocol minimum fee, the fee will be increased to match the minimum.
|
|
28
|
-
* @param amount - integer amount to send, in microAlgos
|
|
29
|
-
* @param closeRemainderTo - optionally close out remaining account balance to this account, represented as string rep of Algorand address
|
|
30
|
-
* @param firstRound - integer first protocol round on which this txn is valid
|
|
31
|
-
* @param lastRound - integer last protocol round on which this txn is valid
|
|
32
|
-
* @param note - uint8array of arbitrary data for sender to store
|
|
33
|
-
* @param genesisHash - string specifies hash genesis block of network in use
|
|
34
|
-
* @param genesisID - string specifies genesis ID of network in use
|
|
35
|
-
* @param rekeyTo - rekeyTo address, optional
|
|
36
|
-
* @Deprecated in version 2.0 this will change to use the "WithSuggestedParams" signature.
|
|
37
|
-
*/
|
|
38
|
-
export declare function makePaymentTxn(from: PaymentTxn['from'], to: PaymentTxn['to'], fee: MustHaveSuggestedParamsInline<PaymentTxn>['fee'], amount: PaymentTxn['amount'], closeRemainderTo: PaymentTxn['closeRemainderTo'], firstRound: MustHaveSuggestedParamsInline<PaymentTxn>['firstRound'], lastRound: MustHaveSuggestedParamsInline<PaymentTxn>['lastRound'], note: PaymentTxn['note'], genesisHash: MustHaveSuggestedParamsInline<PaymentTxn>['genesisHash'], genesisID: MustHaveSuggestedParamsInline<PaymentTxn>['genesisID'], rekeyTo?: PaymentTxn['reKeyTo']): txnBuilder.Transaction;
|
|
39
22
|
export declare function makePaymentTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperty<MustHaveSuggestedParams<PaymentTxn>, 'reKeyTo', 'rekeyTo'>, 'from' | 'to' | 'amount' | 'closeRemainderTo' | 'note' | 'suggestedParams' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
40
23
|
/**
|
|
41
24
|
* makeKeyRegistrationTxnWithSuggestedParams takes key registration arguments and returns a Transaction object for
|
|
@@ -63,31 +46,6 @@ export declare function makePaymentTxnWithSuggestedParamsFromObject(o: Expand<Pi
|
|
|
63
46
|
*/
|
|
64
47
|
export declare function makeKeyRegistrationTxnWithSuggestedParams(from: KeyRegistrationTxn['from'], note: KeyRegistrationTxn['note'], voteKey: KeyRegistrationTxn['voteKey'], selectionKey: KeyRegistrationTxn['selectionKey'], voteFirst: KeyRegistrationTxn['voteFirst'], voteLast: KeyRegistrationTxn['voteLast'], voteKeyDilution: KeyRegistrationTxn['voteKeyDilution'], suggestedParams: MustHaveSuggestedParams<KeyRegistrationTxn>['suggestedParams'], rekeyTo?: KeyRegistrationTxn['reKeyTo'], nonParticipation?: false, stateProofKey?: KeyRegistrationTxn['stateProofKey']): txnBuilder.Transaction;
|
|
65
48
|
export declare function makeKeyRegistrationTxnWithSuggestedParams(from: KeyRegistrationTxn['from'], note: KeyRegistrationTxn['note'], voteKey: undefined, selectionKey: undefined, voteFirst: undefined, voteLast: undefined, voteKeyDilution: undefined, suggestedParams: MustHaveSuggestedParams<KeyRegistrationTxn>['suggestedParams'], rekeyTo?: KeyRegistrationTxn['reKeyTo'], nonParticipation?: true, stateProofKey?: undefined): txnBuilder.Transaction;
|
|
66
|
-
/**
|
|
67
|
-
* makeKeyRegistrationTxn takes key registration arguments and returns a Transaction object for
|
|
68
|
-
* that key registration operation
|
|
69
|
-
*
|
|
70
|
-
* @param from - string representation of Algorand address of sender
|
|
71
|
-
* @param fee - integer fee per byte, in microAlgos. for a flat fee, overwrite the fee property on the returned object
|
|
72
|
-
* If the final calculated fee is lower than the protocol minimum fee, the fee will be increased to match the minimum.
|
|
73
|
-
* @param firstRound - integer first protocol round on which this txn is valid
|
|
74
|
-
* @param lastRound - integer last protocol round on which this txn is valid
|
|
75
|
-
* @param note - uint8array of arbitrary data for sender to store
|
|
76
|
-
* @param genesisHash - string specifies hash genesis block of network in use
|
|
77
|
-
* @param genesisID - string specifies genesis ID of network in use
|
|
78
|
-
* @param voteKey - voting key. for key deregistration, leave undefined
|
|
79
|
-
* @param selectionKey - selection key. for key deregistration, leave undefined
|
|
80
|
-
* @param voteFirst - first round on which voteKey is valid
|
|
81
|
-
* @param voteLast - last round on which voteKey is valid
|
|
82
|
-
* @param voteKeyDilution - integer
|
|
83
|
-
* @param rekeyTo - rekeyTo address, optional
|
|
84
|
-
* @param nonParticipation - configure whether the address wants to stop participating. If true,
|
|
85
|
-
* voteKey, selectionKey, voteFirst, voteLast, and voteKeyDilution must be undefined.
|
|
86
|
-
* @param stateProofKey - state proof key. for key deregistration, leave undefined
|
|
87
|
-
* @Deprecated in version 2.0 this will change to use the "WithSuggestedParams" signature.
|
|
88
|
-
*/
|
|
89
|
-
export declare function makeKeyRegistrationTxn(from: KeyRegistrationTxn['from'], fee: MustHaveSuggestedParamsInline<KeyRegistrationTxn>['fee'], firstRound: MustHaveSuggestedParamsInline<KeyRegistrationTxn>['firstRound'], lastRound: MustHaveSuggestedParamsInline<KeyRegistrationTxn>['lastRound'], note: KeyRegistrationTxn['note'], genesisHash: MustHaveSuggestedParamsInline<KeyRegistrationTxn>['genesisHash'], genesisID: MustHaveSuggestedParamsInline<KeyRegistrationTxn>['genesisID'], voteKey: KeyRegistrationTxn['voteKey'], selectionKey: KeyRegistrationTxn['selectionKey'], voteFirst: KeyRegistrationTxn['voteFirst'], voteLast: KeyRegistrationTxn['voteLast'], voteKeyDilution: KeyRegistrationTxn['voteKeyDilution'], rekeyTo?: KeyRegistrationTxn['reKeyTo'], nonParticipation?: false, stateProofKey?: KeyRegistrationTxn['stateProofKey']): txnBuilder.Transaction;
|
|
90
|
-
export declare function makeKeyRegistrationTxn(from: KeyRegistrationTxn['from'], fee: MustHaveSuggestedParamsInline<KeyRegistrationTxn>['fee'], firstRound: MustHaveSuggestedParamsInline<KeyRegistrationTxn>['firstRound'], lastRound: MustHaveSuggestedParamsInline<KeyRegistrationTxn>['lastRound'], note: KeyRegistrationTxn['note'], genesisHash: MustHaveSuggestedParamsInline<KeyRegistrationTxn>['genesisHash'], genesisID: MustHaveSuggestedParamsInline<KeyRegistrationTxn>['genesisID'], voteKey: undefined, selectionKey: undefined, voteFirst: undefined, voteLast: undefined, voteKeyDilution: undefined, rekeyTo?: KeyRegistrationTxn['reKeyTo'], nonParticipation?: true, stateProofKey?: undefined): txnBuilder.Transaction;
|
|
91
49
|
export declare function makeKeyRegistrationTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperty<MustHaveSuggestedParams<KeyRegistrationTxn>, 'reKeyTo', 'rekeyTo'>, 'from' | 'note' | 'voteKey' | 'selectionKey' | 'stateProofKey' | 'voteFirst' | 'voteLast' | 'voteKeyDilution' | 'suggestedParams' | 'rekeyTo'> & {
|
|
92
50
|
nonParticipation?: false;
|
|
93
51
|
}>): txnBuilder.Transaction;
|
|
@@ -121,32 +79,6 @@ export declare function makeKeyRegistrationTxnWithSuggestedParamsFromObject(o: E
|
|
|
121
79
|
* @param rekeyTo - rekeyTo address, optional
|
|
122
80
|
*/
|
|
123
81
|
export declare function makeAssetCreateTxnWithSuggestedParams(from: AssetCreateTxn['from'], note: AssetCreateTxn['note'], total: AssetCreateTxn['assetTotal'], decimals: AssetCreateTxn['assetDecimals'], defaultFrozen: AssetCreateTxn['assetDefaultFrozen'], manager: AssetCreateTxn['assetManager'], reserve: AssetCreateTxn['assetReserve'], freeze: AssetCreateTxn['assetFreeze'], clawback: AssetCreateTxn['assetClawback'], unitName: AssetCreateTxn['assetUnitName'], assetName: AssetCreateTxn['assetName'], assetURL: AssetCreateTxn['assetURL'], assetMetadataHash: AssetCreateTxn['assetMetadataHash'] | undefined, suggestedParams: MustHaveSuggestedParams<AssetCreateTxn>['suggestedParams'], rekeyTo?: AssetCreateTxn['reKeyTo']): txnBuilder.Transaction;
|
|
124
|
-
/** makeAssetCreateTxn takes asset creation arguments and returns a Transaction object
|
|
125
|
-
* for creating that asset
|
|
126
|
-
*
|
|
127
|
-
* @param from - string representation of Algorand address of sender
|
|
128
|
-
* @param fee - integer fee per byte, in microAlgos. for a flat fee, overwrite the fee property on the returned object
|
|
129
|
-
* If the final calculated fee is lower than the protocol minimum fee, the fee will be increased to match the minimum.
|
|
130
|
-
* @param firstRound - integer first protocol round on which this txn is valid
|
|
131
|
-
* @param lastRound - integer last protocol round on which this txn is valid
|
|
132
|
-
* @param note - uint8array of arbitrary data for sender to store
|
|
133
|
-
* @param genesisHash - string specifies hash genesis block of network in use
|
|
134
|
-
* @param genesisID - string specifies genesis ID of network in use
|
|
135
|
-
* @param total - integer total supply of the asset
|
|
136
|
-
* @param decimals - integer number of decimals for asset unit calculation
|
|
137
|
-
* @param defaultFrozen - boolean whether asset accounts should default to being frozen
|
|
138
|
-
* @param manager - string representation of Algorand address in charge of reserve, freeze, clawback, destruction, etc
|
|
139
|
-
* @param reserve - string representation of Algorand address representing asset reserve
|
|
140
|
-
* @param freeze - string representation of Algorand address with power to freeze/unfreeze asset holdings
|
|
141
|
-
* @param clawback - string representation of Algorand address with power to revoke asset holdings
|
|
142
|
-
* @param unitName - string units name for this asset
|
|
143
|
-
* @param assetName - string name for this asset
|
|
144
|
-
* @param assetURL - string URL relating to this asset
|
|
145
|
-
* @param assetMetadataHash - Uint8Array or UTF-8 string representation of a hash commitment with respect to the asset. Must be exactly 32 bytes long.
|
|
146
|
-
* @param rekeyTo - rekeyTo address, optional
|
|
147
|
-
* @Deprecated in version 2.0 this will change to use the "WithSuggestedParams" signature.
|
|
148
|
-
*/
|
|
149
|
-
export declare function makeAssetCreateTxn(from: AssetCreateTxn['from'], fee: MustHaveSuggestedParamsInline<AssetCreateTxn>['fee'], firstRound: MustHaveSuggestedParamsInline<AssetCreateTxn>['firstRound'], lastRound: MustHaveSuggestedParamsInline<AssetCreateTxn>['lastRound'], note: AssetCreateTxn['note'], genesisHash: MustHaveSuggestedParamsInline<AssetCreateTxn>['genesisHash'], genesisID: MustHaveSuggestedParamsInline<AssetCreateTxn>['genesisID'], total: AssetCreateTxn['assetTotal'], decimals: AssetCreateTxn['assetDecimals'], defaultFrozen: AssetCreateTxn['assetDefaultFrozen'], manager: AssetCreateTxn['assetManager'], reserve: AssetCreateTxn['assetManager'], freeze: AssetCreateTxn['assetFreeze'], clawback: AssetCreateTxn['assetClawback'], unitName: AssetCreateTxn['assetUnitName'], assetName: AssetCreateTxn['assetName'], assetURL: AssetCreateTxn['assetURL'], assetMetadataHash?: AssetCreateTxn['assetMetadataHash'], rekeyTo?: AssetCreateTxn['reKeyTo']): txnBuilder.Transaction;
|
|
150
82
|
export declare function makeAssetCreateTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AssetCreateTxn>, {
|
|
151
83
|
reKeyTo: 'rekeyTo';
|
|
152
84
|
assetTotal: 'total';
|
|
@@ -181,28 +113,6 @@ export declare function makeAssetCreateTxnWithSuggestedParamsFromObject(o: Expan
|
|
|
181
113
|
* @param rekeyTo - rekeyTo address, optional
|
|
182
114
|
*/
|
|
183
115
|
export declare function makeAssetConfigTxnWithSuggestedParams(from: AssetConfigTxn['from'], note: AssetConfigTxn['note'], assetIndex: AssetConfigTxn['assetIndex'], manager: AssetConfigTxn['assetManager'], reserve: AssetConfigTxn['assetReserve'], freeze: AssetConfigTxn['assetFreeze'], clawback: AssetConfigTxn['assetClawback'], suggestedParams: MustHaveSuggestedParams<AssetConfigTxn>['suggestedParams'], strictEmptyAddressChecking?: boolean, rekeyTo?: AssetConfigTxn['reKeyTo']): txnBuilder.Transaction;
|
|
184
|
-
/** makeAssetConfigTxn can be issued by the asset manager to change the manager, reserve, freeze, or clawback
|
|
185
|
-
* you must respecify existing addresses to keep them the same; leaving a field blank is the same as turning
|
|
186
|
-
* that feature off for this asset
|
|
187
|
-
*
|
|
188
|
-
* @param from - string representation of Algorand address of sender
|
|
189
|
-
* @param fee - integer fee per byte, in microAlgos. for a flat fee, overwrite the fee property on the returned object
|
|
190
|
-
* If the final calculated fee is lower than the protocol minimum fee, the fee will be increased to match the minimum.
|
|
191
|
-
* @param firstRound - integer first protocol round on which this txn is valid
|
|
192
|
-
* @param lastRound - integer last protocol round on which this txn is valid
|
|
193
|
-
* @param note - uint8array of arbitrary data for sender to store
|
|
194
|
-
* @param genesisHash - string specifies hash genesis block of network in use
|
|
195
|
-
* @param genesisID - string specifies genesis ID of network in use
|
|
196
|
-
* @param assetIndex - int asset index uniquely specifying the asset
|
|
197
|
-
* @param manager - string representation of new asset manager Algorand address
|
|
198
|
-
* @param reserve - string representation of new reserve Algorand address
|
|
199
|
-
* @param freeze - string representation of new freeze manager Algorand address
|
|
200
|
-
* @param clawback - string representation of new revocation manager Algorand address
|
|
201
|
-
* @param strictEmptyAddressChecking - boolean - throw an error if any of manager, reserve, freeze, or clawback are undefined. optional, defaults to true.
|
|
202
|
-
* @param rekeyTo - rekeyTo address, optional
|
|
203
|
-
* @Deprecated in version 2.0 this will change to use the "WithSuggestedParams" signature.
|
|
204
|
-
*/
|
|
205
|
-
export declare function makeAssetConfigTxn(from: AssetConfigTxn['from'], fee: MustHaveSuggestedParamsInline<AssetConfigTxn>['fee'], firstRound: MustHaveSuggestedParamsInline<AssetConfigTxn>['firstRound'], lastRound: MustHaveSuggestedParamsInline<AssetConfigTxn>['lastRound'], note: AssetConfigTxn['note'], genesisHash: MustHaveSuggestedParamsInline<AssetConfigTxn>['genesisHash'], genesisID: MustHaveSuggestedParamsInline<AssetConfigTxn>['genesisID'], assetIndex: AssetConfigTxn['assetIndex'], manager: AssetConfigTxn['assetManager'], reserve: AssetConfigTxn['assetReserve'], freeze: AssetConfigTxn['assetFreeze'], clawback: AssetConfigTxn['assetClawback'], strictEmptyAddressChecking?: boolean, rekeyTo?: AssetConfigTxn['reKeyTo']): txnBuilder.Transaction;
|
|
206
116
|
export declare function makeAssetConfigTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AssetConfigTxn>, {
|
|
207
117
|
reKeyTo: 'rekeyTo';
|
|
208
118
|
assetManager: 'manager';
|
|
@@ -229,22 +139,6 @@ export declare function makeAssetConfigTxnWithSuggestedParamsFromObject(o: Expan
|
|
|
229
139
|
* @param rekeyTo - rekeyTo address, optional
|
|
230
140
|
*/
|
|
231
141
|
export declare function makeAssetDestroyTxnWithSuggestedParams(from: AssetDestroyTxn['from'], note: AssetDestroyTxn['note'], assetIndex: AssetDestroyTxn['assetIndex'], suggestedParams: MustHaveSuggestedParams<AssetDestroyTxn>['suggestedParams'], rekeyTo?: AssetDestroyTxn['reKeyTo']): txnBuilder.Transaction;
|
|
232
|
-
/** makeAssetDestroyTxn will allow the asset's manager to remove this asset from the ledger, so long
|
|
233
|
-
* as all outstanding assets are held by the creator.
|
|
234
|
-
*
|
|
235
|
-
* @param from - string representation of Algorand address of sender
|
|
236
|
-
* @param fee - integer fee per byte, in microAlgos. for a flat fee, overwrite the fee property on the returned object
|
|
237
|
-
* If the final calculated fee is lower than the protocol minimum fee, the fee will be increased to match the minimum.
|
|
238
|
-
* @param firstRound - integer first protocol round on which this txn is valid
|
|
239
|
-
* @param lastRound - integer last protocol round on which this txn is valid
|
|
240
|
-
* @param note - uint8array of arbitrary data for sender to store
|
|
241
|
-
* @param genesisHash - string specifies hash genesis block of network in use
|
|
242
|
-
* @param genesisID - string specifies genesis ID of network in use
|
|
243
|
-
* @param assetIndex - int asset index uniquely specifying the asset
|
|
244
|
-
* @param rekeyTo - rekeyTo address, optional
|
|
245
|
-
* @Deprecated in version 2.0 this will change to use the "WithSuggestedParams" signature.
|
|
246
|
-
*/
|
|
247
|
-
export declare function makeAssetDestroyTxn(from: AssetDestroyTxn['from'], fee: MustHaveSuggestedParamsInline<AssetDestroyTxn>['fee'], firstRound: MustHaveSuggestedParamsInline<AssetDestroyTxn>['firstRound'], lastRound: MustHaveSuggestedParamsInline<AssetDestroyTxn>['lastRound'], note: AssetDestroyTxn['note'], genesisHash: MustHaveSuggestedParamsInline<AssetDestroyTxn>['genesisHash'], genesisID: MustHaveSuggestedParamsInline<AssetDestroyTxn>['genesisID'], assetIndex: AssetDestroyTxn['assetIndex'], rekeyTo?: AssetDestroyTxn['reKeyTo']): txnBuilder.Transaction;
|
|
248
142
|
export declare function makeAssetDestroyTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperty<MustHaveSuggestedParams<AssetDestroyTxn>, 'reKeyTo', 'rekeyTo'>, 'from' | 'note' | 'assetIndex' | 'suggestedParams' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
249
143
|
/** makeAssetFreezeTxnWithSuggestedParams will allow the asset's freeze manager to freeze or un-freeze an account,
|
|
250
144
|
* blocking or allowing asset transfers to and from the targeted account.
|
|
@@ -265,24 +159,6 @@ export declare function makeAssetDestroyTxnWithSuggestedParamsFromObject(o: Expa
|
|
|
265
159
|
* @param rekeyTo - rekeyTo address, optional
|
|
266
160
|
*/
|
|
267
161
|
export declare function makeAssetFreezeTxnWithSuggestedParams(from: AssetFreezeTxn['from'], note: AssetFreezeTxn['note'], assetIndex: AssetFreezeTxn['assetIndex'], freezeTarget: AssetFreezeTxn['freezeAccount'], freezeState: AssetFreezeTxn['freezeState'], suggestedParams: MustHaveSuggestedParams<AssetFreezeTxn>['suggestedParams'], rekeyTo?: AssetFreezeTxn['reKeyTo']): txnBuilder.Transaction;
|
|
268
|
-
/** makeAssetFreezeTxn will allow the asset's freeze manager to freeze or un-freeze an account,
|
|
269
|
-
* blocking or allowing asset transfers to and from the targeted account.
|
|
270
|
-
*
|
|
271
|
-
* @param from - string representation of Algorand address of sender
|
|
272
|
-
* @param fee - integer fee per byte, in microAlgos. for a flat fee, overwrite the fee property on the returned object
|
|
273
|
-
* If the final calculated fee is lower than the protocol minimum fee, the fee will be increased to match the minimum.
|
|
274
|
-
* @param firstRound - integer first protocol round on which this txn is valid
|
|
275
|
-
* @param lastRound - integer last protocol round on which this txn is valid
|
|
276
|
-
* @param note - uint8array of arbitrary data for sender to store
|
|
277
|
-
* @param genesisHash - string specifies hash genesis block of network in use
|
|
278
|
-
* @param genesisID - string specifies genesis ID of network in use
|
|
279
|
-
* @param assetIndex - int asset index uniquely specifying the asset
|
|
280
|
-
* @param freezeTarget - string representation of Algorand address being frozen or unfrozen
|
|
281
|
-
* @param freezeState - true if freezeTarget should be frozen, false if freezeTarget should be allowed to transact
|
|
282
|
-
* @param rekeyTo - rekeyTo address, optional
|
|
283
|
-
* @Deprecated in version 2.0 this will change to use the "WithSuggestedParams" signature.
|
|
284
|
-
*/
|
|
285
|
-
export declare function makeAssetFreezeTxn(from: AssetFreezeTxn['from'], fee: MustHaveSuggestedParamsInline<AssetFreezeTxn>['fee'], firstRound: MustHaveSuggestedParamsInline<AssetFreezeTxn>['firstRound'], lastRound: MustHaveSuggestedParamsInline<AssetFreezeTxn>['lastRound'], note: MustHaveSuggestedParamsInline<AssetFreezeTxn>['note'], genesisHash: MustHaveSuggestedParamsInline<AssetFreezeTxn>['genesisHash'], genesisID: MustHaveSuggestedParamsInline<AssetFreezeTxn>['genesisID'], assetIndex: AssetFreezeTxn['assetIndex'], freezeTarget: AssetFreezeTxn['freezeAccount'], freezeState: AssetFreezeTxn['freezeState'], rekeyTo?: AssetFreezeTxn['reKeyTo']): txnBuilder.Transaction;
|
|
286
162
|
export declare function makeAssetFreezeTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AssetFreezeTxn>, {
|
|
287
163
|
freezeAccount: 'freezeTarget';
|
|
288
164
|
reKeyTo: 'rekeyTo';
|
|
@@ -312,28 +188,6 @@ export declare function makeAssetFreezeTxnWithSuggestedParamsFromObject(o: Expan
|
|
|
312
188
|
* @param rekeyTo - rekeyTo address, optional
|
|
313
189
|
*/
|
|
314
190
|
export declare function makeAssetTransferTxnWithSuggestedParams(from: AssetTransferTxn['from'], to: AssetTransferTxn['to'], closeRemainderTo: AssetTransferTxn['closeRemainderTo'], revocationTarget: AssetTransferTxn['assetRevocationTarget'], amount: AssetTransferTxn['amount'], note: AssetTransferTxn['note'], assetIndex: AssetTransferTxn['assetIndex'], suggestedParams: MustHaveSuggestedParams<AssetTransferTxn>['suggestedParams'], rekeyTo?: AssetTransferTxn['reKeyTo']): txnBuilder.Transaction;
|
|
315
|
-
/** makeAssetTransferTxn allows for the creation of an asset transfer transaction.
|
|
316
|
-
* Special case: to begin accepting assets, set amount=0 and from=to.
|
|
317
|
-
*
|
|
318
|
-
* @param from - string representation of Algorand address of sender
|
|
319
|
-
* @param to - string representation of Algorand address of asset recipient
|
|
320
|
-
* @param closeRemainderTo - optional - string representation of Algorand address - if provided,
|
|
321
|
-
* send all remaining assets after transfer to the "closeRemainderTo" address and close "from"'s asset holdings
|
|
322
|
-
* @param revocationTarget - optional - string representation of Algorand address - if provided,
|
|
323
|
-
* and if "from" is the asset's revocation manager, then deduct from "revocationTarget" rather than "from"
|
|
324
|
-
* @param fee - integer fee per byte, in microAlgos. for a flat fee, overwrite the fee property on the returned object
|
|
325
|
-
* If the final calculated fee is lower than the protocol minimum fee, the fee will be increased to match the minimum.
|
|
326
|
-
* @param amount - integer amount of assets to send
|
|
327
|
-
* @param firstRound - integer first protocol round on which this txn is valid
|
|
328
|
-
* @param lastRound - integer last protocol round on which this txn is valid
|
|
329
|
-
* @param note - uint8array of arbitrary data for sender to store
|
|
330
|
-
* @param genesisHash - string specifies hash genesis block of network in use
|
|
331
|
-
* @param genesisID - string specifies genesis ID of network in use
|
|
332
|
-
* @param assetIndex - int asset index uniquely specifying the asset
|
|
333
|
-
* @param rekeyTo - rekeyTo address, optional
|
|
334
|
-
* @Deprecated in version 2.0 this will change to use the "WithSuggestedParams" signature.
|
|
335
|
-
*/
|
|
336
|
-
export declare function makeAssetTransferTxn(from: AssetTransferTxn['from'], to: AssetTransferTxn['to'], closeRemainderTo: AssetTransferTxn['closeRemainderTo'], revocationTarget: AssetTransferTxn['assetRevocationTarget'], fee: MustHaveSuggestedParamsInline<AssetTransferTxn>['fee'], amount: AssetTransferTxn['amount'], firstRound: MustHaveSuggestedParamsInline<AssetTransferTxn>['firstRound'], lastRound: MustHaveSuggestedParamsInline<AssetTransferTxn>['lastRound'], note: AssetTransferTxn['note'], genesisHash: MustHaveSuggestedParamsInline<AssetTransferTxn>['genesisHash'], genesisID: MustHaveSuggestedParamsInline<AssetTransferTxn>['genesisID'], assetIndex: AssetTransferTxn['assetIndex'], rekeyTo?: AssetTransferTxn['reKeyTo']): txnBuilder.Transaction;
|
|
337
191
|
export declare function makeAssetTransferTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AssetTransferTxn>, {
|
|
338
192
|
assetRevocationTarget: 'revocationTarget';
|
|
339
193
|
reKeyTo: 'rekeyTo';
|
|
@@ -292,21 +292,6 @@ export interface EncodedMultisig {
|
|
|
292
292
|
*/
|
|
293
293
|
subsig: EncodedSubsig[];
|
|
294
294
|
}
|
|
295
|
-
/**
|
|
296
|
-
* An encoded multisig blob that contains the encoded multisig as well as a copy of the encoded transaction
|
|
297
|
-
*
|
|
298
|
-
* @deprecated Use EncodedSignedTransaction instead.
|
|
299
|
-
*/
|
|
300
|
-
export interface EncodedMultisigBlob {
|
|
301
|
-
/**
|
|
302
|
-
* Encoded multisig
|
|
303
|
-
*/
|
|
304
|
-
msig: EncodedMultisig;
|
|
305
|
-
/**
|
|
306
|
-
* Encoded transaction
|
|
307
|
-
*/
|
|
308
|
-
txn: EncodedTransaction;
|
|
309
|
-
}
|
|
310
295
|
export interface EncodedLogicSig {
|
|
311
296
|
l: Uint8Array;
|
|
312
297
|
arg?: Uint8Array[];
|
package/package.json
CHANGED
|
@@ -69,8 +69,8 @@ export default class AlgodClient extends ServiceClient {
|
|
|
69
69
|
| AlgodTokenHeader
|
|
70
70
|
| CustomTokenHeader
|
|
71
71
|
| BaseHTTPClient,
|
|
72
|
-
baseServer
|
|
73
|
-
port
|
|
72
|
+
baseServer: string,
|
|
73
|
+
port?: string | number,
|
|
74
74
|
headers: Record<string, string> = {}
|
|
75
75
|
) {
|
|
76
76
|
super('X-Algo-API-Token', tokenOrBaseClient, baseServer, port, headers);
|