Skip to content

Commit d16704f

Browse files
committed
feat(transaction): Added fee override
1 parent 0ea9352 commit d16704f

15 files changed

+151
-26
lines changed

docs/code/interfaces/types_app.AppCallParams.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ The sending configuration for a transaction
1919
- [appId](types_app.AppCallParams.md#appid)
2020
- [args](types_app.AppCallParams.md#args)
2121
- [callType](types_app.AppCallParams.md#calltype)
22+
- [fee](types_app.AppCallParams.md#fee)
2223
- [from](types_app.AppCallParams.md#from)
2324
- [maxFee](types_app.AppCallParams.md#maxfee)
2425
- [maxRoundsToWaitForConfirmation](types_app.AppCallParams.md#maxroundstowaitforconfirmation)
@@ -66,6 +67,22 @@ The type of call, everything except create (@see createApp ) and update (@see up
6667

6768
___
6869

70+
### fee
71+
72+
`Optional` **fee**: [`AlgoAmount`](../classes/types_amount.AlgoAmount.md)
73+
74+
The flat fee you want to pay, useful for covering extra fees in a transaction group or app call
75+
76+
#### Inherited from
77+
78+
[SendTransactionParams](types_transaction.SendTransactionParams.md).[fee](types_transaction.SendTransactionParams.md#fee)
79+
80+
#### Defined in
81+
82+
[types/transaction.ts:32](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L32)
83+
84+
___
85+
6986
### from
7087

7188
**from**: [`SendTransactionFrom`](../modules/types_transaction.md#sendtransactionfrom)
@@ -90,7 +107,7 @@ The maximum fee that you are happy to pay (default: unbounded) - if this is set
90107

91108
#### Defined in
92109

93-
[types/transaction.ts:32](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L32)
110+
[types/transaction.ts:34](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L34)
94111

95112
___
96113

@@ -106,7 +123,7 @@ The maximum number of rounds to wait for confirmation, only applies if `skipWait
106123

107124
#### Defined in
108125

109-
[types/transaction.ts:34](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L34)
126+
[types/transaction.ts:36](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L36)
110127

111128
___
112129

docs/code/interfaces/types_app.AppCallTransactionResult.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The response if the transaction was sent and waited for
3434

3535
#### Defined in
3636

37-
[types/transaction.ts:42](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L42)
37+
[types/transaction.ts:44](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L44)
3838

3939
___
4040

@@ -62,4 +62,4 @@ The transaction
6262

6363
#### Defined in
6464

65-
[types/transaction.ts:40](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L40)
65+
[types/transaction.ts:42](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L42)

docs/code/interfaces/types_app.AppDeploymentParams.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ The parameters to deploy an app
2222
- [deleteArgs](types_app.AppDeploymentParams.md#deleteargs)
2323
- [deployTimeParameters](types_app.AppDeploymentParams.md#deploytimeparameters)
2424
- [existingDeployments](types_app.AppDeploymentParams.md#existingdeployments)
25+
- [fee](types_app.AppDeploymentParams.md#fee)
2526
- [from](types_app.AppDeploymentParams.md#from)
2627
- [maxFee](types_app.AppDeploymentParams.md#maxfee)
2728
- [maxRoundsToWaitForConfirmation](types_app.AppDeploymentParams.md#maxroundstowaitforconfirmation)
@@ -115,6 +116,22 @@ Optional cached value of the existing apps for the given creator
115116

116117
___
117118

119+
### fee
120+
121+
`Optional` **fee**: [`AlgoAmount`](../classes/types_amount.AlgoAmount.md)
122+
123+
The flat fee you want to pay, useful for covering extra fees in a transaction group or app call
124+
125+
#### Inherited from
126+
127+
Omit.fee
128+
129+
#### Defined in
130+
131+
[types/transaction.ts:32](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L32)
132+
133+
___
134+
118135
### from
119136

120137
**from**: [`SendTransactionFrom`](../modules/types_transaction.md#sendtransactionfrom)
@@ -143,7 +160,7 @@ Omit.maxFee
143160

144161
#### Defined in
145162

146-
[types/transaction.ts:32](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L32)
163+
[types/transaction.ts:34](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L34)
147164

148165
___
149166

@@ -159,7 +176,7 @@ Omit.maxRoundsToWaitForConfirmation
159176

160177
#### Defined in
161178

162-
[types/transaction.ts:34](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L34)
179+
[types/transaction.ts:36](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L36)
163180

164181
___
165182

docs/code/interfaces/types_app.CreateAppParams.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Parameters that are passed in when creating an app.
1919
- [approvalProgram](types_app.CreateAppParams.md#approvalprogram)
2020
- [args](types_app.CreateAppParams.md#args)
2121
- [clearStateProgram](types_app.CreateAppParams.md#clearstateprogram)
22+
- [fee](types_app.CreateAppParams.md#fee)
2223
- [from](types_app.CreateAppParams.md#from)
2324
- [maxFee](types_app.CreateAppParams.md#maxfee)
2425
- [maxRoundsToWaitForConfirmation](types_app.CreateAppParams.md#maxroundstowaitforconfirmation)
@@ -79,6 +80,22 @@ CreateOrUpdateAppParams.clearStateProgram
7980

8081
___
8182

83+
### fee
84+
85+
`Optional` **fee**: [`AlgoAmount`](../classes/types_amount.AlgoAmount.md)
86+
87+
The flat fee you want to pay, useful for covering extra fees in a transaction group or app call
88+
89+
#### Inherited from
90+
91+
CreateOrUpdateAppParams.fee
92+
93+
#### Defined in
94+
95+
[types/transaction.ts:32](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L32)
96+
97+
___
98+
8299
### from
83100

84101
**from**: [`SendTransactionFrom`](../modules/types_transaction.md#sendtransactionfrom)
@@ -107,7 +124,7 @@ CreateOrUpdateAppParams.maxFee
107124

108125
#### Defined in
109126

110-
[types/transaction.ts:32](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L32)
127+
[types/transaction.ts:34](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L34)
111128

112129
___
113130

@@ -123,7 +140,7 @@ CreateOrUpdateAppParams.maxRoundsToWaitForConfirmation
123140

124141
#### Defined in
125142

126-
[types/transaction.ts:34](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L34)
143+
[types/transaction.ts:36](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L36)
127144

128145
___
129146

docs/code/interfaces/types_app.UpdateAppParams.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Parameters that are passed in when updating an app.
2020
- [approvalProgram](types_app.UpdateAppParams.md#approvalprogram)
2121
- [args](types_app.UpdateAppParams.md#args)
2222
- [clearStateProgram](types_app.UpdateAppParams.md#clearstateprogram)
23+
- [fee](types_app.UpdateAppParams.md#fee)
2324
- [from](types_app.UpdateAppParams.md#from)
2425
- [maxFee](types_app.UpdateAppParams.md#maxfee)
2526
- [maxRoundsToWaitForConfirmation](types_app.UpdateAppParams.md#maxroundstowaitforconfirmation)
@@ -91,6 +92,22 @@ CreateOrUpdateAppParams.clearStateProgram
9192

9293
___
9394

95+
### fee
96+
97+
`Optional` **fee**: [`AlgoAmount`](../classes/types_amount.AlgoAmount.md)
98+
99+
The flat fee you want to pay, useful for covering extra fees in a transaction group or app call
100+
101+
#### Inherited from
102+
103+
CreateOrUpdateAppParams.fee
104+
105+
#### Defined in
106+
107+
[types/transaction.ts:32](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L32)
108+
109+
___
110+
94111
### from
95112

96113
**from**: [`SendTransactionFrom`](../modules/types_transaction.md#sendtransactionfrom)
@@ -119,7 +136,7 @@ CreateOrUpdateAppParams.maxFee
119136

120137
#### Defined in
121138

122-
[types/transaction.ts:32](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L32)
139+
[types/transaction.ts:34](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L34)
123140

124141
___
125142

@@ -135,7 +152,7 @@ CreateOrUpdateAppParams.maxRoundsToWaitForConfirmation
135152

136153
#### Defined in
137154

138-
[types/transaction.ts:34](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L34)
155+
[types/transaction.ts:36](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L36)
139156

140157
___
141158

docs/code/interfaces/types_transaction.ConfirmedTransactionResult.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The response if the transaction was sent and waited for
3333

3434
#### Defined in
3535

36-
[types/transaction.ts:48](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L48)
36+
[types/transaction.ts:50](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L50)
3737

3838
___
3939

@@ -49,4 +49,4 @@ The transaction
4949

5050
#### Defined in
5151

52-
[types/transaction.ts:40](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L40)
52+
[types/transaction.ts:42](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L42)

docs/code/interfaces/types_transaction.SendTransactionParams.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ The sending configuration for a transaction
1818

1919
### Properties
2020

21+
- [fee](types_transaction.SendTransactionParams.md#fee)
2122
- [maxFee](types_transaction.SendTransactionParams.md#maxfee)
2223
- [maxRoundsToWaitForConfirmation](types_transaction.SendTransactionParams.md#maxroundstowaitforconfirmation)
2324
- [skipSending](types_transaction.SendTransactionParams.md#skipsending)
@@ -26,6 +27,18 @@ The sending configuration for a transaction
2627

2728
## Properties
2829

30+
### fee
31+
32+
`Optional` **fee**: [`AlgoAmount`](../classes/types_amount.AlgoAmount.md)
33+
34+
The flat fee you want to pay, useful for covering extra fees in a transaction group or app call
35+
36+
#### Defined in
37+
38+
[types/transaction.ts:32](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L32)
39+
40+
___
41+
2942
### maxFee
3043

3144
`Optional` **maxFee**: [`AlgoAmount`](../classes/types_amount.AlgoAmount.md)
@@ -34,7 +47,7 @@ The maximum fee that you are happy to pay (default: unbounded) - if this is set
3447

3548
#### Defined in
3649

37-
[types/transaction.ts:32](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L32)
50+
[types/transaction.ts:34](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L34)
3851

3952
___
4053

@@ -46,7 +59,7 @@ The maximum number of rounds to wait for confirmation, only applies if `skipWait
4659

4760
#### Defined in
4861

49-
[types/transaction.ts:34](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L34)
62+
[types/transaction.ts:36](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L36)
5063

5164
___
5265

docs/code/interfaces/types_transaction.SendTransactionResult.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The response if the transaction was sent and waited for
3131

3232
#### Defined in
3333

34-
[types/transaction.ts:42](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L42)
34+
[types/transaction.ts:44](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L44)
3535

3636
___
3737

@@ -43,4 +43,4 @@ The transaction
4343

4444
#### Defined in
4545

46-
[types/transaction.ts:40](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L40)
46+
[types/transaction.ts:42](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L42)

docs/code/interfaces/types_transaction.TransactionToSign.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The account to use to sign the transaction, either an account (with private key
2323

2424
#### Defined in
2525

26-
[types/transaction.ts:58](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L58)
26+
[types/transaction.ts:60](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L60)
2727

2828
___
2929

@@ -35,4 +35,4 @@ The unsigned transaction to sign and send
3535

3636
#### Defined in
3737

38-
[types/transaction.ts:56](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L56)
38+
[types/transaction.ts:58](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L58)

docs/code/interfaces/types_transfer.AlgoTransferParams.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ The sending configuration for a transaction
1717
### Properties
1818

1919
- [amount](types_transfer.AlgoTransferParams.md#amount)
20+
- [fee](types_transfer.AlgoTransferParams.md#fee)
2021
- [from](types_transfer.AlgoTransferParams.md#from)
2122
- [maxFee](types_transfer.AlgoTransferParams.md#maxfee)
2223
- [maxRoundsToWaitForConfirmation](types_transfer.AlgoTransferParams.md#maxroundstowaitforconfirmation)
@@ -41,6 +42,22 @@ The amount to send
4142

4243
___
4344

45+
### fee
46+
47+
`Optional` **fee**: [`AlgoAmount`](../classes/types_amount.AlgoAmount.md)
48+
49+
The flat fee you want to pay, useful for covering extra fees in a transaction group or app call
50+
51+
#### Inherited from
52+
53+
[SendTransactionParams](types_transaction.SendTransactionParams.md).[fee](types_transaction.SendTransactionParams.md#fee)
54+
55+
#### Defined in
56+
57+
[types/transaction.ts:32](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L32)
58+
59+
___
60+
4461
### from
4562

4663
**from**: [`SendTransactionFrom`](../modules/types_transaction.md#sendtransactionfrom)
@@ -65,7 +82,7 @@ The maximum fee that you are happy to pay (default: unbounded) - if this is set
6582

6683
#### Defined in
6784

68-
[types/transaction.ts:32](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L32)
85+
[types/transaction.ts:34](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L34)
6986

7087
___
7188

@@ -81,7 +98,7 @@ The maximum number of rounds to wait for confirmation, only applies if `skipWait
8198

8299
#### Defined in
83100

84-
[types/transaction.ts:34](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L34)
101+
[types/transaction.ts:36](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/transaction.ts#L36)
85102

86103
___
87104

0 commit comments

Comments
 (0)