@cordystackx/cordy_minikit 3.0.0 → 3.0.1

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
@@ -1,14 +1,20 @@
1
1
 
2
2
  <div align="center">
3
- <img src="./assets/cordy-logo.svg" alt="Cordy Minikit logo" width="160" />
3
+ <img src="https://raw.githubusercontent.com/cordyStackX/cordy_minikit_official/21cb17b5569b79b29545da80da33d82625e26c7b/assets/cordy-logo.svg" alt="Cordy Minikit logo" width="160" />
4
4
  <h1>Cordy Minikit</h1>
5
5
  <p>Typed Web3 toolkit for EVM and Stellar/Soroban wallet connections, balances, transfers, and session helpers.</p>
6
6
  </div>
7
7
 
8
+ <p align="center">
9
+ <a href="https://badge.socket.dev/npm/package/@cordystackx/cordy_minikit/3.0.0">
10
+ <img src="https://badge.socket.dev/npm/package/@cordystackx/cordy_minikit/3.0.0" alt="Socket Badge" />
11
+ </a>
12
+ </p>
13
+
8
14
  <div align="center">
9
- <img src="./assets/demo1.png" alt="Cordy Minikit wallet connection interface" width="31%" />
10
- <img src="./assets/demo2.png" alt="Cordy Minikit EVM wallet interface" width="31%" />
11
- <img src="./assets/demo3.png" alt="Cordy Minikit Stellar wallet interface" width="31%" />
15
+ <img src="https://raw.githubusercontent.com/cordyStackX/cordy_minikit_official/refs/heads/main/assets/demo1.png" alt="Cordy Minikit wallet connection interface" width="31%" />
16
+ <img src="https://raw.githubusercontent.com/cordyStackX/cordy_minikit_official/refs/heads/main/assets/demo2.png" alt="Cordy Minikit EVM wallet interface" width="31%" />
17
+ <img src="https://raw.githubusercontent.com/cordyStackX/cordy_minikit_official/refs/heads/main/assets/demo3.png" alt="Cordy Minikit Stellar wallet interface" width="31%" />
12
18
  </div>
13
19
 
14
20
  <p align="center">
@@ -16,7 +22,7 @@
16
22
  ·
17
23
  <a href="https://github.com/cordyStackX/cordy_minikit_official">GitHub</a>
18
24
  ·
19
- <a href="./docs/README.md">Documentation</a>
25
+ <a href="https://github.com/cordyStackX/cordy_minikit_official/blob/main/docs/README.md">Documentation</a>
20
26
  </p>
21
27
 
22
28
  ---
@@ -35,12 +41,12 @@ pnpm add @cordystackx/cordy_minikit
35
41
 
36
42
  Read the complete documentation in the [`docs/` folder](./docs/README.md):
37
43
 
38
- - [Documentation index](./docs/README.md)
39
- - [Environment configuration](./docs/environment.md)
40
- - [3.0.0 API reference](./docs/api.md)
41
- - [3.0.0 migration guide](./docs/migration-3.0.0.md)
42
- - [Provider and wallet UI setup](./docs/setup.md)
43
- - [Server session endpoint examples](./docs/server-endpoints.md)
44
+ - [Documentation index](https://github.com/cordyStackX/cordy_minikit_official/blob/main/docs/README.md)
45
+ - [Environment configuration](https://github.com/cordyStackX/cordy_minikit_official/blob/main/docs/environment.md)
46
+ - [3.0.0 API reference](https://github.com/cordyStackX/cordy_minikit_official/blob/main/docs/api.md)
47
+ - [3.0.0 migration guide](https://github.com/cordyStackX/cordy_minikit_official/blob/main/docs/migration-3.0.0.md)
48
+ - [Provider and wallet UI setup](https://github.com/cordyStackX/cordy_minikit_official/blob/main/docs/setup.md)
49
+ - [Server session endpoint examples](https://github.com/cordyStackX/cordy_minikit_official/blob/main/docs/server-endpoints.md)
44
50
 
45
51
  ## Current API
46
52
 
@@ -55,6 +61,7 @@ await cordy.jwt_disconnect();
55
61
 
56
62
  The current 3.0.0 API is:
57
63
 
64
+ - `cordy.configure({ assets })`
58
65
  - `cordy.jwt_verify()`
59
66
  - `cordy.jwt_disconnect()`
60
67
  - `cordy.transfer()`
@@ -63,9 +70,9 @@ The current 3.0.0 API is:
63
70
 
64
71
  `cordy.jwt_confirm()` remains available as a deprecated compatibility alias for `cordy.jwt_verify()`. Legacy controller helpers remain available for compatibility, but new integrations should use the `cordy.*` API.
65
72
 
66
- ## Planned APIs
73
+ ## Experimental API
67
74
 
68
- **Experimental in 3.0.0:** `cordy.bridge()` currently supports test USDT between BOT Chain Testnet and Ethereum Sepolia only. See the [bridge API example](./docs/api.md#cordybridgeamount-from-to-recipient).
75
+ `cordy.bridge()` is experimental in 3.0.0 and currently supports test USDT between BOT Chain Testnet and Ethereum Sepolia only. See the [bridge API example](./docs/api.md#cordybridgeamount-from-to-recipient).
69
76
 
70
77
  `cordy.swap(amount, from, to)` is available for configured EVM and Stellar assets. EVM networks need a Uniswap V2-compatible `swapRouterAddress`; native EVM swaps also need `wrappedNativeTokenAddress`. Stellar swaps use Horizon strict-send path payments and require a live liquidity path. Both use 1% minimum-output tolerance.
71
78
 
@@ -73,7 +80,6 @@ The current 3.0.0 API is:
73
80
 
74
81
  - [NPM package](https://www.npmjs.com/package/@cordystackx/cordy_minikit)
75
82
  - [GitHub repository](https://github.com/cordyStackX/cordy_minikit_official)
76
- - [Demo](./demo/README.md)
77
- - [Changelog](./CHANGELOG.md)
78
- - [Contributing guide](./CONTRIBUTING.md)
79
- - [Security policy](./SECURITY.md)
83
+ - [Changelog](https://github.com/cordyStackX/cordy_minikit_official/blob/main/CHANGELOG.md)
84
+ - [Contributing guide](https://github.com/cordyStackX/cordy_minikit_official/blob/main/CONTRIBUTING.md)
85
+ - [Security policy](https://github.com/cordyStackX/cordy_minikit_official/blob/main/SECURITY.md)
@@ -19,7 +19,7 @@ export type TokenBalanceResult = {
19
19
  };
20
20
  /** Shared ERC-20 balance reader used by wallet status and the Cordy API. */
21
21
  export declare function readTokenBalance(address: string, options?: TokenBalanceOptions): Promise<TokenBalanceResult>;
22
- /** Legacy controller API kept for existing `useWalletStatus` and button callers. */
22
+ /** @deprecated Use `cordy.balance({ asset })` for an explicit success or error result. */
23
23
  export default function getTokenBalance(address: string, decimals?: number): Promise<{
24
24
  balance: string;
25
25
  symbol: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Get_Balance.d.ts","sourceRoot":"","sources":["../../controllers/Get_Balance.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqD,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAG1F,MAAM,MAAM,mBAAmB,GAAG;IAChC,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,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,4EAA4E;AAC5E,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,kBAAkB,CAAC,CAmF7B;AAED,0FAA0F;AAC1F,wBAA8B,eAAe,CAC3C,OAAO,EAAE,MAAM,EACf,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAQ9C"}
@@ -89,7 +89,7 @@ export async function readTokenBalance(address, options = {}) {
89
89
  chainId,
90
90
  };
91
91
  }
92
- /** Legacy controller API kept for existing `useWalletStatus` and button callers. */
92
+ /** @deprecated Use `cordy.balance({ asset })` for an explicit success or error result. */
93
93
  export default async function getTokenBalance(address, decimals) {
94
94
  try {
95
95
  const result = await readTokenBalance(address, { decimals });
@@ -2,7 +2,9 @@ type CordyStackStellarTransOptions = {
2
2
  memo?: string;
3
3
  source?: string;
4
4
  };
5
+ /** @deprecated Use `cordy.transfer(amount, recipient, { asset })` instead. */
5
6
  export default function CordyStackTrans(address: string, cost: number): Promise<boolean>;
7
+ /** @deprecated Use `cordy.transfer(amount, recipient, { asset: "XLM", memo })` instead. */
6
8
  export declare function CordyStackTransStellar(address: string, cost: number, options?: CordyStackStellarTransOptions): Promise<boolean>;
7
9
  export {};
8
10
  //# sourceMappingURL=Transactions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Transactions.d.ts","sourceRoot":"","sources":["../../controllers/Transactions.tsx"],"names":[],"mappings":"AAWA,KAAK,6BAA6B,GAAG;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,wBAA8B,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,oBAqD1E;AAED,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,6BAAkC,oBAoF5C"}
1
+ {"version":3,"file":"Transactions.d.ts","sourceRoot":"","sources":["../../controllers/Transactions.tsx"],"names":[],"mappings":"AAWA,KAAK,6BAA6B,GAAG;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,8EAA8E;AAC9E,wBAA8B,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,oBAqD1E;AAED,2FAA2F;AAC3F,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,6BAAkC,oBAoF5C"}
@@ -7,6 +7,7 @@ const tokenAddress = process.env.NEXT_PUBLIC_TOKENADDRESS || "";
7
7
  const rpcEndpoint = process.env.NEXT_PUBLIC_RPC_ENDPOINT || "";
8
8
  const stellarRpc = process.env.NEXT_PUBLIC_STELLAR_HORIZON || "https://horizon-testnet.stellar.org";
9
9
  const stellarNetwork = process.env.NEXT_PUBLIC_STELLAR_NETWORK_PASSPHRASE || Networks.TESTNET;
10
+ /** @deprecated Use `cordy.transfer(amount, recipient, { asset })` instead. */
10
11
  export default async function CordyStackTrans(address, cost) {
11
12
  if (!address) {
12
13
  console.error("Address Not Found");
@@ -54,6 +55,7 @@ export default async function CordyStackTrans(address, cost) {
54
55
  }
55
56
  }
56
57
  ;
58
+ /** @deprecated Use `cordy.transfer(amount, recipient, { asset: "XLM", memo })` instead. */
57
59
  export async function CordyStackTransStellar(address, cost, options = {}) {
58
60
  if (!address) {
59
61
  console.error("Address Not Found");
@@ -2,7 +2,6 @@ export { default as WalletButton } from "./WagmiButton";
2
2
  export { default as CordyStackTrans } from "./Transactions";
3
3
  export { CordyStackTransStellar } from "./Transactions";
4
4
  export { default as getTokenBalance } from "./Get_Balance";
5
- export { default as AirDropFuacet } from "./AirDrop_Faucet";
6
5
  export { default as Get_Account_Info } from "./Get_Account_Info";
7
6
  export { default as StellarWalletButton } from "./StellarButton";
8
7
  export { default as loadStellarBalance } from "./loadStellarBalance";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../controllers/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,eAAe,CAAC;AAExD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAExD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEjE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAErE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAE/D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../controllers/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,eAAe,CAAC;AAExD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAExD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAE3D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEjE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEjE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAErE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAE/D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
@@ -2,7 +2,6 @@ export { default as WalletButton } from "./WagmiButton";
2
2
  export { default as CordyStackTrans } from "./Transactions";
3
3
  export { CordyStackTransStellar } from "./Transactions";
4
4
  export { default as getTokenBalance } from "./Get_Balance";
5
- export { default as AirDropFuacet } from "./AirDrop_Faucet";
6
5
  export { default as Get_Account_Info } from "./Get_Account_Info";
7
6
  export { default as StellarWalletButton } from "./StellarButton";
8
7
  export { default as loadStellarBalance } from "./loadStellarBalance";
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cordystackx/cordy_minikit",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },