Skip to content

Commit

Permalink
chore: cleanup obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
randomshinichi committed Apr 30, 2019
1 parent 1c17e40 commit 053837c
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions aeternity/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,6 @@ func waitForTransaction(nodeClient *apiclient.Node, txHash string) (blockHeight
return
}

// // SpendTxStr creates an unsigned SpendTx but returns the base64 representation instead of an RLP bytestring
// func SpendTxStr(sender, recipient string, amount, fee utils.BigInt, message string, txTTL, accountNonce uint64) (base64Tx string, err error) {
// rlpUnsignedTx, err := NewSpendTx(sender, recipient, amount, fee, message, txTTL, accountNonce)
// if err != nil {
// return
// }

// base64Tx = Encode(PrefixTransaction, rlpUnsignedTx)

// return base64Tx, err
// }

// BroadcastTransaction recalculates the transaction hash and sends the transaction to the node.
func (ae *Ae) BroadcastTransaction(txSignedBase64 string) (err error) {
// Get back to RLP to calculate txhash
Expand Down Expand Up @@ -186,16 +174,6 @@ func (n *Aens) NameUpdateTx(name string, targetAddress string) (tx NameUpdateTx,
return
}

// // OracleRegisterTxStr register an oracle
// func (o *Oracle) OracleRegisterTxStr(accountNonce uint64, querySpec, responseSpec string, queryFee utils.BigInt, oracleTTLType, oracleTTLValue, abiVersion uint64, txFee utils.BigInt, txTTL uint64) (tx string, err error) {
// txRaw, err := OracleRegisterTx(o.owner.Address, accountNonce, querySpec, responseSpec, Config.Client.Oracles.QueryFee, oracleTTLType, oracleTTLValue, Config.Client.Oracles.VMVersion, txFee, txTTL)
// if err != nil {
// return "", err
// }
// tx = Encode(PrefixTransaction, txRaw)
// return
// }

// PrintGenerationByHeight utility function to print a generation by it's height
func (ae *Ae) PrintGenerationByHeight(height uint64) {
p := external.NewGetGenerationByHeightParams().WithHeight(height)
Expand Down

0 comments on commit 053837c

Please sign in to comment.