@run402/sdk 4.118.0 → 4.119.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.
- package/dist/node/index.d.ts +2 -0
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +2 -0
- package/dist/node/index.js.map +1 -1
- package/dist/node/init.d.ts +3 -0
- package/dist/node/init.d.ts.map +1 -1
- package/dist/node/init.js +11 -8
- package/dist/node/init.js.map +1 -1
- package/dist/node/onchain-balances.d.ts +24 -0
- package/dist/node/onchain-balances.d.ts.map +1 -0
- package/dist/node/onchain-balances.js +72 -0
- package/dist/node/onchain-balances.js.map +1 -0
- package/dist/node/paid-fetch.d.ts +26 -1
- package/dist/node/paid-fetch.d.ts.map +1 -1
- package/dist/node/paid-fetch.js +93 -4
- package/dist/node/paid-fetch.js.map +1 -1
- package/dist/node/status.d.ts +4 -0
- package/dist/node/status.d.ts.map +1 -1
- package/dist/node/status.js +6 -47
- package/dist/node/status.js.map +1 -1
- package/dist/node/tempo.d.ts +30 -0
- package/dist/node/tempo.d.ts.map +1 -0
- package/dist/node/tempo.js +36 -0
- package/dist/node/tempo.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The two Tempo chains MPP on Tempo pays on (spec `mpp-tempo-client-surface`).
|
|
3
|
+
*
|
|
4
|
+
* Run402 offers both on every Tempo-priced SKU, in an order that states its
|
|
5
|
+
* preference: mainnet first on paid SKUs, Moderato first on the free prototype
|
|
6
|
+
* tier. pathUSD lives at the same address on both. Tempo has no native gas
|
|
7
|
+
* token; the sender pays its transaction fee in a stablecoin, so a payment
|
|
8
|
+
* needs a little pathUSD beyond the price.
|
|
9
|
+
*/
|
|
10
|
+
export const PATH_USD = "0x20c0000000000000000000000000000000000000";
|
|
11
|
+
export const TEMPO_MAINNET = {
|
|
12
|
+
id: 4217,
|
|
13
|
+
network: "eip155:4217",
|
|
14
|
+
name: "Tempo",
|
|
15
|
+
rpcUrl: "https://rpc.tempo.xyz",
|
|
16
|
+
balanceKey: "tempo_mainnet_pathusd_micros",
|
|
17
|
+
testnet: false,
|
|
18
|
+
};
|
|
19
|
+
export const TEMPO_MODERATO = {
|
|
20
|
+
id: 42431,
|
|
21
|
+
network: "eip155:42431",
|
|
22
|
+
name: "Tempo Moderato",
|
|
23
|
+
rpcUrl: "https://rpc.moderato.tempo.xyz",
|
|
24
|
+
balanceKey: "tempo_moderato_pathusd_micros",
|
|
25
|
+
testnet: true,
|
|
26
|
+
};
|
|
27
|
+
export const TEMPO_CHAINS = [TEMPO_MAINNET, TEMPO_MODERATO];
|
|
28
|
+
export function tempoChainById(id) {
|
|
29
|
+
return TEMPO_CHAINS.find((chain) => chain.id === Number(id)) ?? null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* pathUSD (USD micros) a payment needs beyond the price, for the sender's
|
|
33
|
+
* Tempo transaction fee.
|
|
34
|
+
*/
|
|
35
|
+
export const TEMPO_FEE_HEADROOM_USD_MICROS = 5000n;
|
|
36
|
+
//# sourceMappingURL=tempo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tempo.js","sourceRoot":"","sources":["../../src/node/tempo.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,CAAC,MAAM,QAAQ,GAAG,4CAAqD,CAAC;AAa9E,MAAM,CAAC,MAAM,aAAa,GAAe;IACvC,EAAE,EAAE,IAAI;IACR,OAAO,EAAE,aAAa;IACtB,IAAI,EAAE,OAAO;IACb,MAAM,EAAE,uBAAuB;IAC/B,UAAU,EAAE,8BAA8B;IAC1C,OAAO,EAAE,KAAK;CACf,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAe;IACxC,EAAE,EAAE,KAAK;IACT,OAAO,EAAE,cAAc;IACvB,IAAI,EAAE,gBAAgB;IACtB,MAAM,EAAE,gCAAgC;IACxC,UAAU,EAAE,+BAA+B;IAC3C,OAAO,EAAE,IAAI;CACd,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAA0B,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;AAEnF,MAAM,UAAU,cAAc,CAAC,EAAW;IACxC,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC;AACvE,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,KAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@run402/sdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.119.0",
|
|
4
4
|
"description": "Typed TypeScript client for the Run402 API. Kernel shared by the run402-mcp server, the run402 CLI, and user-deployed run402 functions.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|