@@ -47,8 +47,8 @@ func (w *Wallet) CreateAccountFromInput(transactionName string, inputName string
47
47
WithCommitmentInput (& iotago.CommitmentInput {
48
48
CommitmentID : w .Node .Protocol .Engines .Main .Get ().Storage .Settings ().LatestCommitment ().Commitment ().MustID (),
49
49
}),
50
- WithInputs (utxoledger. Outputs { input } ),
51
- WithOutputs (outputStates ),
50
+ WithInputs (input ),
51
+ WithOutputs (outputStates ... ),
52
52
)
53
53
54
54
// register the outputs in the recipient wallet (so wallet doesn't have to scan for outputs on its addresses)
@@ -93,8 +93,8 @@ func (w *Wallet) CreateDelegationFromInput(transactionName string, inputName str
93
93
WithCommitmentInput (& iotago.CommitmentInput {
94
94
CommitmentID : w .Node .Protocol .Engines .Main .Get ().Storage .Settings ().LatestCommitment ().Commitment ().MustID (),
95
95
}),
96
- WithInputs (utxoledger. Outputs { input } ),
97
- WithOutputs (outputStates ),
96
+ WithInputs (input ),
97
+ WithOutputs (outputStates ... ),
98
98
WithAllotAllManaToAccount (w .currentSlot , w .BlockIssuer .AccountID ),
99
99
)
100
100
@@ -165,8 +165,8 @@ func (w *Wallet) DelayedClaimingTransition(transactionName string, inputName str
165
165
WithCommitmentInput (& iotago.CommitmentInput {
166
166
CommitmentID : w .Node .Protocol .Engines .Main .Get ().Storage .Settings ().LatestCommitment ().Commitment ().MustID (),
167
167
}),
168
- WithInputs (utxoledger. Outputs { input } ),
169
- WithOutputs (iotago. Outputs [iotago. Output ]{ delegationOutput } ),
168
+ WithInputs (input ),
169
+ WithOutputs (delegationOutput ),
170
170
)
171
171
172
172
return signedTransaction
@@ -195,7 +195,7 @@ func (w *Wallet) TransitionAccount(transactionName string, inputName string, opt
195
195
WithCommitmentInput (& iotago.CommitmentInput {
196
196
CommitmentID : w .Node .Protocol .Engines .Main .Get ().Storage .Settings ().LatestCommitment ().Commitment ().MustID (),
197
197
}),
198
- WithOutputs (iotago. Outputs [iotago. Output ]{ accountOutput } ),
198
+ WithOutputs (accountOutput ),
199
199
)
200
200
201
201
return signedTransaction
@@ -226,7 +226,7 @@ func (w *Wallet) DestroyAccount(transactionName string, inputName string) *iotag
226
226
CommitmentID : w .Node .Protocol .Engines .Main .Get ().Storage .Settings ().LatestCommitment ().Commitment ().MustID (),
227
227
}),
228
228
WithAccountInput (input ),
229
- WithOutputs (destructionOutputs ),
229
+ WithOutputs (destructionOutputs ... ),
230
230
)
231
231
232
232
return signedTransaction
@@ -256,8 +256,8 @@ func (w *Wallet) CreateImplicitAccountFromInput(transactionName string, inputNam
256
256
257
257
signedTransaction := w .createSignedTransactionWithOptions (
258
258
transactionName ,
259
- WithInputs (utxoledger. Outputs { input } ),
260
- WithOutputs (iotago. Outputs [iotago. Output ]{ implicitAccountOutput , remainderBasicOutput } ),
259
+ WithInputs (input ),
260
+ WithOutputs (implicitAccountOutput , remainderBasicOutput ),
261
261
)
262
262
263
263
// register the outputs in the recipient wallet (so wallet doesn't have to scan for outputs on its addresses)
@@ -294,8 +294,8 @@ func (w *Wallet) TransitionImplicitAccountToAccountOutput(transactionName string
294
294
WithCommitmentInput (& iotago.CommitmentInput {
295
295
CommitmentID : w .Node .Protocol .Engines .Main .Get ().Storage .Settings ().LatestCommitment ().Commitment ().MustID (),
296
296
}),
297
- WithInputs (utxoledger. Outputs { input } ),
298
- WithOutputs (iotago. Outputs [iotago. Output ]{ accountOutput } ),
297
+ WithInputs (input ),
298
+ WithOutputs (accountOutput ),
299
299
WithAllotAllManaToAccount (w .currentSlot , implicitAccountID ),
300
300
)
301
301
@@ -339,8 +339,8 @@ func (w *Wallet) CreateBasicOutputsEquallyFromInput(transactionName string, outp
339
339
340
340
signedTransaction := w .createSignedTransactionWithOptions (
341
341
transactionName ,
342
- WithInputs (utxoledger. Outputs { inputState } ),
343
- WithOutputs (outputStates ),
342
+ WithInputs (inputState ),
343
+ WithOutputs (outputStates ... ),
344
344
)
345
345
346
346
return signedTransaction
@@ -365,7 +365,7 @@ func (w *Wallet) RemoveFeatureFromAccount(featureType iotago.FeatureType, transa
365
365
WithCommitmentInput (& iotago.CommitmentInput {
366
366
CommitmentID : w .Node .Protocol .Engines .Main .Get ().Storage .Settings ().LatestCommitment ().Commitment ().MustID (),
367
367
}),
368
- WithOutputs (iotago. Outputs [iotago. Output ]{ accountOutput } ),
368
+ WithOutputs (accountOutput ),
369
369
)
370
370
371
371
return signedTransaction
@@ -393,8 +393,8 @@ func (w *Wallet) SendFundsToWallet(transactionName string, receiverWallet *Walle
393
393
394
394
signedTransaction := w .createSignedTransactionWithOptions (
395
395
transactionName ,
396
- WithInputs (inputStates ),
397
- WithOutputs (iotago. Outputs [iotago. Output ]{ targetOutput } ),
396
+ WithInputs (inputStates ... ),
397
+ WithOutputs (targetOutput ),
398
398
)
399
399
400
400
receiverWallet .registerOutputs (transactionName , signedTransaction .Transaction )
@@ -425,8 +425,8 @@ func (w *Wallet) SendFundsToAccount(transactionName string, accountID iotago.Acc
425
425
426
426
signedTransaction := w .createSignedTransactionWithOptions (
427
427
transactionName ,
428
- WithInputs (inputStates ),
429
- WithOutputs (iotago. Outputs [iotago. Output ]{ targetOutput } ),
428
+ WithInputs (inputStates ... ),
429
+ WithOutputs (targetOutput ),
430
430
)
431
431
432
432
w .registerOutputs (transactionName , signedTransaction .Transaction )
@@ -465,14 +465,14 @@ func (w *Wallet) SendFundsFromAccount(transactionName string, accountOutputName
465
465
}}
466
466
signedTransaction := w .createSignedTransactionWithOptions (
467
467
transactionName ,
468
- WithInputs (inputStates ),
468
+ WithInputs (inputStates ... ),
469
469
WithCommitmentInput (& iotago.CommitmentInput {
470
470
CommitmentID : commitmentID ,
471
471
}),
472
472
WithBlockIssuanceCreditInput (& iotago.BlockIssuanceCreditInput {
473
473
AccountID : accountOutput .AccountID ,
474
474
}),
475
- WithOutputs (targetOutputs ),
475
+ WithOutputs (targetOutputs ... ),
476
476
)
477
477
478
478
w .registerOutputs (transactionName , signedTransaction .Transaction )
@@ -522,7 +522,7 @@ func (w *Wallet) ClaimValidatorRewards(transactionName string, inputName string)
522
522
WithCommitmentInput (& iotago.CommitmentInput {
523
523
CommitmentID : w .Node .Protocol .Engines .Main .Get ().Storage .Settings ().LatestCommitment ().Commitment ().MustID (),
524
524
}),
525
- WithOutputs (iotago. Outputs [iotago. Output ]{ accountOutput } ),
525
+ WithOutputs (accountOutput ),
526
526
)
527
527
528
528
return signedTransaction
@@ -561,8 +561,8 @@ func (w *Wallet) AllotManaFromInputs(transactionName string, allotments iotago.A
561
561
signedTransaction := w .createSignedTransactionWithOptions (
562
562
transactionName ,
563
563
WithAllotments (allotments ),
564
- WithInputs (inputStates ),
565
- WithOutputs (outputStates ),
564
+ WithInputs (inputStates ... ),
565
+ WithOutputs (outputStates ... ),
566
566
)
567
567
568
568
w .registerOutputs (transactionName , signedTransaction .Transaction )
@@ -614,15 +614,15 @@ func (w *Wallet) ClaimDelegatorRewards(transactionName string, inputName string)
614
614
615
615
signedTransaction := w .createSignedTransactionWithOptions (
616
616
transactionName ,
617
- WithInputs (utxoledger. Outputs { input } ),
617
+ WithInputs (input ),
618
618
WithRewardInput (
619
619
& iotago.RewardInput {Index : 0 },
620
620
rewardMana ,
621
621
),
622
622
WithCommitmentInput (& iotago.CommitmentInput {
623
623
CommitmentID : w .Node .Protocol .Engines .Main .Get ().Storage .Settings ().LatestCommitment ().Commitment ().MustID (),
624
624
}),
625
- WithOutputs (outputStates ),
625
+ WithOutputs (outputStates ... ),
626
626
)
627
627
628
628
return signedTransaction
@@ -643,7 +643,7 @@ func (w *Wallet) AllotManaToWallet(transactionName string, inputName string, rec
643
643
644
644
signedTransaction := w .createSignedTransactionWithOptions (
645
645
transactionName ,
646
- WithInputs (utxoledger. Outputs { input } ),
646
+ WithInputs (input ),
647
647
WithAllotAllManaToAccount (w .currentSlot , recipientWallet .BlockIssuer .AccountID ),
648
648
)
649
649
@@ -659,8 +659,8 @@ func (w *Wallet) CreateNFTFromInput(transactionName string, inputName string, op
659
659
660
660
return w .createSignedTransactionWithOptions (
661
661
transactionName ,
662
- WithInputs (utxoledger. Outputs { input } ),
663
- WithOutputs (iotago. Outputs [iotago. Output ]{ nftOutput } ),
662
+ WithInputs (input ),
663
+ WithOutputs (nftOutput ),
664
664
WithAllotAllManaToAccount (w .currentSlot , w .BlockIssuer .AccountID ),
665
665
)
666
666
}
@@ -696,8 +696,8 @@ func (w *Wallet) CreateNativeTokenFromInput(transactionName string, inputName st
696
696
697
697
return w .createSignedTransactionWithOptions (
698
698
transactionName ,
699
- WithInputs (utxoledger. Outputs { accountOutput , input } ),
700
- WithOutputs (iotago. Outputs [iotago. Output ]{ accTransitionOutput , foundryOutput } ),
699
+ WithInputs (accountOutput , input ),
700
+ WithOutputs (accTransitionOutput , foundryOutput ),
701
701
WithBlockIssuanceCreditInput (& iotago.BlockIssuanceCreditInput {
702
702
AccountID : accID ,
703
703
}),
@@ -723,8 +723,9 @@ func (w *Wallet) TransitionNFTWithTransactionOpts(transactionName string, inputN
723
723
724
724
return w .createSignedTransactionWithOptions (
725
725
transactionName ,
726
- append (opts , WithInputs (utxoledger.Outputs {input }),
727
- WithOutputs (iotago.Outputs [iotago.Output ]{nftOutput }),
726
+ append (opts ,
727
+ WithInputs (input ),
728
+ WithOutputs (nftOutput ),
728
729
WithAllotAllManaToAccount (w .currentSlot , w .BlockIssuer .AccountID ))... ,
729
730
)
730
731
}
0 commit comments