Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

For Polkadot: WASM-based smart-contract parachain #30

Closed
rphmeier opened this issue Dec 13, 2017 · 1 comment
Closed

For Polkadot: WASM-based smart-contract parachain #30

rphmeier opened this issue Dec 13, 2017 · 1 comment
Labels
Z5-epic Can only be fixed by John Skeet.

Comments

@rphmeier
Copy link
Contributor

Can link in relevant code from https://github.com/paritytech/parity

BlockData:

  • 256 recent headers
  • parachain transactions
  • state trie proof

Validation function:

  • check header validity (mostly just timestamp)
  • apply ingress prior to transactions
  • apply transactions

Collator:

  • create valid header
  • apply ingress
  • push transactions from queue until out of gas or transactions.
  • best choice of gas amount?
@gavofyork gavofyork changed the title WASM-based parachain Parachains: WASM-based parachain Apr 16, 2018
@gavofyork gavofyork changed the title Parachains: WASM-based parachain Parachains: WASM-based smart-contract parachain May 30, 2018
@gavofyork gavofyork added the Z5-epic Can only be fixed by John Skeet. label May 30, 2018
@gavofyork gavofyork changed the title Parachains: WASM-based smart-contract parachain For Polkadot: WASM-based smart-contract parachain Sep 5, 2018
@gavofyork
Copy link
Member

Not relevant here.

liuchengxu pushed a commit to chainx-org/substrate that referenced this issue Aug 23, 2021
liuchengxu added a commit to chainx-org/substrate that referenced this issue Aug 23, 2021
* Need to resolve finalized paritytech#30

* Fixes unfinalized issue after 30 blocks

* Avoid invoke pcx_move

* Draft

* Split out

* Rebuild wasm

* Init session validators

* Quick fix for unfinalized issue

* Mul first
liuchengxu added a commit to chainx-org/substrate that referenced this issue Aug 23, 2021
* Initial v0.6

* New_trustees

* Quick sketch

* Remove unused cert in xaccounts module

* Need to resolve finalized paritytech#30

* Fixes unfinalized issue after 30 blocks

* Avoid invoke pcx_move

* Draft

* Split out

* Rebuild wasm

* Init session validators

* Ok to build

* Threshold to be an validator

* Check address

* Move trustee intentions to xaccounts module

* 50_000!!!

* Transform revocations to kv style

* Init tokens psedu intentions

* 30 blocks per session

* Update wasm

* Tweak XDOT related

* Replace IntentionImmutablePropertiesOf with IntentionNameOf

* Extract convert_to_stake and price_for in tokens module

* Introduce TrusteeEntity

- TrusteeEntity could a pubkey or an address.

* Filter these who should be punished

* Force punished to be inactive

* Add is_trustee in rpc

* Force punished to be inactive first

* Remove needless timestamp

* Nits
liuchengxu pushed a commit to chainx-org/substrate that referenced this issue Aug 23, 2021
* Initial v0.6

* Delete the code associated with processing cert

* New_trustees

* Quick sketch

* Remove unused cert in xaccounts module

* Delete UTXOKey UTXOStatus

* Delete tx

* Need to resolve finalized paritytech#30

* Add create_withdraw_tx

* Fixes unfinalized issue after 30 blocks

* Update wasm

* Avoid invoke pcx_move

* Add 'create_withdraw_tx'

* Draft

* Split out

* Rebuild wasm

* Init session validators

* Ok to build

* Threshold to be an validator

* Check address

* Update account

* Pass build

* Update vote

* After traversing output, recharge

* Add create trustee addr

* Move AccountMap & AddressMap in xaccounts mod

* Finish handle condidate

* fix build error

* Test push_header & deposi tx ok

* Delete unused code

* Update test

* Delete unused result value

* Update wasm

* Add cold address

* make format

* RPC return trustaddr null when uninitialized

* Lifetimes

* Move Extracter and base58 in xr-ptimitives

* Update Account & Address map name

* Delete dead code
imstar15 pushed a commit to imstar15/substrate that referenced this issue Jan 3, 2023
helin6 pushed a commit to boolnetwork/substrate that referenced this issue Jul 25, 2023
Instead of panicking when the storage data reveived cannot be decoded we
pass on the error.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Z5-epic Can only be fixed by John Skeet.
Projects
None yet
Development

No branches or pull requests

2 participants