@epoch-protocol/epoch-commons-sdk 0.1.16 → 0.1.17

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.
@@ -50,6 +50,10 @@ export declare const SAFE_MULTISEND_ADDRESS: {
50
50
  export declare const SAFE_MULTISEND_CALL_ONLY_ADDRESS: {
51
51
  [key: number]: string;
52
52
  };
53
+ export declare const ARBITER_ADDRESS: Record<number, string>;
54
+ export declare const ALLOCATOR_ADDRESS: Record<number, string>;
55
+ export declare function getAllocatorAddress(chainId: number | string): string;
56
+ export declare function getArbiterAddress(chainId: number | string): string;
53
57
  declare const CONTRACT_ADDRESSES: {
54
58
  [key: string]: {
55
59
  [key: number]: string;
@@ -90,6 +90,50 @@ export const SAFE_MULTISEND_CALL_ONLY_ADDRESS = {
90
90
  84532: "0x944b129a384265D916fbEA3440CD2caA4925145c",
91
91
  11155420: "0x944b129a384265D916fbEA3440CD2caA4925145c",
92
92
  };
93
+ export const ARBITER_ADDRESS = {
94
+ // Mainnets
95
+ 1: "0x9f1de3ca45b09c61792a6f649ae68f420aa8a43b",
96
+ 137: "0x9f1de3ca45b09c61792a6f649ae68f420aa8a43b",
97
+ 10: "0x9f1de3ca45b09c61792a6f649ae68f420aa8a43b",
98
+ 42161: "0x9f1de3ca45b09c61792a6f649ae68f420aa8a43b",
99
+ 8453: "0x9f1de3ca45b09c61792a6f649ae68f420aa8a43b",
100
+ // Testnets
101
+ 11155111: "0x2F5eA866716A04e91a55099620F2e1B423eC7011",
102
+ 84532: "0x2F5eA866716A04e91a55099620F2e1B423eC7011",
103
+ 11155420: "0x2F5eA866716A04e91a55099620F2e1B423eC7011",
104
+ 123456789: "0x9f1de3ca45b09c61792a6f649ae68f420aa8a43b",
105
+ 999999999: "0x9f1de3ca45b09c61792a6f649ae68f420aa8a43b",
106
+ };
107
+ export const ALLOCATOR_ADDRESS = {
108
+ // Mainnets
109
+ 1: "0x444E8C0fC85BB47aBD3E97d00E2E2B0719034769",
110
+ 137: "0x444E8C0fC85BB47aBD3E97d00E2E2B0719034769",
111
+ 10: "0x444E8C0fC85BB47aBD3E97d00E2E2B0719034769",
112
+ 42161: "0x444E8C0fC85BB47aBD3E97d00E2E2B0719034769",
113
+ 8453: "0x444E8C0fC85BB47aBD3E97d00E2E2B0719034769",
114
+ // Testnets
115
+ 11155111: "0xa46827635A7d329608085401a3b2Bf14a8a2bDF9",
116
+ 84532: "0xa46827635A7d329608085401a3b2Bf14a8a2bDF9",
117
+ 11155420: "0xa46827635A7d329608085401a3b2Bf14a8a2bDF9",
118
+ 123456789: "0x444E8C0fC85BB47aBD3E97d00E2E2B0719034769",
119
+ 999999999: "0x444E8C0fC85BB47aBD3E97d00E2E2B0719034769",
120
+ };
121
+ export function getAllocatorAddress(chainId) {
122
+ const id = typeof chainId === "string" ? parseInt(chainId, 10) : chainId;
123
+ const address = ALLOCATOR_ADDRESS[id];
124
+ if (!address) {
125
+ throw new Error(`No allocator address configured for chain ${chainId}`);
126
+ }
127
+ return address;
128
+ }
129
+ export function getArbiterAddress(chainId) {
130
+ const id = typeof chainId === "string" ? parseInt(chainId, 10) : chainId;
131
+ const address = ARBITER_ADDRESS[id];
132
+ if (!address) {
133
+ throw new Error(`No arbiter address configured for chain ${chainId}`);
134
+ }
135
+ return address;
136
+ }
93
137
  const CONTRACT_ADDRESSES = {
94
138
  METAMASK_EXEC_MANAGER,
95
139
  SAFE_PROXY_FACTORY_ADDRESS,
@@ -108,5 +152,7 @@ const CONTRACT_ADDRESSES = {
108
152
  EPOCH_ESCROW_ADDRESS,
109
153
  SAFE_MULTISEND_ADDRESS,
110
154
  SAFE_MULTISEND_CALL_ONLY_ADDRESS,
155
+ ARBITER_ADDRESS,
156
+ ALLOCATOR_ADDRESS,
111
157
  };
112
158
  export { CONTRACT_ADDRESSES };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epoch-protocol/epoch-commons-sdk",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "SDK for interacting with Epoch Commons Protocol",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",