@orbclub/create-app 0.1.3 → 0.1.5
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/bin/sdk-version.js +1 -1
- package/package.json +1 -1
- package/template/AGENTS.md +6 -1
- package/template/package.json +2 -2
package/bin/sdk-version.js
CHANGED
package/package.json
CHANGED
package/template/AGENTS.md
CHANGED
|
@@ -58,6 +58,9 @@ environment variables are in `README.md`.
|
|
|
58
58
|
`NEXT_PUBLIC_*`.
|
|
59
59
|
- Client components import only `@orbclub/apps-sdk/client`, `/detect` and `/site`.
|
|
60
60
|
The root `@orbclub/apps-sdk` is for server code.
|
|
61
|
+
- To ask for an amount when `isInsideOrb()`, use `requestAmount` or
|
|
62
|
+
`openAmountSheet` from `@orbclub/apps-sdk/client`; don't build a numpad.
|
|
63
|
+
Outside Orb, use a normal decimal input.
|
|
61
64
|
- Run `signInWithOrb` in the page; never proxy it (Orb rate-limits per client
|
|
62
65
|
IP). `bindSiteSession`, `renewSiteSession` and `endSiteSession` are the
|
|
63
66
|
opposite: server only.
|
|
@@ -83,7 +86,9 @@ environment variables are in `README.md`.
|
|
|
83
86
|
address) from `result.session.address` to the expected recipient. Check the
|
|
84
87
|
transfer itself: the transaction's `from` and `to` can be the device wallet
|
|
85
88
|
or a contract. Credit each hash once, to one order created before it was
|
|
86
|
-
mined. A timeout doesn't cancel it:
|
|
89
|
+
mined. A timeout doesn't cancel it: pass an `idempotencyKey`, one per
|
|
90
|
+
transaction (such as the order ID plus the item's index), and retry with
|
|
91
|
+
the same key; if the outcome is still unknown, check before retrying.
|
|
87
92
|
- `getTipUserTx`, `tipUser`, `enableAction` and generated `*Tx` operations can
|
|
88
93
|
send the transaction at once, with no approval sheet. Call them only after
|
|
89
94
|
the viewer confirms in the page. Never time one out, retry it automatically
|
package/template/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"lint": "eslint ."
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"next": "16.4.
|
|
16
|
+
"next": "16.4.3",
|
|
17
17
|
"@orbclub/apps-sdk": __SDK_DEPENDENCY_JSON__,
|
|
18
18
|
"react": "19.2.8",
|
|
19
19
|
"react-dom": "19.2.8"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@types/react": "^19",
|
|
24
24
|
"@types/react-dom": "^19",
|
|
25
25
|
"eslint": "^9",
|
|
26
|
-
"eslint-config-next": "16.4.
|
|
26
|
+
"eslint-config-next": "16.4.3",
|
|
27
27
|
"typescript": "^5"
|
|
28
28
|
}
|
|
29
29
|
}
|