@exponent-labs/exponent-orderbook-idl 0.9.13 → 0.9.14

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.
@@ -830,6 +830,9 @@ export type ExponentOrderbook = {
830
830
  },
831
831
  {
832
832
  "name": "cpiAccountOrderbook";
833
+ "docs": [
834
+ "Cpi accounts Orderbook"
835
+ ];
833
836
  "writable": true;
834
837
  },
835
838
  {
@@ -1908,73 +1911,88 @@ export type ExponentOrderbook = {
1908
1911
  "errors": [
1909
1912
  {
1910
1913
  "code": 6000;
1911
- "name": "offerIndexOutOfBounds";
1912
- "msg": "Offer index out of bounds";
1914
+ "name": "invalidOrderbookOwner";
1915
+ "msg": "Orderbook account owner mismatch";
1913
1916
  },
1914
1917
  {
1915
1918
  "code": 6001;
1916
- "name": "priceNotFound";
1917
- "msg": "Price not found";
1919
+ "name": "vaultMismatch";
1920
+ "msg": "Vault does not match orderbook.vault";
1918
1921
  },
1919
1922
  {
1920
1923
  "code": 6002;
1921
- "name": "incorrectSeller";
1922
- "msg": "Incorrect seller";
1924
+ "name": "yieldPositionMismatch";
1925
+ "msg": "Yield position does not match orderbook.yield_position";
1923
1926
  },
1924
1927
  {
1925
1928
  "code": 6003;
1926
- "name": "incorrectSellerTokenAccount";
1927
- "msg": "Incorrect seller token account";
1929
+ "name": "altMismatch";
1930
+ "msg": "Address lookup table does not match orderbook.address_lookup_table";
1928
1931
  },
1929
1932
  {
1930
1933
  "code": 6004;
1931
- "name": "invalidOrderType";
1932
- "msg": "Invalid Order Type";
1934
+ "name": "syEscrowMismatch";
1935
+ "msg": "SY escrow does not match orderbook.token_escrow_sy";
1933
1936
  },
1934
1937
  {
1935
1938
  "code": 6005;
1936
- "name": "fillOrKillOrderNotFilled";
1937
- "msg": "Fill or Kill order not filled";
1939
+ "name": "ytEscrowMismatch";
1940
+ "msg": "YT escrow does not match orderbook.token_escrow_yt";
1938
1941
  },
1939
1942
  {
1940
1943
  "code": 6006;
1941
- "name": "orderbookFull";
1942
- "msg": "Orderbook full";
1944
+ "name": "ptEscrowMismatch";
1945
+ "msg": "PT escrow does not match orderbook.token_escrow_pt";
1943
1946
  },
1944
1947
  {
1945
1948
  "code": 6007;
1946
- "name": "priceNodeFull";
1947
- "msg": "Price Node Full";
1949
+ "name": "cpiAccountsMismatch";
1950
+ "msg": "CPI accounts orderbook does not match orderbook.cpi_account_orderbook";
1948
1951
  },
1949
1952
  {
1950
1953
  "code": 6008;
1951
- "name": "exponentOrderbookDiscriminatorMismatch";
1952
- "msg": "Exponent Orderbook discriminator mismatch";
1954
+ "name": "wrongAdmin";
1955
+ "msg": "Wrong admin for orderbook";
1953
1956
  },
1954
1957
  {
1955
1958
  "code": 6009;
1956
- "name": "incorrectPriceNodeForOfferIdx";
1957
- "msg": "Incorrect price node for offer idx";
1959
+ "name": "syExchangeRateExpectedToBeGreater";
1960
+ "msg": "Current sy exchange rate is smaller than the previous one";
1958
1961
  },
1959
1962
  {
1960
1963
  "code": 6010;
1961
- "name": "insufficientOutputAmount";
1962
- "msg": "Insufficient output amount";
1964
+ "name": "syProgramMismatch";
1965
+ "msg": "SY program does not match orderbook.sy_program";
1963
1966
  },
1964
1967
  {
1965
1968
  "code": 6011;
1966
- "name": "orderbookExpired";
1967
- "msg": "Orderbook is expired";
1969
+ "name": "exponentCoreProgramMismatch";
1970
+ "msg": "Exponent Core program does not match orderbook.exponent_core";
1968
1971
  },
1969
1972
  {
1970
1973
  "code": 6012;
1971
- "name": "exponentOrderbookAlreadyHaveLamports";
1972
- "msg": "Exponent Orderbook already have lamports";
1974
+ "name": "emissionOrderbookMismatch";
1975
+ "msg": "Emission orderbook does not match out token account";
1973
1976
  },
1974
1977
  {
1975
1978
  "code": 6013;
1976
- "name": "maxFilledOffersLimitReached";
1977
- "msg": "Max filled offers limit reached with remaining counter offers available";
1979
+ "name": "tokenAccountAlreadyInUse";
1980
+ "msg": "Token account already in use";
1981
+ },
1982
+ {
1983
+ "code": 6014;
1984
+ "name": "priceApyOverflow";
1985
+ "msg": "Price APY causes overflow when converted to u32 with given decimals";
1986
+ },
1987
+ {
1988
+ "code": 6015;
1989
+ "name": "invalidFeeRate";
1990
+ "msg": "Fee rate configuration must produce a fee between 0% and 100%";
1991
+ },
1992
+ {
1993
+ "code": 6016;
1994
+ "name": "offerIdxMismatch";
1995
+ "msg": "Offer index mismatch";
1978
1996
  }
1979
1997
  ];
1980
1998
  "types": [
@@ -824,6 +824,9 @@
824
824
  },
825
825
  {
826
826
  "name": "cpi_account_orderbook",
827
+ "docs": [
828
+ "Cpi accounts Orderbook"
829
+ ],
827
830
  "writable": true
828
831
  },
829
832
  {
@@ -1902,73 +1905,88 @@
1902
1905
  "errors": [
1903
1906
  {
1904
1907
  "code": 6000,
1905
- "name": "OfferIndexOutOfBounds",
1906
- "msg": "Offer index out of bounds"
1908
+ "name": "InvalidOrderbookOwner",
1909
+ "msg": "Orderbook account owner mismatch"
1907
1910
  },
1908
1911
  {
1909
1912
  "code": 6001,
1910
- "name": "PriceNotFound",
1911
- "msg": "Price not found"
1913
+ "name": "VaultMismatch",
1914
+ "msg": "Vault does not match orderbook.vault"
1912
1915
  },
1913
1916
  {
1914
1917
  "code": 6002,
1915
- "name": "IncorrectSeller",
1916
- "msg": "Incorrect seller"
1918
+ "name": "YieldPositionMismatch",
1919
+ "msg": "Yield position does not match orderbook.yield_position"
1917
1920
  },
1918
1921
  {
1919
1922
  "code": 6003,
1920
- "name": "IncorrectSellerTokenAccount",
1921
- "msg": "Incorrect seller token account"
1923
+ "name": "AltMismatch",
1924
+ "msg": "Address lookup table does not match orderbook.address_lookup_table"
1922
1925
  },
1923
1926
  {
1924
1927
  "code": 6004,
1925
- "name": "InvalidOrderType",
1926
- "msg": "Invalid Order Type"
1928
+ "name": "SyEscrowMismatch",
1929
+ "msg": "SY escrow does not match orderbook.token_escrow_sy"
1927
1930
  },
1928
1931
  {
1929
1932
  "code": 6005,
1930
- "name": "FillOrKillOrderNotFilled",
1931
- "msg": "Fill or Kill order not filled"
1933
+ "name": "YtEscrowMismatch",
1934
+ "msg": "YT escrow does not match orderbook.token_escrow_yt"
1932
1935
  },
1933
1936
  {
1934
1937
  "code": 6006,
1935
- "name": "OrderbookFull",
1936
- "msg": "Orderbook full"
1938
+ "name": "PtEscrowMismatch",
1939
+ "msg": "PT escrow does not match orderbook.token_escrow_pt"
1937
1940
  },
1938
1941
  {
1939
1942
  "code": 6007,
1940
- "name": "PriceNodeFull",
1941
- "msg": "Price Node Full"
1943
+ "name": "CpiAccountsMismatch",
1944
+ "msg": "CPI accounts orderbook does not match orderbook.cpi_account_orderbook"
1942
1945
  },
1943
1946
  {
1944
1947
  "code": 6008,
1945
- "name": "ExponentOrderbookDiscriminatorMismatch",
1946
- "msg": "Exponent Orderbook discriminator mismatch"
1948
+ "name": "WrongAdmin",
1949
+ "msg": "Wrong admin for orderbook"
1947
1950
  },
1948
1951
  {
1949
1952
  "code": 6009,
1950
- "name": "IncorrectPriceNodeForOfferIdx",
1951
- "msg": "Incorrect price node for offer idx"
1953
+ "name": "SyExchangeRateExpectedToBeGreater",
1954
+ "msg": "Current sy exchange rate is smaller than the previous one"
1952
1955
  },
1953
1956
  {
1954
1957
  "code": 6010,
1955
- "name": "InsufficientOutputAmount",
1956
- "msg": "Insufficient output amount"
1958
+ "name": "SyProgramMismatch",
1959
+ "msg": "SY program does not match orderbook.sy_program"
1957
1960
  },
1958
1961
  {
1959
1962
  "code": 6011,
1960
- "name": "OrderbookExpired",
1961
- "msg": "Orderbook is expired"
1963
+ "name": "ExponentCoreProgramMismatch",
1964
+ "msg": "Exponent Core program does not match orderbook.exponent_core"
1962
1965
  },
1963
1966
  {
1964
1967
  "code": 6012,
1965
- "name": "ExponentOrderbookAlreadyHaveLamports",
1966
- "msg": "Exponent Orderbook already have lamports"
1968
+ "name": "EmissionOrderbookMismatch",
1969
+ "msg": "Emission orderbook does not match out token account"
1967
1970
  },
1968
1971
  {
1969
1972
  "code": 6013,
1970
- "name": "MaxFilledOffersLimitReached",
1971
- "msg": "Max filled offers limit reached with remaining counter offers available"
1973
+ "name": "TokenAccountAlreadyInUse",
1974
+ "msg": "Token account already in use"
1975
+ },
1976
+ {
1977
+ "code": 6014,
1978
+ "name": "PriceApyOverflow",
1979
+ "msg": "Price APY causes overflow when converted to u32 with given decimals"
1980
+ },
1981
+ {
1982
+ "code": 6015,
1983
+ "name": "InvalidFeeRate",
1984
+ "msg": "Fee rate configuration must produce a fee between 0% and 100%"
1985
+ },
1986
+ {
1987
+ "code": 6016,
1988
+ "name": "OfferIdxMismatch",
1989
+ "msg": "Offer index mismatch"
1972
1990
  }
1973
1991
  ],
1974
1992
  "types": [
package/build/index.d.ts CHANGED
@@ -242,14 +242,22 @@ export declare const IDL: {
242
242
  name: string;
243
243
  writable: boolean;
244
244
  signer: boolean;
245
+ docs?: undefined;
246
+ } | {
247
+ name: string;
248
+ writable: boolean;
249
+ signer?: undefined;
250
+ docs?: undefined;
245
251
  } | {
246
252
  name: string;
253
+ docs: string[];
247
254
  writable: boolean;
248
255
  signer?: undefined;
249
256
  } | {
250
257
  name: string;
251
258
  writable?: undefined;
252
259
  signer?: undefined;
260
+ docs?: undefined;
253
261
  })[];
254
262
  args: {
255
263
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exponent-labs/exponent-orderbook-idl",
3
- "version": "0.9.13",
3
+ "version": "0.9.14",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "license": "AGPL-3.0",
@@ -824,6 +824,9 @@
824
824
  },
825
825
  {
826
826
  "name": "cpi_account_orderbook",
827
+ "docs": [
828
+ "Cpi accounts Orderbook"
829
+ ],
827
830
  "writable": true
828
831
  },
829
832
  {
@@ -1902,73 +1905,88 @@
1902
1905
  "errors": [
1903
1906
  {
1904
1907
  "code": 6000,
1905
- "name": "OfferIndexOutOfBounds",
1906
- "msg": "Offer index out of bounds"
1908
+ "name": "InvalidOrderbookOwner",
1909
+ "msg": "Orderbook account owner mismatch"
1907
1910
  },
1908
1911
  {
1909
1912
  "code": 6001,
1910
- "name": "PriceNotFound",
1911
- "msg": "Price not found"
1913
+ "name": "VaultMismatch",
1914
+ "msg": "Vault does not match orderbook.vault"
1912
1915
  },
1913
1916
  {
1914
1917
  "code": 6002,
1915
- "name": "IncorrectSeller",
1916
- "msg": "Incorrect seller"
1918
+ "name": "YieldPositionMismatch",
1919
+ "msg": "Yield position does not match orderbook.yield_position"
1917
1920
  },
1918
1921
  {
1919
1922
  "code": 6003,
1920
- "name": "IncorrectSellerTokenAccount",
1921
- "msg": "Incorrect seller token account"
1923
+ "name": "AltMismatch",
1924
+ "msg": "Address lookup table does not match orderbook.address_lookup_table"
1922
1925
  },
1923
1926
  {
1924
1927
  "code": 6004,
1925
- "name": "InvalidOrderType",
1926
- "msg": "Invalid Order Type"
1928
+ "name": "SyEscrowMismatch",
1929
+ "msg": "SY escrow does not match orderbook.token_escrow_sy"
1927
1930
  },
1928
1931
  {
1929
1932
  "code": 6005,
1930
- "name": "FillOrKillOrderNotFilled",
1931
- "msg": "Fill or Kill order not filled"
1933
+ "name": "YtEscrowMismatch",
1934
+ "msg": "YT escrow does not match orderbook.token_escrow_yt"
1932
1935
  },
1933
1936
  {
1934
1937
  "code": 6006,
1935
- "name": "OrderbookFull",
1936
- "msg": "Orderbook full"
1938
+ "name": "PtEscrowMismatch",
1939
+ "msg": "PT escrow does not match orderbook.token_escrow_pt"
1937
1940
  },
1938
1941
  {
1939
1942
  "code": 6007,
1940
- "name": "PriceNodeFull",
1941
- "msg": "Price Node Full"
1943
+ "name": "CpiAccountsMismatch",
1944
+ "msg": "CPI accounts orderbook does not match orderbook.cpi_account_orderbook"
1942
1945
  },
1943
1946
  {
1944
1947
  "code": 6008,
1945
- "name": "ExponentOrderbookDiscriminatorMismatch",
1946
- "msg": "Exponent Orderbook discriminator mismatch"
1948
+ "name": "WrongAdmin",
1949
+ "msg": "Wrong admin for orderbook"
1947
1950
  },
1948
1951
  {
1949
1952
  "code": 6009,
1950
- "name": "IncorrectPriceNodeForOfferIdx",
1951
- "msg": "Incorrect price node for offer idx"
1953
+ "name": "SyExchangeRateExpectedToBeGreater",
1954
+ "msg": "Current sy exchange rate is smaller than the previous one"
1952
1955
  },
1953
1956
  {
1954
1957
  "code": 6010,
1955
- "name": "InsufficientOutputAmount",
1956
- "msg": "Insufficient output amount"
1958
+ "name": "SyProgramMismatch",
1959
+ "msg": "SY program does not match orderbook.sy_program"
1957
1960
  },
1958
1961
  {
1959
1962
  "code": 6011,
1960
- "name": "OrderbookExpired",
1961
- "msg": "Orderbook is expired"
1963
+ "name": "ExponentCoreProgramMismatch",
1964
+ "msg": "Exponent Core program does not match orderbook.exponent_core"
1962
1965
  },
1963
1966
  {
1964
1967
  "code": 6012,
1965
- "name": "ExponentOrderbookAlreadyHaveLamports",
1966
- "msg": "Exponent Orderbook already have lamports"
1968
+ "name": "EmissionOrderbookMismatch",
1969
+ "msg": "Emission orderbook does not match out token account"
1967
1970
  },
1968
1971
  {
1969
1972
  "code": 6013,
1970
- "name": "MaxFilledOffersLimitReached",
1971
- "msg": "Max filled offers limit reached with remaining counter offers available"
1973
+ "name": "TokenAccountAlreadyInUse",
1974
+ "msg": "Token account already in use"
1975
+ },
1976
+ {
1977
+ "code": 6014,
1978
+ "name": "PriceApyOverflow",
1979
+ "msg": "Price APY causes overflow when converted to u32 with given decimals"
1980
+ },
1981
+ {
1982
+ "code": 6015,
1983
+ "name": "InvalidFeeRate",
1984
+ "msg": "Fee rate configuration must produce a fee between 0% and 100%"
1985
+ },
1986
+ {
1987
+ "code": 6016,
1988
+ "name": "OfferIdxMismatch",
1989
+ "msg": "Offer index mismatch"
1972
1990
  }
1973
1991
  ],
1974
1992
  "types": [
@@ -3467,4 +3485,4 @@
3467
3485
  }
3468
3486
  }
3469
3487
  ]
3470
- }
3488
+ }
@@ -830,6 +830,9 @@ export type ExponentOrderbook = {
830
830
  },
831
831
  {
832
832
  "name": "cpiAccountOrderbook",
833
+ "docs": [
834
+ "Cpi accounts Orderbook"
835
+ ],
833
836
  "writable": true
834
837
  },
835
838
  {
@@ -1908,73 +1911,88 @@ export type ExponentOrderbook = {
1908
1911
  "errors": [
1909
1912
  {
1910
1913
  "code": 6000,
1911
- "name": "offerIndexOutOfBounds",
1912
- "msg": "Offer index out of bounds"
1914
+ "name": "invalidOrderbookOwner",
1915
+ "msg": "Orderbook account owner mismatch"
1913
1916
  },
1914
1917
  {
1915
1918
  "code": 6001,
1916
- "name": "priceNotFound",
1917
- "msg": "Price not found"
1919
+ "name": "vaultMismatch",
1920
+ "msg": "Vault does not match orderbook.vault"
1918
1921
  },
1919
1922
  {
1920
1923
  "code": 6002,
1921
- "name": "incorrectSeller",
1922
- "msg": "Incorrect seller"
1924
+ "name": "yieldPositionMismatch",
1925
+ "msg": "Yield position does not match orderbook.yield_position"
1923
1926
  },
1924
1927
  {
1925
1928
  "code": 6003,
1926
- "name": "incorrectSellerTokenAccount",
1927
- "msg": "Incorrect seller token account"
1929
+ "name": "altMismatch",
1930
+ "msg": "Address lookup table does not match orderbook.address_lookup_table"
1928
1931
  },
1929
1932
  {
1930
1933
  "code": 6004,
1931
- "name": "invalidOrderType",
1932
- "msg": "Invalid Order Type"
1934
+ "name": "syEscrowMismatch",
1935
+ "msg": "SY escrow does not match orderbook.token_escrow_sy"
1933
1936
  },
1934
1937
  {
1935
1938
  "code": 6005,
1936
- "name": "fillOrKillOrderNotFilled",
1937
- "msg": "Fill or Kill order not filled"
1939
+ "name": "ytEscrowMismatch",
1940
+ "msg": "YT escrow does not match orderbook.token_escrow_yt"
1938
1941
  },
1939
1942
  {
1940
1943
  "code": 6006,
1941
- "name": "orderbookFull",
1942
- "msg": "Orderbook full"
1944
+ "name": "ptEscrowMismatch",
1945
+ "msg": "PT escrow does not match orderbook.token_escrow_pt"
1943
1946
  },
1944
1947
  {
1945
1948
  "code": 6007,
1946
- "name": "priceNodeFull",
1947
- "msg": "Price Node Full"
1949
+ "name": "cpiAccountsMismatch",
1950
+ "msg": "CPI accounts orderbook does not match orderbook.cpi_account_orderbook"
1948
1951
  },
1949
1952
  {
1950
1953
  "code": 6008,
1951
- "name": "exponentOrderbookDiscriminatorMismatch",
1952
- "msg": "Exponent Orderbook discriminator mismatch"
1954
+ "name": "wrongAdmin",
1955
+ "msg": "Wrong admin for orderbook"
1953
1956
  },
1954
1957
  {
1955
1958
  "code": 6009,
1956
- "name": "incorrectPriceNodeForOfferIdx",
1957
- "msg": "Incorrect price node for offer idx"
1959
+ "name": "syExchangeRateExpectedToBeGreater",
1960
+ "msg": "Current sy exchange rate is smaller than the previous one"
1958
1961
  },
1959
1962
  {
1960
1963
  "code": 6010,
1961
- "name": "insufficientOutputAmount",
1962
- "msg": "Insufficient output amount"
1964
+ "name": "syProgramMismatch",
1965
+ "msg": "SY program does not match orderbook.sy_program"
1963
1966
  },
1964
1967
  {
1965
1968
  "code": 6011,
1966
- "name": "orderbookExpired",
1967
- "msg": "Orderbook is expired"
1969
+ "name": "exponentCoreProgramMismatch",
1970
+ "msg": "Exponent Core program does not match orderbook.exponent_core"
1968
1971
  },
1969
1972
  {
1970
1973
  "code": 6012,
1971
- "name": "exponentOrderbookAlreadyHaveLamports",
1972
- "msg": "Exponent Orderbook already have lamports"
1974
+ "name": "emissionOrderbookMismatch",
1975
+ "msg": "Emission orderbook does not match out token account"
1973
1976
  },
1974
1977
  {
1975
1978
  "code": 6013,
1976
- "name": "maxFilledOffersLimitReached",
1977
- "msg": "Max filled offers limit reached with remaining counter offers available"
1979
+ "name": "tokenAccountAlreadyInUse",
1980
+ "msg": "Token account already in use"
1981
+ },
1982
+ {
1983
+ "code": 6014,
1984
+ "name": "priceApyOverflow",
1985
+ "msg": "Price APY causes overflow when converted to u32 with given decimals"
1986
+ },
1987
+ {
1988
+ "code": 6015,
1989
+ "name": "invalidFeeRate",
1990
+ "msg": "Fee rate configuration must produce a fee between 0% and 100%"
1991
+ },
1992
+ {
1993
+ "code": 6016,
1994
+ "name": "offerIdxMismatch",
1995
+ "msg": "Offer index mismatch"
1978
1996
  }
1979
1997
  ],
1980
1998
  "types": [