Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
679 additions
and
806 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ecution/substrate-calls/xcm-transactor-pallet/interface-examples/remove-fee-per-second.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...xecution/substrate-calls/xcm-transactor-pallet/interface-examples/remove-transact-info.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...-execution/substrate-calls/xcm-transactor-pallet/interface-examples/set-fee-per-second.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ution/substrate-calls/xcm-transactor-pallet/interface-examples/transact-through-signed.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...on/substrate-calls/xcm-transactor-pallet/interface-examples/transact-through-sovereign.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 6 additions & 3 deletions
9
...remote-execution/substrate-calls/xcm-transactor-pallet/transact-info-with-weight-limit.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
import { ApiPromise, WsProvider } from '@polkadot/api'; // Version 9.13.6 | ||
import { ApiPromise, WsProvider } from '@polkadot/api'; // Version 10.13.1 | ||
|
||
const providerWsURL = 'wss://wss.api.moonbase.moonbeam.network'; | ||
|
||
const location = { parents: 1, interior: { X1: { Parachain: 888 } } }; | ||
const location = { parents: 1, interior: { X1: [{ Parachain: 888 }] } }; | ||
|
||
const main = async () => { | ||
const substrateProvider = new WsProvider(providerWsURL); | ||
const api = await ApiPromise.create({ provider: substrateProvider }); | ||
|
||
const transactInfoWithWeightLimit = await api.query.xcmTransactor.transactInfoWithWeightLimit(location); | ||
const transactInfoWithWeightLimit = | ||
await api.query.xcmTransactor.transactInfoWithWeightLimit(location); | ||
|
||
if (transactInfoWithWeightLimit.isSome) { | ||
const data = transactInfoWithWeightLimit.unwrap(); | ||
const transactExtraWeightSigned = | ||
data.toJSON().transactExtraWeightSigned.refTime; | ||
console.log(transactExtraWeightSigned); | ||
} | ||
|
||
api.disconnect(); | ||
}; | ||
|
||
main(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 18 additions & 14 deletions
32
...xecute-xcm/execute/executeWithPolkadot.js → ...cute-xcm/execute/execute-with-polkadot.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.