@unifold/ui-web 0.1.60 → 0.1.61
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.
- package/dist/index.js +8 -1
- package/dist/index.mjs +8 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -43195,6 +43195,7 @@ async function createDepositAddress(overrides, publishableKey) {
|
|
|
43195
43195
|
recipient_address: overrides?.recipient_address || DEFAULT_CONFIG.recipientAddress || "0x309a4154a2CD4153Da886E780890C9cb5161553C",
|
|
43196
43196
|
...overrides?.action_type ? { action_type: overrides.action_type } : {},
|
|
43197
43197
|
...overrides?.source_chain_type ? { source_chain_type: overrides.source_chain_type } : {},
|
|
43198
|
+
...overrides?.contract_calls ? { contract_calls: overrides.contract_calls } : {},
|
|
43198
43199
|
client_metadata: overrides?.client_metadata || {}
|
|
43199
43200
|
};
|
|
43200
43201
|
const pk = publishableKey || DEFAULT_PUBLISHABLE_KEY;
|
|
@@ -50679,6 +50680,7 @@ function useDepositAddress(params) {
|
|
|
50679
50680
|
destinationChainId,
|
|
50680
50681
|
destinationTokenAddress,
|
|
50681
50682
|
actionType,
|
|
50683
|
+
contractCalls,
|
|
50682
50684
|
enabled = true
|
|
50683
50685
|
} = params;
|
|
50684
50686
|
return useQuery({
|
|
@@ -50691,6 +50693,7 @@ function useDepositAddress(params) {
|
|
|
50691
50693
|
destinationChainId ?? null,
|
|
50692
50694
|
destinationTokenAddress ?? null,
|
|
50693
50695
|
actionType ?? null,
|
|
50696
|
+
contractCalls ?? null,
|
|
50694
50697
|
publishableKey
|
|
50695
50698
|
],
|
|
50696
50699
|
queryFn: () => createDepositAddress(
|
|
@@ -50700,7 +50703,8 @@ function useDepositAddress(params) {
|
|
|
50700
50703
|
destination_chain_type: destinationChainType,
|
|
50701
50704
|
destination_chain_id: destinationChainId,
|
|
50702
50705
|
destination_token_address: destinationTokenAddress,
|
|
50703
|
-
action_type: actionType
|
|
50706
|
+
action_type: actionType,
|
|
50707
|
+
contract_calls: contractCalls
|
|
50704
50708
|
},
|
|
50705
50709
|
publishableKey
|
|
50706
50710
|
),
|
|
@@ -63841,6 +63845,7 @@ function DepositModal({
|
|
|
63841
63845
|
destinationChainType,
|
|
63842
63846
|
destinationChainId,
|
|
63843
63847
|
destinationTokenAddress,
|
|
63848
|
+
contractCalls,
|
|
63844
63849
|
defaultSourceChainType,
|
|
63845
63850
|
defaultSourceChainId,
|
|
63846
63851
|
defaultSourceTokenAddress,
|
|
@@ -63967,6 +63972,7 @@ function DepositModal({
|
|
|
63967
63972
|
destinationChainType,
|
|
63968
63973
|
destinationChainId,
|
|
63969
63974
|
destinationTokenAddress,
|
|
63975
|
+
contractCalls,
|
|
63970
63976
|
enabled: open
|
|
63971
63977
|
// Only fetch when modal is open
|
|
63972
63978
|
});
|
|
@@ -67297,6 +67303,7 @@ function UnifoldProvider2({
|
|
|
67297
67303
|
destinationChainType: depositConfig.destinationChainType,
|
|
67298
67304
|
destinationChainId: depositConfig.destinationChainId,
|
|
67299
67305
|
destinationTokenAddress: depositConfig.destinationTokenAddress,
|
|
67306
|
+
contractCalls: depositConfig.contractCalls,
|
|
67300
67307
|
defaultSourceChainType: depositConfig.defaultSourceChainType,
|
|
67301
67308
|
defaultSourceChainId: depositConfig.defaultSourceChainId,
|
|
67302
67309
|
defaultSourceTokenAddress: depositConfig.defaultSourceTokenAddress,
|
package/dist/index.mjs
CHANGED
|
@@ -43182,6 +43182,7 @@ async function createDepositAddress(overrides, publishableKey) {
|
|
|
43182
43182
|
recipient_address: overrides?.recipient_address || DEFAULT_CONFIG.recipientAddress || "0x309a4154a2CD4153Da886E780890C9cb5161553C",
|
|
43183
43183
|
...overrides?.action_type ? { action_type: overrides.action_type } : {},
|
|
43184
43184
|
...overrides?.source_chain_type ? { source_chain_type: overrides.source_chain_type } : {},
|
|
43185
|
+
...overrides?.contract_calls ? { contract_calls: overrides.contract_calls } : {},
|
|
43185
43186
|
client_metadata: overrides?.client_metadata || {}
|
|
43186
43187
|
};
|
|
43187
43188
|
const pk = publishableKey || DEFAULT_PUBLISHABLE_KEY;
|
|
@@ -50666,6 +50667,7 @@ function useDepositAddress(params) {
|
|
|
50666
50667
|
destinationChainId,
|
|
50667
50668
|
destinationTokenAddress,
|
|
50668
50669
|
actionType,
|
|
50670
|
+
contractCalls,
|
|
50669
50671
|
enabled = true
|
|
50670
50672
|
} = params;
|
|
50671
50673
|
return useQuery({
|
|
@@ -50678,6 +50680,7 @@ function useDepositAddress(params) {
|
|
|
50678
50680
|
destinationChainId ?? null,
|
|
50679
50681
|
destinationTokenAddress ?? null,
|
|
50680
50682
|
actionType ?? null,
|
|
50683
|
+
contractCalls ?? null,
|
|
50681
50684
|
publishableKey
|
|
50682
50685
|
],
|
|
50683
50686
|
queryFn: () => createDepositAddress(
|
|
@@ -50687,7 +50690,8 @@ function useDepositAddress(params) {
|
|
|
50687
50690
|
destination_chain_type: destinationChainType,
|
|
50688
50691
|
destination_chain_id: destinationChainId,
|
|
50689
50692
|
destination_token_address: destinationTokenAddress,
|
|
50690
|
-
action_type: actionType
|
|
50693
|
+
action_type: actionType,
|
|
50694
|
+
contract_calls: contractCalls
|
|
50691
50695
|
},
|
|
50692
50696
|
publishableKey
|
|
50693
50697
|
),
|
|
@@ -63828,6 +63832,7 @@ function DepositModal({
|
|
|
63828
63832
|
destinationChainType,
|
|
63829
63833
|
destinationChainId,
|
|
63830
63834
|
destinationTokenAddress,
|
|
63835
|
+
contractCalls,
|
|
63831
63836
|
defaultSourceChainType,
|
|
63832
63837
|
defaultSourceChainId,
|
|
63833
63838
|
defaultSourceTokenAddress,
|
|
@@ -63954,6 +63959,7 @@ function DepositModal({
|
|
|
63954
63959
|
destinationChainType,
|
|
63955
63960
|
destinationChainId,
|
|
63956
63961
|
destinationTokenAddress,
|
|
63962
|
+
contractCalls,
|
|
63957
63963
|
enabled: open
|
|
63958
63964
|
// Only fetch when modal is open
|
|
63959
63965
|
});
|
|
@@ -67284,6 +67290,7 @@ function UnifoldProvider2({
|
|
|
67284
67290
|
destinationChainType: depositConfig.destinationChainType,
|
|
67285
67291
|
destinationChainId: depositConfig.destinationChainId,
|
|
67286
67292
|
destinationTokenAddress: depositConfig.destinationTokenAddress,
|
|
67293
|
+
contractCalls: depositConfig.contractCalls,
|
|
67287
67294
|
defaultSourceChainType: depositConfig.defaultSourceChainType,
|
|
67288
67295
|
defaultSourceChainId: depositConfig.defaultSourceChainId,
|
|
67289
67296
|
defaultSourceTokenAddress: depositConfig.defaultSourceTokenAddress,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unifold/ui-web",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.61",
|
|
4
4
|
"description": "Unifold UI Web - Framework-agnostic deposit widget",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"@types/react-dom": "^19.0.0",
|
|
31
31
|
"tsup": "^8.0.0",
|
|
32
32
|
"typescript": "^5.0.0",
|
|
33
|
-
"@unifold/
|
|
34
|
-
"@unifold/
|
|
35
|
-
"@unifold/
|
|
36
|
-
"@unifold/
|
|
33
|
+
"@unifold/connect-react": "0.1.61",
|
|
34
|
+
"@unifold/core": "0.1.61",
|
|
35
|
+
"@unifold/react-provider": "0.1.61",
|
|
36
|
+
"@unifold/ui-react": "0.1.61"
|
|
37
37
|
},
|
|
38
38
|
"keywords": [
|
|
39
39
|
"unifold",
|