@ripplesdotrun/agent-sdk 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.
@@ -0,0 +1,29 @@
1
+ /**
2
+ * The figures a launch has to declare, and the two the chain checks for exact equality.
3
+ *
4
+ * `vQuoteInit` and `graduationQuote` are frozen per settlement asset in the launchpad's quote
5
+ * registry, and the launch factory refuses a launch that names anything else. They are not a
6
+ * choice, so the SDK fills them rather than asking; a caller who wants different economics wants
7
+ * a different asset, not a different number here.
8
+ */
9
+ export declare const LINKED_RESERVES: {
10
+ readonly curveSupply: bigint;
11
+ readonly lpTokenSupply: bigint;
12
+ readonly vQuoteInit: 5250000000000000000n;
13
+ readonly vTokenInit: bigint;
14
+ readonly graduationQuote: 4200000000000000000n;
15
+ /** Zero is the factory's way of saying the liquidity never unlocks. */
16
+ readonly lpUnlockAt: 0n;
17
+ };
18
+ /** The coupling a combined launch opens with, in the shape the form offers. */
19
+ export declare const LINKED_DEFAULTS: {
20
+ /** Share of supply reserved for the wallets that mint. */
21
+ readonly allocationBps: 500;
22
+ /** Share of each mint that buys into the token's market while it fills. */
23
+ readonly mintToCurveBps: 2000;
24
+ readonly vestCliffDays: 30;
25
+ readonly vestDurationDays: 365;
26
+ };
27
+ export declare const MAX_PAYEES = 8;
28
+ /** `Collection721.Mode.PREGEN`: the artwork exists before the first mint. */
29
+ export declare const PREGEN = 0;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * The figures a launch has to declare, and the two the chain checks for exact equality.
3
+ *
4
+ * `vQuoteInit` and `graduationQuote` are frozen per settlement asset in the launchpad's quote
5
+ * registry, and the launch factory refuses a launch that names anything else. They are not a
6
+ * choice, so the SDK fills them rather than asking; a caller who wants different economics wants
7
+ * a different asset, not a different number here.
8
+ */
9
+ export const LINKED_RESERVES = {
10
+ curveSupply: 800000000n * 10n ** 18n,
11
+ lpTokenSupply: 265000000n * 10n ** 18n,
12
+ vQuoteInit: 5250000000000000000n,
13
+ vTokenInit: 1073000000n * 10n ** 18n,
14
+ graduationQuote: 4200000000000000000n,
15
+ /** Zero is the factory's way of saying the liquidity never unlocks. */
16
+ lpUnlockAt: 0n,
17
+ };
18
+ /** The coupling a combined launch opens with, in the shape the form offers. */
19
+ export const LINKED_DEFAULTS = {
20
+ /** Share of supply reserved for the wallets that mint. */
21
+ allocationBps: 500,
22
+ /** Share of each mint that buys into the token's market while it fills. */
23
+ mintToCurveBps: 2_000,
24
+ vestCliffDays: 30,
25
+ vestDurationDays: 365,
26
+ };
27
+ export const MAX_PAYEES = 8;
28
+ /** `Collection721.Mode.PREGEN`: the artwork exists before the first mint. */
29
+ export const PREGEN = 0;
@@ -0,0 +1,4 @@
1
+ export { DEPLOYMENTS, chainOf, type RipplesDeployment, type RipplesNetwork } from "./chains.js";
2
+ export { LINKED_DEFAULTS, LINKED_RESERVES, MAX_PAYEES } from "./defaults.js";
3
+ export { AGENT_FACTORY_ABI, AGENT_TREASURY_ABI } from "./abi.js";
4
+ export { createRipplesAgent, readAgent, type Activity, type AgentCharter, type AgentClient, type Budget, type Charter, type CollectionPlan, type LaunchPlan, type LaunchResult, type RipplesAgentOptions, type TokenPlan, } from "./agent.js";
package/dist/index.js ADDED
@@ -0,0 +1,4 @@
1
+ export { DEPLOYMENTS, chainOf } from "./chains.js";
2
+ export { LINKED_DEFAULTS, LINKED_RESERVES, MAX_PAYEES } from "./defaults.js";
3
+ export { AGENT_FACTORY_ABI, AGENT_TREASURY_ABI } from "./abi.js";
4
+ export { createRipplesAgent, readAgent, } from "./agent.js";
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@ripplesdotrun/agent-sdk",
3
+ "version": "0.1.0",
4
+ "description": "Launch an agent on Ripples and run it: one call to create the market, the collection and the treasury that holds the agent's money under limits nobody can raise.",
5
+ "keywords": [
6
+ "ripples",
7
+ "agent",
8
+ "launchpad",
9
+ "robinhood-chain",
10
+ "uniswap-v4",
11
+ "erc20",
12
+ "nft"
13
+ ],
14
+ "license": "MIT",
15
+ "type": "module",
16
+ "main": "./dist/index.js",
17
+ "types": "./dist/index.d.ts",
18
+ "exports": {
19
+ ".": {
20
+ "types": "./dist/index.d.ts",
21
+ "default": "./dist/index.js"
22
+ }
23
+ },
24
+ "files": [
25
+ "dist",
26
+ "README.md"
27
+ ],
28
+ "engines": {
29
+ "node": ">=20"
30
+ },
31
+ "scripts": {
32
+ "build": "tsc -p tsconfig.json",
33
+ "prepublishOnly": "npm run build",
34
+ "test": "node --test test/*.test.mjs"
35
+ },
36
+ "peerDependencies": {
37
+ "viem": "^2.21.0"
38
+ },
39
+ "devDependencies": {
40
+ "typescript": "^5.6.0",
41
+ "viem": "^2.21.0"
42
+ },
43
+ "publishConfig": {
44
+ "access": "public"
45
+ },
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "git+https://github.com/ripples-dot-run/ripples.git",
49
+ "directory": "packages/agent-sdk"
50
+ },
51
+ "homepage": "https://ripples.run/docs#rh-agents"
52
+ }