@reppo/cli 0.1.2 → 0.2.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/bin.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Per-network contract bundles. Mainnet
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Per-network contract bundles. Mainnet contracts are fully wired
|
|
3
|
+
* (PodManager V2, SubnetManager, veReppo, REPPO, USDC, Uniswap). The
|
|
4
|
+
* V1 PodManager 0xcfF051... is intentionally not supported.
|
|
5
|
+
*
|
|
6
|
+
* Testnet USDC remains a TBD placeholder. The placeholder throws on
|
|
7
|
+
* access so we fail loudly instead of silently sending to 0x0.
|
|
6
8
|
*/
|
|
7
9
|
import type { Address } from 'viem';
|
|
8
10
|
export type Network = 'mainnet' | 'testnet';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../../src/chain/addresses.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../../src/chain/addresses.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGpC,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;AAE5C,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,aAAa,EAAE,OAAO,GAAG,IAAI,CAAC;IAC9B,aAAa,EAAE,OAAO,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;CACjB;AA0BD,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,aAAa,CAE5D;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAUpE"}
|
package/dist/chain/addresses.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { cliError } from '../output/format.js';
|
|
2
2
|
const TBD = '0x0000000000000000000000000000000000000000';
|
|
3
3
|
const MAINNET = {
|
|
4
|
-
podManager: '
|
|
5
|
-
subnetManager:
|
|
4
|
+
podManager: '0x5C563f853eb4db33005A5C1aD9290e8560254A80', // PodManager V2 (V1 0xcfF051... deprecated, not supported)
|
|
5
|
+
subnetManager: '0x2629A8083065938B533b117704935D727270eE7A',
|
|
6
6
|
reppoToken: '0xFf8104251E7761163faC3211eF5583FB3F8583d6',
|
|
7
|
-
veReppo:
|
|
7
|
+
veReppo: '0x0EFBE19Cb7B07D934D01990a8989E9CaA98b9009',
|
|
8
8
|
usdc: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
|
|
9
9
|
uniswapRouter: '0x2626664c2603336E57B271c5C0b26F421741e481',
|
|
10
10
|
uniswapQuoter: '0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addresses.js","sourceRoot":"","sources":["../../src/chain/addresses.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"addresses.js","sourceRoot":"","sources":["../../src/chain/addresses.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAe/C,MAAM,GAAG,GAAG,4CAAqD,CAAC;AAElE,MAAM,OAAO,GAAkB;IAC7B,UAAU,EAAK,4CAA4C,EAAE,2DAA2D;IACxH,aAAa,EAAE,4CAA4C;IAC3D,UAAU,EAAK,4CAA4C;IAC3D,OAAO,EAAQ,4CAA4C;IAC3D,IAAI,EAAW,4CAA4C;IAC3D,aAAa,EAAE,4CAA4C;IAC3D,aAAa,EAAE,4CAA4C;IAC3D,OAAO,EAAE,IAAI;CACd,CAAC;AAEF,MAAM,OAAO,GAAkB;IAC7B,UAAU,EAAK,4CAA4C;IAC3D,aAAa,EAAE,4CAA4C;IAC3D,UAAU,EAAK,4CAA4C;IAC3D,OAAO,EAAQ,4CAA4C;IAC3D,IAAI,EAAW,GAAG,EAAE,4CAA4C;IAChE,aAAa,EAAE,IAAI,EAAE,sDAAsD;IAC3E,aAAa,EAAE,IAAI;IACnB,OAAO,EAAE,KAAK;CACf,CAAC;AAEF,MAAM,UAAU,YAAY,CAAC,OAAgB;IAC3C,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;AACnD,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,IAAa,EAAE,KAAa;IACzD,IAAI,IAAI,KAAK,GAAG,EAAE,CAAC;QACjB,MAAM,QAAQ,CACZ,wBAAwB,EACxB,GAAG,KAAK,mDAAmD;YACzD,sDAAsD,EACxD,GAAG,KAAK,6HAA6H,CACtI,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* "did the lockup mint succeed?" (lockupCount went up) and "how much
|
|
10
10
|
* voting power did I get?" (votingPowerOf delta).
|
|
11
11
|
*
|
|
12
|
-
* If veReppo is TBD on the chosen network
|
|
13
|
-
*
|
|
12
|
+
* If veReppo is TBD on the chosen network, each field emits
|
|
13
|
+
* `{ unavailable: "<reason>" }` rather than a misleading 0.
|
|
14
14
|
*/
|
|
15
15
|
import { Option } from 'clipanion';
|
|
16
16
|
import { formatUnits, isAddress } from 'viem';
|