Skip to content

Commit

Permalink
fix: no need migrate contract info data orderbook & add operator query
Browse files Browse the repository at this point in the history
  • Loading branch information
ducphamle2 committed Feb 22, 2024
1 parent f6134b8 commit dc26e4b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
Binary file modified packages/contracts-build/data/oraiswap_limit_order.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/contracts-sdk/src/OraiswapLimitOrder.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { CosmWasmClient, SigningCosmWasmClient, ExecuteResult } from "@cosmjs/cosmwasm-stargate";
import { Coin, StdFee } from "@cosmjs/amino";
import {Uint128, Binary, Addr, AssetInfo, Decimal, Cw20ReceiveMsg, Asset} from "./types";
import {InstantiateMsg, ExecuteMsg, OrderDirection, QueryMsg, OrderFilter, CanonicalAddr, MigrateMsg, ContractInfo, ContractInfoResponse, LastOrderIdResponse, OrderStatus, OrderResponse, OrderBookResponse, OrderBookMatchableResponse, OrderBooksResponse, OrdersResponse, BaseAmountResponse, TickResponse, TicksResponse} from "./OraiswapLimitOrder.types";
import {InstantiateMsg, ExecuteMsg, OrderDirection, QueryMsg, OrderFilter, MigrateMsg, ContractInfoResponse, LastOrderIdResponse, OrderStatus, OrderResponse, OrderBookResponse, OrderBookMatchableResponse, OrderBooksResponse, OrdersResponse, BaseAmountResponse, TickResponse, TicksResponse} from "./OraiswapLimitOrder.types";
export interface OraiswapLimitOrderReadOnlyInterface {
contractAddress: string;
contractInfo: () => Promise<ContractInfoResponse>;
Expand Down
14 changes: 2 additions & 12 deletions packages/contracts-sdk/src/OraiswapLimitOrder.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,22 +132,12 @@ export type OrderFilter = ("tick" | "none") | {
} | {
price: Decimal;
};
export type CanonicalAddr = Binary;
export interface MigrateMsg {
new_config: ContractInfo;
}
export interface ContractInfo {
admin: CanonicalAddr;
commission_rate: string;
name: string;
operator?: CanonicalAddr | null;
reward_address: CanonicalAddr;
version: string;
}
export interface MigrateMsg {}
export interface ContractInfoResponse {
admin: Addr;
commission_rate: string;
name: string;
operator?: Addr | null;
reward_address: Addr;
version: string;
}
Expand Down

0 comments on commit dc26e4b

Please sign in to comment.