mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 05:51:02 +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.
|
/// Unchecked extrinsic type as expected by this runtime.
|
||||||
pub type UncheckedExtrinsic =
|
pub type UncheckedExtrinsic =
|
||||||
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
|
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.
|
/// Migrations to apply on runtime upgrade.
|
||||||
pub type Migrations = ();
|
pub type Migrations = ();
|
||||||
|
|
||||||
|
|||||||
@@ -94,8 +94,6 @@ pub type SignedExtra = (
|
|||||||
/// Unchecked extrinsic type as expected by this runtime.
|
/// Unchecked extrinsic type as expected by this runtime.
|
||||||
pub type UncheckedExtrinsic =
|
pub type UncheckedExtrinsic =
|
||||||
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
|
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>,);
|
pub type Migrations = (pallet_contracts::Migration<Runtime>,);
|
||||||
|
|
||||||
|
|||||||
@@ -226,8 +226,6 @@ pub type SignedExtra = (
|
|||||||
/// Unchecked extrinsic type as expected by this runtime.
|
/// Unchecked extrinsic type as expected by this runtime.
|
||||||
pub type UncheckedExtrinsic =
|
pub type UncheckedExtrinsic =
|
||||||
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
|
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.
|
/// Executive: handles dispatch to the various modules.
|
||||||
pub type Executive = frame_executive::Executive<
|
pub type Executive = frame_executive::Executive<
|
||||||
|
|||||||
@@ -257,8 +257,6 @@ pub type SignedExtra = DisallowSigned;
|
|||||||
/// Unchecked extrinsic type as expected by this runtime.
|
/// Unchecked extrinsic type as expected by this runtime.
|
||||||
pub type UncheckedExtrinsic =
|
pub type UncheckedExtrinsic =
|
||||||
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
|
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.
|
/// Executive: handles dispatch to the various modules.
|
||||||
pub type Executive = frame_executive::Executive<
|
pub type Executive = frame_executive::Executive<
|
||||||
Runtime,
|
Runtime,
|
||||||
|
|||||||
@@ -123,9 +123,6 @@ pub type SignedExtra = (
|
|||||||
pub type UncheckedExtrinsic =
|
pub type UncheckedExtrinsic =
|
||||||
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
|
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
|
||||||
|
|
||||||
/// Extrinsic type that has already been checked.
|
|
||||||
pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, RuntimeCall, SignedExtra>;
|
|
||||||
|
|
||||||
pub type Migrations =
|
pub type Migrations =
|
||||||
(pallet_balances::migration::MigrateToTrackInactive<Runtime, xcm_config::CheckingAccount>,);
|
(pallet_balances::migration::MigrateToTrackInactive<Runtime, xcm_config::CheckingAccount>,);
|
||||||
|
|
||||||
|
|||||||
@@ -612,8 +612,6 @@ pub type SignedExtra = (
|
|||||||
/// Unchecked extrinsic type as expected by this runtime.
|
/// Unchecked extrinsic type as expected by this runtime.
|
||||||
pub type UncheckedExtrinsic =
|
pub type UncheckedExtrinsic =
|
||||||
generic::UncheckedExtrinsic<Address, RuntimeCall, Signature, SignedExtra>;
|
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.
|
/// Executive: handles dispatch to the various modules.
|
||||||
pub type Executive = frame_executive::Executive<
|
pub type Executive = frame_executive::Executive<
|
||||||
Runtime,
|
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]
|
# 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"
|
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
|
# Address: GegTpZJMyzkntLN7NJhRfHDk4GWukLbGSsag6PHrLSrCK4h
|
||||||
ROCKMINE2_ACCOUNT_SEED_FOR_ROCOCO="scatter feed race company oxygen trip extra elbow slot bundle auto canoe"
|
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 \
|
1014 \
|
||||||
"Rococo" \
|
"Rococo" \
|
||||||
1000
|
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 \
|
transfer_balance \
|
||||||
"ws://127.0.0.1:9010" \
|
"ws://127.0.0.1:9010" \
|
||||||
"//Alice" \
|
"//Alice" \
|
||||||
"5CfNu7eH3SJvqqPt3aJh38T8dcFvhGzEohp9tsd41ANhXDnQ" \
|
"$ROCOCO_STATEMINE_1000_SOVEREIGN_ACCOUNT" \
|
||||||
$((1000000000 + 50000000000 * 20)) # ExistentialDeposit + maxTargetLocationFee * 20
|
$((1000000000 + 50000000000 * 20)) # ExistentialDeposit + maxTargetLocationFee * 20
|
||||||
# create foreign assets for native Statemine token (yes, Kusama, because we are using Statemine runtime on rococo)
|
# create foreign assets for native Statemine token (yes, Kusama, because we are using Statemine runtime on rococo)
|
||||||
force_create_foreign_asset \
|
force_create_foreign_asset \
|
||||||
@@ -618,7 +620,7 @@ case "$1" in
|
|||||||
1000 \
|
1000 \
|
||||||
"ws://127.0.0.1:9010" \
|
"ws://127.0.0.1:9010" \
|
||||||
"Kusama" \
|
"Kusama" \
|
||||||
"5CfNu7eH3SJvqqPt3aJh38T8dcFvhGzEohp9tsd41ANhXDnQ"
|
"$ROCOCO_STATEMINE_1000_SOVEREIGN_ACCOUNT"
|
||||||
;;
|
;;
|
||||||
remove-assets-transfer-from-statemine-local)
|
remove-assets-transfer-from-statemine-local)
|
||||||
ensure_polkadot_js_api
|
ensure_polkadot_js_api
|
||||||
@@ -637,14 +639,6 @@ case "$1" in
|
|||||||
"$WOCKMINT_ACCOUNT_ADDRESS_FOR_LOCAL" \
|
"$WOCKMINT_ACCOUNT_ADDRESS_FOR_LOCAL" \
|
||||||
"Wococo"
|
"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)
|
ping-via-bridge-from-statemine-local)
|
||||||
ensure_polkadot_js_api
|
ensure_polkadot_js_api
|
||||||
ping_via_bridge \
|
ping_via_bridge \
|
||||||
@@ -653,6 +647,14 @@ case "$1" in
|
|||||||
"$WOCKMINT_ACCOUNT_ADDRESS_FOR_LOCAL" \
|
"$WOCKMINT_ACCOUNT_ADDRESS_FOR_LOCAL" \
|
||||||
"Wococo"
|
"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)
|
ping-via-bridge-from-statemine-rococo)
|
||||||
ensure_polkadot_js_api
|
ensure_polkadot_js_api
|
||||||
ping_via_bridge \
|
ping_via_bridge \
|
||||||
@@ -665,7 +667,7 @@ case "$1" in
|
|||||||
transfer_balance \
|
transfer_balance \
|
||||||
"ws://127.0.0.1:9010" \
|
"ws://127.0.0.1:9010" \
|
||||||
"//Alice" \
|
"//Alice" \
|
||||||
"5CfNu7eH3SJvqqPt3aJh38T8dcFvhGzEohp9tsd41ANhXDnQ" \
|
"$ROCOCO_STATEMINE_1000_SOVEREIGN_ACCOUNT" \
|
||||||
$((1000000000 + 50000000000 * 20))
|
$((1000000000 + 50000000000 * 20))
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ async function connect(endpoint, types = {}) {
|
|||||||
function writeHexEncodedBytesToOutput(method, outputFile) {
|
function writeHexEncodedBytesToOutput(method, outputFile) {
|
||||||
console.log("Payload (hex): ", method.toHex());
|
console.log("Payload (hex): ", method.toHex());
|
||||||
console.log("Payload (bytes): ", Array.from(method.toU8a()));
|
console.log("Payload (bytes): ", Array.from(method.toU8a()));
|
||||||
|
console.log("Payload (plain): ", JSON.stringify(method));
|
||||||
fs.writeFileSync(outputFile, JSON.stringify(Array.from(method.toU8a())));
|
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) {
|
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}`);
|
console.log(`Generating forceCreateAsset from RPC endpoint: ${endpoint} to outputFile: ${outputFile} based on assetId: ${assetId}, assetOwnerAccountId: ${assetOwnerAccountId}, isSufficient: ${isSufficient}, minBalance: ${minBalance}`);
|
||||||
connect(endpoint)
|
connect(endpoint)
|
||||||
.then((api) => {
|
.then((api) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user