{"repo":"Moonsong-Labs/xcm-tools","free":true,"listed":false,"github":"https://github.com/Moonsong-Labs/xcm-tools","clone":"git clone https://github.com/Moonsong-Labs/xcm-tools.git","description":"A series of scripts to aid Polkadot XCM interactions.","language":"TypeScript","stars":29,"topics":["blockchain","xcm","xcmp"],"license":"GPL-3.0","category":"blockchain-web3","readme_excerpt":"XCM-tools A set of scripts to help XCM initialization, asset registration and chanel set up. Use at your own risk! Install dependencies From this directory yarn install Register-asset script Script that allows to register an asset in a Moonbeam runtime. It particulary does three things: - Registers the asset - Sets the asset weight trader (relative price) - Sets the revert code in the asset precompile The script accepts these inputs fields: - --ws-provider or --w , which specifies the websocket provider to which we will be issuing our requests - --asset or -a , the MultiLocation identifier of the asset to be registered - --relative-price or -u , optional, specifies how much we should charge per second of execution in the registered asset. - --name or -n , the name of the asset - --symbol or --sym , the symbol of the asset - --decimals or -d , the number of decimals of the asset - --account-priv-key or -a , which specifies the account that will submit the proposal - --account-type or -accType , which specifies the account derivation scheme to use. Options are ethereum (default), sr25519 or ed25519 - --send-preimage-hash or -h , boolean specifying whether we want to send the preimage hash - --send-proposal-as or -s , optional, but if provided needs to be \"democracy\", \"council-external\", or \"v2\" specifying whether we want to send the proposal through regular democracy, as an external proposal that will be voted by the council, or through OpenGovV2 - --collective-threshold or -c ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Moonsong-Labs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Moonsong-Labs/xcm-tools/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}