@coinflowlabs/angular 2.0.0 → 2.0.1-0
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.
|
@@ -802,15 +802,6 @@ class CoinflowUtils {
|
|
|
802
802
|
const { transaction } = props;
|
|
803
803
|
return LZString.compressToEncodedURIComponent(JSON.stringify(transaction));
|
|
804
804
|
},
|
|
805
|
-
stellar: () => {
|
|
806
|
-
if (!('transaction' in props))
|
|
807
|
-
return undefined;
|
|
808
|
-
const { transaction } = props;
|
|
809
|
-
if (!transaction)
|
|
810
|
-
return undefined;
|
|
811
|
-
// Transaction is already base64 XDR string, pass through directly
|
|
812
|
-
return transaction;
|
|
813
|
-
},
|
|
814
805
|
monad: () => {
|
|
815
806
|
if (!('transaction' in props))
|
|
816
807
|
return undefined;
|
|
@@ -840,8 +831,6 @@ class CoinflowUtils {
|
|
|
840
831
|
return args.base;
|
|
841
832
|
case 'arbitrum':
|
|
842
833
|
return args.arbitrum;
|
|
843
|
-
case 'stellar':
|
|
844
|
-
return args.stellar;
|
|
845
834
|
case 'monad':
|
|
846
835
|
return args.monad;
|
|
847
836
|
case 'tempo':
|
|
@@ -1070,13 +1059,6 @@ function getHandlers(props) {
|
|
|
1070
1059
|
onInputError: props.onInputError,
|
|
1071
1060
|
onInputValid: props.onInputValid,
|
|
1072
1061
|
}),
|
|
1073
|
-
stellar: () => getStellarWalletHandlers({
|
|
1074
|
-
wallet: wallet,
|
|
1075
|
-
onSuccess: props.onSuccess,
|
|
1076
|
-
onAuthDeclined: props.onAuthDeclined,
|
|
1077
|
-
onInputError: props.onInputError,
|
|
1078
|
-
onInputValid: props.onInputValid,
|
|
1079
|
-
}),
|
|
1080
1062
|
monad: () => getEvmWalletHandlers({
|
|
1081
1063
|
wallet: wallet,
|
|
1082
1064
|
onSuccess: props.onSuccess,
|
|
@@ -1163,33 +1145,6 @@ function getEvmWalletHandlers({ wallet, onSuccess, onAuthDeclined, onInputError,
|
|
|
1163
1145
|
onInputValid,
|
|
1164
1146
|
};
|
|
1165
1147
|
}
|
|
1166
|
-
function getStellarWalletHandlers({ wallet, onSuccess, onAuthDeclined, onInputError, onInputValid, }) {
|
|
1167
|
-
return {
|
|
1168
|
-
handleSendTransaction: async (transaction) => {
|
|
1169
|
-
// transaction is unsigned base64 XDR
|
|
1170
|
-
// dapp needs to handle sending and confirming
|
|
1171
|
-
throw new Error(`sendTransaction is not supported on stellar, error when sending: ${transaction}`);
|
|
1172
|
-
},
|
|
1173
|
-
handleSignMessage: async (message) => {
|
|
1174
|
-
if (!wallet.signMessage) {
|
|
1175
|
-
throw new Error('signMessage is not supported by this wallet');
|
|
1176
|
-
}
|
|
1177
|
-
// Returns base64-encoded signature
|
|
1178
|
-
return await wallet.signMessage(message);
|
|
1179
|
-
},
|
|
1180
|
-
handleSignTransaction: async (transaction) => {
|
|
1181
|
-
if (!wallet.signTransaction) {
|
|
1182
|
-
throw new Error('signTransaction is not supported by this wallet');
|
|
1183
|
-
}
|
|
1184
|
-
// Returns signed base64 XDR
|
|
1185
|
-
return await wallet.signTransaction(transaction);
|
|
1186
|
-
},
|
|
1187
|
-
onSuccess,
|
|
1188
|
-
onAuthDeclined,
|
|
1189
|
-
onInputError,
|
|
1190
|
-
onInputValid,
|
|
1191
|
-
};
|
|
1192
|
-
}
|
|
1193
1148
|
function getSessionKeyHandlers({ onSuccess, onAuthDeclined, onInputError, onInputValid, }) {
|
|
1194
1149
|
return {
|
|
1195
1150
|
handleSendTransaction: async () => {
|