-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create and sign xts in dart #1626
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
ab58e17
[service/tx] add naive implementation of txbuilder
clangenb 5f92388
add multiaddress extensions for keys
clangenb 3af19a3
[service/tx] rename TxApi to TxBuilder
clangenb ab13ede
[service/tx] try to send tx with dart generate code, tx-validation fa…
clangenb 775117f
[service/tx] verify that encoded call ist correct.
clangenb 37bfd00
[service/tx] rename our extrinsic type to opaque extrinsic
clangenb 49c6fa5
change branch of our polkadart for
clangenb c21a088
[tx_builder] minor fix and successfully send a tx with native currency
clangenb 30222a3
bump polkadart
clangenb b742ba5
[tx_dart_test] fix variable naming warning
clangenb 45b3ac0
bump lock file
clangenb ac7cd1a
fix redundant community identifier definition
clangenb dbd1edb
[send_tx_dart_test] try to pay with community currency, currently fai…
clangenb 215c78c
bump polkadart now we can pay with community currency
clangenb 96f9b8f
[service/tx] rename submitToJs to `submitTxInner`
clangenb 80b68bc
wip strongly type whole extrinsic send process
clangenb 0a1efa7
[service/tx] extract all tx notification constructors and remove extr…
clangenb 7094076
[service/tx] fix correct cid type in claim rewards
clangenb 13afc5c
[service/tx] use new way for submitClaimRewards and unregisterPartici…
clangenb 6805036
[service/tx] `submitRegisterParticipant` now uses the new way
clangenb 06c28cc
[service/tx] `submitAttestAttendees` now uses the new way
clangenb d54a19a
[service/tx] `submitFaucetDrip` now uses the new way
clangenb 1a052d8
[service/tx] `submitEncointerBalance` uses now the dart way
clangenb 6453ee6
[service/tx] fix `submitEndorseNewcomer` type error
clangenb d6d3412
[service/tx] next phase sudo works
clangenb f8bb1d5
[service/tx] reap voucher uses now the dart way
clangenb bdc632f
fmt
clangenb afd4b32
[service/tx] remove unused showStatusSnackBar param
clangenb e3d8da9
[service/tx] remove dead `TxApi`
clangenb b99b628
[service/tx] remove obsolete todo
clangenb 65f8ac5
[service/tx] better error handling
clangenb 79782ac
[service/tx] extract `getExtrinsicReport` from the extrinsic callback
clangenb 12f74f7
[service/tx] added issue number for catching exception in extrinsic c…
clangenb 401051d
[service/tx] fix punctuation in doc
clangenb f37976d
[service/tx] fix conflicting tuple implementation
clangenb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
|
@@ -17,14 +17,14 @@ class FaucetListTile extends StatefulWidget { | |
this.store, { | ||
super.key, | ||
required this.userAddress, | ||
required this.faucetAccount, | ||
required this.faucetPubKey, | ||
required this.faucet, | ||
}); | ||
|
||
final AppStore store; | ||
|
||
final String userAddress; | ||
final String faucetAccount; | ||
final String faucetPubKey; | ||
final Faucet faucet; | ||
|
||
@override | ||
|
@@ -79,7 +79,11 @@ class _FaucetListTileState extends State<FaucetListTile> { | |
if (snapshot.data!.isNotEmpty) { | ||
return SubmitButtonSmall( | ||
onPressed: (context) async { | ||
await _submitFaucetDripTxs(context, snapshot.data!, widget.faucetAccount); | ||
await _submitFaucetDripTxs( | ||
context, | ||
snapshot.data!, | ||
widget.faucetPubKey, | ||
); | ||
future = _getUncommittedReputationIds(widget.userAddress); | ||
nativeBalance = getNativeFreeBalance(widget.userAddress); | ||
setState(() {}); | ||
|
@@ -130,8 +134,18 @@ class _FaucetListTileState extends State<FaucetListTile> { | |
Map<int, CommunityIdentifier> ids, | ||
String faucetAccount, | ||
) async { | ||
final store = widget.store; | ||
final e = ids.entries.first; | ||
return submitFaucetDrip(context, widget.store, webApi, faucetAccount, e.value, e.key); | ||
return submitFaucetDrip( | ||
context, | ||
store, | ||
webApi, | ||
store.account.getKeyringAccount(store.account.currentAccountPubKey!), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We now submit the signer, this will make it easier to implement #1469. |
||
faucetAccount, | ||
e.value, | ||
e.key, | ||
txPaymentAsset: store.encointer.getTxPaymentAsset(store.encointer.chosenCid), | ||
); | ||
} | ||
|
||
Future<BigInt> getNativeFreeBalance(String address) async { | ||
|
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was unnecessary, we now change the state to submitting after checking the pin, this makes it easier.