-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* support ethereum addresses * corrections * add standalone url and ethereum identicons * add moonbeam config * added changes from the old pr * add new config * added dummy rpc method declarations for eth methods * wip fix address add modal * support ethereum addresses * corrections * add standalone url and ethereum identicons * add moonbeam config * added changes from the old pr * add new config * added dummy rpc method declarations for eth methods * wip fix address add modal * wip repair app with new keyring * use isDevelopement false for ethereum * lint * more formatng * eth addresses by default for account creation * added many more types to support moonbeam * added color * add h160 to types and components * add rpc methods to app-config * lint * polish * Update packages/react-params/src/initValue.ts Co-authored-by: Jaco Greeff <jacogr@gmail.com> * Apply suggestions from code review Co-authored-by: Jaco Greeff <jacogr@gmail.com> * mobe to typesBundle * added right type for types declaration * lint * corrected type and removed moobeam specs Co-authored-by: Jaco Greeff <jacogr@gmail.com>
- Loading branch information
1 parent
acd97c0
commit 4ab0781
Showing
5 changed files
with
194 additions
and
102 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
// Copyright 2017-2020 @polkadot/apps-config authors & contributors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import { OverrideBundleDefinition } from "@polkadot/types/types"; | ||
|
||
// structs need to be in order | ||
/* eslint-disable sort-keys */ | ||
|
||
export default { | ||
types: [ | ||
{ | ||
minmax: [0, undefined], | ||
types: { | ||
AccountId: "EthereumAccountId", | ||
Address: "AccountId", | ||
Balance: "u128", | ||
RefCount: "u8", | ||
LookupSource: "AccountId", | ||
Account: { | ||
nonce: "U256", | ||
balance: "u128" | ||
}, | ||
TransactionCondition: { | ||
_enum: { | ||
block: "u64", | ||
time: "u64" | ||
} | ||
}, | ||
Transaction: { | ||
block_hash: "Option<H256>", | ||
block_number: "Option<U256>", | ||
chain_id: "Option<u64>", | ||
condition: "Option<TransactionCondition>", | ||
creates: "Option<H160>", | ||
from: "H160", | ||
gas: "U256", | ||
gas_price: "U256", | ||
hash: "H256", | ||
input: "Bytes", | ||
nonce: "U256", | ||
public_key: "Option<H512>", | ||
r: "U256", | ||
raw: "Bytes", | ||
standard_v: "U256", | ||
to: "Option<H160>", | ||
transaction_index: "Option<U256>", | ||
v: "U256", | ||
value: "U256" | ||
}, | ||
TransactionStatus: { | ||
transaction_hash: "H256", | ||
transaction_index: "u32", | ||
from: "H160", | ||
to: "Option<H160>", | ||
contract_address: "Option<H160>", | ||
logs: "Vec<Log>", | ||
logs_bloom: "Bloom" | ||
}, | ||
Receipt: { | ||
transaction_hash: "Option<H256>", | ||
transaction_index: "Option<U256>", | ||
block_hash: "Option<H256>", | ||
from: "Option<H160>", | ||
to: "Option<H160>", | ||
block_number: "Option<U256>", | ||
cumulative_gas_used: "U256", | ||
gas_used: "Option<U256>", | ||
contract_address: "Option<H160>", | ||
logs: "Vec<Log>", | ||
state_root: "Option<H256>", | ||
logs_bloom: "H2048", | ||
status_code: "Option<U64>" | ||
}, | ||
ExitReason: { | ||
_enum: { | ||
ExitSucceed: "bool", | ||
ExitError: "bool", | ||
ExitRevert: "bool", | ||
ExitFatal: "bool" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} as OverrideBundleDefinition; |
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 was deleted.
Oops, something went wrong.