@gauntlet-xyz/sdk 1.0.1 → 1.0.3
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/attribution/erc8021.d.ts +7 -0
- package/dist/attribution/erc8021.d.ts.map +1 -0
- package/dist/attribution/erc8021.js +13 -3
- package/dist/attribution/erc8021.js.map +1 -1
- package/dist/attribution/index.d.ts +9 -0
- package/dist/attribution/index.d.ts.map +1 -0
- package/dist/attribution/index.js +8 -0
- package/dist/attribution/index.js.map +1 -1
- package/dist/client.d.ts +36 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +35 -0
- package/dist/client.js.map +1 -1
- package/dist/errors.d.ts +1 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/evm/abis/erc20.d.ts +1 -0
- package/dist/evm/abis/erc20.d.ts.map +1 -0
- package/dist/evm/abis/erc4626.d.ts +1 -0
- package/dist/evm/abis/erc4626.d.ts.map +1 -0
- package/dist/evm/abis/multiDepositorVault.d.ts +1 -0
- package/dist/evm/abis/multiDepositorVault.d.ts.map +1 -0
- package/dist/evm/abis/priceAndFeeCalculator.d.ts +1 -0
- package/dist/evm/abis/priceAndFeeCalculator.d.ts.map +1 -0
- package/dist/evm/abis/provisioner.d.ts +1 -0
- package/dist/evm/abis/provisioner.d.ts.map +1 -0
- package/dist/evm/abis/provisioner.js +30 -0
- package/dist/evm/abis/provisioner.js.map +1 -1
- package/dist/evm/adapters/aera.d.ts +1 -0
- package/dist/evm/adapters/aera.d.ts.map +1 -0
- package/dist/evm/adapters/aera.js +31 -2
- package/dist/evm/adapters/aera.js.map +1 -1
- package/dist/evm/adapters/index.d.ts +1 -0
- package/dist/evm/adapters/index.d.ts.map +1 -0
- package/dist/evm/adapters/morpho.d.ts +1 -0
- package/dist/evm/adapters/morpho.d.ts.map +1 -0
- package/dist/evm/adapters/types.d.ts +4 -0
- package/dist/evm/adapters/types.d.ts.map +1 -0
- package/dist/evm/aeraContracts.d.ts +5 -0
- package/dist/evm/aeraContracts.d.ts.map +1 -0
- package/dist/evm/aeraContracts.js +4 -0
- package/dist/evm/aeraContracts.js.map +1 -1
- package/dist/evm/deposit.d.ts +31 -0
- package/dist/evm/deposit.d.ts.map +1 -0
- package/dist/evm/deposit.js +29 -0
- package/dist/evm/deposit.js.map +1 -1
- package/dist/evm/index.d.ts +1 -0
- package/dist/evm/index.d.ts.map +1 -0
- package/dist/evm/types.d.ts +3 -0
- package/dist/evm/types.d.ts.map +1 -0
- package/dist/evm/userCurrentBalance.d.ts +35 -0
- package/dist/evm/userCurrentBalance.d.ts.map +1 -0
- package/dist/evm/userCurrentBalance.js +37 -0
- package/dist/evm/userCurrentBalance.js.map +1 -1
- package/dist/evm/vaults.d.ts +21 -0
- package/dist/evm/vaults.d.ts.map +1 -0
- package/dist/evm/vaults.js +23 -0
- package/dist/evm/vaults.js.map +1 -1
- package/dist/evm/withdraw.d.ts +37 -0
- package/dist/evm/withdraw.d.ts.map +1 -0
- package/dist/evm/withdraw.js +34 -0
- package/dist/evm/withdraw.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/manifest/vaults.json +1592 -24
- package/package.json +11 -4
- package/src/attribution/erc8021.ts +8 -4
- package/src/attribution/index.ts +1 -1
- package/dist/manifest/vaults.json +0 -139
- package/dist/src/attribution/erc8021.d.ts +0 -2
- package/dist/src/attribution/erc8021.js +0 -7
- package/dist/src/attribution/erc8021.js.map +0 -1
- package/dist/src/attribution/index.d.ts +0 -16
- package/dist/src/attribution/index.js +0 -37
- package/dist/src/attribution/index.js.map +0 -1
- package/dist/src/client.d.ts +0 -28
- package/dist/src/client.js +0 -35
- package/dist/src/client.js.map +0 -1
- package/dist/src/errors.d.ts +0 -55
- package/dist/src/errors.js +0 -97
- package/dist/src/errors.js.map +0 -1
- package/dist/src/evm/abis/erc20.d.ts +0 -40
- package/dist/src/evm/abis/erc20.js +0 -30
- package/dist/src/evm/abis/erc20.js.map +0 -1
- package/dist/src/evm/abis/erc4626.d.ts +0 -104
- package/dist/src/evm/abis/erc4626.js +0 -70
- package/dist/src/evm/abis/erc4626.js.map +0 -1
- package/dist/src/evm/abis/multiDepositorVault.d.ts +0 -1047
- package/dist/src/evm/abis/multiDepositorVault.js +0 -587
- package/dist/src/evm/abis/multiDepositorVault.js.map +0 -1
- package/dist/src/evm/abis/priceAndFeeCalculator.d.ts +0 -909
- package/dist/src/evm/abis/priceAndFeeCalculator.js +0 -490
- package/dist/src/evm/abis/priceAndFeeCalculator.js.map +0 -1
- package/dist/src/evm/abis/provisioner.d.ts +0 -4983
- package/dist/src/evm/abis/provisioner.js +0 -2738
- package/dist/src/evm/abis/provisioner.js.map +0 -1
- package/dist/src/evm/adapters/aera.d.ts +0 -5
- package/dist/src/evm/adapters/aera.js +0 -144
- package/dist/src/evm/adapters/aera.js.map +0 -1
- package/dist/src/evm/adapters/index.d.ts +0 -2
- package/dist/src/evm/adapters/index.js +0 -14
- package/dist/src/evm/adapters/index.js.map +0 -1
- package/dist/src/evm/adapters/morpho.d.ts +0 -2
- package/dist/src/evm/adapters/morpho.js +0 -79
- package/dist/src/evm/adapters/morpho.js.map +0 -1
- package/dist/src/evm/adapters/types.d.ts +0 -65
- package/dist/src/evm/adapters/types.js +0 -2
- package/dist/src/evm/adapters/types.js.map +0 -1
- package/dist/src/evm/aeraContracts.d.ts +0 -2315
- package/dist/src/evm/aeraContracts.js +0 -37
- package/dist/src/evm/aeraContracts.js.map +0 -1
- package/dist/src/evm/deposit.d.ts +0 -13
- package/dist/src/evm/deposit.js +0 -66
- package/dist/src/evm/deposit.js.map +0 -1
- package/dist/src/evm/index.d.ts +0 -10
- package/dist/src/evm/index.js +0 -5
- package/dist/src/evm/index.js.map +0 -1
- package/dist/src/evm/types.d.ts +0 -27
- package/dist/src/evm/types.js +0 -2
- package/dist/src/evm/types.js.map +0 -1
- package/dist/src/evm/userCurrentBalance.d.ts +0 -16
- package/dist/src/evm/userCurrentBalance.js +0 -164
- package/dist/src/evm/userCurrentBalance.js.map +0 -1
- package/dist/src/evm/vaults.d.ts +0 -17
- package/dist/src/evm/vaults.js +0 -39
- package/dist/src/evm/vaults.js.map +0 -1
- package/dist/src/evm/withdraw.d.ts +0 -24
- package/dist/src/evm/withdraw.js +0 -51
- package/dist/src/evm/withdraw.js.map +0 -1
- package/dist/src/index.d.ts +0 -7
- package/dist/src/index.js +0 -4
- package/dist/src/index.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
import { type Hex } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* Encode an ERC-8021 builder code as a calldata suffix.
|
|
4
|
+
* Format: codesLength (1 byte) + utf8-encoded builder code + schemaId (1 byte) + ERC marker (16 bytes)
|
|
5
|
+
*
|
|
6
|
+
* @see https://eips.ethereum.org/EIPS/eip-8021
|
|
7
|
+
*/
|
|
2
8
|
export declare function encodeBuilderCode(builderCode: string): Hex;
|
|
9
|
+
//# sourceMappingURL=erc8021.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"erc8021.d.ts","sourceRoot":"","sources":["../../src/attribution/erc8021.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,GAAG,EAAE,MAAM,MAAM,CAAC;AAMvC;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,GAAG,CAK1D"}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import { toHex } from 'viem';
|
|
2
|
-
|
|
2
|
+
// 16-byte ERC-8021 marker: "8021" repeated 8 times
|
|
3
|
+
const ERC8021_MARKER = '80218021802180218021802180218021';
|
|
4
|
+
const ERC8021_SCHEMA_ID = '00'; // Schema 0: simple ASCII codes
|
|
5
|
+
/**
|
|
6
|
+
* Encode an ERC-8021 builder code as a calldata suffix.
|
|
7
|
+
* Format: codesLength (1 byte) + utf8-encoded builder code + schemaId (1 byte) + ERC marker (16 bytes)
|
|
8
|
+
*
|
|
9
|
+
* @see https://eips.ethereum.org/EIPS/eip-8021
|
|
10
|
+
*/
|
|
3
11
|
export function encodeBuilderCode(builderCode) {
|
|
4
|
-
const codeHex = toHex(builderCode).slice(2);
|
|
5
|
-
|
|
12
|
+
const codeHex = toHex(builderCode).slice(2); // UTF-8 hex without 0x prefix
|
|
13
|
+
const codeByteLen = codeHex.length / 2;
|
|
14
|
+
const codeLengthHex = codeByteLen.toString(16).padStart(2, '0');
|
|
15
|
+
return `0x${codeLengthHex}${codeHex}${ERC8021_SCHEMA_ID}${ERC8021_MARKER}`;
|
|
6
16
|
}
|
|
7
17
|
//# sourceMappingURL=erc8021.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erc8021.js","sourceRoot":"","sources":["../../src/attribution/erc8021.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAY,MAAM,MAAM,CAAC;AAEvC,MAAM,cAAc,GAAG,
|
|
1
|
+
{"version":3,"file":"erc8021.js","sourceRoot":"","sources":["../../src/attribution/erc8021.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAY,MAAM,MAAM,CAAC;AAEvC,mDAAmD;AACnD,MAAM,cAAc,GAAG,kCAA2C,CAAC;AACnE,MAAM,iBAAiB,GAAG,IAAa,CAAC,CAAC,+BAA+B;AAExE;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,WAAmB;IACnD,MAAM,OAAO,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,8BAA8B;IAC3E,MAAM,WAAW,GAAG,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;IACvC,MAAM,aAAa,GAAG,WAAW,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAChE,OAAO,KAAK,aAAa,GAAG,OAAO,GAAG,iBAAiB,GAAG,cAAc,EAAS,CAAC;AACpF,CAAC"}
|
|
@@ -12,5 +12,14 @@ export type PreparedTx = {
|
|
|
12
12
|
payload: PreparedPayloadWithAttribution;
|
|
13
13
|
tx: TxStep;
|
|
14
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* Build the full attribution suffix to append to transaction calldata.
|
|
17
|
+
*
|
|
18
|
+
* PUBLIC: ERC-8021 builder code only — `0x{codesLength}{builderCode utf8}{schemaId=0x00}{ercMarker}`, or `0x` if no builderCode.
|
|
19
|
+
* ENCODED: Requests a sourceId from the Gauntlet API with builder code as an arg and encodes that.
|
|
20
|
+
* PRIVATE: Generates a random salt and posts it to the Gauntlet API.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
15
23
|
export declare function buildAttribution(client: GauntletClient): Promise<Hex>;
|
|
16
24
|
export declare function encodeTransactionWithAttribution(client: GauntletClient, transaction: TxStep): Promise<PreparedTx>;
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/attribution/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAsB,KAAK,GAAG,EAAE,MAAM,MAAM,CAAC;AAE7D,OAAO,EAAmB,cAAc,EAAE,MAAM,WAAW,CAAC;AAE5D,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,MAAM,MAAM,8BAA8B,GAAG;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,EAAE,GAAG,CAAC;IACV,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,8BAA8B,CAAC;IACxC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,CAS3E;AAED,wBAAsB,gCAAgC,CACpD,MAAM,EAAE,cAAc,EACtB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,UAAU,CAAC,CAoBrB"}
|
|
@@ -3,6 +3,14 @@ import { encodeBuilderCode } from './erc8021';
|
|
|
3
3
|
import { AttributionMode } from '../client';
|
|
4
4
|
import { UnimplementedFeatureError } from '../errors';
|
|
5
5
|
export { encodeBuilderCode } from './erc8021';
|
|
6
|
+
/**
|
|
7
|
+
* Build the full attribution suffix to append to transaction calldata.
|
|
8
|
+
*
|
|
9
|
+
* PUBLIC: ERC-8021 builder code only — `0x{codesLength}{builderCode utf8}{schemaId=0x00}{ercMarker}`, or `0x` if no builderCode.
|
|
10
|
+
* ENCODED: Requests a sourceId from the Gauntlet API with builder code as an arg and encodes that.
|
|
11
|
+
* PRIVATE: Generates a random salt and posts it to the Gauntlet API.
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
6
14
|
export async function buildAttribution(client) {
|
|
7
15
|
switch (client.attributionMode) {
|
|
8
16
|
case AttributionMode.PUBLIC:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/attribution/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,kBAAkB,EAAY,MAAM,MAAM,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAkB,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAEtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/attribution/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,kBAAkB,EAAY,MAAM,MAAM,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE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AW;YACd,WAAW,EAAE,iBAAiB;SAC/B;KACF,CAAC;AACJ,CAAC"}
|
package/dist/client.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { type PublicClient, type WalletClient } from 'viem';
|
|
2
2
|
import type { VaultManifest } from './evm/types';
|
|
3
|
+
/**
|
|
4
|
+
* Controls how builder attribution is appended to transactions.
|
|
5
|
+
*
|
|
6
|
+
* - `PUBLIC` – attribution is sent as plain calldata (default).
|
|
7
|
+
* - `ENCODED` – attribution is encoded using ERC-8021 with a builder code fetched from the API.
|
|
8
|
+
* - `PRIVATE` – no attribution data is appended.
|
|
9
|
+
*/
|
|
3
10
|
export declare enum AttributionMode {
|
|
4
11
|
PUBLIC = "public",
|
|
5
12
|
ENCODED = "encoded",
|
|
@@ -8,11 +15,39 @@ export declare enum AttributionMode {
|
|
|
8
15
|
export type ChainId = string | number;
|
|
9
16
|
export interface GauntletClientConfig {
|
|
10
17
|
apiKey?: string;
|
|
18
|
+
/** Map of chainId → PublicClient, e.g. { [base.id]: createPublicClient(...) } */
|
|
11
19
|
evmClients?: Record<ChainId, PublicClient>;
|
|
12
20
|
attributionMode?: AttributionMode;
|
|
13
21
|
builderCode?: string;
|
|
22
|
+
/** Viem WalletClient for signing transactions. */
|
|
14
23
|
wallet?: WalletClient;
|
|
15
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Main entry point for the Gauntlet SDK.
|
|
27
|
+
*
|
|
28
|
+
* Holds configuration (RPC clients, wallet, attribution mode) and exposes helpers
|
|
29
|
+
* for reading the vault manifest. Pass an instance of this class to every SDK
|
|
30
|
+
* function (e.g. `getDepositTx`, `getWithdrawTx`, `getVaults`).
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
35
|
+
* import { base } from 'viem/chains';
|
|
36
|
+
* import { GauntletClient, AttributionMode } from '@gauntlet-xyz/sdk';
|
|
37
|
+
*
|
|
38
|
+
* const wallet = createWalletClient({
|
|
39
|
+
* account: privateKeyToAccount('0x...'), // or other account source
|
|
40
|
+
* chain: base,
|
|
41
|
+
* transport: http()
|
|
42
|
+
* })
|
|
43
|
+
*
|
|
44
|
+
* const client = new GauntletClient({
|
|
45
|
+
* evmClients: { [base.id]: createPublicClient({ chain: base, transport: http() }) },
|
|
46
|
+
* wallet,
|
|
47
|
+
* attributionMode: AttributionMode.PUBLIC,
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
16
51
|
export declare class GauntletClient {
|
|
17
52
|
readonly apiKey?: string;
|
|
18
53
|
readonly builderCode?: string;
|
|
@@ -26,3 +61,4 @@ export declare class GauntletClient {
|
|
|
26
61
|
getPublicClient(chainId?: ChainId): PublicClient;
|
|
27
62
|
getSourceId(): Promise<string>;
|
|
28
63
|
}
|
|
64
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,MAAM,MAAM,CAAC;AAG5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGjD;;;;;;GAMG;AACH,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtC,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iFAAiF;IACjF,UAAU,CAAC,EAAE,MAAM,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAC3C,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kDAAkD;IAClD,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAAa,cAAc;IAEzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAC1C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IACnD,QAAQ,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC;IAE/B,OAAO,CAAC,SAAS,CAAmD;gBAExD,MAAM,EAAE,oBAAoB;IAQxC,IAAI,QAAQ,IAAI,OAAO,CAAC,aAAa,CAAC,CAErC;IAED,WAAW,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI;IAI1C,eAAe,CAAC,OAAO,GAAE,OAAiB,GAAG,YAAY;IAQnD,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC;CAGrC"}
|
package/dist/client.js
CHANGED
|
@@ -1,12 +1,45 @@
|
|
|
1
1
|
import bundledManifest from '../manifest/vaults.json';
|
|
2
2
|
import { RpcNotConfiguredError, UnimplementedFeatureError } from './errors';
|
|
3
3
|
import { base } from 'viem/chains';
|
|
4
|
+
/**
|
|
5
|
+
* Controls how builder attribution is appended to transactions.
|
|
6
|
+
*
|
|
7
|
+
* - `PUBLIC` – attribution is sent as plain calldata (default).
|
|
8
|
+
* - `ENCODED` – attribution is encoded using ERC-8021 with a builder code fetched from the API.
|
|
9
|
+
* - `PRIVATE` – no attribution data is appended.
|
|
10
|
+
*/
|
|
4
11
|
export var AttributionMode;
|
|
5
12
|
(function (AttributionMode) {
|
|
6
13
|
AttributionMode["PUBLIC"] = "public";
|
|
7
14
|
AttributionMode["ENCODED"] = "encoded";
|
|
8
15
|
AttributionMode["PRIVATE"] = "private";
|
|
9
16
|
})(AttributionMode || (AttributionMode = {}));
|
|
17
|
+
/**
|
|
18
|
+
* Main entry point for the Gauntlet SDK.
|
|
19
|
+
*
|
|
20
|
+
* Holds configuration (RPC clients, wallet, attribution mode) and exposes helpers
|
|
21
|
+
* for reading the vault manifest. Pass an instance of this class to every SDK
|
|
22
|
+
* function (e.g. `getDepositTx`, `getWithdrawTx`, `getVaults`).
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
27
|
+
* import { base } from 'viem/chains';
|
|
28
|
+
* import { GauntletClient, AttributionMode } from '@gauntlet-xyz/sdk';
|
|
29
|
+
*
|
|
30
|
+
* const wallet = createWalletClient({
|
|
31
|
+
* account: privateKeyToAccount('0x...'), // or other account source
|
|
32
|
+
* chain: base,
|
|
33
|
+
* transport: http()
|
|
34
|
+
* })
|
|
35
|
+
*
|
|
36
|
+
* const client = new GauntletClient({
|
|
37
|
+
* evmClients: { [base.id]: createPublicClient({ chain: base, transport: http() }) },
|
|
38
|
+
* wallet,
|
|
39
|
+
* attributionMode: AttributionMode.PUBLIC,
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
10
43
|
export class GauntletClient {
|
|
11
44
|
constructor(config) {
|
|
12
45
|
this._manifest = bundledManifest;
|
|
@@ -28,6 +61,8 @@ export class GauntletClient {
|
|
|
28
61
|
throw new RpcNotConfiguredError(chainId);
|
|
29
62
|
return client;
|
|
30
63
|
}
|
|
64
|
+
// Will be used for encoded attribution
|
|
65
|
+
// Will use apiKey to get a builder ID from core api
|
|
31
66
|
async getSourceId() {
|
|
32
67
|
throw new UnimplementedFeatureError('getSourceId');
|
|
33
68
|
}
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,eAAe,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAE5E,OAAO,EAAE,IAAI,EAAE,MAAM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B;IACzD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;gBAEd,OAAO,EAAE,OAAO;CAK7B;AAED,qBAAa,oBAAqB,SAAQ,gBAAgB;;CAKzD;AAED,qBAAa,wBAAyB,SAAQ,gBAAgB;IAC5D,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;gBAEd,QAAQ,EAAE,MAAM;CAK7B;AAED,qBAAa,0BAA2B,SAAQ,gBAAgB;;CAK/D;AAED,qBAAa,yBAA0B,SAAQ,gBAAgB;IAC7D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;gBAEb,OAAO,EAAE,MAAM;CAK5B;AAED,qBAAa,uBAAwB,SAAQ,gBAAgB;IAC3D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;gBAEb,OAAO,EAAE,MAAM;CAK5B;AAED,qBAAa,mBAAoB,SAAQ,gBAAgB;IACvD,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;gBAElB,YAAY,EAAE,MAAM;CAKjC;AAED,qBAAa,uBAAwB,SAAQ,gBAAgB;IAC3D,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;gBAEd,QAAQ,EAAE,MAAM;CAK7B"}
|
package/dist/evm/abis/erc20.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"erc20.d.ts","sourceRoot":"","sources":["../../../src/evm/abis/erc20.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"erc4626.d.ts","sourceRoot":"","sources":["../../../src/evm/abis/erc4626.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoE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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0H/B,CAAC;AAMX,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiE3B,CAAC;AAMX,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiHf,CAAC"}
|
|
@@ -571,6 +571,9 @@ export const provisionerAbi = [
|
|
|
571
571
|
name: 'SafeERC20FailedOperation',
|
|
572
572
|
},
|
|
573
573
|
];
|
|
574
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
575
|
+
// ProvisionerFactory
|
|
576
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
574
577
|
export const provisionerFactoryAbi = [
|
|
575
578
|
{
|
|
576
579
|
type: 'constructor',
|
|
@@ -707,6 +710,9 @@ export const provisionerFactoryAbi = [
|
|
|
707
710
|
{ type: 'error', inputs: [], name: 'Aera__ZeroAddressPriceAndFeeCalculator' },
|
|
708
711
|
{ type: 'error', inputs: [], name: 'Aera__ZeroAddressProvisionerOwner' },
|
|
709
712
|
];
|
|
713
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
714
|
+
// RolesAuthority
|
|
715
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
710
716
|
export const rolesAuthorityAbi = [
|
|
711
717
|
{
|
|
712
718
|
type: 'constructor',
|
|
@@ -887,6 +893,9 @@ export const rolesAuthorityAbi = [
|
|
|
887
893
|
name: 'UserRoleUpdated',
|
|
888
894
|
},
|
|
889
895
|
];
|
|
896
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
897
|
+
// RolesAuthorityFactory
|
|
898
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
890
899
|
export const rolesAuthorityFactoryAbi = [
|
|
891
900
|
{
|
|
892
901
|
type: 'constructor',
|
|
@@ -1003,6 +1012,9 @@ export const rolesAuthorityFactoryAbi = [
|
|
|
1003
1012
|
{ type: 'error', inputs: [], name: 'Aera__ZeroAddressAuthority' },
|
|
1004
1013
|
{ type: 'error', inputs: [], name: 'Aera__ZeroAddressOwner' },
|
|
1005
1014
|
];
|
|
1015
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
1016
|
+
// SingleDepositorVault
|
|
1017
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
1006
1018
|
export const singleDepositorVaultAbi = [
|
|
1007
1019
|
{ type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
|
|
1008
1020
|
{ type: 'fallback', stateMutability: 'nonpayable' },
|
|
@@ -1480,6 +1492,9 @@ export const singleDepositorVaultAbi = [
|
|
|
1480
1492
|
name: 'SafeERC20FailedOperation',
|
|
1481
1493
|
},
|
|
1482
1494
|
];
|
|
1495
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
1496
|
+
// SingleDepositorVaultFactory
|
|
1497
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
1483
1498
|
export const singleDepositorVaultFactoryAbi = [
|
|
1484
1499
|
{
|
|
1485
1500
|
type: 'constructor',
|
|
@@ -1691,6 +1706,9 @@ export const singleDepositorVaultFactoryAbi = [
|
|
|
1691
1706
|
name: 'SafeERC20FailedOperation',
|
|
1692
1707
|
},
|
|
1693
1708
|
];
|
|
1709
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
1710
|
+
// StablecoinStrategyHooks
|
|
1711
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
1694
1712
|
export const stablecoinStrategyHooksAbi = [
|
|
1695
1713
|
{
|
|
1696
1714
|
type: 'constructor',
|
|
@@ -2031,6 +2049,9 @@ export const stablecoinStrategyHooksAbi = [
|
|
|
2031
2049
|
{ type: 'error', inputs: [], name: 'Aera__CallerIsNotAuthorized' },
|
|
2032
2050
|
{ type: 'error', inputs: [], name: 'Aera__ZeroAddressNumeraire' },
|
|
2033
2051
|
];
|
|
2052
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2053
|
+
// TimelockController
|
|
2054
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2034
2055
|
export const timelockControllerAbi = [
|
|
2035
2056
|
{
|
|
2036
2057
|
type: 'constructor',
|
|
@@ -2432,6 +2453,9 @@ export const timelockControllerAbi = [
|
|
|
2432
2453
|
name: 'TimelockUnexpectedOperationState',
|
|
2433
2454
|
},
|
|
2434
2455
|
];
|
|
2456
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2457
|
+
// TimelockControllerFactory
|
|
2458
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2435
2459
|
export const timelockControllerFactoryAbi = [
|
|
2436
2460
|
{
|
|
2437
2461
|
type: 'constructor',
|
|
@@ -2555,6 +2579,9 @@ export const timelockControllerFactoryAbi = [
|
|
|
2555
2579
|
{ type: 'error', inputs: [], name: 'Aera__Unauthorized' },
|
|
2556
2580
|
{ type: 'error', inputs: [], name: 'Aera__ZeroAddressAuthority' },
|
|
2557
2581
|
];
|
|
2582
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2583
|
+
// TransferBlacklistHook
|
|
2584
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2558
2585
|
export const transferBlacklistHookAbi = [
|
|
2559
2586
|
{
|
|
2560
2587
|
type: 'constructor',
|
|
@@ -2621,6 +2648,9 @@ export const transferBlacklistHookAbi = [
|
|
|
2621
2648
|
name: 'Aera__VaultUnitsNotTransferable',
|
|
2622
2649
|
},
|
|
2623
2650
|
];
|
|
2651
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2652
|
+
// Whitelist
|
|
2653
|
+
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2624
2654
|
export const whitelistAbi = [
|
|
2625
2655
|
{
|
|
2626
2656
|
type: 'constructor',
|