@coinflowlabs/react-native 0.1.4 → 0.2.0-sandbox1
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/README.md +5 -1
- package/build/CoinflowPurchaseHistory.d.ts +4 -0
- package/build/CoinflowPurchaseHistory.js +13 -0
- package/build/CoinflowPurchaseHistory.js.map +1 -0
- package/build/CoinflowWithdrawHistory.d.ts +11 -0
- package/build/CoinflowWithdrawHistory.js +13 -0
- package/build/CoinflowWithdrawHistory.js.map +1 -0
- package/build/IFrameWalletConnector.js +6 -6
- package/build/IFrameWalletConnector.js.map +1 -1
- package/build/index.d.ts +2 -0
- package/build/index.js +2 -0
- package/build/index.js.map +1 -1
- package/build/useIframeWallet.d.ts +2 -2
- package/build/useIframeWallet.js +4 -10
- package/build/useIframeWallet.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -45,9 +45,13 @@ Props:
|
|
|
45
45
|
|
|
46
46
|
# Changelog
|
|
47
47
|
|
|
48
|
+
### 0.2.0
|
|
49
|
+
|
|
50
|
+
- Added Withdraw and Purchase history components
|
|
51
|
+
|
|
48
52
|
### 0.1.3
|
|
49
53
|
|
|
50
|
-
- Added the ability to sign transactions
|
|
54
|
+
- Added the ability to sign transactions instead of sign messages
|
|
51
55
|
|
|
52
56
|
# 0.1.0
|
|
53
57
|
Genesis 1:1
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WithStyles } from './CoinflowWebView';
|
|
3
|
+
import { CoinflowHistoryProps } from './CoinflowWithdrawHistory';
|
|
4
|
+
export declare function CoinflowPurchaseHistory({ wallet, merchantId, connection, env, style, }: CoinflowHistoryProps & WithStyles): JSX.Element | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useIframeWallet } from './useIframeWallet';
|
|
3
|
+
import { CoinflowWebView } from './CoinflowWebView';
|
|
4
|
+
export function CoinflowPurchaseHistory({ wallet, merchantId, connection, env, style, }) {
|
|
5
|
+
const { WebViewRef, handleIframeMessages } = useIframeWallet({
|
|
6
|
+
wallet,
|
|
7
|
+
connection,
|
|
8
|
+
});
|
|
9
|
+
if (!wallet.publicKey || !wallet.connected)
|
|
10
|
+
return null;
|
|
11
|
+
return (React.createElement(CoinflowWebView, { publicKey: wallet.publicKey.toString(), WebViewRef: WebViewRef, handleIframeMessages: handleIframeMessages, style: style, route: `/history/purchase/${merchantId}`, env: env }));
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=CoinflowPurchaseHistory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoinflowPurchaseHistory.js","sourceRoot":"","sources":["../src/CoinflowPurchaseHistory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,eAAe,EAAa,MAAM,mBAAmB,CAAC;AAG9D,MAAM,UAAU,uBAAuB,CAAC,EACtC,MAAM,EACN,UAAU,EACV,UAAU,EACV,GAAG,EACH,KAAK,GAC6B;IAClC,MAAM,EAAC,UAAU,EAAE,oBAAoB,EAAC,GAAG,eAAe,CAAC;QACzD,MAAM;QACN,UAAU;KACX,CAAC,CAAC;IAEH,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,CAAC,MAAM,CAAC,SAAS;QAAE,OAAO,IAAI,CAAC;IAExD,OAAO,CACL,oBAAC,eAAe,IACd,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,EACtC,UAAU,EAAE,UAAU,EACtB,oBAAoB,EAAE,oBAAoB,EAC1C,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,qBAAqB,UAAU,EAAE,EACxC,GAAG,EAAE,GAAG,GACR,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WithStyles } from './CoinflowWebView';
|
|
3
|
+
import { CoinflowEnvs, SubsetWalletContextState } from './ReactNativeCoinflowUtils';
|
|
4
|
+
import { Connection } from '@solana/web3.js';
|
|
5
|
+
export type CoinflowHistoryProps = {
|
|
6
|
+
wallet: SubsetWalletContextState;
|
|
7
|
+
merchantId: string;
|
|
8
|
+
connection: Connection;
|
|
9
|
+
env?: CoinflowEnvs;
|
|
10
|
+
};
|
|
11
|
+
export declare function CoinflowWithdrawHistory({ wallet, merchantId, connection, env, style, }: CoinflowHistoryProps & WithStyles): JSX.Element | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CoinflowWebView } from './CoinflowWebView';
|
|
3
|
+
import { useIframeWallet } from './useIframeWallet';
|
|
4
|
+
export function CoinflowWithdrawHistory({ wallet, merchantId, connection, env, style, }) {
|
|
5
|
+
const { WebViewRef, handleIframeMessages } = useIframeWallet({
|
|
6
|
+
wallet,
|
|
7
|
+
connection,
|
|
8
|
+
});
|
|
9
|
+
if (!wallet.publicKey || !wallet.connected)
|
|
10
|
+
return null;
|
|
11
|
+
return (React.createElement(CoinflowWebView, { publicKey: wallet.publicKey.toString(), WebViewRef: WebViewRef, handleIframeMessages: handleIframeMessages, style: style, route: `/history/withdraw/${merchantId}`, env: env }));
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=CoinflowWithdrawHistory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoinflowWithdrawHistory.js","sourceRoot":"","sources":["../src/CoinflowWithdrawHistory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,eAAe,EAAa,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAclD,MAAM,UAAU,uBAAuB,CAAC,EACtC,MAAM,EACN,UAAU,EACV,UAAU,EACV,GAAG,EACH,KAAK,GAC6B;IAClC,MAAM,EAAC,UAAU,EAAE,oBAAoB,EAAC,GAAG,eAAe,CAAC;QACzD,MAAM;QACN,UAAU;KACX,CAAC,CAAC;IAEH,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,CAAC,MAAM,CAAC,SAAS;QAAE,OAAO,IAAI,CAAC;IAExD,OAAO,CACL,oBAAC,eAAe,IACd,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,EACtC,UAAU,EAAE,UAAU,EACtB,oBAAoB,EAAE,oBAAoB,EAC1C,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,qBAAqB,UAAU,EAAE,EACxC,GAAG,EAAE,GAAG,GACR,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -7,17 +7,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import
|
|
10
|
+
import React from 'react';
|
|
11
11
|
import base58 from 'bs58';
|
|
12
12
|
import { Transaction } from '@solana/web3.js';
|
|
13
13
|
export function useHandleIFrameMessages({ wallet, connection, onSuccess, partialSigners, debugTx = false, sendIFrameMessage, }) {
|
|
14
|
-
const handleSignMessage = useCallback(({ data }) => __awaiter(this, void 0, void 0, function* () {
|
|
14
|
+
const handleSignMessage = React.useCallback(({ data }) => __awaiter(this, void 0, void 0, function* () {
|
|
15
15
|
if (!wallet.signMessage)
|
|
16
16
|
return;
|
|
17
17
|
const signature = yield wallet.signMessage(base58.decode(data));
|
|
18
18
|
sendIFrameMessage(base58.encode(signature));
|
|
19
19
|
}), [sendIFrameMessage, wallet]);
|
|
20
|
-
const sendTransactionDebug = useCallback((tx) => __awaiter(this, void 0, void 0, function* () {
|
|
20
|
+
const sendTransactionDebug = React.useCallback((tx) => __awaiter(this, void 0, void 0, function* () {
|
|
21
21
|
if (!wallet.signTransaction)
|
|
22
22
|
throw new Error('Wallet does not support sign transaction');
|
|
23
23
|
const signedTx = yield wallet.signTransaction(tx);
|
|
@@ -27,7 +27,7 @@ export function useHandleIFrameMessages({ wallet, connection, onSuccess, partial
|
|
|
27
27
|
});
|
|
28
28
|
sendIFrameMessage(signature);
|
|
29
29
|
}), [connection, sendIFrameMessage, wallet]);
|
|
30
|
-
const handleSendTransaction = useCallback(({ data }) => __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
const handleSendTransaction = React.useCallback(({ data }) => __awaiter(this, void 0, void 0, function* () {
|
|
31
31
|
const tx = Transaction.from(base58.decode(data));
|
|
32
32
|
// Partially sign the transaction with any partial signers if needed
|
|
33
33
|
const partiallySign = (signer) => {
|
|
@@ -53,7 +53,7 @@ export function useHandleIFrameMessages({ wallet, connection, onSuccess, partial
|
|
|
53
53
|
sendTransactionDebug,
|
|
54
54
|
wallet,
|
|
55
55
|
]);
|
|
56
|
-
const handleSignTransaction = useCallback(({ data }) => __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
const handleSignTransaction = React.useCallback(({ data }) => __awaiter(this, void 0, void 0, function* () {
|
|
57
57
|
if (!wallet.signTransaction) {
|
|
58
58
|
throw new Error('signTransaction is not supported by this wallet');
|
|
59
59
|
}
|
|
@@ -74,7 +74,7 @@ export function useHandleIFrameMessages({ wallet, connection, onSuccess, partial
|
|
|
74
74
|
verifySignatures: false,
|
|
75
75
|
})));
|
|
76
76
|
}), [partialSigners, sendIFrameMessage, wallet]);
|
|
77
|
-
const handleIframeMessages = useCallback(({ data }) => __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
const handleIframeMessages = React.useCallback(({ data }) => __awaiter(this, void 0, void 0, function* () {
|
|
78
78
|
try {
|
|
79
79
|
if (!wallet)
|
|
80
80
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IFrameWalletConnector.js","sourceRoot":"","sources":["../src/IFrameWalletConnector.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,
|
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AC,CAAC;oBACxC,MAAM;iBACP;gBACD,KAAK,iBAAiB,CAAC,CAAC;oBACtB,MAAM,qBAAqB,CAAC,UAAU,CAAC,CAAC;oBACxC,MAAM;iBACP;gBACD,KAAK,SAAS,CAAC,CAAC;oBACd,IAAI,SAAS;wBAAE,SAAS,CAAC,IAAI,CAAC,CAAC;oBAC/B,MAAM;iBACP;gBACD,OAAO,CAAC,CAAC;oBACP,MAAM,IAAI,KAAK,CACb,6BAA6B,UAAU,CAAC,MAAM,0CAA0C,CACzF,CAAC;iBACH;aACF;SACF;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,sBAAsB,EAAE,CAAC,CAAC,CAAC;YACzC,iBAAiB,CAAC,OAAO,CAAC,CAAC;SAC5B;IACH,CAAC,CAAA,EACD;QACE,iBAAiB;QACjB,qBAAqB;QACrB,SAAS;QACT,iBAAiB;QACjB,MAAM;KACP,CACF,CAAC;IAEF,OAAO,EAAC,oBAAoB,EAAC,CAAC;AAChC,CAAC;AAED,SAAS,SAAS,CAAC,IAAY;IAC7B,IAAI;QACF,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC7B,IAAI,CAAC,GAAG,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QAC7B,IAAI,CAAC,GAAG,CAAC,IAAI;YAAE,OAAO,IAAI,CAAC;QAC3B,OAAO,GAAG,CAAC;KACZ;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,IAAI,CAAC;KACb;AACH,CAAC"}
|
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { WebView } from 'react-native-webview';
|
|
3
3
|
import { OnSuccessMethod } from './IFrameWalletConnector';
|
|
4
4
|
import { Connection, Signer } from '@solana/web3.js';
|
|
@@ -11,7 +11,7 @@ type IFrameWalletProps = {
|
|
|
11
11
|
debugTx?: boolean;
|
|
12
12
|
};
|
|
13
13
|
export declare function useIframeWallet({ wallet, connection, onSuccess, partialSigners, debugTx, }: IFrameWalletProps): {
|
|
14
|
-
WebViewRef:
|
|
14
|
+
WebViewRef: React.RefObject<WebView<{}>>;
|
|
15
15
|
handleIframeMessages: ({ data }: {
|
|
16
16
|
data: string;
|
|
17
17
|
}) => Promise<void>;
|
package/build/useIframeWallet.js
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { useHandleIFrameMessages, } from './IFrameWalletConnector';
|
|
3
|
-
import { Platform } from 'react-native';
|
|
4
3
|
export function useIframeWallet({ wallet, connection, onSuccess, partialSigners, debugTx = false, }) {
|
|
5
|
-
const WebViewRef = useRef(null);
|
|
6
|
-
const sendIFrameMessage = useCallback((message) => {
|
|
4
|
+
const WebViewRef = React.useRef(null);
|
|
5
|
+
const sendIFrameMessage = React.useCallback((message) => {
|
|
7
6
|
if (!(WebViewRef === null || WebViewRef === void 0 ? void 0 : WebViewRef.current))
|
|
8
7
|
throw new Error('WebViewRef not defined');
|
|
9
|
-
|
|
10
|
-
WebViewRef.current.postMessage(message);
|
|
11
|
-
}
|
|
12
|
-
else {
|
|
13
|
-
WebViewRef.current.injectJavaScript(`(function() {window.onmessage(${message});})();`);
|
|
14
|
-
}
|
|
8
|
+
WebViewRef.current.postMessage(message);
|
|
15
9
|
}, [WebViewRef]);
|
|
16
10
|
const { handleIframeMessages } = useHandleIFrameMessages({
|
|
17
11
|
wallet,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIframeWallet.js","sourceRoot":"","sources":["../src/useIframeWallet.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"useIframeWallet.js","sourceRoot":"","sources":["../src/useIframeWallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAEL,uBAAuB,GACxB,MAAM,yBAAyB,CAAC;AAYjC,MAAM,UAAU,eAAe,CAAC,EAC9B,MAAM,EACN,UAAU,EACV,SAAS,EACT,cAAc,EACd,OAAO,GAAG,KAAK,GACG;IAClB,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAU,IAAI,CAAC,CAAC;IAE/C,MAAM,iBAAiB,GAAG,KAAK,CAAC,WAAW,CACzC,CAAC,OAAe,EAAE,EAAE;QAClB,IAAI,CAAC,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,OAAO,CAAA;YAAE,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;QACpE,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC,EACD,CAAC,UAAU,CAAC,CACb,CAAC;IAEF,MAAM,EAAC,oBAAoB,EAAC,GAAG,uBAAuB,CAAC;QACrD,MAAM;QACN,UAAU;QACV,SAAS;QACT,cAAc;QACd,OAAO;QACP,iBAAiB;KAClB,CAAC,CAAC;IAEH,OAAO,EAAC,UAAU,EAAE,oBAAoB,EAAC,CAAC;AAC5C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinflowlabs/react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0-sandbox1",
|
|
4
4
|
"description": "React Native Component for Coinflow Withdraw",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": ">=16",
|
|
25
25
|
"react-native": ">=0.66.0",
|
|
26
|
-
"react-native-webview": ">=11.16.0"
|
|
26
|
+
"react-native-webview": ">=11.16.0",
|
|
27
|
+
"@solana/web3.js": ">=1.47.3"
|
|
27
28
|
},
|
|
28
29
|
"dependencies": {
|
|
29
|
-
"bs58": "^5.0.0"
|
|
30
|
-
"@solana/web3.js": "^1.70.1"
|
|
30
|
+
"bs58": "^5.0.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/react": "^18.0.26",
|