@exponent-labs/exponent-orderbook-idl 0.9.2 → 0.9.4
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/build/exponent_orderbook.d.ts +43 -28
- package/build/exponent_orderbook.json +43 -28
- package/package.json +1 -1
- package/src/exponent_orderbook.json +43 -28
- package/src/exponent_orderbook.ts +43 -28
|
@@ -1899,73 +1899,88 @@ export type ExponentOrderbook = {
|
|
|
1899
1899
|
"errors": [
|
|
1900
1900
|
{
|
|
1901
1901
|
"code": 6000;
|
|
1902
|
-
"name": "
|
|
1903
|
-
"msg": "
|
|
1902
|
+
"name": "invalidOrderbookOwner";
|
|
1903
|
+
"msg": "Orderbook account owner mismatch";
|
|
1904
1904
|
},
|
|
1905
1905
|
{
|
|
1906
1906
|
"code": 6001;
|
|
1907
|
-
"name": "
|
|
1908
|
-
"msg": "
|
|
1907
|
+
"name": "vaultMismatch";
|
|
1908
|
+
"msg": "Vault does not match orderbook.vault";
|
|
1909
1909
|
},
|
|
1910
1910
|
{
|
|
1911
1911
|
"code": 6002;
|
|
1912
|
-
"name": "
|
|
1913
|
-
"msg": "
|
|
1912
|
+
"name": "yieldPositionMismatch";
|
|
1913
|
+
"msg": "Yield position does not match orderbook.yield_position";
|
|
1914
1914
|
},
|
|
1915
1915
|
{
|
|
1916
1916
|
"code": 6003;
|
|
1917
|
-
"name": "
|
|
1918
|
-
"msg": "
|
|
1917
|
+
"name": "altMismatch";
|
|
1918
|
+
"msg": "Address lookup table does not match orderbook.address_lookup_table";
|
|
1919
1919
|
},
|
|
1920
1920
|
{
|
|
1921
1921
|
"code": 6004;
|
|
1922
|
-
"name": "
|
|
1923
|
-
"msg": "
|
|
1922
|
+
"name": "syEscrowMismatch";
|
|
1923
|
+
"msg": "SY escrow does not match orderbook.token_escrow_sy";
|
|
1924
1924
|
},
|
|
1925
1925
|
{
|
|
1926
1926
|
"code": 6005;
|
|
1927
|
-
"name": "
|
|
1928
|
-
"msg": "
|
|
1927
|
+
"name": "ytEscrowMismatch";
|
|
1928
|
+
"msg": "YT escrow does not match orderbook.token_escrow_yt";
|
|
1929
1929
|
},
|
|
1930
1930
|
{
|
|
1931
1931
|
"code": 6006;
|
|
1932
|
-
"name": "
|
|
1933
|
-
"msg": "
|
|
1932
|
+
"name": "ptEscrowMismatch";
|
|
1933
|
+
"msg": "PT escrow does not match orderbook.token_escrow_pt";
|
|
1934
1934
|
},
|
|
1935
1935
|
{
|
|
1936
1936
|
"code": 6007;
|
|
1937
|
-
"name": "
|
|
1938
|
-
"msg": "
|
|
1937
|
+
"name": "cpiAccountsMismatch";
|
|
1938
|
+
"msg": "CPI accounts orderbook does not match orderbook.cpi_account_orderbook";
|
|
1939
1939
|
},
|
|
1940
1940
|
{
|
|
1941
1941
|
"code": 6008;
|
|
1942
|
-
"name": "
|
|
1943
|
-
"msg": "
|
|
1942
|
+
"name": "wrongAdmin";
|
|
1943
|
+
"msg": "Wrong admin for orderbook";
|
|
1944
1944
|
},
|
|
1945
1945
|
{
|
|
1946
1946
|
"code": 6009;
|
|
1947
|
-
"name": "
|
|
1948
|
-
"msg": "
|
|
1947
|
+
"name": "syExchangeRateExpectedToBeGreater";
|
|
1948
|
+
"msg": "Current sy exchange rate is smaller than the previous one";
|
|
1949
1949
|
},
|
|
1950
1950
|
{
|
|
1951
1951
|
"code": 6010;
|
|
1952
|
-
"name": "
|
|
1953
|
-
"msg": "
|
|
1952
|
+
"name": "syProgramMismatch";
|
|
1953
|
+
"msg": "SY program does not match orderbook.sy_program";
|
|
1954
1954
|
},
|
|
1955
1955
|
{
|
|
1956
1956
|
"code": 6011;
|
|
1957
|
-
"name": "
|
|
1958
|
-
"msg": "
|
|
1957
|
+
"name": "exponentCoreProgramMismatch";
|
|
1958
|
+
"msg": "Exponent Core program does not match orderbook.exponent_core";
|
|
1959
1959
|
},
|
|
1960
1960
|
{
|
|
1961
1961
|
"code": 6012;
|
|
1962
|
-
"name": "
|
|
1963
|
-
"msg": "
|
|
1962
|
+
"name": "emissionOrderbookMismatch";
|
|
1963
|
+
"msg": "Emission orderbook does not match out token account";
|
|
1964
1964
|
},
|
|
1965
1965
|
{
|
|
1966
1966
|
"code": 6013;
|
|
1967
|
-
"name": "
|
|
1968
|
-
"msg": "
|
|
1967
|
+
"name": "tokenAccountAlreadyInUse";
|
|
1968
|
+
"msg": "Token account already in use";
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
"code": 6014;
|
|
1972
|
+
"name": "priceApyOverflow";
|
|
1973
|
+
"msg": "Price APY causes overflow when converted to u32 with given decimals";
|
|
1974
|
+
},
|
|
1975
|
+
{
|
|
1976
|
+
"code": 6015;
|
|
1977
|
+
"name": "invalidFeeRate";
|
|
1978
|
+
"msg": "Fee rate configuration must produce a fee between 0% and 100%";
|
|
1979
|
+
},
|
|
1980
|
+
{
|
|
1981
|
+
"code": 6016;
|
|
1982
|
+
"name": "offerIdxMismatch";
|
|
1983
|
+
"msg": "Offer index mismatch";
|
|
1969
1984
|
}
|
|
1970
1985
|
];
|
|
1971
1986
|
"types": [
|
|
@@ -1893,73 +1893,88 @@
|
|
|
1893
1893
|
"errors": [
|
|
1894
1894
|
{
|
|
1895
1895
|
"code": 6000,
|
|
1896
|
-
"name": "
|
|
1897
|
-
"msg": "
|
|
1896
|
+
"name": "InvalidOrderbookOwner",
|
|
1897
|
+
"msg": "Orderbook account owner mismatch"
|
|
1898
1898
|
},
|
|
1899
1899
|
{
|
|
1900
1900
|
"code": 6001,
|
|
1901
|
-
"name": "
|
|
1902
|
-
"msg": "
|
|
1901
|
+
"name": "VaultMismatch",
|
|
1902
|
+
"msg": "Vault does not match orderbook.vault"
|
|
1903
1903
|
},
|
|
1904
1904
|
{
|
|
1905
1905
|
"code": 6002,
|
|
1906
|
-
"name": "
|
|
1907
|
-
"msg": "
|
|
1906
|
+
"name": "YieldPositionMismatch",
|
|
1907
|
+
"msg": "Yield position does not match orderbook.yield_position"
|
|
1908
1908
|
},
|
|
1909
1909
|
{
|
|
1910
1910
|
"code": 6003,
|
|
1911
|
-
"name": "
|
|
1912
|
-
"msg": "
|
|
1911
|
+
"name": "AltMismatch",
|
|
1912
|
+
"msg": "Address lookup table does not match orderbook.address_lookup_table"
|
|
1913
1913
|
},
|
|
1914
1914
|
{
|
|
1915
1915
|
"code": 6004,
|
|
1916
|
-
"name": "
|
|
1917
|
-
"msg": "
|
|
1916
|
+
"name": "SyEscrowMismatch",
|
|
1917
|
+
"msg": "SY escrow does not match orderbook.token_escrow_sy"
|
|
1918
1918
|
},
|
|
1919
1919
|
{
|
|
1920
1920
|
"code": 6005,
|
|
1921
|
-
"name": "
|
|
1922
|
-
"msg": "
|
|
1921
|
+
"name": "YtEscrowMismatch",
|
|
1922
|
+
"msg": "YT escrow does not match orderbook.token_escrow_yt"
|
|
1923
1923
|
},
|
|
1924
1924
|
{
|
|
1925
1925
|
"code": 6006,
|
|
1926
|
-
"name": "
|
|
1927
|
-
"msg": "
|
|
1926
|
+
"name": "PtEscrowMismatch",
|
|
1927
|
+
"msg": "PT escrow does not match orderbook.token_escrow_pt"
|
|
1928
1928
|
},
|
|
1929
1929
|
{
|
|
1930
1930
|
"code": 6007,
|
|
1931
|
-
"name": "
|
|
1932
|
-
"msg": "
|
|
1931
|
+
"name": "CpiAccountsMismatch",
|
|
1932
|
+
"msg": "CPI accounts orderbook does not match orderbook.cpi_account_orderbook"
|
|
1933
1933
|
},
|
|
1934
1934
|
{
|
|
1935
1935
|
"code": 6008,
|
|
1936
|
-
"name": "
|
|
1937
|
-
"msg": "
|
|
1936
|
+
"name": "WrongAdmin",
|
|
1937
|
+
"msg": "Wrong admin for orderbook"
|
|
1938
1938
|
},
|
|
1939
1939
|
{
|
|
1940
1940
|
"code": 6009,
|
|
1941
|
-
"name": "
|
|
1942
|
-
"msg": "
|
|
1941
|
+
"name": "SyExchangeRateExpectedToBeGreater",
|
|
1942
|
+
"msg": "Current sy exchange rate is smaller than the previous one"
|
|
1943
1943
|
},
|
|
1944
1944
|
{
|
|
1945
1945
|
"code": 6010,
|
|
1946
|
-
"name": "
|
|
1947
|
-
"msg": "
|
|
1946
|
+
"name": "SyProgramMismatch",
|
|
1947
|
+
"msg": "SY program does not match orderbook.sy_program"
|
|
1948
1948
|
},
|
|
1949
1949
|
{
|
|
1950
1950
|
"code": 6011,
|
|
1951
|
-
"name": "
|
|
1952
|
-
"msg": "
|
|
1951
|
+
"name": "ExponentCoreProgramMismatch",
|
|
1952
|
+
"msg": "Exponent Core program does not match orderbook.exponent_core"
|
|
1953
1953
|
},
|
|
1954
1954
|
{
|
|
1955
1955
|
"code": 6012,
|
|
1956
|
-
"name": "
|
|
1957
|
-
"msg": "
|
|
1956
|
+
"name": "EmissionOrderbookMismatch",
|
|
1957
|
+
"msg": "Emission orderbook does not match out token account"
|
|
1958
1958
|
},
|
|
1959
1959
|
{
|
|
1960
1960
|
"code": 6013,
|
|
1961
|
-
"name": "
|
|
1962
|
-
"msg": "
|
|
1961
|
+
"name": "TokenAccountAlreadyInUse",
|
|
1962
|
+
"msg": "Token account already in use"
|
|
1963
|
+
},
|
|
1964
|
+
{
|
|
1965
|
+
"code": 6014,
|
|
1966
|
+
"name": "PriceApyOverflow",
|
|
1967
|
+
"msg": "Price APY causes overflow when converted to u32 with given decimals"
|
|
1968
|
+
},
|
|
1969
|
+
{
|
|
1970
|
+
"code": 6015,
|
|
1971
|
+
"name": "InvalidFeeRate",
|
|
1972
|
+
"msg": "Fee rate configuration must produce a fee between 0% and 100%"
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
"code": 6016,
|
|
1976
|
+
"name": "OfferIdxMismatch",
|
|
1977
|
+
"msg": "Offer index mismatch"
|
|
1963
1978
|
}
|
|
1964
1979
|
],
|
|
1965
1980
|
"types": [
|
package/package.json
CHANGED
|
@@ -1893,73 +1893,88 @@
|
|
|
1893
1893
|
"errors": [
|
|
1894
1894
|
{
|
|
1895
1895
|
"code": 6000,
|
|
1896
|
-
"name": "
|
|
1897
|
-
"msg": "
|
|
1896
|
+
"name": "InvalidOrderbookOwner",
|
|
1897
|
+
"msg": "Orderbook account owner mismatch"
|
|
1898
1898
|
},
|
|
1899
1899
|
{
|
|
1900
1900
|
"code": 6001,
|
|
1901
|
-
"name": "
|
|
1902
|
-
"msg": "
|
|
1901
|
+
"name": "VaultMismatch",
|
|
1902
|
+
"msg": "Vault does not match orderbook.vault"
|
|
1903
1903
|
},
|
|
1904
1904
|
{
|
|
1905
1905
|
"code": 6002,
|
|
1906
|
-
"name": "
|
|
1907
|
-
"msg": "
|
|
1906
|
+
"name": "YieldPositionMismatch",
|
|
1907
|
+
"msg": "Yield position does not match orderbook.yield_position"
|
|
1908
1908
|
},
|
|
1909
1909
|
{
|
|
1910
1910
|
"code": 6003,
|
|
1911
|
-
"name": "
|
|
1912
|
-
"msg": "
|
|
1911
|
+
"name": "AltMismatch",
|
|
1912
|
+
"msg": "Address lookup table does not match orderbook.address_lookup_table"
|
|
1913
1913
|
},
|
|
1914
1914
|
{
|
|
1915
1915
|
"code": 6004,
|
|
1916
|
-
"name": "
|
|
1917
|
-
"msg": "
|
|
1916
|
+
"name": "SyEscrowMismatch",
|
|
1917
|
+
"msg": "SY escrow does not match orderbook.token_escrow_sy"
|
|
1918
1918
|
},
|
|
1919
1919
|
{
|
|
1920
1920
|
"code": 6005,
|
|
1921
|
-
"name": "
|
|
1922
|
-
"msg": "
|
|
1921
|
+
"name": "YtEscrowMismatch",
|
|
1922
|
+
"msg": "YT escrow does not match orderbook.token_escrow_yt"
|
|
1923
1923
|
},
|
|
1924
1924
|
{
|
|
1925
1925
|
"code": 6006,
|
|
1926
|
-
"name": "
|
|
1927
|
-
"msg": "
|
|
1926
|
+
"name": "PtEscrowMismatch",
|
|
1927
|
+
"msg": "PT escrow does not match orderbook.token_escrow_pt"
|
|
1928
1928
|
},
|
|
1929
1929
|
{
|
|
1930
1930
|
"code": 6007,
|
|
1931
|
-
"name": "
|
|
1932
|
-
"msg": "
|
|
1931
|
+
"name": "CpiAccountsMismatch",
|
|
1932
|
+
"msg": "CPI accounts orderbook does not match orderbook.cpi_account_orderbook"
|
|
1933
1933
|
},
|
|
1934
1934
|
{
|
|
1935
1935
|
"code": 6008,
|
|
1936
|
-
"name": "
|
|
1937
|
-
"msg": "
|
|
1936
|
+
"name": "WrongAdmin",
|
|
1937
|
+
"msg": "Wrong admin for orderbook"
|
|
1938
1938
|
},
|
|
1939
1939
|
{
|
|
1940
1940
|
"code": 6009,
|
|
1941
|
-
"name": "
|
|
1942
|
-
"msg": "
|
|
1941
|
+
"name": "SyExchangeRateExpectedToBeGreater",
|
|
1942
|
+
"msg": "Current sy exchange rate is smaller than the previous one"
|
|
1943
1943
|
},
|
|
1944
1944
|
{
|
|
1945
1945
|
"code": 6010,
|
|
1946
|
-
"name": "
|
|
1947
|
-
"msg": "
|
|
1946
|
+
"name": "SyProgramMismatch",
|
|
1947
|
+
"msg": "SY program does not match orderbook.sy_program"
|
|
1948
1948
|
},
|
|
1949
1949
|
{
|
|
1950
1950
|
"code": 6011,
|
|
1951
|
-
"name": "
|
|
1952
|
-
"msg": "
|
|
1951
|
+
"name": "ExponentCoreProgramMismatch",
|
|
1952
|
+
"msg": "Exponent Core program does not match orderbook.exponent_core"
|
|
1953
1953
|
},
|
|
1954
1954
|
{
|
|
1955
1955
|
"code": 6012,
|
|
1956
|
-
"name": "
|
|
1957
|
-
"msg": "
|
|
1956
|
+
"name": "EmissionOrderbookMismatch",
|
|
1957
|
+
"msg": "Emission orderbook does not match out token account"
|
|
1958
1958
|
},
|
|
1959
1959
|
{
|
|
1960
1960
|
"code": 6013,
|
|
1961
|
-
"name": "
|
|
1962
|
-
"msg": "
|
|
1961
|
+
"name": "TokenAccountAlreadyInUse",
|
|
1962
|
+
"msg": "Token account already in use"
|
|
1963
|
+
},
|
|
1964
|
+
{
|
|
1965
|
+
"code": 6014,
|
|
1966
|
+
"name": "PriceApyOverflow",
|
|
1967
|
+
"msg": "Price APY causes overflow when converted to u32 with given decimals"
|
|
1968
|
+
},
|
|
1969
|
+
{
|
|
1970
|
+
"code": 6015,
|
|
1971
|
+
"name": "InvalidFeeRate",
|
|
1972
|
+
"msg": "Fee rate configuration must produce a fee between 0% and 100%"
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
"code": 6016,
|
|
1976
|
+
"name": "OfferIdxMismatch",
|
|
1977
|
+
"msg": "Offer index mismatch"
|
|
1963
1978
|
}
|
|
1964
1979
|
],
|
|
1965
1980
|
"types": [
|
|
@@ -1899,73 +1899,88 @@ export type ExponentOrderbook = {
|
|
|
1899
1899
|
"errors": [
|
|
1900
1900
|
{
|
|
1901
1901
|
"code": 6000,
|
|
1902
|
-
"name": "
|
|
1903
|
-
"msg": "
|
|
1902
|
+
"name": "invalidOrderbookOwner",
|
|
1903
|
+
"msg": "Orderbook account owner mismatch"
|
|
1904
1904
|
},
|
|
1905
1905
|
{
|
|
1906
1906
|
"code": 6001,
|
|
1907
|
-
"name": "
|
|
1908
|
-
"msg": "
|
|
1907
|
+
"name": "vaultMismatch",
|
|
1908
|
+
"msg": "Vault does not match orderbook.vault"
|
|
1909
1909
|
},
|
|
1910
1910
|
{
|
|
1911
1911
|
"code": 6002,
|
|
1912
|
-
"name": "
|
|
1913
|
-
"msg": "
|
|
1912
|
+
"name": "yieldPositionMismatch",
|
|
1913
|
+
"msg": "Yield position does not match orderbook.yield_position"
|
|
1914
1914
|
},
|
|
1915
1915
|
{
|
|
1916
1916
|
"code": 6003,
|
|
1917
|
-
"name": "
|
|
1918
|
-
"msg": "
|
|
1917
|
+
"name": "altMismatch",
|
|
1918
|
+
"msg": "Address lookup table does not match orderbook.address_lookup_table"
|
|
1919
1919
|
},
|
|
1920
1920
|
{
|
|
1921
1921
|
"code": 6004,
|
|
1922
|
-
"name": "
|
|
1923
|
-
"msg": "
|
|
1922
|
+
"name": "syEscrowMismatch",
|
|
1923
|
+
"msg": "SY escrow does not match orderbook.token_escrow_sy"
|
|
1924
1924
|
},
|
|
1925
1925
|
{
|
|
1926
1926
|
"code": 6005,
|
|
1927
|
-
"name": "
|
|
1928
|
-
"msg": "
|
|
1927
|
+
"name": "ytEscrowMismatch",
|
|
1928
|
+
"msg": "YT escrow does not match orderbook.token_escrow_yt"
|
|
1929
1929
|
},
|
|
1930
1930
|
{
|
|
1931
1931
|
"code": 6006,
|
|
1932
|
-
"name": "
|
|
1933
|
-
"msg": "
|
|
1932
|
+
"name": "ptEscrowMismatch",
|
|
1933
|
+
"msg": "PT escrow does not match orderbook.token_escrow_pt"
|
|
1934
1934
|
},
|
|
1935
1935
|
{
|
|
1936
1936
|
"code": 6007,
|
|
1937
|
-
"name": "
|
|
1938
|
-
"msg": "
|
|
1937
|
+
"name": "cpiAccountsMismatch",
|
|
1938
|
+
"msg": "CPI accounts orderbook does not match orderbook.cpi_account_orderbook"
|
|
1939
1939
|
},
|
|
1940
1940
|
{
|
|
1941
1941
|
"code": 6008,
|
|
1942
|
-
"name": "
|
|
1943
|
-
"msg": "
|
|
1942
|
+
"name": "wrongAdmin",
|
|
1943
|
+
"msg": "Wrong admin for orderbook"
|
|
1944
1944
|
},
|
|
1945
1945
|
{
|
|
1946
1946
|
"code": 6009,
|
|
1947
|
-
"name": "
|
|
1948
|
-
"msg": "
|
|
1947
|
+
"name": "syExchangeRateExpectedToBeGreater",
|
|
1948
|
+
"msg": "Current sy exchange rate is smaller than the previous one"
|
|
1949
1949
|
},
|
|
1950
1950
|
{
|
|
1951
1951
|
"code": 6010,
|
|
1952
|
-
"name": "
|
|
1953
|
-
"msg": "
|
|
1952
|
+
"name": "syProgramMismatch",
|
|
1953
|
+
"msg": "SY program does not match orderbook.sy_program"
|
|
1954
1954
|
},
|
|
1955
1955
|
{
|
|
1956
1956
|
"code": 6011,
|
|
1957
|
-
"name": "
|
|
1958
|
-
"msg": "
|
|
1957
|
+
"name": "exponentCoreProgramMismatch",
|
|
1958
|
+
"msg": "Exponent Core program does not match orderbook.exponent_core"
|
|
1959
1959
|
},
|
|
1960
1960
|
{
|
|
1961
1961
|
"code": 6012,
|
|
1962
|
-
"name": "
|
|
1963
|
-
"msg": "
|
|
1962
|
+
"name": "emissionOrderbookMismatch",
|
|
1963
|
+
"msg": "Emission orderbook does not match out token account"
|
|
1964
1964
|
},
|
|
1965
1965
|
{
|
|
1966
1966
|
"code": 6013,
|
|
1967
|
-
"name": "
|
|
1968
|
-
"msg": "
|
|
1967
|
+
"name": "tokenAccountAlreadyInUse",
|
|
1968
|
+
"msg": "Token account already in use"
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
"code": 6014,
|
|
1972
|
+
"name": "priceApyOverflow",
|
|
1973
|
+
"msg": "Price APY causes overflow when converted to u32 with given decimals"
|
|
1974
|
+
},
|
|
1975
|
+
{
|
|
1976
|
+
"code": 6015,
|
|
1977
|
+
"name": "invalidFeeRate",
|
|
1978
|
+
"msg": "Fee rate configuration must produce a fee between 0% and 100%"
|
|
1979
|
+
},
|
|
1980
|
+
{
|
|
1981
|
+
"code": 6016,
|
|
1982
|
+
"name": "offerIdxMismatch",
|
|
1983
|
+
"msg": "Offer index mismatch"
|
|
1969
1984
|
}
|
|
1970
1985
|
],
|
|
1971
1986
|
"types": [
|