-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding LoadAccountWithPrivateKey, GetTransactionDetailsWithWait, Call…
… and some other helper methods (#21)
- Loading branch information
1 parent
785e2c5
commit b19fb5e
Showing
5 changed files
with
159 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package near | ||
|
||
// Transaction execution status | ||
type TxExecutionStatus string | ||
|
||
const ( | ||
// Transaction is waiting to be included into the block | ||
TxExecutionStatus_None TxExecutionStatus = "NONE" | ||
// Transaction is included into the block. The block may be not finalised yet | ||
TxExecutionStatus_Included TxExecutionStatus = "INCLUDED" | ||
// Transaction is included into the block + | ||
// All non-refund transaction receipts finished their execution. | ||
// The corresponding blocks for tx and each receipt may be not finalised yet | ||
TxExecutionStatus_ExecutedOptimistic TxExecutionStatus = "EXECUTED_OPTIMISTIC" | ||
// Transaction is included into finalised block | ||
TxExecutionStatus_IncludedFinal TxExecutionStatus = "INCLUDED_FINAL" | ||
// Transaction is included into finalised block + | ||
// All non-refund transaction receipts finished their execution. | ||
// The corresponding blocks for each receipt may be not finalised yet | ||
TxExecutionStatus_Executed TxExecutionStatus = "EXECUTED" | ||
// Transaction is included into finalised block + | ||
// Execution of all transaction receipts is finalised, including refund receipts | ||
TxExecutionStatus_Final TxExecutionStatus = "FINAL" | ||
|
||
TxExecutionStatus_Default = TxExecutionStatus_ExecutedOptimistic | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters