@substrate/txwrapper-polkadot
Advanced tools
Comparing version 7.0.0 to 7.0.1
@@ -6,2 +6,13 @@ # Change Log | ||
## [7.0.1](https://github.com/paritytech/txwrapper-core/compare/v7.0.0...v7.0.1) (2023-07-04) | ||
### Bug Fixes | ||
* rename state{mint, mine} to asset-hub-* ([#307](https://github.com/paritytech/txwrapper-core/issues/307)) ([3a1822a](https://github.com/paritytech/txwrapper-core/commit/3a1822a4fca281f4ad4dffc9ee97bdcd10504094)) | ||
# [7.0.0](https://github.com/paritytech/txwrapper-core/compare/v6.0.1...v7.0.0) (2023-07-03) | ||
@@ -8,0 +19,0 @@ |
@@ -48,2 +48,22 @@ import { GetRegistryOptsCore, PolkadotSS58Format, TypeRegistry } from '@substrate/txwrapper-core'; | ||
}; | ||
westmint: { | ||
ss58Format: PolkadotSS58Format; | ||
tokenDecimals: number; | ||
tokenSymbol: string; | ||
}; | ||
'asset-hub-kusama': { | ||
ss58Format: PolkadotSS58Format; | ||
tokenDecimals: number; | ||
tokenSymbol: string; | ||
}; | ||
'asset-hub-polkadot': { | ||
ss58Format: PolkadotSS58Format; | ||
tokenDecimals: number; | ||
tokenSymbol: string; | ||
}; | ||
'asset-hub-westend': { | ||
ss58Format: PolkadotSS58Format; | ||
tokenDecimals: number; | ||
tokenSymbol: string; | ||
}; | ||
}; | ||
@@ -50,0 +70,0 @@ /** |
@@ -33,4 +33,4 @@ "use strict"; | ||
const polkadotMethods = __importStar(require("./methods")); | ||
// Export methods of pallets included in the Polkadot, Kusama, Westend, Rococo | ||
// and State{mint, mine} runtimes. | ||
// Export methods of pallets included in the Polkadot, Kusama, Westend, Rococo, | ||
// Asset Hub Polkadot and Asset Hub Kusama runtimes. | ||
// Note: in the future this may also include methods defined within this package | ||
@@ -49,3 +49,3 @@ // that do not exist in Substrate. | ||
crowdloan: polkadotMethods.crowdloan, | ||
// assets is only applicable to State{mint, mine} | ||
// assets is only applicable to Asset Hub Polkadot and Asset Hub Kusama | ||
assets: txwrapper_substrate_1.methods.assets, | ||
@@ -76,2 +76,4 @@ }; | ||
}, | ||
// Even though we are transitioning to `asset-hub-*`, we will keep | ||
// statemint, statemine, and westmint for a smooth transition. | ||
statemint: { | ||
@@ -87,2 +89,22 @@ ss58Format: txwrapper_core_1.PolkadotSS58Format.polkadot, | ||
}, | ||
westmint: { | ||
ss58Format: txwrapper_core_1.PolkadotSS58Format.westend, | ||
tokenDecimals: 12, | ||
tokenSymbol: 'WND', | ||
}, | ||
'asset-hub-kusama': { | ||
ss58Format: txwrapper_core_1.PolkadotSS58Format.kusama, | ||
tokenDecimals: 12, | ||
tokenSymbol: 'KSM', | ||
}, | ||
'asset-hub-polkadot': { | ||
ss58Format: txwrapper_core_1.PolkadotSS58Format.polkadot, | ||
tokenDecimals: 10, | ||
tokenSymbol: 'DOT', | ||
}, | ||
'asset-hub-westend': { | ||
ss58Format: txwrapper_core_1.PolkadotSS58Format.westend, | ||
tokenDecimals: 12, | ||
tokenSymbol: 'WND', | ||
}, | ||
}; | ||
@@ -97,8 +119,5 @@ /** | ||
const registry = new txwrapper_core_1.TypeRegistry(); | ||
// As of now statemine is not a supported specName in the default polkadot-js/api type registry. | ||
const chainNameAdjusted = chainName === 'Statemine' ? 'Statemint' : chainName; | ||
const specNameAdjusted = specName === 'statemine' ? 'statemint' : specName; | ||
return (0, txwrapper_core_1.getRegistryBase)({ | ||
chainProperties: properties || KNOWN_CHAIN_PROPERTIES[specName], | ||
specTypes: (0, txwrapper_core_1.getSpecTypes)(registry, chainNameAdjusted, specNameAdjusted, specVersion), | ||
specTypes: (0, txwrapper_core_1.getSpecTypes)(registry, chainName, specName, specVersion), | ||
metadataRpc, | ||
@@ -105,0 +124,0 @@ asCallsOnlyArg, |
{ | ||
"name": "@substrate/txwrapper-polkadot", | ||
"version": "7.0.0", | ||
"version": "7.0.1", | ||
"author": "Parity Technologies <admin@parity.io>", | ||
@@ -21,9 +21,9 @@ "description": "Helper functions for Polkadot, Kusama, Rococo and Westend offline transaction generation.", | ||
"dependencies": { | ||
"@substrate/txwrapper-core": "^7.0.0", | ||
"@substrate/txwrapper-substrate": "^7.0.0" | ||
"@substrate/txwrapper-core": "^7.0.1", | ||
"@substrate/txwrapper-substrate": "^7.0.1" | ||
}, | ||
"devDependencies": { | ||
"@substrate/txwrapper-dev": "^7.0.0" | ||
"@substrate/txwrapper-dev": "^7.0.1" | ||
}, | ||
"gitHead": "edbd288c3f62e5f5be588a92c7e9f5eab4720b36" | ||
"gitHead": "93f6202738341becbe3c263e47077796d3164e5b" | ||
} |
@@ -22,3 +22,3 @@ <br /><br /> | ||
Txwrapper library for polkadot relay and system chains; specifically Polkadot, Kusama, Rococo, Westend, Statemint and Statemine. | ||
Txwrapper library for polkadot relay and system chains; specifically Polkadot, Kusama, Rococo, Westend, Asset Hub Polkadot and Asset Hub Kusama. | ||
@@ -25,0 +25,0 @@ Note: not all methods available apply to all supported chains. To check what methods are supported by a chain consult the pallets included in chain's runtime. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55736
463