File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,8 @@ export abstract class BaseCosmosTxBuilder<SignDoc>
145145 timeoutHeight : options ?. timeoutHeight ?. value ,
146146 extensionOptions : options ?. extensionOptions ,
147147 nonCriticalExtensionOptions : options ?. nonCriticalExtensionOptions ,
148+ timeoutTimestamp : options ?. timeoutTimestamp ?. value ,
149+ unordered : options ?. unordered ?? false ,
148150 } ) ;
149151 return {
150152 txBody,
Original file line number Diff line number Diff line change @@ -137,6 +137,11 @@ export interface TimeoutHeightOption {
137137 value : bigint ;
138138}
139139
140+ export interface TimeoutTimestampOption {
141+ type : 'absolute' ;
142+ value : Date ;
143+ }
144+
140145export type TxOptions = {
141146 /**
142147 * timeout is the block height after which this transaction will not
@@ -147,6 +152,17 @@ export type TxOptions = {
147152 * - type `absolute`: this.value = TxBody.timeoutHeight
148153 */
149154 timeoutHeight ?: TimeoutHeightOption ;
155+ /**
156+ * timeoutTimestamp is the time after which this transaction will not
157+ * be processed by the chain; for use with unordered transactions.
158+ */
159+ timeoutTimestamp ?: TimeoutTimestampOption ;
160+ /**
161+ * unordered is set to true when the transaction is not ordered.
162+ * Note: this requires the timeoutTimestamp to be set
163+ * and the sequence to be set to 0
164+ */
165+ unordered ?: boolean ;
150166 /**
151167 * extension_options are arbitrary options that can be added by chains
152168 * when the default options are not sufficient. If any of these are present
You can’t perform that action at this time.
0 commit comments