1c0e57d984
This commit systematically rebrands various references from Parity Technologies' Polkadot/Substrate ecosystem to PezkuwiChain within the kurdistan-sdk. Key changes include: - Updated external repository URLs (zombienet-sdk, parity-db, parity-scale-codec, wasm-instrument) to point to pezkuwichain forks. - Modified internal documentation and code comments to reflect PezkuwiChain naming and structure. - Replaced direct references to with or specific paths within the for XCM, Pezkuwi, and other modules. - Cleaned up deprecated issue and PR references in various and files, particularly in and modules. - Adjusted image and logo URLs in documentation to point to PezkuwiChain assets. - Removed or rephrased comments related to external Polkadot/Substrate PRs and issues. This is a significant step towards fully customizing the SDK for the PezkuwiChain ecosystem.
48 lines
1016 B
Rust
48 lines
1016 B
Rust
// This file is part of Bizinikiwi.
|
|
|
|
// Copyright (C) Parity Technologies (UK) Ltd.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
#![no_std]
|
|
#![no_main]
|
|
include!("../panic_handler.rs");
|
|
|
|
use uapi::{input, u256_bytes, HostFn, HostFnImpl as api};
|
|
|
|
#[no_mangle]
|
|
#[polkavm_derive::polkavm_export]
|
|
pub extern "C" fn deploy() {}
|
|
|
|
#[no_mangle]
|
|
#[polkavm_derive::polkavm_export]
|
|
pub extern "C" fn call() {
|
|
input!(36, code_hash: [u8],);
|
|
|
|
let mut addr = [0u8; 20];
|
|
let salt = [1u8; 32];
|
|
api::instantiate(
|
|
u64::MAX,
|
|
u64::MAX,
|
|
&[u8::MAX; 32],
|
|
&u256_bytes(100_000_000_000u64),
|
|
code_hash,
|
|
Some(&mut addr),
|
|
None,
|
|
Some(&salt),
|
|
).unwrap();
|
|
|
|
api::call(
|
|
uapi::CallFlags::empty(),
|
|
&addr,
|
|
u64::MAX,
|
|
u64::MAX,
|
|
&[u8::MAX; 32],
|
|
&[0u8; 32],
|
|
&[],
|
|
None,
|
|
).unwrap();
|
|
|
|
// Return the address of the created (and destroyed) contract
|
|
api::return_value(uapi::ReturnFlags::empty(), &addr);
|
|
}
|