@talismn/balances 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3096,6 +3096,7 @@ const getTransferCallData$5 = ({
|
|
|
3096
3096
|
};
|
|
3097
3097
|
};
|
|
3098
3098
|
const getTransferMethod$3 = type => {
|
|
3099
|
+
// TODO handle the case where transfer_all does not exist
|
|
3099
3100
|
switch (type) {
|
|
3100
3101
|
case "keep-alive":
|
|
3101
3102
|
return "transfer_keep_alive";
|
|
@@ -3141,6 +3142,11 @@ const getTransferEncodedArgs$2 = (assetId, to, value, codec) => {
|
|
|
3141
3142
|
// for Astar
|
|
3142
3143
|
target: polkadotApi.Enum("Id", to),
|
|
3143
3144
|
amount: BigInt(value)
|
|
3145
|
+
}), () => ({
|
|
3146
|
+
id: BigInt(assetId),
|
|
3147
|
+
// for Neuroweb
|
|
3148
|
+
target: to,
|
|
3149
|
+
amount: BigInt(value)
|
|
3144
3150
|
})]);
|
|
3145
3151
|
};
|
|
3146
3152
|
const getTransferAllEncodedArgs$2 = (assetId, to, codec) => {
|
|
@@ -3154,6 +3160,11 @@ const getTransferAllEncodedArgs$2 = (assetId, to, codec) => {
|
|
|
3154
3160
|
// for Astar
|
|
3155
3161
|
dest: polkadotApi.Enum("Id", to),
|
|
3156
3162
|
keep_alive: false
|
|
3163
|
+
}), () => ({
|
|
3164
|
+
id: BigInt(assetId),
|
|
3165
|
+
// for Neuroweb (although transfer_all does not exist)
|
|
3166
|
+
dest: to,
|
|
3167
|
+
keep_alive: false
|
|
3157
3168
|
})]);
|
|
3158
3169
|
};
|
|
3159
3170
|
|
|
@@ -3524,6 +3535,11 @@ const getTransferEncodedArgs$1 = (onChainId, to, value, codec) => {
|
|
|
3524
3535
|
// for most networks
|
|
3525
3536
|
target: polkadotApi.Enum("Id", to),
|
|
3526
3537
|
amount: BigInt(value)
|
|
3538
|
+
}), () => ({
|
|
3539
|
+
id: scale.papiParse(onChainId),
|
|
3540
|
+
// for Neuroweb
|
|
3541
|
+
target: to,
|
|
3542
|
+
amount: BigInt(value)
|
|
3527
3543
|
})]);
|
|
3528
3544
|
};
|
|
3529
3545
|
const getTransferAllEncodedArgs$1 = (onChainId, to, codec) => {
|
|
@@ -3532,6 +3548,11 @@ const getTransferAllEncodedArgs$1 = (onChainId, to, codec) => {
|
|
|
3532
3548
|
// for most networks
|
|
3533
3549
|
dest: polkadotApi.Enum("Id", to),
|
|
3534
3550
|
keep_alive: false
|
|
3551
|
+
}), () => ({
|
|
3552
|
+
id: scale.papiParse(onChainId),
|
|
3553
|
+
// for Neuroweb
|
|
3554
|
+
dest: to,
|
|
3555
|
+
keep_alive: false
|
|
3535
3556
|
})]);
|
|
3536
3557
|
};
|
|
3537
3558
|
|
|
@@ -3096,6 +3096,7 @@ const getTransferCallData$5 = ({
|
|
|
3096
3096
|
};
|
|
3097
3097
|
};
|
|
3098
3098
|
const getTransferMethod$3 = type => {
|
|
3099
|
+
// TODO handle the case where transfer_all does not exist
|
|
3099
3100
|
switch (type) {
|
|
3100
3101
|
case "keep-alive":
|
|
3101
3102
|
return "transfer_keep_alive";
|
|
@@ -3141,6 +3142,11 @@ const getTransferEncodedArgs$2 = (assetId, to, value, codec) => {
|
|
|
3141
3142
|
// for Astar
|
|
3142
3143
|
target: polkadotApi.Enum("Id", to),
|
|
3143
3144
|
amount: BigInt(value)
|
|
3145
|
+
}), () => ({
|
|
3146
|
+
id: BigInt(assetId),
|
|
3147
|
+
// for Neuroweb
|
|
3148
|
+
target: to,
|
|
3149
|
+
amount: BigInt(value)
|
|
3144
3150
|
})]);
|
|
3145
3151
|
};
|
|
3146
3152
|
const getTransferAllEncodedArgs$2 = (assetId, to, codec) => {
|
|
@@ -3154,6 +3160,11 @@ const getTransferAllEncodedArgs$2 = (assetId, to, codec) => {
|
|
|
3154
3160
|
// for Astar
|
|
3155
3161
|
dest: polkadotApi.Enum("Id", to),
|
|
3156
3162
|
keep_alive: false
|
|
3163
|
+
}), () => ({
|
|
3164
|
+
id: BigInt(assetId),
|
|
3165
|
+
// for Neuroweb (although transfer_all does not exist)
|
|
3166
|
+
dest: to,
|
|
3167
|
+
keep_alive: false
|
|
3157
3168
|
})]);
|
|
3158
3169
|
};
|
|
3159
3170
|
|
|
@@ -3524,6 +3535,11 @@ const getTransferEncodedArgs$1 = (onChainId, to, value, codec) => {
|
|
|
3524
3535
|
// for most networks
|
|
3525
3536
|
target: polkadotApi.Enum("Id", to),
|
|
3526
3537
|
amount: BigInt(value)
|
|
3538
|
+
}), () => ({
|
|
3539
|
+
id: scale.papiParse(onChainId),
|
|
3540
|
+
// for Neuroweb
|
|
3541
|
+
target: to,
|
|
3542
|
+
amount: BigInt(value)
|
|
3527
3543
|
})]);
|
|
3528
3544
|
};
|
|
3529
3545
|
const getTransferAllEncodedArgs$1 = (onChainId, to, codec) => {
|
|
@@ -3532,6 +3548,11 @@ const getTransferAllEncodedArgs$1 = (onChainId, to, codec) => {
|
|
|
3532
3548
|
// for most networks
|
|
3533
3549
|
dest: polkadotApi.Enum("Id", to),
|
|
3534
3550
|
keep_alive: false
|
|
3551
|
+
}), () => ({
|
|
3552
|
+
id: scale.papiParse(onChainId),
|
|
3553
|
+
// for Neuroweb
|
|
3554
|
+
dest: to,
|
|
3555
|
+
keep_alive: false
|
|
3535
3556
|
})]);
|
|
3536
3557
|
};
|
|
3537
3558
|
|
|
@@ -3087,6 +3087,7 @@ const getTransferCallData$5 = ({
|
|
|
3087
3087
|
};
|
|
3088
3088
|
};
|
|
3089
3089
|
const getTransferMethod$3 = type => {
|
|
3090
|
+
// TODO handle the case where transfer_all does not exist
|
|
3090
3091
|
switch (type) {
|
|
3091
3092
|
case "keep-alive":
|
|
3092
3093
|
return "transfer_keep_alive";
|
|
@@ -3132,6 +3133,11 @@ const getTransferEncodedArgs$2 = (assetId, to, value, codec) => {
|
|
|
3132
3133
|
// for Astar
|
|
3133
3134
|
target: Enum("Id", to),
|
|
3134
3135
|
amount: BigInt(value)
|
|
3136
|
+
}), () => ({
|
|
3137
|
+
id: BigInt(assetId),
|
|
3138
|
+
// for Neuroweb
|
|
3139
|
+
target: to,
|
|
3140
|
+
amount: BigInt(value)
|
|
3135
3141
|
})]);
|
|
3136
3142
|
};
|
|
3137
3143
|
const getTransferAllEncodedArgs$2 = (assetId, to, codec) => {
|
|
@@ -3145,6 +3151,11 @@ const getTransferAllEncodedArgs$2 = (assetId, to, codec) => {
|
|
|
3145
3151
|
// for Astar
|
|
3146
3152
|
dest: Enum("Id", to),
|
|
3147
3153
|
keep_alive: false
|
|
3154
|
+
}), () => ({
|
|
3155
|
+
id: BigInt(assetId),
|
|
3156
|
+
// for Neuroweb (although transfer_all does not exist)
|
|
3157
|
+
dest: to,
|
|
3158
|
+
keep_alive: false
|
|
3148
3159
|
})]);
|
|
3149
3160
|
};
|
|
3150
3161
|
|
|
@@ -3515,6 +3526,11 @@ const getTransferEncodedArgs$1 = (onChainId, to, value, codec) => {
|
|
|
3515
3526
|
// for most networks
|
|
3516
3527
|
target: Enum("Id", to),
|
|
3517
3528
|
amount: BigInt(value)
|
|
3529
|
+
}), () => ({
|
|
3530
|
+
id: papiParse(onChainId),
|
|
3531
|
+
// for Neuroweb
|
|
3532
|
+
target: to,
|
|
3533
|
+
amount: BigInt(value)
|
|
3518
3534
|
})]);
|
|
3519
3535
|
};
|
|
3520
3536
|
const getTransferAllEncodedArgs$1 = (onChainId, to, codec) => {
|
|
@@ -3523,6 +3539,11 @@ const getTransferAllEncodedArgs$1 = (onChainId, to, codec) => {
|
|
|
3523
3539
|
// for most networks
|
|
3524
3540
|
dest: Enum("Id", to),
|
|
3525
3541
|
keep_alive: false
|
|
3542
|
+
}), () => ({
|
|
3543
|
+
id: papiParse(onChainId),
|
|
3544
|
+
// for Neuroweb
|
|
3545
|
+
dest: to,
|
|
3546
|
+
keep_alive: false
|
|
3526
3547
|
})]);
|
|
3527
3548
|
};
|
|
3528
3549
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@talismn/balances",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"author": "Talisman",
|
|
5
5
|
"homepage": "https://talisman.xyz",
|
|
6
6
|
"license": "GPL-3.0-or-later",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"scale-ts": "^1.6.1",
|
|
39
39
|
"viem": "^2.27.3",
|
|
40
40
|
"zod": "^3.25.76",
|
|
41
|
-
"@talismn/chain-connectors": "0.0.
|
|
42
|
-
"@talismn/chaindata-provider": "1.1.
|
|
43
|
-
"@talismn/scale": "0.2.2",
|
|
41
|
+
"@talismn/chain-connectors": "0.0.7",
|
|
42
|
+
"@talismn/chaindata-provider": "1.1.6",
|
|
44
43
|
"@talismn/crypto": "0.2.3",
|
|
45
|
-
"@talismn/solana": "0.0.3",
|
|
46
|
-
"@talismn/token-rates": "3.0.7",
|
|
47
44
|
"@talismn/sapi": "0.0.12",
|
|
48
|
-
"@talismn/
|
|
45
|
+
"@talismn/solana": "0.0.3",
|
|
46
|
+
"@talismn/scale": "0.2.2",
|
|
47
|
+
"@talismn/token-rates": "3.0.9",
|
|
48
|
+
"@talismn/util": "0.5.5"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@polkadot/api-contract": "16.1.2",
|