mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-18 12:44:19 +01:00
Add support for Out Of Round txs (#359)
* [common] rework address encoding * new address encoding * replace offchain address by vtxo output key in DB * merge migrations files into init one * fix txbuilder fixtures * fix transaction events * OOR scheme * fix conflicts * [sdk] OOR * update WASM wrappers * revert renaming * revert API changes * update parser.go * fix vtxosToTxsCovenantless * add settled and spent in Utxo and Transaction * Fixes (#5) * Revert unneeded changes and rename claim to settle * Revert changes to wasm and rename claim to settle --------- Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com>
This commit is contained in:
@@ -39,7 +39,7 @@ func main() {
|
||||
&configCommand,
|
||||
&dumpCommand,
|
||||
&receiveCommand,
|
||||
&claimCmd,
|
||||
&settleCmd,
|
||||
&sendCommand,
|
||||
&balanceCommand,
|
||||
&redeemCommand,
|
||||
@@ -160,11 +160,11 @@ var (
|
||||
return receive(ctx)
|
||||
},
|
||||
}
|
||||
claimCmd = cli.Command{
|
||||
Name: "claim",
|
||||
Usage: "Claim onboarding funds or pending payments",
|
||||
settleCmd = cli.Command{
|
||||
Name: "settle",
|
||||
Usage: "Settle onboarding funds or oor payments",
|
||||
Action: func(ctx *cli.Context) error {
|
||||
return claim(ctx)
|
||||
return settle(ctx)
|
||||
},
|
||||
Flags: []cli.Flag{passwordFlag},
|
||||
}
|
||||
@@ -266,7 +266,7 @@ func receive(ctx *cli.Context) error {
|
||||
})
|
||||
}
|
||||
|
||||
func claim(ctx *cli.Context) error {
|
||||
func settle(ctx *cli.Context) error {
|
||||
password, err := readPassword(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
@@ -275,7 +275,7 @@ func claim(ctx *cli.Context) error {
|
||||
return err
|
||||
}
|
||||
|
||||
txID, err := arkSdkClient.Claim(ctx.Context)
|
||||
txID, err := arkSdkClient.Settle(ctx.Context)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user