@cordystackx/cordy_minikit 1.3.0 → 1.3.2
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
CHANGED
|
@@ -50,7 +50,6 @@ Create a `.env.local` file in your project root:
|
|
|
50
50
|
```bash
|
|
51
51
|
NEXT_PUBLIC_RPC_ENDPOINT=https://your-rpc-endpoint.com
|
|
52
52
|
NEXT_PUBLIC_TOKENADDRESS=0x...
|
|
53
|
-
NEXT_PUBLIC_PLATFORM_ADDRESS=0x...
|
|
54
53
|
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=your_project_id
|
|
55
54
|
```
|
|
56
55
|
|
|
@@ -339,18 +338,6 @@ const config = getConfig({ myChain: customChainDefinition });
|
|
|
339
338
|
|
|
340
339
|
## 🎨 Customization
|
|
341
340
|
|
|
342
|
-
### CSS Variables
|
|
343
|
-
|
|
344
|
-
Override default styles using CSS variables:
|
|
345
|
-
|
|
346
|
-
```css
|
|
347
|
-
:root {
|
|
348
|
-
--foreground_wagmi: #ffffff;
|
|
349
|
-
--background_wagmi: #000000;
|
|
350
|
-
/* Add more custom variables */
|
|
351
|
-
}
|
|
352
|
-
```
|
|
353
|
-
|
|
354
341
|
### Custom Styling
|
|
355
342
|
|
|
356
343
|
```tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transactions.d.ts","sourceRoot":"","sources":["../../controllers/Transactions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Transactions.d.ts","sourceRoot":"","sources":["../../controllers/Transactions.tsx"],"names":[],"mappings":"AAKA,wBAA8B,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,oBAmC1E"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ethers, parseUnits } from 'ethers';
|
|
2
2
|
import tokenAbi from '../config/ERC20_ABI.json';
|
|
3
3
|
const tokenAddress = process.env.NEXT_PUBLIC_TOKENADDRESS || "";
|
|
4
|
-
const platformAddress = process.env.NEXT_PUBLIC_PLATFORM_ADDRESS || "";
|
|
5
4
|
export default async function CordyStackTrans(address, cost) {
|
|
6
5
|
if (!address) {
|
|
7
6
|
console.error("Address Not Found");
|
|
@@ -18,7 +17,7 @@ export default async function CordyStackTrans(address, cost) {
|
|
|
18
17
|
console.log("Insuficient Funds");
|
|
19
18
|
return false;
|
|
20
19
|
}
|
|
21
|
-
const tx = await tokenContract.transfer(
|
|
20
|
+
const tx = await tokenContract.transfer(address, amount);
|
|
22
21
|
const receipt = await tx.wait();
|
|
23
22
|
if (receipt) {
|
|
24
23
|
console.log("Transaction Complete TX hash", receipt);
|