mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
Change SA for Rococo/Statemine_1000 + removed CheckedExtrinsic (#2627)
This commit is contained in:
@@ -773,8 +773,7 @@ pub type SignedExtra = (
|
||||
/// Unchecked extrinsic type as expected by this runtime.
|
||||
pub type UncheckedExtrinsic =
|
||||
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
|
||||
/// Extrinsic type that has already been checked.
|
||||
pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, RuntimeCall, SignedExtra>;
|
||||
|
||||
/// Migrations to apply on runtime upgrade.
|
||||
pub type Migrations = ();
|
||||
|
||||
|
||||
@@ -94,8 +94,6 @@ pub type SignedExtra = (
|
||||
/// Unchecked extrinsic type as expected by this runtime.
|
||||
pub type UncheckedExtrinsic =
|
||||
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
|
||||
/// Extrinsic type that has already been checked.
|
||||
pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, RuntimeCall, SignedExtra>;
|
||||
|
||||
pub type Migrations = (pallet_contracts::Migration<Runtime>,);
|
||||
|
||||
|
||||
@@ -226,8 +226,6 @@ pub type SignedExtra = (
|
||||
/// Unchecked extrinsic type as expected by this runtime.
|
||||
pub type UncheckedExtrinsic =
|
||||
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
|
||||
/// Extrinsic type that has already been checked.
|
||||
pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, RuntimeCall, SignedExtra>;
|
||||
|
||||
/// Executive: handles dispatch to the various modules.
|
||||
pub type Executive = frame_executive::Executive<
|
||||
|
||||
@@ -257,8 +257,6 @@ pub type SignedExtra = DisallowSigned;
|
||||
/// Unchecked extrinsic type as expected by this runtime.
|
||||
pub type UncheckedExtrinsic =
|
||||
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
|
||||
/// Extrinsic type that has already been checked.
|
||||
pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, RuntimeCall, SignedExtra>;
|
||||
/// Executive: handles dispatch to the various modules.
|
||||
pub type Executive = frame_executive::Executive<
|
||||
Runtime,
|
||||
|
||||
@@ -123,9 +123,6 @@ pub type SignedExtra = (
|
||||
pub type UncheckedExtrinsic =
|
||||
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
|
||||
|
||||
/// Extrinsic type that has already been checked.
|
||||
pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, RuntimeCall, SignedExtra>;
|
||||
|
||||
pub type Migrations =
|
||||
(pallet_balances::migration::MigrateToTrackInactive<Runtime, xcm_config::CheckingAccount>,);
|
||||
|
||||
|
||||
@@ -612,8 +612,6 @@ pub type SignedExtra = (
|
||||
/// Unchecked extrinsic type as expected by this runtime.
|
||||
pub type UncheckedExtrinsic =
|
||||
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
|
||||
/// Extrinsic type that has already been checked.
|
||||
pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, RuntimeCall, SignedExtra>;
|
||||
/// Executive: handles dispatch to the various modules.
|
||||
pub type Executive = frame_executive::Executive<
|
||||
Runtime,
|
||||
|
||||
@@ -7,6 +7,17 @@ STATEMINE_ACCOUNT_SEED_FOR_LOCAL="//Alice"
|
||||
# AccountId: [212, 53, 147, 199, 21, 253, 211, 28, 97, 20, 26, 189, 4, 169, 159, 214, 130, 44, 133, 88, 133, 76, 205, 227, 154, 86, 132, 231, 165, 109, 162, 125]
|
||||
WOCKMINT_ACCOUNT_ADDRESS_FOR_LOCAL="5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY"
|
||||
|
||||
# SovereignAccount for `MultiLocation { parents: 2, interior: X2(GlobalConsensus(Rococo), Parachain(1000)) }` => 5CfNu7eH3SJvqqPt3aJh38T8dcFvhGzEohp9tsd41ANhXDnQ
|
||||
#
|
||||
# use sp_core::crypto::Ss58Codec;
|
||||
# println!("{}",
|
||||
# frame_support::sp_runtime::AccountId32::new(
|
||||
# GlobalConsensusParachainConvertsFor::<UniversalLocation, [u8; 32]>::convert_ref(
|
||||
# MultiLocation { parents: 2, interior: X2(GlobalConsensus(Kusama), Parachain(1000)) }).unwrap()
|
||||
# ).to_ss58check_with_version(42_u16.into())
|
||||
# );
|
||||
ROCOCO_STATEMINE_1000_SOVEREIGN_ACCOUNT="5CfNu7eH3SJvqqPt3aJh38T8dcFvhGzEohp9tsd41ANhXDnQ"
|
||||
|
||||
# Address: GegTpZJMyzkntLN7NJhRfHDk4GWukLbGSsag6PHrLSrCK4h
|
||||
ROCKMINE2_ACCOUNT_SEED_FOR_ROCOCO="scatter feed race company oxygen trip extra elbow slot bundle auto canoe"
|
||||
|
||||
@@ -597,19 +608,10 @@ case "$1" in
|
||||
1014 \
|
||||
"Rococo" \
|
||||
1000
|
||||
# drip SovereignAccount for `MultiLocation { parents: 2, interior: X2(GlobalConsensus(Rococo), Parachain(1000)) }` => 5CfNu7eH3SJvqqPt3aJh38T8dcFvhGzEohp9tsd41ANhXDnQ
|
||||
#
|
||||
# use sp_core::crypto::Ss58Codec;
|
||||
# println!("{}",
|
||||
# frame_support::sp_runtime::AccountId32::new(
|
||||
# GlobalConsensusParachainConvertsFor::<UniversalLocation, [u8; 32]>::convert_ref(
|
||||
# MultiLocation { parents: 2, interior: X2(GlobalConsensus(Kusama), Parachain(1000)) }).unwrap()
|
||||
# ).to_ss58check_with_version(42_u16.into())
|
||||
# );
|
||||
transfer_balance \
|
||||
"ws://127.0.0.1:9010" \
|
||||
"//Alice" \
|
||||
"5CfNu7eH3SJvqqPt3aJh38T8dcFvhGzEohp9tsd41ANhXDnQ" \
|
||||
"$ROCOCO_STATEMINE_1000_SOVEREIGN_ACCOUNT" \
|
||||
$((1000000000 + 50000000000 * 20)) # ExistentialDeposit + maxTargetLocationFee * 20
|
||||
# create foreign assets for native Statemine token (yes, Kusama, because we are using Statemine runtime on rococo)
|
||||
force_create_foreign_asset \
|
||||
@@ -618,7 +620,7 @@ case "$1" in
|
||||
1000 \
|
||||
"ws://127.0.0.1:9010" \
|
||||
"Kusama" \
|
||||
"5CfNu7eH3SJvqqPt3aJh38T8dcFvhGzEohp9tsd41ANhXDnQ"
|
||||
"$ROCOCO_STATEMINE_1000_SOVEREIGN_ACCOUNT"
|
||||
;;
|
||||
remove-assets-transfer-from-statemine-local)
|
||||
ensure_polkadot_js_api
|
||||
@@ -637,14 +639,6 @@ case "$1" in
|
||||
"$WOCKMINT_ACCOUNT_ADDRESS_FOR_LOCAL" \
|
||||
"Wococo"
|
||||
;;
|
||||
transfer-asset-from-statemine-rococo)
|
||||
ensure_polkadot_js_api
|
||||
transfer_asset_via_bridge \
|
||||
"wss://ws-rococo-rockmine2-collator-node-0.parity-testnet.parity.io" \
|
||||
"$ROCKMINE2_ACCOUNT_SEED_FOR_ROCOCO" \
|
||||
"$WOCKMINT_ACCOUNT_ADDRESS_FOR_ROCOCO" \
|
||||
"Wococo"
|
||||
;;
|
||||
ping-via-bridge-from-statemine-local)
|
||||
ensure_polkadot_js_api
|
||||
ping_via_bridge \
|
||||
@@ -653,6 +647,14 @@ case "$1" in
|
||||
"$WOCKMINT_ACCOUNT_ADDRESS_FOR_LOCAL" \
|
||||
"Wococo"
|
||||
;;
|
||||
transfer-asset-from-statemine-rococo)
|
||||
ensure_polkadot_js_api
|
||||
transfer_asset_via_bridge \
|
||||
"wss://ws-rococo-rockmine2-collator-node-0.parity-testnet.parity.io" \
|
||||
"$ROCKMINE2_ACCOUNT_SEED_FOR_ROCOCO" \
|
||||
"$WOCKMINT_ACCOUNT_ADDRESS_FOR_ROCOCO" \
|
||||
"Wococo"
|
||||
;;
|
||||
ping-via-bridge-from-statemine-rococo)
|
||||
ensure_polkadot_js_api
|
||||
ping_via_bridge \
|
||||
@@ -665,7 +667,7 @@ case "$1" in
|
||||
transfer_balance \
|
||||
"ws://127.0.0.1:9010" \
|
||||
"//Alice" \
|
||||
"5CfNu7eH3SJvqqPt3aJh38T8dcFvhGzEohp9tsd41ANhXDnQ" \
|
||||
"$ROCOCO_STATEMINE_1000_SOVEREIGN_ACCOUNT" \
|
||||
$((1000000000 + 50000000000 * 20))
|
||||
;;
|
||||
stop)
|
||||
|
||||
@@ -17,6 +17,7 @@ async function connect(endpoint, types = {}) {
|
||||
function writeHexEncodedBytesToOutput(method, outputFile) {
|
||||
console.log("Payload (hex): ", method.toHex());
|
||||
console.log("Payload (bytes): ", Array.from(method.toU8a()));
|
||||
console.log("Payload (plain): ", JSON.stringify(method));
|
||||
fs.writeFileSync(outputFile, JSON.stringify(Array.from(method.toU8a())));
|
||||
}
|
||||
|
||||
@@ -91,6 +92,7 @@ function removeExporterConfig(endpoint, outputFile, bridgedNetwork) {
|
||||
}
|
||||
|
||||
function forceCreateAsset(endpoint, outputFile, assetId, assetOwnerAccountId, isSufficient, minBalance) {
|
||||
var isSufficient = isSufficient == "true" ? true : false;
|
||||
console.log(`Generating forceCreateAsset from RPC endpoint: ${endpoint} to outputFile: ${outputFile} based on assetId: ${assetId}, assetOwnerAccountId: ${assetOwnerAccountId}, isSufficient: ${isSufficient}, minBalance: ${minBalance}`);
|
||||
connect(endpoint)
|
||||
.then((api) => {
|
||||
|
||||
Reference in New Issue
Block a user