@forevermoney/sdk 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/CHANGELOG.md +25 -0
- package/LICENSE +21 -0
- package/README.md +299 -0
- package/dist/index.cjs +1789 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +311 -0
- package/dist/index.d.ts +311 -0
- package/dist/index.js +1770 -0
- package/dist/index.js.map +1 -0
- package/examples/node.ts +28 -0
- package/examples/talisman.ts +192 -0
- package/package.json +74 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { AbstractProvider, TransactionRequest } from 'ethers';
|
|
2
|
+
|
|
3
|
+
declare function normalizeEvmAddress(value: string): string;
|
|
4
|
+
declare function evmToMirrorSS58(evmAddress: string): string;
|
|
5
|
+
declare function normalizeSS58(value: string): string;
|
|
6
|
+
declare function isBittensorSS58(value: string): boolean;
|
|
7
|
+
declare function ss58ToPublicKey(value: string): string;
|
|
8
|
+
|
|
9
|
+
declare const BASIS_POINTS = 10000n;
|
|
10
|
+
declare const NETWORK_FEE_BUFFER_BPS = 200n;
|
|
11
|
+
declare const GAS_LIMIT_BUFFER_BPS = 5000n;
|
|
12
|
+
declare function parseTaoAmount(value: string): bigint;
|
|
13
|
+
declare function assertWholeRao(amountWei: bigint): void;
|
|
14
|
+
declare function formatTaoAmount(amountWei: bigint): string;
|
|
15
|
+
declare function feeWithBuffer(fee: bigint): bigint;
|
|
16
|
+
declare function gasLimitWithBuffer(gasLimit: bigint): bigint;
|
|
17
|
+
|
|
18
|
+
declare const foreverMoneyAbis: Readonly<{
|
|
19
|
+
alphaGateway: readonly ["function ROUTER() view returns (address)", "function allowedLane(uint64 selector) view returns (bool)", "function quoteBridgeOut(uint64 destSelector,address token,address recipient,uint256 mintedAmount) view returns (uint256 fee)", "function bridgeOut(uint64 destSelector,address token,address recipient,uint256 taoAmount,uint256 stakedAlphaRao,uint256 minTokenOut) payable returns (bytes32 messageId)", "function claimLiquid(address token,uint256 minTaoOut,address to)", "function claimNative(address to)", "function claimStaked(address token,bytes32 destColdkey,address to)", "function claimToken(address token,address to)", "function claimableNative(address account) view returns (uint256)", "function claimableToken(address account,address token) view returns (uint256)", "event BridgedOut(uint64 destChainSelector,address indexed token,address indexed sender,address indexed recipient,uint256 minted,bytes32 messageId)", "event Claimable(address indexed token,address indexed user,uint256 native,uint256 wsn)", "event DeliveredLiquid(address indexed token,bytes32 indexed ss58,uint256 taoOut)", "event DeliveredStaked(address indexed token,bytes32 indexed ss58,uint256 alphaRao)"];
|
|
20
|
+
alphaVault: readonly ["function isPaused() view returns (bool)", "function pausedUntil() view returns (uint256)", "function isListed(address token) view returns (bool)", "function backing(address token) view returns (uint256 stakedAlpha)", "function positionOf(address token) view returns (bytes32 validator,uint256 netuid)"];
|
|
21
|
+
ccipExecution: readonly ["event ExecutionStateChanged(uint64 indexed sourceChainSelector,uint64 indexed sequenceNumber,bytes32 indexed messageId,bytes32 messageHash,uint8 state,bytes returnData,uint256 gasUsed)"];
|
|
22
|
+
ccipRouter: readonly ["function isOffRamp(uint64 sourceChainSelector,address offRamp) view returns (bool)"];
|
|
23
|
+
erc20: readonly ["function allowance(address owner,address spender) view returns (uint256)", "function approve(address spender,uint256 amount) returns (bool)", "function balanceOf(address account) view returns (uint256)"];
|
|
24
|
+
spokeGateway: readonly ["function ROUTER() view returns (address)", "function BITTENSOR_SELECTOR() view returns (uint64)", "function SUBTENSOR_GATEWAY() view returns (address)", "function quoteBridgeToFinney(address token,uint256 amount,(bytes32 ss58,address evmFallback,bool wantLiquid,uint256 minTaoOut) exit) view returns (uint256 fee)", "function bridgeToFinney(address token,uint256 amount,(bytes32 ss58,address evmFallback,bool wantLiquid,uint256 minTaoOut) exit) payable returns (bytes32 messageId)", "event BridgedToFinney(address indexed token,address indexed sender,bytes32 indexed ss58,uint256 amount,bytes32 messageId)"];
|
|
25
|
+
staking: readonly ["function allowance(address sourceAddress,address spenderAddress,uint256 netuid) view returns (uint256)", "function approve(address spenderAddress,uint256 netuid,uint256 absoluteAmount)", "function getStake(bytes32 hotkey,bytes32 coldkey,uint256 netuid) view returns (uint256)"];
|
|
26
|
+
vaultFactory: readonly ["function create(address owner,bytes32 associatedMiner,address akAddress,address poolManager,address poolAddress,address positionManagerImpl,(address token,uint256 amount)[] stashTokens) payable returns (address manager)", "event SnLiquidityManagerCreated(address indexed manager,address indexed owner,bytes32 associatedMiner,address akAddress,address poolAddress,address poolManager,address positionManager)"];
|
|
27
|
+
vaultManager: readonly ["function claimFees(address akAddress)", "function topUpAk(address akAddress,address token,uint256 amount) payable", "function withdrawFromAkAndPositions(address akAddress,uint256 amount0,uint256 amount1,uint256[] decreaseTokenIds,bool unwrapETH)", "function stake(address akAddress,bytes data)", "function unstake(address akAddress,bytes data)", "function owner() view returns (address)", "event AKStashTopUp(address akAddress,address token,uint256 amount)", "event AKStashWithdraw(address akAddress,address token,uint256 amount)"];
|
|
28
|
+
}>;
|
|
29
|
+
|
|
30
|
+
declare const BASE_CHAIN_ID = 8453;
|
|
31
|
+
declare const ROBINHOOD_CHAIN_ID = 4663;
|
|
32
|
+
declare const SUBTENSOR_CHAIN_ID = 964;
|
|
33
|
+
declare const BASE_CCIP_SELECTOR = 15971525489660198786n;
|
|
34
|
+
declare const ROBINHOOD_CCIP_SELECTOR = 6180753054346818345n;
|
|
35
|
+
declare const SUBTENSOR_CCIP_SELECTOR = 2135107236357186872n;
|
|
36
|
+
declare const RAO_PER_TAO = 1000000000n;
|
|
37
|
+
declare const EVM_WEI_PER_RAO = 1000000000n;
|
|
38
|
+
declare const FOREVERMONEY_DEPLOYMENT_VERSION: "1.1.0";
|
|
39
|
+
declare const foreverMoneyDeployment: Readonly<{
|
|
40
|
+
version: "1.1.0";
|
|
41
|
+
base: Readonly<{
|
|
42
|
+
key: "base";
|
|
43
|
+
name: "Base";
|
|
44
|
+
chainId: 8453;
|
|
45
|
+
ccipSelector: 15971525489660198786n;
|
|
46
|
+
contracts: Readonly<{
|
|
47
|
+
gateway: string;
|
|
48
|
+
wrappedTao: string;
|
|
49
|
+
ccipRouter: string;
|
|
50
|
+
ccipOffRampFromSubtensor: string;
|
|
51
|
+
vaultFactory: string;
|
|
52
|
+
vaultManagerImplementation: string;
|
|
53
|
+
batchLiquidityManagerQuery: string;
|
|
54
|
+
weth: string;
|
|
55
|
+
}>;
|
|
56
|
+
deploymentBlock: 50098800;
|
|
57
|
+
}>;
|
|
58
|
+
robinhood: Readonly<{
|
|
59
|
+
key: "robinhood";
|
|
60
|
+
name: "Robinhood";
|
|
61
|
+
chainId: 4663;
|
|
62
|
+
ccipSelector: 6180753054346818345n;
|
|
63
|
+
contracts: Readonly<{
|
|
64
|
+
gateway: string;
|
|
65
|
+
wrappedTao: string;
|
|
66
|
+
ccipRouter: string;
|
|
67
|
+
ccipOffRampFromSubtensor: string;
|
|
68
|
+
}>;
|
|
69
|
+
}>;
|
|
70
|
+
subtensor: Readonly<{
|
|
71
|
+
chainId: 964;
|
|
72
|
+
ccipSelector: 2135107236357186872n;
|
|
73
|
+
contracts: Readonly<{
|
|
74
|
+
gateway: string;
|
|
75
|
+
alphaVault: string;
|
|
76
|
+
wrappedTao: string;
|
|
77
|
+
ccipRouter: string;
|
|
78
|
+
ccipOffRampFromBase: string;
|
|
79
|
+
ccipOffRampFromRobinhood: string;
|
|
80
|
+
stakingPrecompile: string;
|
|
81
|
+
}>;
|
|
82
|
+
}>;
|
|
83
|
+
}>;
|
|
84
|
+
type ForeverMoneyDeployment = typeof foreverMoneyDeployment;
|
|
85
|
+
type ForeverMoneyEvmChain = 'base' | 'robinhood';
|
|
86
|
+
declare function getForeverMoneyEvmDeployment(chain?: ForeverMoneyEvmChain): ForeverMoneyDeployment['base'] | ForeverMoneyDeployment['robinhood'];
|
|
87
|
+
|
|
88
|
+
type TransactionStepKind = 'approval' | 'transaction';
|
|
89
|
+
type TransactionAction = 'bridge.base-to-subtensor' | 'bridge.robinhood-to-subtensor' | 'bridge.subtensor-to-base' | 'bridge.subtensor-to-robinhood' | 'vault.claim-fees' | 'vault.create' | 'vault.deposit' | 'vault.stake' | 'vault.unstake' | 'vault.withdraw';
|
|
90
|
+
interface PreparedTransaction {
|
|
91
|
+
readonly chainId: number;
|
|
92
|
+
readonly from: string;
|
|
93
|
+
readonly to: string;
|
|
94
|
+
readonly data: string;
|
|
95
|
+
readonly value: string;
|
|
96
|
+
readonly gasLimit?: string;
|
|
97
|
+
}
|
|
98
|
+
interface TransactionStep {
|
|
99
|
+
readonly kind: TransactionStepKind;
|
|
100
|
+
readonly label: string;
|
|
101
|
+
readonly transaction: PreparedTransaction;
|
|
102
|
+
}
|
|
103
|
+
interface TransactionPlan {
|
|
104
|
+
readonly version: '1';
|
|
105
|
+
readonly deploymentVersion: typeof FOREVERMONEY_DEPLOYMENT_VERSION;
|
|
106
|
+
readonly action: TransactionAction;
|
|
107
|
+
readonly summary: string;
|
|
108
|
+
readonly steps: readonly TransactionStep[];
|
|
109
|
+
readonly hash: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
declare const MIN_LIQUID_EVM_TO_SUBTENSOR_WEI = 10000000000000000n;
|
|
113
|
+
declare const MIN_LIQUID_BASE_TO_SUBTENSOR_WEI = 10000000000000000n;
|
|
114
|
+
type SubtensorDelivery = 'liquid' | 'staked';
|
|
115
|
+
type SubtensorSource = 'liquid' | 'staked';
|
|
116
|
+
interface EvmToSubtensorRequest {
|
|
117
|
+
readonly evmChain: ForeverMoneyEvmChain;
|
|
118
|
+
readonly sender: string;
|
|
119
|
+
readonly amountWei: bigint;
|
|
120
|
+
readonly destination: string;
|
|
121
|
+
readonly delivery: SubtensorDelivery;
|
|
122
|
+
}
|
|
123
|
+
interface SubtensorToEvmRequest {
|
|
124
|
+
readonly evmChain: ForeverMoneyEvmChain;
|
|
125
|
+
readonly sender: string;
|
|
126
|
+
readonly recipient: string;
|
|
127
|
+
readonly amountWei: bigint;
|
|
128
|
+
readonly source: SubtensorSource;
|
|
129
|
+
readonly netuid?: bigint;
|
|
130
|
+
}
|
|
131
|
+
type BaseToSubtensorRequest = Omit<EvmToSubtensorRequest, 'evmChain'>;
|
|
132
|
+
type SubtensorToBaseRequest = Omit<SubtensorToEvmRequest, 'evmChain'>;
|
|
133
|
+
interface BridgePreparation {
|
|
134
|
+
readonly exactNetworkFeeWei: bigint;
|
|
135
|
+
readonly transactionValueWei: bigint;
|
|
136
|
+
readonly plan: TransactionPlan;
|
|
137
|
+
}
|
|
138
|
+
interface BuildEvmToSubtensorPlanRequest extends EvmToSubtensorRequest {
|
|
139
|
+
readonly allowanceWei: bigint;
|
|
140
|
+
readonly exactNetworkFeeWei: bigint;
|
|
141
|
+
readonly estimatedBridgeGas?: bigint;
|
|
142
|
+
}
|
|
143
|
+
interface BuildSubtensorToEvmPlanRequest extends SubtensorToEvmRequest {
|
|
144
|
+
readonly stakingAllowanceRao?: bigint;
|
|
145
|
+
readonly exactNetworkFeeWei: bigint;
|
|
146
|
+
readonly estimatedBridgeGas?: bigint;
|
|
147
|
+
}
|
|
148
|
+
type BuildBaseToSubtensorPlanRequest = Omit<BuildEvmToSubtensorPlanRequest, 'evmChain'>;
|
|
149
|
+
type BuildSubtensorToBasePlanRequest = Omit<BuildSubtensorToEvmPlanRequest, 'evmChain'>;
|
|
150
|
+
declare function buildEvmToSubtensorPlan(input: BuildEvmToSubtensorPlanRequest): TransactionPlan;
|
|
151
|
+
declare function buildBaseToSubtensorPlan(input: BuildBaseToSubtensorPlanRequest): TransactionPlan;
|
|
152
|
+
declare function buildSubtensorToEvmPlan(input: BuildSubtensorToEvmPlanRequest): TransactionPlan;
|
|
153
|
+
declare function buildSubtensorToBasePlan(input: BuildSubtensorToBasePlanRequest): TransactionPlan;
|
|
154
|
+
|
|
155
|
+
interface RpcRequest {
|
|
156
|
+
readonly method: string;
|
|
157
|
+
readonly params?: readonly unknown[] | Record<string, unknown>;
|
|
158
|
+
}
|
|
159
|
+
interface RpcTransport {
|
|
160
|
+
request(request: RpcRequest): Promise<unknown>;
|
|
161
|
+
}
|
|
162
|
+
interface HttpTransportOptions {
|
|
163
|
+
readonly timeoutMs?: number;
|
|
164
|
+
readonly fetch?: typeof globalThis.fetch;
|
|
165
|
+
}
|
|
166
|
+
declare function http(url: string, options?: HttpTransportOptions): RpcTransport;
|
|
167
|
+
|
|
168
|
+
interface VaultStashToken {
|
|
169
|
+
readonly token: string;
|
|
170
|
+
readonly amount: bigint;
|
|
171
|
+
}
|
|
172
|
+
interface CreateVaultRequest {
|
|
173
|
+
readonly owner: string;
|
|
174
|
+
readonly associatedMiner?: string;
|
|
175
|
+
readonly akAddress: string;
|
|
176
|
+
readonly poolManager: string;
|
|
177
|
+
readonly poolAddress: string;
|
|
178
|
+
readonly positionManagerImplementation: string;
|
|
179
|
+
readonly stashTokens: readonly VaultStashToken[];
|
|
180
|
+
}
|
|
181
|
+
interface VaultTokenAllowance {
|
|
182
|
+
readonly token: string;
|
|
183
|
+
readonly allowance: bigint;
|
|
184
|
+
}
|
|
185
|
+
declare function buildCreateVaultPlan(input: CreateVaultRequest & {
|
|
186
|
+
readonly allowances: readonly VaultTokenAllowance[];
|
|
187
|
+
}): TransactionPlan;
|
|
188
|
+
interface DepositVaultRequest {
|
|
189
|
+
readonly owner: string;
|
|
190
|
+
readonly manager: string;
|
|
191
|
+
readonly akAddress: string;
|
|
192
|
+
readonly deposits: readonly VaultStashToken[];
|
|
193
|
+
}
|
|
194
|
+
declare function buildDepositVaultPlan(input: DepositVaultRequest & {
|
|
195
|
+
readonly allowances: readonly VaultTokenAllowance[];
|
|
196
|
+
}): TransactionPlan;
|
|
197
|
+
interface WithdrawVaultRequest {
|
|
198
|
+
readonly owner: string;
|
|
199
|
+
readonly manager: string;
|
|
200
|
+
readonly akAddress: string;
|
|
201
|
+
readonly amount0: bigint;
|
|
202
|
+
readonly amount1: bigint;
|
|
203
|
+
readonly decreaseTokenIds: readonly bigint[];
|
|
204
|
+
readonly unwrapWeth: boolean;
|
|
205
|
+
}
|
|
206
|
+
declare function buildWithdrawVaultPlan(input: WithdrawVaultRequest): TransactionPlan;
|
|
207
|
+
declare function buildClaimVaultFeesPlan(input: {
|
|
208
|
+
readonly owner: string;
|
|
209
|
+
readonly manager: string;
|
|
210
|
+
readonly akAddress: string;
|
|
211
|
+
}): TransactionPlan;
|
|
212
|
+
declare function buildSetVaultStakingPlan(input: {
|
|
213
|
+
readonly owner: string;
|
|
214
|
+
readonly manager: string;
|
|
215
|
+
readonly akAddress: string;
|
|
216
|
+
readonly staking: boolean;
|
|
217
|
+
}): TransactionPlan;
|
|
218
|
+
|
|
219
|
+
interface ReceiptLog {
|
|
220
|
+
readonly address: string;
|
|
221
|
+
readonly data: string;
|
|
222
|
+
readonly topics: readonly string[];
|
|
223
|
+
}
|
|
224
|
+
interface TransactionReceiptLike {
|
|
225
|
+
readonly logs: readonly ReceiptLog[];
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
type BridgeDirection = 'base-to-subtensor' | 'robinhood-to-subtensor' | 'subtensor-to-base' | 'subtensor-to-robinhood';
|
|
229
|
+
declare function evmChainFromBridgeDirection(direction: BridgeDirection): ForeverMoneyEvmChain;
|
|
230
|
+
declare function isEvmToSubtensorDirection(direction: BridgeDirection): boolean;
|
|
231
|
+
declare function bridgeMessageIdFromReceipt(direction: BridgeDirection, receipt: TransactionReceiptLike): string | null;
|
|
232
|
+
|
|
233
|
+
type CcipDeliveryStatus = 'failure' | 'recovery' | 'success' | 'waiting';
|
|
234
|
+
interface CcipDeliveryStatusRequest {
|
|
235
|
+
readonly direction: BridgeDirection;
|
|
236
|
+
readonly messageId: string;
|
|
237
|
+
readonly fromBlock: number;
|
|
238
|
+
}
|
|
239
|
+
interface CcipDeliveryCheckpoint {
|
|
240
|
+
readonly direction: BridgeDirection;
|
|
241
|
+
readonly destinationChainId: number;
|
|
242
|
+
readonly fromBlock: number;
|
|
243
|
+
}
|
|
244
|
+
type BridgeSourceTransactionStatus = 'confirmed' | 'failed' | 'pending';
|
|
245
|
+
interface BridgeSourceStatusRequest {
|
|
246
|
+
readonly direction: BridgeDirection;
|
|
247
|
+
readonly transactionHash: string;
|
|
248
|
+
}
|
|
249
|
+
interface BridgeSourceStatusBase {
|
|
250
|
+
readonly direction: BridgeDirection;
|
|
251
|
+
readonly sourceChainId: number;
|
|
252
|
+
readonly transactionHash: string;
|
|
253
|
+
}
|
|
254
|
+
type BridgeSourceStatus = (BridgeSourceStatusBase & {
|
|
255
|
+
readonly status: 'confirmed';
|
|
256
|
+
readonly messageId: string;
|
|
257
|
+
}) | (BridgeSourceStatusBase & {
|
|
258
|
+
readonly status: 'failed' | 'pending';
|
|
259
|
+
readonly messageId: null;
|
|
260
|
+
});
|
|
261
|
+
declare function destinationChainId(direction: BridgeDirection): number;
|
|
262
|
+
declare function sourceChainId(direction: BridgeDirection): number;
|
|
263
|
+
declare function getBridgeSourceStatus(provider: AbstractProvider, input: BridgeSourceStatusRequest): Promise<BridgeSourceStatus>;
|
|
264
|
+
declare function getCcipDeliveryCheckpoint(provider: AbstractProvider, direction: BridgeDirection): Promise<CcipDeliveryCheckpoint>;
|
|
265
|
+
declare function getCcipDeliveryStatus(provider: AbstractProvider, input: CcipDeliveryStatusRequest): Promise<CcipDeliveryStatus>;
|
|
266
|
+
|
|
267
|
+
interface ForeverMoneyClientOptions {
|
|
268
|
+
readonly transports: {
|
|
269
|
+
readonly base: RpcTransport;
|
|
270
|
+
readonly robinhood?: RpcTransport;
|
|
271
|
+
readonly subtensor: RpcTransport;
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
interface ForeverMoneyClient {
|
|
275
|
+
readonly bridge: {
|
|
276
|
+
prepareEvmToSubtensor(input: EvmToSubtensorRequest): Promise<BridgePreparation>;
|
|
277
|
+
prepareBaseToSubtensor(input: BaseToSubtensorRequest): Promise<BridgePreparation>;
|
|
278
|
+
prepareSubtensorToEvm(input: SubtensorToEvmRequest): Promise<BridgePreparation>;
|
|
279
|
+
prepareSubtensorToBase(input: SubtensorToBaseRequest): Promise<BridgePreparation>;
|
|
280
|
+
getDeliveryCheckpoint(direction: BridgeDirection): Promise<CcipDeliveryCheckpoint>;
|
|
281
|
+
getDeliveryStatus(input: CcipDeliveryStatusRequest): Promise<CcipDeliveryStatus>;
|
|
282
|
+
getSourceStatus(input: BridgeSourceStatusRequest): Promise<BridgeSourceStatus>;
|
|
283
|
+
};
|
|
284
|
+
readonly vaults: {
|
|
285
|
+
prepareCreate(input: CreateVaultRequest): Promise<TransactionPlan>;
|
|
286
|
+
prepareDeposit(input: DepositVaultRequest): Promise<TransactionPlan>;
|
|
287
|
+
};
|
|
288
|
+
verifyConnections(): Promise<void>;
|
|
289
|
+
}
|
|
290
|
+
declare function createForeverMoneyClient(options: ForeverMoneyClientOptions): ForeverMoneyClient;
|
|
291
|
+
|
|
292
|
+
type ForeverMoneyErrorCode = 'AMOUNT_BELOW_MINIMUM' | 'AMOUNT_NOT_WHOLE_RAO' | 'AMOUNT_ZERO' | 'CHAIN_MISMATCH' | 'INVALID_ADDRESS' | 'INVALID_BYTES32' | 'INVALID_PROVIDER_RESPONSE' | 'INVALID_SS58' | 'INVALID_TRANSACTION_PLAN' | 'MISSING_TRANSPORT' | 'RPC_ERROR' | 'SIMULATION_REVERTED';
|
|
293
|
+
declare class ForeverMoneyError extends Error {
|
|
294
|
+
readonly code: ForeverMoneyErrorCode;
|
|
295
|
+
readonly details: Readonly<Record<string, unknown>> | undefined;
|
|
296
|
+
constructor(code: ForeverMoneyErrorCode, message: string, details?: Readonly<Record<string, unknown>>);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
declare function vaultManagerFromCreationReceipt(receipt: TransactionReceiptLike): string | null;
|
|
300
|
+
|
|
301
|
+
interface Eip1193TransactionRequest {
|
|
302
|
+
readonly from: string;
|
|
303
|
+
readonly to: string;
|
|
304
|
+
readonly data: string;
|
|
305
|
+
readonly value: string;
|
|
306
|
+
readonly gas?: string;
|
|
307
|
+
}
|
|
308
|
+
declare function toEip1193Transaction(transaction: PreparedTransaction): Eip1193TransactionRequest;
|
|
309
|
+
declare function toEthersTransaction(transaction: PreparedTransaction): Readonly<TransactionRequest>;
|
|
310
|
+
|
|
311
|
+
export { BASE_CCIP_SELECTOR, BASE_CHAIN_ID, BASIS_POINTS, type BaseToSubtensorRequest, type BridgeDirection, type BridgePreparation, type BridgeSourceStatus, type BridgeSourceStatusRequest, type BridgeSourceTransactionStatus, type BuildBaseToSubtensorPlanRequest, type BuildEvmToSubtensorPlanRequest, type BuildSubtensorToBasePlanRequest, type BuildSubtensorToEvmPlanRequest, type CcipDeliveryCheckpoint, type CcipDeliveryStatus, type CcipDeliveryStatusRequest, type CreateVaultRequest, type DepositVaultRequest, EVM_WEI_PER_RAO, type Eip1193TransactionRequest, type EvmToSubtensorRequest, FOREVERMONEY_DEPLOYMENT_VERSION, type ForeverMoneyClient, type ForeverMoneyClientOptions, type ForeverMoneyDeployment, ForeverMoneyError, type ForeverMoneyErrorCode, type ForeverMoneyEvmChain, GAS_LIMIT_BUFFER_BPS, type HttpTransportOptions, MIN_LIQUID_BASE_TO_SUBTENSOR_WEI, MIN_LIQUID_EVM_TO_SUBTENSOR_WEI, NETWORK_FEE_BUFFER_BPS, type PreparedTransaction, RAO_PER_TAO, ROBINHOOD_CCIP_SELECTOR, ROBINHOOD_CHAIN_ID, type ReceiptLog, type RpcRequest, type RpcTransport, SUBTENSOR_CCIP_SELECTOR, SUBTENSOR_CHAIN_ID, type SubtensorDelivery, type SubtensorSource, type SubtensorToBaseRequest, type SubtensorToEvmRequest, type TransactionAction, type TransactionPlan, type TransactionReceiptLike, type TransactionStep, type TransactionStepKind, type VaultStashToken, type VaultTokenAllowance, type WithdrawVaultRequest, assertWholeRao, bridgeMessageIdFromReceipt, buildBaseToSubtensorPlan, buildClaimVaultFeesPlan, buildCreateVaultPlan, buildDepositVaultPlan, buildEvmToSubtensorPlan, buildSetVaultStakingPlan, buildSubtensorToBasePlan, buildSubtensorToEvmPlan, buildWithdrawVaultPlan, createForeverMoneyClient, destinationChainId, evmChainFromBridgeDirection, evmToMirrorSS58, feeWithBuffer, foreverMoneyAbis, foreverMoneyDeployment, formatTaoAmount, gasLimitWithBuffer, getBridgeSourceStatus, getCcipDeliveryCheckpoint, getCcipDeliveryStatus, getForeverMoneyEvmDeployment, http, isBittensorSS58, isEvmToSubtensorDirection, normalizeEvmAddress, normalizeSS58, parseTaoAmount, sourceChainId, ss58ToPublicKey, toEip1193Transaction, toEthersTransaction, vaultManagerFromCreationReceipt };
|