Skip to content

Commit

Permalink
Updated tests, checked metamask with basic transaction and it is work…
Browse files Browse the repository at this point in the history
…ing, need to build a contract TX example
  • Loading branch information
Sterling Long committed Jul 11, 2023
1 parent fcadff4 commit 38e2554
Show file tree
Hide file tree
Showing 21 changed files with 916 additions and 714 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
## 2.0.13

- Made message in json response nullable to resolve issues with rejection messages

- Updated readme, added events to RequiredNamespace
- Swapped to `freezed` for all models
- Resolved issue with non-null resources for auth throwing errors

## 2.0.12

Expand Down
4 changes: 4 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,9 @@ linter:
prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
constant_identifier_names: false

analyzer:
errors:
invalid_annotation_target: ignore

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
44 changes: 44 additions & 0 deletions example/dapp/lib/models/eth/ethereum_transaction.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 55 additions & 0 deletions example/dapp/lib/models/solana/solana_sign_transaction.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions example/dapp/lib/utils/crypto/chain_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ class ChainData {
// "https://solana-api.projectserum.com",
// ],
// ),
ChainMetadata(
type: ChainType.kadena,
chainId: 'kadena:mainnet01',
name: 'Kadena',
logo: 'TODO',
color: Colors.purple.shade600,
rpc: [
"https://api.testnet.chainweb.com",
],
),
// ChainMetadata(
// type: ChainType.kadena,
// chainId: 'kadena:mainnet01',
// name: 'Kadena',
// logo: 'TODO',
// color: Colors.purple.shade600,
// rpc: [
// "https://api.testnet.chainweb.com",
// ],
// ),
];

static final List<ChainMetadata> testChains = [
Expand Down
5 changes: 2 additions & 3 deletions example/dapp/lib/utils/crypto/helpers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import 'package:flutter/material.dart';
import 'package:walletconnect_flutter_v2_dapp/models/chain_metadata.dart';
import 'package:walletconnect_flutter_v2_dapp/utils/crypto/chain_data.dart';
import 'package:walletconnect_flutter_v2_dapp/utils/crypto/eip155.dart';
import 'package:walletconnect_flutter_v2_dapp/utils/crypto/kadena.dart';
import 'package:walletconnect_flutter_v2_dapp/utils/crypto/solana_data.dart';

String getChainName(String chain) {
Expand Down Expand Up @@ -32,7 +31,7 @@ List<String> getChainMethods(ChainType value) {
if (value == ChainType.solana) {
return SolanaData.methods.values.toList();
} else if (value == ChainType.kadena) {
return Kadena.methods.values.toList();
return EIP155.methods.values.toList(); //Kadena.methods.values.toList();
} else {
return EIP155.methods.values.toList();
}
Expand All @@ -42,7 +41,7 @@ List<String> getChainEvents(ChainType value) {
if (value == ChainType.solana) {
return SolanaData.events.values.toList();
} else if (value == ChainType.kadena) {
return Kadena.events.values.toList();
return EIP155.events.values.toList(); //Kadena.events.values.toList();
} else {
return EIP155.events.values.toList();
}
Expand Down
Loading

0 comments on commit 38e2554

Please sign in to comment.