Skip to content
  • juangirini's avatar
    contracts: Make Origin information available (#13708) · 5db4119f
    juangirini authored
    
    
    * contracts: allow root calls
    
    * contracts: update ContractOrigin
    
    * contracts: test allow root calls
    
    * contracts: rustfmt
    
    * contracts: test root caller traps
    
    * contracts: add Caller enum
    
    * contracts: improve some comments
    
    * contracts: improve some comments
    
    * contracts: format code with +nightly
    
    * contracts: fix failing tests
    
    * contracts: improve charte instantiate call when root origin
    
    * contract: refactor common, call and instantiate inputs
    
    * contracts: fix some failing test
    
    * contracts: trap caller when there is no account id
    
    * Update frame/contracts/src/lib.rs
    
    Co-authored-by: default avatarPG Herveou <[email protected]>
    
    * Update frame/contracts/src/exec.rs
    
    Co-authored-by: default avatarPG Herveou <[email protected]>
    
    * contracts: make `into_deposit` return zero when the origin is root
    
    * contracts: cargo fmt
    
    * contracts: charging and terminating tests refactored
    
    * contracts: improved errors
    
    * contracts: refactor & merge ContractOrigin cand Caller enums
    
    * Update frame/contracts/src/lib.rs
    
    Co-authored-by: default avatarSasha Gryaznov <[email protected]>
    
    * contracts: apply suggested pr changes
    
    * contracts: rename Caller to Origin
    
    * contracts: refactor run fn
    
    * contracts: cr improvements
    
    * contracts: allow root to use delegate call
    
    * contracts: add caller_is_root weight
    
    * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts
    
    * contracts: add caller_is_root benchmarking
    
    * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts
    
    * contracts: add caller_is_root benchmarking
    
    * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts
    
    * contracts: add some minor improvements
    
    * contracts: make caller_is_root runtime fn unstable
    
    * contracts: fix failing wasm test
    
    * contracts: update benchmarking for origin_is_root
    
    * contracts: improve seal_caller_is_root benchmarking
    
    * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts
    
    * contracts: add small pr improvements
    
    * contracts: fix broken tests after master merge
    
    * contracts: acknowledge the default storage deposit limit
    
    * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts
    
    * contracts: move origin to CommonInput
    
    * contracts: add some extra tests
    
    * contracts: move ensure origin logic inside invokable::run_guarded
    
    * contracts: add minor improvements
    
    * contracts: fix caller_is_root benchmarking
    
    * contracts: improve function description
    
    * Update frame/contracts/src/lib.rs
    
    Co-authored-by: default avatarSasha Gryaznov <[email protected]>
    
    * Update frame/contracts/src/lib.rs
    
    Co-authored-by: default avatarSasha Gryaznov <[email protected]>
    
    * Update frame/contracts/src/wasm/runtime.rs
    
    Co-authored-by: default avatarSasha Gryaznov <[email protected]>
    
    * contracts: improve function description
    
    ---------
    
    Co-authored-by: parity-processbot <>
    Co-authored-by: default avatarPG Herveou <[email protected]>
    Co-authored-by: default avatarSasha Gryaznov <[email protected]>
    5db4119f