@axonfi/sdk 0.11.0 → 0.12.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/index.cjs +0 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -17
- package/dist/index.d.ts +1 -17
- package/dist/index.js +1 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1016,12 +1016,6 @@ declare function getBotConfig(publicClient: PublicClient, vaultAddress: Address,
|
|
|
1016
1016
|
declare function isBotActive(publicClient: PublicClient, vaultAddress: Address, botAddress: Address): Promise<boolean>;
|
|
1017
1017
|
/** Returns the operator ceilings set by the vault owner. */
|
|
1018
1018
|
declare function getOperatorCeilings(publicClient: PublicClient, vaultAddress: Address): Promise<OperatorCeilings>;
|
|
1019
|
-
/**
|
|
1020
|
-
* Returns the maximum USDC an operator-compromised wallet could drain per day.
|
|
1021
|
-
* Computed on-chain as: min(maxOperatorBots × maxBotDailyLimit, vaultDailyAggregate).
|
|
1022
|
-
* Returns 0n if operator has no bot-add permission.
|
|
1023
|
-
*/
|
|
1024
|
-
declare function operatorMaxDrainPerDay(publicClient: PublicClient, vaultAddress: Address): Promise<bigint>;
|
|
1025
1019
|
/**
|
|
1026
1020
|
* Returns whether ERC-1271 bot signatures are enabled on the vault.
|
|
1027
1021
|
*
|
|
@@ -2067,16 +2061,6 @@ declare const AxonVaultAbi: readonly [{
|
|
|
2067
2061
|
readonly internalType: "uint256";
|
|
2068
2062
|
}];
|
|
2069
2063
|
readonly stateMutability: "view";
|
|
2070
|
-
}, {
|
|
2071
|
-
readonly type: "function";
|
|
2072
|
-
readonly name: "operatorMaxDrainPerDay";
|
|
2073
|
-
readonly inputs: readonly [];
|
|
2074
|
-
readonly outputs: readonly [{
|
|
2075
|
-
readonly name: "";
|
|
2076
|
-
readonly type: "uint256";
|
|
2077
|
-
readonly internalType: "uint256";
|
|
2078
|
-
}];
|
|
2079
|
-
readonly stateMutability: "view";
|
|
2080
2064
|
}, {
|
|
2081
2065
|
readonly type: "function";
|
|
2082
2066
|
readonly name: "owner";
|
|
@@ -3763,4 +3747,4 @@ declare const AxonRegistryAbi: readonly [{
|
|
|
3763
3747
|
readonly inputs: readonly [];
|
|
3764
3748
|
}];
|
|
3765
3749
|
|
|
3766
|
-
export { ALLOWED_WINDOWS, type AmountInput, AxonClient, type AxonClientConfig, AxonRegistryAbi, AxonVaultAbi, AxonVaultFactoryAbi, type BotConfig, type BotConfigInput, type BotConfigParams, CHAIN_NAMES, Chain, DEFAULT_APPROVED_TOKENS, DEFAULT_DEADLINE_SECONDS, type DestinationCheckResult, EIP712_DOMAIN_NAME, EIP712_DOMAIN_VERSION, EXECUTE_INTENT_TYPEHASH, EXPLORER_ADDR, EXPLORER_TX, type ExecuteInput, type ExecuteIntent, KNOWN_TOKENS, type KeystoreV3, type KnownToken, type KnownTokenSymbol, NATIVE_ETH, type OperatorCeilings, PAYMENT_INTENT_TYPEHASH, PERMIT2_ADDRESS, type PayInput, PaymentErrorCode, type PaymentIntent, type PaymentResult, type PaymentStatus, type Permit2Authorization, RELAYER_API, type RebalanceTokensResult, SUPPORTED_CHAIN_IDS, SWAP_INTENT_TYPEHASH, type SpendingLimit, type SpendingLimitInput, type SupportedChainId, type SwapInput, type SwapIntent, Token, type TokenInput, type TosStatus, type TransferAuthorization, USDC, USDC_EIP712_DOMAIN, type VaultInfo, WINDOW, WITNESS_TYPE_STRING, type X402HandleResult, type X402PaymentOption, type X402PaymentRequired, type X402Resource, X402_PROXY_ADDRESS, addBot, createAxonPublicClient, createAxonWalletClient, decryptKeystore, deployVault, deposit, encodeRef, encryptKeystore, extractX402Metadata, findMatchingOption, formatPaymentSignature, getBotConfig, getChain, getDefaultApprovedTokens, getDomainSeparator, getKnownTokensForChain, getOperatorCeilings, getRebalanceTokenCount, getTokenSymbolByAddress, getVaultOperator, getVaultOwner, getVaultVersion, isBotActive, isDestinationAllowed, isErc1271BotsEnabled, isRebalanceTokenWhitelisted, isVaultPaused,
|
|
3750
|
+
export { ALLOWED_WINDOWS, type AmountInput, AxonClient, type AxonClientConfig, AxonRegistryAbi, AxonVaultAbi, AxonVaultFactoryAbi, type BotConfig, type BotConfigInput, type BotConfigParams, CHAIN_NAMES, Chain, DEFAULT_APPROVED_TOKENS, DEFAULT_DEADLINE_SECONDS, type DestinationCheckResult, EIP712_DOMAIN_NAME, EIP712_DOMAIN_VERSION, EXECUTE_INTENT_TYPEHASH, EXPLORER_ADDR, EXPLORER_TX, type ExecuteInput, type ExecuteIntent, KNOWN_TOKENS, type KeystoreV3, type KnownToken, type KnownTokenSymbol, NATIVE_ETH, type OperatorCeilings, PAYMENT_INTENT_TYPEHASH, PERMIT2_ADDRESS, type PayInput, PaymentErrorCode, type PaymentIntent, type PaymentResult, type PaymentStatus, type Permit2Authorization, RELAYER_API, type RebalanceTokensResult, SUPPORTED_CHAIN_IDS, SWAP_INTENT_TYPEHASH, type SpendingLimit, type SpendingLimitInput, type SupportedChainId, type SwapInput, type SwapIntent, Token, type TokenInput, type TosStatus, type TransferAuthorization, USDC, USDC_EIP712_DOMAIN, type VaultInfo, WINDOW, WITNESS_TYPE_STRING, type X402HandleResult, type X402PaymentOption, type X402PaymentRequired, type X402Resource, X402_PROXY_ADDRESS, addBot, createAxonPublicClient, createAxonWalletClient, decryptKeystore, deployVault, deposit, encodeRef, encryptKeystore, extractX402Metadata, findMatchingOption, formatPaymentSignature, getBotConfig, getChain, getDefaultApprovedTokens, getDomainSeparator, getKnownTokensForChain, getOperatorCeilings, getRebalanceTokenCount, getTokenSymbolByAddress, getVaultOperator, getVaultOwner, getVaultVersion, isBotActive, isDestinationAllowed, isErc1271BotsEnabled, isRebalanceTokenWhitelisted, isVaultPaused, parseAmount, parseChainId, parsePaymentRequired, predictVaultAddress, randomNonce, randomPermit2Nonce, removeBot, resolveToken, resolveTokenDecimals, signExecuteIntent, signPayment, signPermit2WitnessTransfer, signSwapIntent, signTransferWithAuthorization, toBotConfigParams, updateBotConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1016,12 +1016,6 @@ declare function getBotConfig(publicClient: PublicClient, vaultAddress: Address,
|
|
|
1016
1016
|
declare function isBotActive(publicClient: PublicClient, vaultAddress: Address, botAddress: Address): Promise<boolean>;
|
|
1017
1017
|
/** Returns the operator ceilings set by the vault owner. */
|
|
1018
1018
|
declare function getOperatorCeilings(publicClient: PublicClient, vaultAddress: Address): Promise<OperatorCeilings>;
|
|
1019
|
-
/**
|
|
1020
|
-
* Returns the maximum USDC an operator-compromised wallet could drain per day.
|
|
1021
|
-
* Computed on-chain as: min(maxOperatorBots × maxBotDailyLimit, vaultDailyAggregate).
|
|
1022
|
-
* Returns 0n if operator has no bot-add permission.
|
|
1023
|
-
*/
|
|
1024
|
-
declare function operatorMaxDrainPerDay(publicClient: PublicClient, vaultAddress: Address): Promise<bigint>;
|
|
1025
1019
|
/**
|
|
1026
1020
|
* Returns whether ERC-1271 bot signatures are enabled on the vault.
|
|
1027
1021
|
*
|
|
@@ -2067,16 +2061,6 @@ declare const AxonVaultAbi: readonly [{
|
|
|
2067
2061
|
readonly internalType: "uint256";
|
|
2068
2062
|
}];
|
|
2069
2063
|
readonly stateMutability: "view";
|
|
2070
|
-
}, {
|
|
2071
|
-
readonly type: "function";
|
|
2072
|
-
readonly name: "operatorMaxDrainPerDay";
|
|
2073
|
-
readonly inputs: readonly [];
|
|
2074
|
-
readonly outputs: readonly [{
|
|
2075
|
-
readonly name: "";
|
|
2076
|
-
readonly type: "uint256";
|
|
2077
|
-
readonly internalType: "uint256";
|
|
2078
|
-
}];
|
|
2079
|
-
readonly stateMutability: "view";
|
|
2080
2064
|
}, {
|
|
2081
2065
|
readonly type: "function";
|
|
2082
2066
|
readonly name: "owner";
|
|
@@ -3763,4 +3747,4 @@ declare const AxonRegistryAbi: readonly [{
|
|
|
3763
3747
|
readonly inputs: readonly [];
|
|
3764
3748
|
}];
|
|
3765
3749
|
|
|
3766
|
-
export { ALLOWED_WINDOWS, type AmountInput, AxonClient, type AxonClientConfig, AxonRegistryAbi, AxonVaultAbi, AxonVaultFactoryAbi, type BotConfig, type BotConfigInput, type BotConfigParams, CHAIN_NAMES, Chain, DEFAULT_APPROVED_TOKENS, DEFAULT_DEADLINE_SECONDS, type DestinationCheckResult, EIP712_DOMAIN_NAME, EIP712_DOMAIN_VERSION, EXECUTE_INTENT_TYPEHASH, EXPLORER_ADDR, EXPLORER_TX, type ExecuteInput, type ExecuteIntent, KNOWN_TOKENS, type KeystoreV3, type KnownToken, type KnownTokenSymbol, NATIVE_ETH, type OperatorCeilings, PAYMENT_INTENT_TYPEHASH, PERMIT2_ADDRESS, type PayInput, PaymentErrorCode, type PaymentIntent, type PaymentResult, type PaymentStatus, type Permit2Authorization, RELAYER_API, type RebalanceTokensResult, SUPPORTED_CHAIN_IDS, SWAP_INTENT_TYPEHASH, type SpendingLimit, type SpendingLimitInput, type SupportedChainId, type SwapInput, type SwapIntent, Token, type TokenInput, type TosStatus, type TransferAuthorization, USDC, USDC_EIP712_DOMAIN, type VaultInfo, WINDOW, WITNESS_TYPE_STRING, type X402HandleResult, type X402PaymentOption, type X402PaymentRequired, type X402Resource, X402_PROXY_ADDRESS, addBot, createAxonPublicClient, createAxonWalletClient, decryptKeystore, deployVault, deposit, encodeRef, encryptKeystore, extractX402Metadata, findMatchingOption, formatPaymentSignature, getBotConfig, getChain, getDefaultApprovedTokens, getDomainSeparator, getKnownTokensForChain, getOperatorCeilings, getRebalanceTokenCount, getTokenSymbolByAddress, getVaultOperator, getVaultOwner, getVaultVersion, isBotActive, isDestinationAllowed, isErc1271BotsEnabled, isRebalanceTokenWhitelisted, isVaultPaused,
|
|
3750
|
+
export { ALLOWED_WINDOWS, type AmountInput, AxonClient, type AxonClientConfig, AxonRegistryAbi, AxonVaultAbi, AxonVaultFactoryAbi, type BotConfig, type BotConfigInput, type BotConfigParams, CHAIN_NAMES, Chain, DEFAULT_APPROVED_TOKENS, DEFAULT_DEADLINE_SECONDS, type DestinationCheckResult, EIP712_DOMAIN_NAME, EIP712_DOMAIN_VERSION, EXECUTE_INTENT_TYPEHASH, EXPLORER_ADDR, EXPLORER_TX, type ExecuteInput, type ExecuteIntent, KNOWN_TOKENS, type KeystoreV3, type KnownToken, type KnownTokenSymbol, NATIVE_ETH, type OperatorCeilings, PAYMENT_INTENT_TYPEHASH, PERMIT2_ADDRESS, type PayInput, PaymentErrorCode, type PaymentIntent, type PaymentResult, type PaymentStatus, type Permit2Authorization, RELAYER_API, type RebalanceTokensResult, SUPPORTED_CHAIN_IDS, SWAP_INTENT_TYPEHASH, type SpendingLimit, type SpendingLimitInput, type SupportedChainId, type SwapInput, type SwapIntent, Token, type TokenInput, type TosStatus, type TransferAuthorization, USDC, USDC_EIP712_DOMAIN, type VaultInfo, WINDOW, WITNESS_TYPE_STRING, type X402HandleResult, type X402PaymentOption, type X402PaymentRequired, type X402Resource, X402_PROXY_ADDRESS, addBot, createAxonPublicClient, createAxonWalletClient, decryptKeystore, deployVault, deposit, encodeRef, encryptKeystore, extractX402Metadata, findMatchingOption, formatPaymentSignature, getBotConfig, getChain, getDefaultApprovedTokens, getDomainSeparator, getKnownTokensForChain, getOperatorCeilings, getRebalanceTokenCount, getTokenSymbolByAddress, getVaultOperator, getVaultOwner, getVaultVersion, isBotActive, isDestinationAllowed, isErc1271BotsEnabled, isRebalanceTokenWhitelisted, isVaultPaused, parseAmount, parseChainId, parsePaymentRequired, predictVaultAddress, randomNonce, randomPermit2Nonce, removeBot, resolveToken, resolveTokenDecimals, signExecuteIntent, signPayment, signPermit2WitnessTransfer, signSwapIntent, signTransferWithAuthorization, toBotConfigParams, updateBotConfig };
|
package/dist/index.js
CHANGED
|
@@ -1201,19 +1201,6 @@ var AxonVaultAbi = [
|
|
|
1201
1201
|
],
|
|
1202
1202
|
"stateMutability": "view"
|
|
1203
1203
|
},
|
|
1204
|
-
{
|
|
1205
|
-
"type": "function",
|
|
1206
|
-
"name": "operatorMaxDrainPerDay",
|
|
1207
|
-
"inputs": [],
|
|
1208
|
-
"outputs": [
|
|
1209
|
-
{
|
|
1210
|
-
"name": "",
|
|
1211
|
-
"type": "uint256",
|
|
1212
|
-
"internalType": "uint256"
|
|
1213
|
-
}
|
|
1214
|
-
],
|
|
1215
|
-
"stateMutability": "view"
|
|
1216
|
-
},
|
|
1217
1204
|
{
|
|
1218
1205
|
"type": "function",
|
|
1219
1206
|
"name": "owner",
|
|
@@ -3235,13 +3222,6 @@ async function getOperatorCeilings(publicClient, vaultAddress) {
|
|
|
3235
3222
|
minAiTriggerFloor
|
|
3236
3223
|
};
|
|
3237
3224
|
}
|
|
3238
|
-
async function operatorMaxDrainPerDay(publicClient, vaultAddress) {
|
|
3239
|
-
return publicClient.readContract({
|
|
3240
|
-
address: vaultAddress,
|
|
3241
|
-
abi: AxonVaultAbi,
|
|
3242
|
-
functionName: "operatorMaxDrainPerDay"
|
|
3243
|
-
});
|
|
3244
|
-
}
|
|
3245
3225
|
async function isErc1271BotsEnabled(publicClient, vaultAddress) {
|
|
3246
3226
|
return publicClient.readContract({
|
|
3247
3227
|
address: vaultAddress,
|
|
@@ -4958,6 +4938,6 @@ var AxonRegistryAbi = [
|
|
|
4958
4938
|
}
|
|
4959
4939
|
];
|
|
4960
4940
|
|
|
4961
|
-
export { ALLOWED_WINDOWS, AxonClient, AxonRegistryAbi, AxonVaultAbi, AxonVaultFactoryAbi, CHAIN_NAMES, Chain, DEFAULT_APPROVED_TOKENS, DEFAULT_DEADLINE_SECONDS, EIP712_DOMAIN_NAME, EIP712_DOMAIN_VERSION, EXECUTE_INTENT_TYPEHASH, EXPLORER_ADDR, EXPLORER_TX, KNOWN_TOKENS, NATIVE_ETH, PAYMENT_INTENT_TYPEHASH, PERMIT2_ADDRESS, PaymentErrorCode, RELAYER_API, SUPPORTED_CHAIN_IDS, SWAP_INTENT_TYPEHASH, Token, USDC, USDC_EIP712_DOMAIN, WINDOW, WITNESS_TYPE_STRING, X402_PROXY_ADDRESS, addBot, createAxonPublicClient, createAxonWalletClient, decryptKeystore, deployVault, deposit, encodeRef, encryptKeystore, extractX402Metadata, findMatchingOption, formatPaymentSignature, getBotConfig, getChain, getDefaultApprovedTokens, getDomainSeparator, getKnownTokensForChain, getOperatorCeilings, getRebalanceTokenCount, getTokenSymbolByAddress, getVaultOperator, getVaultOwner, getVaultVersion, isBotActive, isDestinationAllowed, isErc1271BotsEnabled, isRebalanceTokenWhitelisted, isVaultPaused,
|
|
4941
|
+
export { ALLOWED_WINDOWS, AxonClient, AxonRegistryAbi, AxonVaultAbi, AxonVaultFactoryAbi, CHAIN_NAMES, Chain, DEFAULT_APPROVED_TOKENS, DEFAULT_DEADLINE_SECONDS, EIP712_DOMAIN_NAME, EIP712_DOMAIN_VERSION, EXECUTE_INTENT_TYPEHASH, EXPLORER_ADDR, EXPLORER_TX, KNOWN_TOKENS, NATIVE_ETH, PAYMENT_INTENT_TYPEHASH, PERMIT2_ADDRESS, PaymentErrorCode, RELAYER_API, SUPPORTED_CHAIN_IDS, SWAP_INTENT_TYPEHASH, Token, USDC, USDC_EIP712_DOMAIN, WINDOW, WITNESS_TYPE_STRING, X402_PROXY_ADDRESS, addBot, createAxonPublicClient, createAxonWalletClient, decryptKeystore, deployVault, deposit, encodeRef, encryptKeystore, extractX402Metadata, findMatchingOption, formatPaymentSignature, getBotConfig, getChain, getDefaultApprovedTokens, getDomainSeparator, getKnownTokensForChain, getOperatorCeilings, getRebalanceTokenCount, getTokenSymbolByAddress, getVaultOperator, getVaultOwner, getVaultVersion, isBotActive, isDestinationAllowed, isErc1271BotsEnabled, isRebalanceTokenWhitelisted, isVaultPaused, parseAmount, parseChainId, parsePaymentRequired, predictVaultAddress, randomNonce, randomPermit2Nonce, removeBot, resolveToken, resolveTokenDecimals, signExecuteIntent, signPayment, signPermit2WitnessTransfer, signSwapIntent, signTransferWithAuthorization, toBotConfigParams, updateBotConfig };
|
|
4962
4942
|
//# sourceMappingURL=index.js.map
|
|
4963
4943
|
//# sourceMappingURL=index.js.map
|