@sentrix-labs/canonical-contracts 1.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.
- package/CHANGELOG.md +70 -0
- package/LICENSE +21 -0
- package/NOTICE +19 -0
- package/README.md +150 -0
- package/contracts/CoinBlastCurve.sol +369 -0
- package/contracts/CoinBlastFactory.sol +76 -0
- package/contracts/MerkleAirdrop.sol +142 -0
- package/contracts/Multicall3.sol +125 -0
- package/contracts/SentrixSafe.sol +252 -0
- package/contracts/StrategicReserveTimelock.sol +104 -0
- package/contracts/TokenFactory.sol +106 -0
- package/contracts/WSRX.sol +95 -0
- package/contracts/interfaces/ISentrixSafe.sol +42 -0
- package/contracts/interfaces/ITokenFactory.sol +27 -0
- package/contracts/interfaces/IWSRX.sol +30 -0
- package/contracts/mocks/MockERC20.sol +60 -0
- package/contracts/mocks/MockSRX.sol +28 -0
- package/deployments/7119.json +75 -0
- package/deployments/7120.json +51 -0
- package/deployments/README.md +70 -0
- package/deployments/abi/FactoryToken.json +1 -0
- package/deployments/abi/Multicall3.json +1 -0
- package/deployments/abi/SentrixSafe.json +1 -0
- package/deployments/abi/TokenFactory.json +1 -0
- package/deployments/abi/WSRX.json +1 -0
- package/deployments/abi/index.js +11 -0
- package/dist/generated.d.ts +3181 -0
- package/dist/generated.d.ts.map +1 -0
- package/dist/index.cjs +1429 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1415 -0
- package/dist/index.js.map +1 -0
- package/package.json +74 -0
- package/src/generated.ts +1441 -0
- package/src/index.ts +41 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// Public entry point for @sentrix-labs/canonical-contracts.
|
|
2
|
+
//
|
|
3
|
+
// Two consumption paths:
|
|
4
|
+
//
|
|
5
|
+
// import { WSRX, getAddress } from "@sentrix-labs/canonical-contracts";
|
|
6
|
+
// const w = createPublicClient({ chain, transport: http() });
|
|
7
|
+
// const sym = await w.readContract({
|
|
8
|
+
// address: getAddress("WSRX", 7119),
|
|
9
|
+
// abi: WSRX.abi,
|
|
10
|
+
// functionName: "symbol",
|
|
11
|
+
// });
|
|
12
|
+
//
|
|
13
|
+
// Or if you just want the ABI const for typed event filters / encoding:
|
|
14
|
+
//
|
|
15
|
+
// import { WSRX_ABI } from "@sentrix-labs/canonical-contracts";
|
|
16
|
+
//
|
|
17
|
+
// All ABIs are emitted with `as const` so viem (and any other tooling
|
|
18
|
+
// that reads the literal type) can derive precise argument + return
|
|
19
|
+
// types per function — no codegen step needed on the consumer side.
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
WSRX,
|
|
23
|
+
WSRX_ABI,
|
|
24
|
+
type WSRXAddress,
|
|
25
|
+
Multicall3,
|
|
26
|
+
Multicall3_ABI,
|
|
27
|
+
type Multicall3Address,
|
|
28
|
+
SentrixSafe,
|
|
29
|
+
SentrixSafe_ABI,
|
|
30
|
+
type SentrixSafeAddress,
|
|
31
|
+
TokenFactory,
|
|
32
|
+
TokenFactory_ABI,
|
|
33
|
+
type TokenFactoryAddress,
|
|
34
|
+
FactoryToken,
|
|
35
|
+
FactoryToken_ABI,
|
|
36
|
+
type FactoryTokenAddress,
|
|
37
|
+
CONTRACTS,
|
|
38
|
+
CHAIN_IDS,
|
|
39
|
+
type ChainId,
|
|
40
|
+
getAddress,
|
|
41
|
+
} from "./generated.js";
|