@raac/rpc 2.0.0-beta.4 → 2.0.0-beta.6
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/RPCLibrary.js +52 -2
- package/dist/artifacts/mocks/core/tokens/ERC721Mock.sol/ERC721Mock.json +491 -0
- package/dist/configs/chains/11155111.json +2 -2
- package/dist/configs/chains/8453.json +29 -3
- package/dist/contracts/lockers/botLocker/addRewardTokens.js +21 -0
- package/dist/contracts/lockers/botLocker/distributeRewardToken.js +23 -0
- package/dist/contracts/lockers/botLocker/getConfig.js +29 -0
- package/dist/contracts/lockers/botLocker/getLocks.js +11 -1
- package/dist/contracts/lockers/botLocker/getRoles.js +22 -0
- package/dist/contracts/lockers/botLocker/getUnlockWindow.js +29 -0
- package/dist/contracts/lockers/botLocker/grantRole.js +38 -0
- package/dist/contracts/lockers/botLocker/hasRole.js +18 -0
- package/dist/contracts/lockers/botLocker/pause.js +24 -0
- package/dist/contracts/lockers/botLocker/rescueTokens.js +22 -0
- package/dist/contracts/zeno/_helpers.js +43 -0
- package/dist/contracts/zeno/buy.js +27 -0
- package/dist/contracts/zeno/getAuctionState.js +45 -0
- package/dist/contracts/zeno/getAuctions.js +7 -4
- package/dist/contracts/zeno/getBondState.js +47 -0
- package/dist/contracts/zeno/getPrice.js +23 -0
- package/dist/contracts/zeno/getZenos.js +6 -6
- package/dist/contracts/zeno/grantRole.js +46 -0
- package/dist/contracts/zeno/pause.js +42 -0
- package/dist/contracts/zeno/priceAt.js +20 -0
- package/dist/contracts/zeno/quoteBuy.js +33 -0
- package/dist/contracts/zeno/redeem.js +44 -0
- package/dist/contracts/zeno/setAuction.js +25 -0
- package/dist/contracts/zeno/sweepSurplus.js +26 -0
- package/dist/nfts/getNFTBalance.js +29 -0
- package/dist/nfts/transferNFT.js +34 -0
- package/dist/types/RPCLibrary.d.ts +51 -1
- package/dist/types/contracts/lockers/botLocker/addRewardTokens.d.ts +11 -0
- package/dist/types/contracts/lockers/botLocker/distributeRewardToken.d.ts +13 -0
- package/dist/types/contracts/lockers/botLocker/getConfig.d.ts +20 -0
- package/dist/types/contracts/lockers/botLocker/getLocks.d.ts +4 -0
- package/dist/types/contracts/lockers/botLocker/getRoles.d.ts +20 -0
- package/dist/types/contracts/lockers/botLocker/getUnlockWindow.d.ts +24 -0
- package/dist/types/contracts/lockers/botLocker/grantRole.d.ts +20 -0
- package/dist/types/contracts/lockers/botLocker/hasRole.d.ts +12 -0
- package/dist/types/contracts/lockers/botLocker/pause.d.ts +6 -0
- package/dist/types/contracts/lockers/botLocker/rescueTokens.d.ts +12 -0
- package/dist/types/contracts/zeno/_helpers.d.ts +17 -0
- package/dist/types/contracts/zeno/buy.d.ts +15 -0
- package/dist/types/contracts/zeno/getAuctionState.d.ts +45 -0
- package/dist/types/contracts/zeno/getAuctions.d.ts +3 -2
- package/dist/types/contracts/zeno/getBondState.d.ts +42 -0
- package/dist/types/contracts/zeno/getPrice.d.ts +12 -0
- package/dist/types/contracts/zeno/getZenos.d.ts +2 -2
- package/dist/types/contracts/zeno/grantRole.d.ts +22 -0
- package/dist/types/contracts/zeno/pause.d.ts +18 -0
- package/dist/types/contracts/zeno/priceAt.d.ts +20 -0
- package/dist/types/contracts/zeno/quoteBuy.d.ts +34 -0
- package/dist/types/contracts/zeno/redeem.d.ts +20 -0
- package/dist/types/contracts/zeno/setAuction.d.ts +13 -0
- package/dist/types/contracts/zeno/sweepSurplus.d.ts +14 -0
- package/dist/types/nfts/getNFTBalance.d.ts +13 -0
- package/dist/types/nfts/transferNFT.d.ts +15 -0
- package/dist/types/utils/artifacts.d.ts +99 -0
- package/dist/utils/artifacts.js +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Provider } from "ethers";
|
|
2
|
+
import { ChainId } from "../../configs/chains";
|
|
3
|
+
import { TokenAmount } from "../../utils/amount";
|
|
4
|
+
/** A ZENO bond's live state. ZENO amounts take the underlying's decimals. */
|
|
5
|
+
export interface BondState {
|
|
6
|
+
/** The ZENO bond contract. */
|
|
7
|
+
zeno: string;
|
|
8
|
+
/** ERC20 name, e.g. `ZENO Bond 20270101`. */
|
|
9
|
+
name: string;
|
|
10
|
+
/** ERC20 symbol, e.g. `ZENO-20270101`. */
|
|
11
|
+
symbol: string;
|
|
12
|
+
/** What 1 ZENO redeems for at maturity. */
|
|
13
|
+
underlying: string;
|
|
14
|
+
/** The auction bound by `setAuction`, the only one that can mint; null until it is set. */
|
|
15
|
+
auction: string | null;
|
|
16
|
+
/** UNIX timestamp (seconds) the bond matures. */
|
|
17
|
+
maturityDate: bigint;
|
|
18
|
+
/** True once maturity has passed. Redemption also needs `isFunded`. */
|
|
19
|
+
isRedeemable: boolean;
|
|
20
|
+
/** ZENO minted over the bond's lifetime; never falls. */
|
|
21
|
+
totalMinted: TokenAmount;
|
|
22
|
+
/** ZENO outstanding, still to be redeemed. */
|
|
23
|
+
totalSupply: TokenAmount;
|
|
24
|
+
/** ZENO redeemed for the underlying. */
|
|
25
|
+
totalRedeemed: TokenAmount;
|
|
26
|
+
/** Underlying held by the ZENO, in the underlying's base units. */
|
|
27
|
+
collateral: TokenAmount;
|
|
28
|
+
/** Underlying above outstanding supply, which the owner may sweep once the auction has ended. */
|
|
29
|
+
sweepableSurplus: TokenAmount;
|
|
30
|
+
/** True when collateral covers outstanding supply. `redeem` reverts with `InsufficientCollateral` while it is false, which only a Float bond the issuer has not topped up can reach. */
|
|
31
|
+
isFunded: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Reads a ZENO bond's live state: supply, collateral and whether it can be redeemed. Collateral is read here rather
|
|
35
|
+
* than indexed, because top-ups are plain transfers on the underlying that no ZENO event records.
|
|
36
|
+
* @param chainId The chain id.
|
|
37
|
+
* @param zeno The ZENO bond address.
|
|
38
|
+
* @param provider The provider to read with. Defaults to the chain's first configured RPC.
|
|
39
|
+
* @returns The bond's state.
|
|
40
|
+
*/
|
|
41
|
+
declare function getBondState(chainId: ChainId, zeno: string, provider?: Provider): Promise<BondState>;
|
|
42
|
+
export default getBondState;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Provider } from "ethers";
|
|
2
|
+
import { ChainId } from "../../configs/chains";
|
|
3
|
+
import { TokenAmount } from "../../utils/amount";
|
|
4
|
+
/**
|
|
5
|
+
* Reads an auction's current price. Read it right before `buy` to size `minZenoOut`: a Dutch price falls every block.
|
|
6
|
+
* @param chainId The chain id.
|
|
7
|
+
* @param auction The auction address.
|
|
8
|
+
* @param provider The provider to read with. Defaults to the chain's first configured RPC.
|
|
9
|
+
* @returns The price in payment token base units per whole ZENO.
|
|
10
|
+
*/
|
|
11
|
+
declare function getPrice(chainId: ChainId, auction: string, provider?: Provider): Promise<TokenAmount>;
|
|
12
|
+
export default getPrice;
|
|
@@ -20,8 +20,8 @@ export interface ZenoDetails {
|
|
|
20
20
|
* Lists every ZENO bond created by the ZENOFactory.
|
|
21
21
|
* @param chainId The chain id.
|
|
22
22
|
* @param provider The provider to read with. Defaults to the chain's first configured RPC.
|
|
23
|
-
* @returns One record per bond.
|
|
24
|
-
*
|
|
23
|
+
* @returns One record per bond. ZENO shares its underlying's decimals, so amounts take the underlying's from the chain
|
|
24
|
+
* config registry and fall back to 18 when it is not listed.
|
|
25
25
|
*/
|
|
26
26
|
declare function getZenos(chainId: ChainId, provider?: Provider): Promise<ZenoDetails[]>;
|
|
27
27
|
export default getZenos;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Grants an auction role, e.g. PAUSER_ROLE to a guardian bot. DEFAULT_ADMIN_ROLE only.
|
|
5
|
+
* @param chainId The chain id.
|
|
6
|
+
* @param auction The auction address.
|
|
7
|
+
* @param role The bytes32 role identifier: `keccak256("PAUSER_ROLE")`, or the zero hash for DEFAULT_ADMIN_ROLE.
|
|
8
|
+
* @param account The address to grant it to.
|
|
9
|
+
* @param signer A DEFAULT_ADMIN_ROLE holder.
|
|
10
|
+
* @returns The transaction receipt.
|
|
11
|
+
*/
|
|
12
|
+
export declare function grantRole(chainId: ChainId, auction: string, role: string, account: string, signer: Signer): Promise<import("ethers").ContractTransactionReceipt>;
|
|
13
|
+
/**
|
|
14
|
+
* Revokes an auction role. DEFAULT_ADMIN_ROLE only.
|
|
15
|
+
* @param chainId The chain id.
|
|
16
|
+
* @param auction The auction address.
|
|
17
|
+
* @param role The bytes32 role identifier: `keccak256("PAUSER_ROLE")`, or the zero hash for DEFAULT_ADMIN_ROLE.
|
|
18
|
+
* @param account The address to revoke it from.
|
|
19
|
+
* @param signer A DEFAULT_ADMIN_ROLE holder.
|
|
20
|
+
* @returns The transaction receipt.
|
|
21
|
+
*/
|
|
22
|
+
export declare function revokeRole(chainId: ChainId, auction: string, role: string, account: string, signer: Signer): Promise<import("ethers").ContractTransactionReceipt>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Halts `buy` on an auction. PAUSER_ROLE only. A Dutch price keeps falling while paused.
|
|
5
|
+
* @param chainId The chain id.
|
|
6
|
+
* @param auction The auction address.
|
|
7
|
+
* @param signer A PAUSER_ROLE holder.
|
|
8
|
+
* @returns The transaction receipt.
|
|
9
|
+
*/
|
|
10
|
+
export declare function pause(chainId: ChainId, auction: string, signer: Signer): Promise<import("ethers").ContractTransactionReceipt>;
|
|
11
|
+
/**
|
|
12
|
+
* Resumes `buy` on an auction. DEFAULT_ADMIN_ROLE only, so a compromised pauser cannot reopen buying.
|
|
13
|
+
* @param chainId The chain id.
|
|
14
|
+
* @param auction The auction address.
|
|
15
|
+
* @param signer A DEFAULT_ADMIN_ROLE holder.
|
|
16
|
+
* @returns The transaction receipt.
|
|
17
|
+
*/
|
|
18
|
+
export declare function unpause(chainId: ChainId, auction: string, signer: Signer): Promise<import("ethers").ContractTransactionReceipt>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** The auction terms that set its price. All values as the contract stores them. */
|
|
2
|
+
export interface AuctionPriceTerms {
|
|
3
|
+
/** UNIX timestamp (seconds). */
|
|
4
|
+
startTime: bigint;
|
|
5
|
+
/** UNIX timestamp (seconds). */
|
|
6
|
+
endTime: bigint;
|
|
7
|
+
/** Payment token base units per whole ZENO. */
|
|
8
|
+
startingPrice: bigint;
|
|
9
|
+
/** Payment token base units per whole ZENO. */
|
|
10
|
+
reservePrice: bigint;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* An auction's price at `now`, computed locally without an RPC call. Mirrors `Auction.getPrice()` exactly, truncating
|
|
14
|
+
* division included: the starting price before the window, the reserve from `endTime` on, a linear fall between.
|
|
15
|
+
*
|
|
16
|
+
* @param terms The auction's price terms, e.g. from `getAuctionState` or the subgraph's `BondAuction`.
|
|
17
|
+
* @param now UNIX timestamp (seconds). Use the latest block timestamp to match the contract exactly.
|
|
18
|
+
* @returns The price in payment token base units per whole ZENO.
|
|
19
|
+
*/
|
|
20
|
+
export declare const priceAt: (terms: AuctionPriceTerms, now: bigint) => bigint;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface BuyQuoteInput {
|
|
2
|
+
/** Price in payment token base units per whole ZENO, from `priceAt` or `getPrice`. */
|
|
3
|
+
price: bigint;
|
|
4
|
+
/** Payment token to spend, in base units. */
|
|
5
|
+
paymentAmount: bigint;
|
|
6
|
+
/** ZENO decimals, equal to the underlying's. */
|
|
7
|
+
zenoDecimals: number;
|
|
8
|
+
/** ZENO left to sell, in base units (`totalRemaining`). */
|
|
9
|
+
totalRemaining: bigint;
|
|
10
|
+
/** Tolerance below `zenoOut` for `minZenoOut`, in basis points (10000 = 100%). Defaults to 0. */
|
|
11
|
+
slippageBps?: bigint;
|
|
12
|
+
}
|
|
13
|
+
export interface BuyQuote {
|
|
14
|
+
/** ZENO minted for `paymentAmount` at `price`, in base units. */
|
|
15
|
+
zenoOut: bigint;
|
|
16
|
+
/** `zenoOut` less the slippage tolerance; pass it to `buy` as `minZenoOut`. */
|
|
17
|
+
minZenoOut: bigint;
|
|
18
|
+
/** The largest payment `buy` accepts at `price`; anything above mints more than `totalRemaining` and reverts. */
|
|
19
|
+
maxPayment: bigint;
|
|
20
|
+
/** True when `paymentAmount` is above `maxPayment`. */
|
|
21
|
+
exceedsRemaining: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* What a buy mints, computed locally without an RPC call with `Auction.buy`'s integer maths:
|
|
25
|
+
* `zenoOut = paymentAmount * 10^zenoDecimals / price`, truncated.
|
|
26
|
+
*
|
|
27
|
+
* A Dutch price only falls, so a buy mined after the quote mints at least `zenoOut`; `minZenoOut` guards against a
|
|
28
|
+
* fixed price or a stale quote. The same fall means a payment at exactly `maxPayment` can revert a block later, so
|
|
29
|
+
* leave headroom when buying out the remainder.
|
|
30
|
+
*
|
|
31
|
+
* @param input The price, payment, ZENO decimals, remaining supply and slippage tolerance.
|
|
32
|
+
* @returns The ZENO out, the `minZenoOut` to send, and the payment ceiling.
|
|
33
|
+
*/
|
|
34
|
+
export declare const quoteBuy: (input: BuyQuoteInput) => BuyQuote;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Redeems ZENO 1:1 for the underlying. Reverts before maturity, and while the bond's collateral is short of its
|
|
5
|
+
* outstanding supply (`getBondState(...).isFunded`).
|
|
6
|
+
* @param chainId The chain id.
|
|
7
|
+
* @param zeno The ZENO bond address.
|
|
8
|
+
* @param amount ZENO to redeem, in base units.
|
|
9
|
+
* @param signer The holder, who receives the underlying.
|
|
10
|
+
* @returns The transaction receipt.
|
|
11
|
+
*/
|
|
12
|
+
export declare function redeem(chainId: ChainId, zeno: string, amount: bigint, signer: Signer): Promise<import("ethers").ContractTransactionReceipt>;
|
|
13
|
+
/**
|
|
14
|
+
* Redeems the signer's whole ZENO balance for the underlying. Same conditions as `redeem`.
|
|
15
|
+
* @param chainId The chain id.
|
|
16
|
+
* @param zeno The ZENO bond address.
|
|
17
|
+
* @param signer The holder, who receives the underlying.
|
|
18
|
+
* @returns The transaction receipt.
|
|
19
|
+
*/
|
|
20
|
+
export declare function redeemAll(chainId: ChainId, zeno: string, signer: Signer): Promise<import("ethers").ContractTransactionReceipt>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Binds a ZENO to the auction that sells it. One-shot, ZENO owner only; reverts unless the auction's `zeno()` points
|
|
5
|
+
* back at this ZENO. Until it is set, the auction's buys revert.
|
|
6
|
+
* @param chainId The chain id.
|
|
7
|
+
* @param zeno The ZENO bond address.
|
|
8
|
+
* @param auction The auction created for it.
|
|
9
|
+
* @param signer The ZENO owner.
|
|
10
|
+
* @returns The transaction receipt.
|
|
11
|
+
*/
|
|
12
|
+
declare function setAuction(chainId: ChainId, zeno: string, auction: string, signer: Signer): Promise<import("ethers").ContractTransactionReceipt>;
|
|
13
|
+
export default setAuction;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../../configs/chains";
|
|
3
|
+
/**
|
|
4
|
+
* Sweeps underlying held above the ZENO's outstanding supply: unsold prefill, overpayments and post-maturity residue.
|
|
5
|
+
* ZENO owner only, and only once the bound auction has ended. `getBondState(...).sweepableSurplus` is the most it takes.
|
|
6
|
+
* @param chainId The chain id.
|
|
7
|
+
* @param zeno The ZENO bond address.
|
|
8
|
+
* @param to The recipient of the underlying.
|
|
9
|
+
* @param amount Underlying to sweep, in base units.
|
|
10
|
+
* @param signer The ZENO owner.
|
|
11
|
+
* @returns The transaction receipt.
|
|
12
|
+
*/
|
|
13
|
+
declare function sweepSurplus(chainId: ChainId, zeno: string, to: string, amount: bigint, signer: Signer): Promise<import("ethers").ContractTransactionReceipt>;
|
|
14
|
+
export default sweepSurplus;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Provider } from "ethers";
|
|
2
|
+
import { ChainId } from "../configs/chains/index";
|
|
3
|
+
import { NftContractNames } from "./approveNFT";
|
|
4
|
+
/**
|
|
5
|
+
* Get how many tokens of an NFT contract an address holds
|
|
6
|
+
* @param chainId - The chain ID
|
|
7
|
+
* @param nftContractName - The NFT contract name from configs
|
|
8
|
+
* @param owner - The address to check
|
|
9
|
+
* @param provider - The provider to use for the contract call
|
|
10
|
+
* @returns The number of tokens held
|
|
11
|
+
*/
|
|
12
|
+
declare function getNFTBalance(chainId: ChainId, nftContractName: NftContractNames, owner: string, provider: Provider): Promise<bigint>;
|
|
13
|
+
export default getNFTBalance;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ethers, Signer } from "ethers";
|
|
2
|
+
import { ChainId } from "../configs/chains/index";
|
|
3
|
+
import { NftContractNames } from "./approveNFT";
|
|
4
|
+
/**
|
|
5
|
+
* Transfer an NFT from the signer to another address with safeTransferFrom
|
|
6
|
+
* Do not use it to put a Bot NFT into the bot locker: the locker only records NFTs deposited through `lockers.botLocker.lock`.
|
|
7
|
+
* @param chainId - The chain ID
|
|
8
|
+
* @param nftContractName - The NFT contract name from configs
|
|
9
|
+
* @param to - The recipient address
|
|
10
|
+
* @param tokenId - The token ID to transfer
|
|
11
|
+
* @param signer - The signer that owns the token
|
|
12
|
+
* @returns Transaction receipt
|
|
13
|
+
*/
|
|
14
|
+
declare function transferNFT(chainId: ChainId, nftContractName: NftContractNames, to: string, tokenId: string | number | bigint, signer: Signer): Promise<ethers.ContractTransactionReceipt>;
|
|
15
|
+
export default transferNFT;
|
|
@@ -117,6 +117,56 @@ declare const ABIS: {
|
|
|
117
117
|
type: string;
|
|
118
118
|
anonymous?: undefined;
|
|
119
119
|
})[];
|
|
120
|
+
raacbotnft: ({
|
|
121
|
+
inputs: {
|
|
122
|
+
internalType: string;
|
|
123
|
+
name: string;
|
|
124
|
+
type: string;
|
|
125
|
+
}[];
|
|
126
|
+
stateMutability: string;
|
|
127
|
+
type: string;
|
|
128
|
+
name?: undefined;
|
|
129
|
+
anonymous?: undefined;
|
|
130
|
+
outputs?: undefined;
|
|
131
|
+
} | {
|
|
132
|
+
inputs: {
|
|
133
|
+
internalType: string;
|
|
134
|
+
name: string;
|
|
135
|
+
type: string;
|
|
136
|
+
}[];
|
|
137
|
+
name: string;
|
|
138
|
+
type: string;
|
|
139
|
+
stateMutability?: undefined;
|
|
140
|
+
anonymous?: undefined;
|
|
141
|
+
outputs?: undefined;
|
|
142
|
+
} | {
|
|
143
|
+
anonymous: boolean;
|
|
144
|
+
inputs: {
|
|
145
|
+
indexed: boolean;
|
|
146
|
+
internalType: string;
|
|
147
|
+
name: string;
|
|
148
|
+
type: string;
|
|
149
|
+
}[];
|
|
150
|
+
name: string;
|
|
151
|
+
type: string;
|
|
152
|
+
stateMutability?: undefined;
|
|
153
|
+
outputs?: undefined;
|
|
154
|
+
} | {
|
|
155
|
+
inputs: {
|
|
156
|
+
internalType: string;
|
|
157
|
+
name: string;
|
|
158
|
+
type: string;
|
|
159
|
+
}[];
|
|
160
|
+
name: string;
|
|
161
|
+
outputs: {
|
|
162
|
+
internalType: string;
|
|
163
|
+
name: string;
|
|
164
|
+
type: string;
|
|
165
|
+
}[];
|
|
166
|
+
stateMutability: string;
|
|
167
|
+
type: string;
|
|
168
|
+
anonymous?: undefined;
|
|
169
|
+
})[];
|
|
120
170
|
raactoken: ({
|
|
121
171
|
inputs: {
|
|
122
172
|
internalType: string;
|
|
@@ -4937,6 +4987,55 @@ declare const getABI: (name: keyof typeof ABIS) => any[] | ({
|
|
|
4937
4987
|
stateMutability: string;
|
|
4938
4988
|
type: string;
|
|
4939
4989
|
anonymous?: undefined;
|
|
4990
|
+
})[] | ({
|
|
4991
|
+
inputs: {
|
|
4992
|
+
internalType: string;
|
|
4993
|
+
name: string;
|
|
4994
|
+
type: string;
|
|
4995
|
+
}[];
|
|
4996
|
+
stateMutability: string;
|
|
4997
|
+
type: string;
|
|
4998
|
+
name?: undefined;
|
|
4999
|
+
anonymous?: undefined;
|
|
5000
|
+
outputs?: undefined;
|
|
5001
|
+
} | {
|
|
5002
|
+
inputs: {
|
|
5003
|
+
internalType: string;
|
|
5004
|
+
name: string;
|
|
5005
|
+
type: string;
|
|
5006
|
+
}[];
|
|
5007
|
+
name: string;
|
|
5008
|
+
type: string;
|
|
5009
|
+
stateMutability?: undefined;
|
|
5010
|
+
anonymous?: undefined;
|
|
5011
|
+
outputs?: undefined;
|
|
5012
|
+
} | {
|
|
5013
|
+
anonymous: boolean;
|
|
5014
|
+
inputs: {
|
|
5015
|
+
indexed: boolean;
|
|
5016
|
+
internalType: string;
|
|
5017
|
+
name: string;
|
|
5018
|
+
type: string;
|
|
5019
|
+
}[];
|
|
5020
|
+
name: string;
|
|
5021
|
+
type: string;
|
|
5022
|
+
stateMutability?: undefined;
|
|
5023
|
+
outputs?: undefined;
|
|
5024
|
+
} | {
|
|
5025
|
+
inputs: {
|
|
5026
|
+
internalType: string;
|
|
5027
|
+
name: string;
|
|
5028
|
+
type: string;
|
|
5029
|
+
}[];
|
|
5030
|
+
name: string;
|
|
5031
|
+
outputs: {
|
|
5032
|
+
internalType: string;
|
|
5033
|
+
name: string;
|
|
5034
|
+
type: string;
|
|
5035
|
+
}[];
|
|
5036
|
+
stateMutability: string;
|
|
5037
|
+
type: string;
|
|
5038
|
+
anonymous?: undefined;
|
|
4940
5039
|
})[] | ({
|
|
4941
5040
|
inputs: any[];
|
|
4942
5041
|
stateMutability: string;
|
package/dist/utils/artifacts.js
CHANGED
|
@@ -52,6 +52,7 @@ const pmBlender_json_1 = __importDefault(require("../artifacts/core/pmBlender/pm
|
|
|
52
52
|
const RAACLiquidLocker_json_1 = __importDefault(require("../artifacts/core/lockers/RAACLiquidLocker.sol/RAACLiquidLocker.json"));
|
|
53
53
|
const RAACMaturityVault_json_1 = __importDefault(require("../artifacts/core/lockers/RAACMaturityVault.sol/RAACMaturityVault.json"));
|
|
54
54
|
const RAACBotLocker_json_1 = __importDefault(require("../artifacts/core/lockers/RAACBotLocker.sol/RAACBotLocker.json"));
|
|
55
|
+
const ERC721Mock_json_1 = __importDefault(require("../artifacts/mocks/core/tokens/ERC721Mock.sol/ERC721Mock.json"));
|
|
55
56
|
// leRAAC token
|
|
56
57
|
const LiquidEscrowedRAAC_json_1 = __importDefault(require("../artifacts/core/tokens/LeRAAC.sol/LiquidEscrowedRAAC.json"));
|
|
57
58
|
// Zap
|
|
@@ -95,6 +96,8 @@ const ABIS = {
|
|
|
95
96
|
xpm: XPM_ABI,
|
|
96
97
|
// RAAC
|
|
97
98
|
raacnft: RAACNFT_ABI,
|
|
99
|
+
// Standard OpenZeppelin ERC721 ABI; the Bot NFT is a plain ERC721 with no RAAC-specific functions
|
|
100
|
+
raacbotnft: ERC721Mock_json_1.default.abi,
|
|
98
101
|
raactoken: RAACToken_ABI,
|
|
99
102
|
veraac: VERAAC_ABI,
|
|
100
103
|
// Pools tokens
|