Cosmos Coin Wrapper Paths
Core Concept
// Collection with wrapper path
const collection: MsgCreateCollection = {
creator: 'bb1kj9kt5y64n5a8677fhjqnmcc24ht2vy9atmdls',
collectionId: '0', // 0 for new collection
validTokenIds: [{ start: 1n, end: 100n }],
cosmosCoinWrapperPathsToAdd: [
{
denom: 'utoken',
conversion: {
sideA: {
amount: '1', // Required: amount of wrapped coin
},
sideB: [
{
amount: 1n,
tokenIds: [{ start: 1n, end: 100n }],
ownershipTimes: [
{ start: 1n, end: 18446744073709551615n },
],
},
],
},
symbol: 'TOKEN',
denomUnits: [
{
decimals: 6n,
symbol: 'TOKEN',
isDefaultDisplay: true,
},
],
allowOverrideWithAnyValidToken: false,
metadata: { uri: '', customData: '' }, // Optional metadata
},
],
aliasPathsToAdd: [
{
denom: 'utoken-alias',
conversion: {
sideA: {
amount: '1', // Required: amount of wrapped coin
},
sideB: [
{
amount: 1n,
tokenIds: [{ start: 1n, end: 100n }],
ownershipTimes: [
{ start: 1n, end: 18446744073709551615n },
],
},
],
},
symbol: 'ALIAS',
denomUnits: [
{
decimals: 6n,
symbol: 'ALIAS',
isDefaultDisplay: true,
},
],
metadata: { uri: '', customData: '' }, // Optional metadata
},
],
// ... other fields
};Wrapper Paths vs Alias Paths
Cosmos Coin Wrapper Paths
Alias Paths
Wrapper Address Generation
Conversion Structure
ConversionWithoutDenom
Configuration Fields
Denom
Conversion
Denomination Units
Allow Override With Any Valid Token
{id} Placeholder Support
Metadata
Transferability Requirements
Conversion Process
Token to Coin (Wrapping)
Coin to Token (Unwrapping)
Use Cases
IBC Transfers
DeFi Integration
Permission Control
Default Behavior
Permission Structure
Usage Examples
Permission Check
Differences from IBC Backed Paths
Feature
Wrapper Path
IBC Backed Path
Last updated