@purseragents/sdk 0.0.0-stage → 0.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/LICENSE +21 -0
- package/README.md +24 -2
- package/dist/abi.d.ts +3235 -0
- package/dist/abi.js +254 -0
- package/dist/all.d.ts +2 -0
- package/dist/all.js +3 -0
- package/dist/chain.d.ts +31 -0
- package/dist/chain.js +28 -0
- package/dist/client.d.ts +421 -0
- package/dist/client.js +221 -0
- package/dist/eip712.d.ts +381 -0
- package/dist/eip712.js +132 -0
- package/dist/index.d.ts +73 -0
- package/dist/index.js +66 -0
- package/dist/merchant.d.ts +41 -0
- package/dist/merchant.js +91 -0
- package/dist/schema.d.ts +583 -0
- package/dist/schema.js +11 -0
- package/dist/tools.d.ts +42 -0
- package/dist/tools.js +212 -0
- package/dist/webhooks.d.ts +8 -0
- package/dist/webhooks.js +24 -0
- package/dist/x402.d.ts +100 -0
- package/dist/x402.js +89 -0
- package/package.json +28 -4
package/dist/abi.js
ADDED
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { parseAbi } from "viem";
|
|
2
|
+
/** ABIs of the Purser contracts (contracts/src) and the chain contracts Purser talks to. */
|
|
3
|
+
const moduleStructs = [
|
|
4
|
+
"struct Config { address agent; address cosigner; address firewall; address watchdog; uint16 maxPerMinute; uint24 hoursMask; uint8 daysMask; bool payeeAllowlist; bool serviceAllowlist; }",
|
|
5
|
+
"struct TokenRule { bool enabled; bool receivable; uint128 maxSingle; uint128 daily; uint128 weekly; uint128 perCounterpartyDaily; uint128 approvalAbove; uint128 cosignAbove; uint128 keepLiquid; }",
|
|
6
|
+
"struct TokenRuleInit { address token; TokenRule rule; }",
|
|
7
|
+
"struct Split { address to; uint16 bps; }",
|
|
8
|
+
"struct Account { bool initialized; bool frozen; uint16 minuteCount; uint64 minute; address guardian; uint64 recoveryDelay; address approver; uint256 agentId; Config config; }",
|
|
9
|
+
"struct Pay { address safe; address token; address to; uint256 amount; bytes32 service; uint256 nonce; uint256 deadline; }",
|
|
10
|
+
"struct Call { address safe; address target; uint256 value; bytes data; address spendToken; uint256 spendLimit; uint256 nonce; uint256 deadline; }",
|
|
11
|
+
"struct Treasury { address safe; address vault; bool deposit; uint256 assets; uint256 limit; uint256 nonce; uint256 deadline; }",
|
|
12
|
+
];
|
|
13
|
+
export const purserModuleAbi = parseAbi([
|
|
14
|
+
...moduleStructs,
|
|
15
|
+
"function initialize(Config config, TokenRuleInit[] rules, address[] allow, address[] extensions)",
|
|
16
|
+
"function setConfig(Config config)",
|
|
17
|
+
"function setTokenRule(address token, TokenRule rule)",
|
|
18
|
+
"function setCounterpartyLimit(address token, address cp, uint256 limit)",
|
|
19
|
+
"function setAllowed(address[] targets, bool on)",
|
|
20
|
+
"function setServices(bytes32[] services, bool on)",
|
|
21
|
+
"function setTreasuryVault(address vault, bool on)",
|
|
22
|
+
"function setExtension(address ext, bool on)",
|
|
23
|
+
"function setSplits(Split[] splits)",
|
|
24
|
+
"function setApprover(address approver)",
|
|
25
|
+
"function setGuardian(address guardian, uint64 delay)",
|
|
26
|
+
"function setAgentId(uint256 agentId)",
|
|
27
|
+
"function freeze(address safe)",
|
|
28
|
+
"function unfreeze(address safe)",
|
|
29
|
+
"function approveIntent(address safe, bytes32 digest)",
|
|
30
|
+
"function rejectIntent(address safe, bytes32 digest)",
|
|
31
|
+
"function startRecovery(address safe, address[] owners, uint256 threshold)",
|
|
32
|
+
"function cancelRecovery(address safe)",
|
|
33
|
+
"function finishRecovery(address safe, address[] owners, uint256 threshold)",
|
|
34
|
+
"function pay(Pay p, bytes sigs) returns (bool)",
|
|
35
|
+
"function call(Call c, bytes sigs) returns (bool)",
|
|
36
|
+
"function treasury(Treasury t, bytes sigs)",
|
|
37
|
+
"function receiveWithAuthorization(address safe, address token, address from, uint256 value, uint256 validAfter, uint256 validBefore, bytes32 nonce, bytes signature, bytes32 ref, bool transferForm)",
|
|
38
|
+
"function receiveETH(address safe, bytes32 ref) payable",
|
|
39
|
+
"function getAccount(address safe) view returns (Account)",
|
|
40
|
+
"function getTokenRule(address safe, address token) view returns (TokenRule)",
|
|
41
|
+
"function getTokens(address safe) view returns (address[])",
|
|
42
|
+
"function getSplits(address safe) view returns (Split[])",
|
|
43
|
+
"function feeFor(uint256 amount) view returns (uint256)",
|
|
44
|
+
"function hashTyped(bytes32 structHash) view returns (bytes32)",
|
|
45
|
+
"function domainSeparator() view returns (bytes32)",
|
|
46
|
+
"function remainingToday(address safe, address token) view returns (uint256)",
|
|
47
|
+
"function nonceUsed(address safe, uint256 nonce) view returns (bool)",
|
|
48
|
+
"function intentState(address safe, bytes32 digest) view returns (uint8)",
|
|
49
|
+
"function allowed(address safe, address target) view returns (bool)",
|
|
50
|
+
"function allowedService(address safe, bytes32 service) view returns (bool)",
|
|
51
|
+
"function treasuryVault(address safe, address vault) view returns (bool)",
|
|
52
|
+
"function extensionEnabled(address safe, address ext) view returns (bool)",
|
|
53
|
+
"function counterpartyLimit(address safe, address token, address cp) view returns (uint256)",
|
|
54
|
+
"function spentOnDay(address safe, address token, uint256 day) view returns (uint256)",
|
|
55
|
+
"function spentInWeek(address safe, address token, uint256 week) view returns (uint256)",
|
|
56
|
+
"function counterpartySpent(bytes32 key) view returns (uint256)",
|
|
57
|
+
"function recovery(address safe) view returns (bytes32 ownersHash, uint64 executeAfter)",
|
|
58
|
+
"function FEE_BPS() view returns (uint256)",
|
|
59
|
+
"function PAY_TYPEHASH() view returns (bytes32)",
|
|
60
|
+
"function CALL_TYPEHASH() view returns (bytes32)",
|
|
61
|
+
"function TREASURY_TYPEHASH() view returns (bytes32)",
|
|
62
|
+
"function AGENT_OP_TYPEHASH() view returns (bytes32)",
|
|
63
|
+
"function FEE_RECIPIENT() view returns (address)",
|
|
64
|
+
"event AccountInitialized(address indexed safe, address indexed agent)",
|
|
65
|
+
"event ConfigSet(address indexed safe, address indexed agent)",
|
|
66
|
+
"event TokenRuleSet(address indexed safe, address indexed token)",
|
|
67
|
+
"event CounterpartyLimitSet(address indexed safe, address indexed token, address indexed cp, uint256 limit)",
|
|
68
|
+
"event AllowedSet(address indexed safe, address indexed target, bool allowed)",
|
|
69
|
+
"event ServiceSet(address indexed safe, bytes32 indexed service, bool allowed)",
|
|
70
|
+
"event TreasuryVaultSet(address indexed safe, address indexed vault, bool allowed)",
|
|
71
|
+
"event ExtensionSet(address indexed safe, address indexed extension, bool enabled)",
|
|
72
|
+
"event SplitsSet(address indexed safe, uint256 count)",
|
|
73
|
+
"event ApproverSet(address indexed safe, address indexed approver)",
|
|
74
|
+
"event GuardianSet(address indexed safe, address indexed guardian, uint64 delay)",
|
|
75
|
+
"event AgentIdSet(address indexed safe, uint256 agentId)",
|
|
76
|
+
"event Frozen(address indexed safe, address indexed by)",
|
|
77
|
+
"event Unfrozen(address indexed safe, address indexed by)",
|
|
78
|
+
"event IntentQueued(address indexed safe, bytes32 indexed digest, address token, uint256 amount)",
|
|
79
|
+
"event IntentApproved(address indexed safe, bytes32 indexed digest, address indexed by)",
|
|
80
|
+
"event IntentRejected(address indexed safe, bytes32 indexed digest, address indexed by)",
|
|
81
|
+
"event Paid(address indexed safe, address indexed token, address indexed to, uint256 amount, uint256 fee, bytes32 service, bytes32 digest)",
|
|
82
|
+
"event Called(address indexed safe, address indexed target, uint256 value, bytes4 selector, bytes32 digest)",
|
|
83
|
+
"event Outflow(address indexed safe, address indexed token, address indexed to, uint256 amount, uint256 fee)",
|
|
84
|
+
"event TreasuryMoved(address indexed safe, address indexed vault, bool deposit, uint256 assets, uint256 shares)",
|
|
85
|
+
"event Received(address indexed safe, address indexed token, address indexed from, uint256 amount, bytes32 ref)",
|
|
86
|
+
"event SplitPaid(address indexed safe, address indexed token, address indexed to, uint256 amount)",
|
|
87
|
+
"event RecoveryStarted(address indexed safe, address[] owners, uint256 threshold, uint64 executeAfter)",
|
|
88
|
+
"event RecoveryCancelled(address indexed safe, address indexed by)",
|
|
89
|
+
"event RecoveryFinished(address indexed safe, address[] owners, uint256 threshold)",
|
|
90
|
+
"error NotSafe()",
|
|
91
|
+
"error NotOwner()",
|
|
92
|
+
"error NotInitialized()",
|
|
93
|
+
"error AlreadyInitialized()",
|
|
94
|
+
"error ModuleNotEnabled()",
|
|
95
|
+
"error IsFrozen()",
|
|
96
|
+
"error Expired()",
|
|
97
|
+
"error NonceUsed()",
|
|
98
|
+
"error BadSignature()",
|
|
99
|
+
"error IntentWasRejected()",
|
|
100
|
+
"error TokenNotEnabled()",
|
|
101
|
+
"error OverMaxSingle()",
|
|
102
|
+
"error OverDaily()",
|
|
103
|
+
"error OverWeekly()",
|
|
104
|
+
"error OverCounterparty()",
|
|
105
|
+
"error PayeeNotAllowed()",
|
|
106
|
+
"error ServiceNotAllowed()",
|
|
107
|
+
"error TargetNotAllowed()",
|
|
108
|
+
"error SelectorBlocked()",
|
|
109
|
+
"error OutsideTimeWindow()",
|
|
110
|
+
"error RateLimited()",
|
|
111
|
+
"error ExecFailed()",
|
|
112
|
+
"error BadAmount()",
|
|
113
|
+
"error BadConfig()",
|
|
114
|
+
"error NotExtension()",
|
|
115
|
+
"error VaultNotAllowed()",
|
|
116
|
+
"error KeepLiquid()",
|
|
117
|
+
"error Slippage()",
|
|
118
|
+
"error NotGuardian()",
|
|
119
|
+
"error RecoveryNotReady()",
|
|
120
|
+
"error Reentrancy()",
|
|
121
|
+
"error NotReceivable()",
|
|
122
|
+
]);
|
|
123
|
+
export const purserFactoryAbi = parseAbi([
|
|
124
|
+
...moduleStructs,
|
|
125
|
+
"struct Setup { Config config; TokenRuleInit[] rules; address[] allow; address[] extensions; string agentURI; }",
|
|
126
|
+
"function createAccount(address[] owners, uint256 threshold, Setup s, uint256 salt) returns (address)",
|
|
127
|
+
"function predictAddress(address[] owners, uint256 threshold, Setup s, address creator, uint256 salt) view returns (address)",
|
|
128
|
+
"function setupAccount(Setup s)",
|
|
129
|
+
"function MODULE() view returns (address)",
|
|
130
|
+
"event AccountCreated(address indexed safe, address indexed creator, uint256 agentId)",
|
|
131
|
+
]);
|
|
132
|
+
export const purserRecurringAbi = parseAbi([
|
|
133
|
+
"function createStream(address safe, address payee, address token, uint128 rate, uint64 maxDuration, uint32 grace, uint256 nonce, uint256 deadline, bytes sigs) returns (uint256)",
|
|
134
|
+
"function heartbeat(uint256 id, uint64 upTo, bytes payeeSig)",
|
|
135
|
+
"function accrued(uint256 id) view returns (uint256 amount, uint64 until)",
|
|
136
|
+
"function settle(uint256 id) returns (uint256)",
|
|
137
|
+
"function stopStream(uint256 id, uint256 nonce, uint256 deadline, bytes sigs)",
|
|
138
|
+
"function createSubscription(address safe, address payee, address token, uint128 amount, uint64 period, uint32 maxCharges, uint256 nonce, uint256 deadline, bytes sigs) returns (uint256)",
|
|
139
|
+
"function charge(uint256 id)",
|
|
140
|
+
"function chargeWithFirewall(uint256 id, uint256 deadline, bytes fwSig)",
|
|
141
|
+
"function settleWithFirewall(uint256 id, uint256 maxAmount, uint256 deadline, bytes fwSig) returns (uint256)",
|
|
142
|
+
"function chargeDigest(uint256 kind, uint256 id, uint256 from, uint256 maxAmount, uint256 deadline) view returns (bytes32)",
|
|
143
|
+
"function CHARGE_TYPEHASH() view returns (bytes32)",
|
|
144
|
+
"function cancelSubscription(uint256 id, uint256 nonce, uint256 deadline, bytes sigs)",
|
|
145
|
+
"function streamOpHash(address payee, address token, uint256 rate, uint256 maxDuration, uint256 grace) pure returns (bytes32)",
|
|
146
|
+
"function subscriptionOpHash(address payee, address token, uint256 amount, uint256 period, uint256 maxCharges) pure returns (bytes32)",
|
|
147
|
+
"function streams(uint256) view returns (address safe, address payee, address token, uint128 rate, uint64 start, uint64 end, uint64 settledUntil, uint64 lastBeat, uint32 grace)",
|
|
148
|
+
"function subscriptions(uint256) view returns (address safe, address payee, address token, uint128 amount, uint64 period, uint64 nextDue, uint32 chargesLeft, bool active)",
|
|
149
|
+
"function streamCount() view returns (uint256)",
|
|
150
|
+
"function subscriptionCount() view returns (uint256)",
|
|
151
|
+
"function DOMAIN_SEPARATOR() view returns (bytes32)",
|
|
152
|
+
"event StreamCreated(uint256 indexed id, address indexed safe, address indexed payee, address token, uint256 rate, uint64 end, uint32 grace)",
|
|
153
|
+
"event StreamQueued(address indexed safe, address indexed payee, bytes32 opHash)",
|
|
154
|
+
"event Heartbeat(uint256 indexed id, uint64 upTo)",
|
|
155
|
+
"event StreamSettled(uint256 indexed id, uint256 amount, uint64 until)",
|
|
156
|
+
"event StreamStopped(uint256 indexed id, address indexed by)",
|
|
157
|
+
"event SubscriptionCreated(uint256 indexed id, address indexed safe, address indexed payee, address token, uint256 amount, uint64 period)",
|
|
158
|
+
"event SubscriptionQueued(address indexed safe, address indexed payee, bytes32 opHash)",
|
|
159
|
+
"event SubscriptionCharged(uint256 indexed id, uint256 amount, uint64 nextDue)",
|
|
160
|
+
"event SubscriptionCancelled(uint256 indexed id, address indexed by)",
|
|
161
|
+
"error BadParams()",
|
|
162
|
+
"error NotAllowed()",
|
|
163
|
+
"error NotDue()",
|
|
164
|
+
"error BadSignature()",
|
|
165
|
+
"error FirewallRequired()",
|
|
166
|
+
"error Expired()",
|
|
167
|
+
]);
|
|
168
|
+
export const purserEscrowAbi = parseAbi([
|
|
169
|
+
"struct Job { address payer; address payee; address arbiter; address token; uint128 amount; uint64 deadline; uint64 reviewUntil; uint32 reviewPeriod; uint8 status; bytes32 invoiceRef; bytes32 deliveryHash; }",
|
|
170
|
+
"function fund(address payee, address arbiter, address token, uint128 amount, uint64 deadline, uint32 reviewPeriod, bytes32 invoiceRef) payable returns (uint256)",
|
|
171
|
+
"function deliver(uint256 id, bytes32 deliveryHash)",
|
|
172
|
+
"function release(uint256 id)",
|
|
173
|
+
"function claim(uint256 id)",
|
|
174
|
+
"function dispute(uint256 id)",
|
|
175
|
+
"function resolve(uint256 id, uint16 payeeBps)",
|
|
176
|
+
"function refund(uint256 id)",
|
|
177
|
+
"function getJob(uint256 id) view returns (Job)",
|
|
178
|
+
"function jobCount() view returns (uint256)",
|
|
179
|
+
"event JobFunded(uint256 indexed id, address indexed payer, address indexed payee, address token, uint256 amount, uint64 deadline, bytes32 invoiceRef)",
|
|
180
|
+
"event JobDelivered(uint256 indexed id, bytes32 deliveryHash, uint64 reviewUntil)",
|
|
181
|
+
"event JobDisputed(uint256 indexed id)",
|
|
182
|
+
"event JobReleased(uint256 indexed id, uint256 amount)",
|
|
183
|
+
"event JobRefunded(uint256 indexed id, uint256 amount)",
|
|
184
|
+
"event JobResolved(uint256 indexed id, uint256 toPayee, uint256 toPayer)",
|
|
185
|
+
"error BadParams()",
|
|
186
|
+
"error NotAllowed()",
|
|
187
|
+
"error WrongStatus()",
|
|
188
|
+
"error TooEarly()",
|
|
189
|
+
"error TransferFailed()",
|
|
190
|
+
]);
|
|
191
|
+
export const purserPasskeyAbi = parseAbi([
|
|
192
|
+
"struct Assertion { bytes authenticatorData; string clientDataJSON; uint256 challengeIndex; uint256 typeIndex; uint256 r; uint256 s; }",
|
|
193
|
+
"function setPasskey(uint256 x, uint256 y)",
|
|
194
|
+
"function approve(address safe, bytes32 digest, Assertion assertion)",
|
|
195
|
+
"function reject(address safe, bytes32 digest, Assertion assertion)",
|
|
196
|
+
"function rejectChallenge(bytes32 digest) pure returns (bytes32)",
|
|
197
|
+
"function passkeys(address safe) view returns (uint256 x, uint256 y)",
|
|
198
|
+
"event PasskeySet(address indexed safe, uint256 x, uint256 y)",
|
|
199
|
+
"error NoPasskey()",
|
|
200
|
+
"error BadAssertion()",
|
|
201
|
+
]);
|
|
202
|
+
export const safeAbi = parseAbi([
|
|
203
|
+
"function getOwners() view returns (address[])",
|
|
204
|
+
"function getThreshold() view returns (uint256)",
|
|
205
|
+
"function isOwner(address) view returns (bool)",
|
|
206
|
+
"function isModuleEnabled(address) view returns (bool)",
|
|
207
|
+
"function nonce() view returns (uint256)",
|
|
208
|
+
"function VERSION() view returns (string)",
|
|
209
|
+
"function getTransactionHash(address to, uint256 value, bytes data, uint8 operation, uint256 safeTxGas, uint256 baseGas, uint256 gasPrice, address gasToken, address refundReceiver, uint256 _nonce) view returns (bytes32)",
|
|
210
|
+
"function execTransaction(address to, uint256 value, bytes data, uint8 operation, uint256 safeTxGas, uint256 baseGas, uint256 gasPrice, address gasToken, address refundReceiver, bytes signatures) payable returns (bool)",
|
|
211
|
+
"function setup(address[] owners, uint256 threshold, address to, bytes data, address fallbackHandler, address paymentToken, uint256 payment, address paymentReceiver)",
|
|
212
|
+
"function enableModule(address module)",
|
|
213
|
+
]);
|
|
214
|
+
export const erc20Abi = parseAbi([
|
|
215
|
+
"function balanceOf(address) view returns (uint256)",
|
|
216
|
+
"function decimals() view returns (uint8)",
|
|
217
|
+
"function symbol() view returns (string)",
|
|
218
|
+
"function name() view returns (string)",
|
|
219
|
+
"function allowance(address owner, address spender) view returns (uint256)",
|
|
220
|
+
"function approve(address spender, uint256 amount) returns (bool)",
|
|
221
|
+
"function transfer(address to, uint256 amount) returns (bool)",
|
|
222
|
+
"function transferFrom(address from, address to, uint256 amount) returns (bool)",
|
|
223
|
+
"function DOMAIN_SEPARATOR() view returns (bytes32)",
|
|
224
|
+
"function authorizationState(address authorizer, bytes32 nonce) view returns (bool)",
|
|
225
|
+
"function transferWithAuthorization(address from, address to, uint256 value, uint256 validAfter, uint256 validBefore, bytes32 nonce, bytes signature)",
|
|
226
|
+
"function receiveWithAuthorization(address from, address to, uint256 value, uint256 validAfter, uint256 validBefore, bytes32 nonce, bytes signature)",
|
|
227
|
+
"function mint(address to, uint256 amount)",
|
|
228
|
+
"event Transfer(address indexed from, address indexed to, uint256 value)",
|
|
229
|
+
"event Approval(address indexed owner, address indexed spender, uint256 value)",
|
|
230
|
+
]);
|
|
231
|
+
export const erc4626Abi = parseAbi([
|
|
232
|
+
"function asset() view returns (address)",
|
|
233
|
+
"function name() view returns (string)",
|
|
234
|
+
"function symbol() view returns (string)",
|
|
235
|
+
"function decimals() view returns (uint8)",
|
|
236
|
+
"function totalAssets() view returns (uint256)",
|
|
237
|
+
"function balanceOf(address) view returns (uint256)",
|
|
238
|
+
"function convertToAssets(uint256 shares) view returns (uint256)",
|
|
239
|
+
"function previewDeposit(uint256 assets) view returns (uint256)",
|
|
240
|
+
"function previewWithdraw(uint256 assets) view returns (uint256)",
|
|
241
|
+
"function deposit(uint256 assets, address receiver) returns (uint256)",
|
|
242
|
+
"function withdraw(uint256 assets, address receiver, address owner) returns (uint256)",
|
|
243
|
+
]);
|
|
244
|
+
export const swapRouter02Abi = parseAbi([
|
|
245
|
+
"struct ExactInputSingleParams { address tokenIn; address tokenOut; uint24 fee; address recipient; uint256 amountIn; uint256 amountOutMinimum; uint160 sqrtPriceLimitX96; }",
|
|
246
|
+
"function exactInputSingle(ExactInputSingleParams params) payable returns (uint256 amountOut)",
|
|
247
|
+
]);
|
|
248
|
+
export const chainlinkAbi = parseAbi([
|
|
249
|
+
"function latestRoundData() view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)",
|
|
250
|
+
]);
|
|
251
|
+
export const identityRegistryAbi = parseAbi([
|
|
252
|
+
"function ownerOf(uint256 agentId) view returns (address)",
|
|
253
|
+
"function tokenURI(uint256 agentId) view returns (string)",
|
|
254
|
+
]);
|
package/dist/all.d.ts
ADDED
package/dist/all.js
ADDED
package/dist/chain.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** Robinhood Chain (4663). Every address here was checked on chain on 2026-11-11 (docs/ARCHITECTURE.md). */
|
|
2
|
+
export declare const ROBINHOOD_CHAIN_ID = 4663;
|
|
3
|
+
export declare const ROBINHOOD_RPC = "https://rpc.mainnet.chain.robinhood.com";
|
|
4
|
+
export declare const X402_NETWORK = "eip155:4663";
|
|
5
|
+
export declare const chainAddresses: {
|
|
6
|
+
readonly safeSingleton: "0x41675C099F32341bf84BFc5382aF534df5C7461a";
|
|
7
|
+
readonly safeProxyFactory: "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67";
|
|
8
|
+
readonly safeFallbackHandler: "0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99";
|
|
9
|
+
readonly multiSendCallOnly: "0x9641d764fc13c8B624c04430C7356C1C7C8102e2";
|
|
10
|
+
readonly multicall3: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
11
|
+
readonly permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3";
|
|
12
|
+
readonly entryPoint07: "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
|
|
13
|
+
readonly identityRegistry: "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432";
|
|
14
|
+
readonly reputationRegistry: "0x8004BAa17C55a88189AE136b182e5fdA19dE9b63";
|
|
15
|
+
readonly validationRegistry: "0x8004Cc8439f36fd5F9F049D9fF86523Df6dAAB58";
|
|
16
|
+
readonly usdg: "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168";
|
|
17
|
+
readonly weth: "0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73";
|
|
18
|
+
readonly swapRouter02: "0xCaf681a66D020601342297493863E78C959E5cb2";
|
|
19
|
+
readonly universalRouter: "0x8876789976decbfcbbbe364623c63652db8c0904";
|
|
20
|
+
readonly uniswapV4PoolManager: "0x8366a39CC670B4001A1121B8F6A443A643e40951";
|
|
21
|
+
readonly usdgWethPool100: "0x52e65B17fB6E5BA00Ed806f37Afcd2DaA50271Ca";
|
|
22
|
+
readonly steakhouseUsdgVault: "0xBeEff033F34C046626B8D0A041844C5d1A5409dd";
|
|
23
|
+
readonly sparkUsdgVault: "0xde770c84fe66e063336b31737cfe9790f18c4087";
|
|
24
|
+
readonly ethUsdFeed: "0x78F3556b67E17Df817D51Ef5a990cDaF09E8d3A9";
|
|
25
|
+
};
|
|
26
|
+
/** USDG's EIP-712 domain (name "Global Dollar", version "1"), needed for EIP-3009 signatures. */
|
|
27
|
+
export declare const USDG_DOMAIN: {
|
|
28
|
+
readonly name: "Global Dollar";
|
|
29
|
+
readonly version: "1";
|
|
30
|
+
};
|
|
31
|
+
export declare const ETH_ADDRESS: "0x0000000000000000000000000000000000000000";
|
package/dist/chain.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Robinhood Chain (4663). Every address here was checked on chain on 2026-11-11 (docs/ARCHITECTURE.md). */
|
|
2
|
+
export const ROBINHOOD_CHAIN_ID = 4663;
|
|
3
|
+
export const ROBINHOOD_RPC = "https://rpc.mainnet.chain.robinhood.com";
|
|
4
|
+
export const X402_NETWORK = "eip155:4663";
|
|
5
|
+
export const chainAddresses = {
|
|
6
|
+
safeSingleton: "0x41675C099F32341bf84BFc5382aF534df5C7461a",
|
|
7
|
+
safeProxyFactory: "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",
|
|
8
|
+
safeFallbackHandler: "0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",
|
|
9
|
+
multiSendCallOnly: "0x9641d764fc13c8B624c04430C7356C1C7C8102e2",
|
|
10
|
+
multicall3: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
11
|
+
permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
|
|
12
|
+
entryPoint07: "0x0000000071727De22E5E9d8BAf0edAc6f37da032",
|
|
13
|
+
identityRegistry: "0x8004A169FB4a3325136EB29fA0ceB6D2e539a432",
|
|
14
|
+
reputationRegistry: "0x8004BAa17C55a88189AE136b182e5fdA19dE9b63",
|
|
15
|
+
validationRegistry: "0x8004Cc8439f36fd5F9F049D9fF86523Df6dAAB58",
|
|
16
|
+
usdg: "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
|
|
17
|
+
weth: "0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73",
|
|
18
|
+
swapRouter02: "0xCaf681a66D020601342297493863E78C959E5cb2",
|
|
19
|
+
universalRouter: "0x8876789976decbfcbbbe364623c63652db8c0904",
|
|
20
|
+
uniswapV4PoolManager: "0x8366a39CC670B4001A1121B8F6A443A643e40951",
|
|
21
|
+
usdgWethPool100: "0x52e65B17fB6E5BA00Ed806f37Afcd2DaA50271Ca",
|
|
22
|
+
steakhouseUsdgVault: "0xBeEff033F34C046626B8D0A041844C5d1A5409dd",
|
|
23
|
+
sparkUsdgVault: "0xde770c84fe66e063336b31737cfe9790f18c4087",
|
|
24
|
+
ethUsdFeed: "0x78F3556b67E17Df817D51Ef5a990cDaF09E8d3A9",
|
|
25
|
+
};
|
|
26
|
+
/** USDG's EIP-712 domain (name "Global Dollar", version "1"), needed for EIP-3009 signatures. */
|
|
27
|
+
export const USDG_DOMAIN = { name: "Global Dollar", version: "1" };
|
|
28
|
+
export const ETH_ADDRESS = "0x0000000000000000000000000000000000000000";
|