@exponent-labs/exponent-orderbook-idl 0.9.13 → 0.9.15
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 +46 -28
- package/build/exponent_orderbook.json +46 -28
- package/build/index.d.ts +8 -0
- package/build/index.js +7 -17
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/exponent_orderbook.json +47 -29
- package/src/exponent_orderbook.ts +46 -28
|
@@ -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": "
|
|
1912
|
-
"msg": "
|
|
1914
|
+
"name": "invalidOrderbookOwner";
|
|
1915
|
+
"msg": "Orderbook account owner mismatch";
|
|
1913
1916
|
},
|
|
1914
1917
|
{
|
|
1915
1918
|
"code": 6001;
|
|
1916
|
-
"name": "
|
|
1917
|
-
"msg": "
|
|
1919
|
+
"name": "vaultMismatch";
|
|
1920
|
+
"msg": "Vault does not match orderbook.vault";
|
|
1918
1921
|
},
|
|
1919
1922
|
{
|
|
1920
1923
|
"code": 6002;
|
|
1921
|
-
"name": "
|
|
1922
|
-
"msg": "
|
|
1924
|
+
"name": "yieldPositionMismatch";
|
|
1925
|
+
"msg": "Yield position does not match orderbook.yield_position";
|
|
1923
1926
|
},
|
|
1924
1927
|
{
|
|
1925
1928
|
"code": 6003;
|
|
1926
|
-
"name": "
|
|
1927
|
-
"msg": "
|
|
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": "
|
|
1932
|
-
"msg": "
|
|
1934
|
+
"name": "syEscrowMismatch";
|
|
1935
|
+
"msg": "SY escrow does not match orderbook.token_escrow_sy";
|
|
1933
1936
|
},
|
|
1934
1937
|
{
|
|
1935
1938
|
"code": 6005;
|
|
1936
|
-
"name": "
|
|
1937
|
-
"msg": "
|
|
1939
|
+
"name": "ytEscrowMismatch";
|
|
1940
|
+
"msg": "YT escrow does not match orderbook.token_escrow_yt";
|
|
1938
1941
|
},
|
|
1939
1942
|
{
|
|
1940
1943
|
"code": 6006;
|
|
1941
|
-
"name": "
|
|
1942
|
-
"msg": "
|
|
1944
|
+
"name": "ptEscrowMismatch";
|
|
1945
|
+
"msg": "PT escrow does not match orderbook.token_escrow_pt";
|
|
1943
1946
|
},
|
|
1944
1947
|
{
|
|
1945
1948
|
"code": 6007;
|
|
1946
|
-
"name": "
|
|
1947
|
-
"msg": "
|
|
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": "
|
|
1952
|
-
"msg": "
|
|
1954
|
+
"name": "wrongAdmin";
|
|
1955
|
+
"msg": "Wrong admin for orderbook";
|
|
1953
1956
|
},
|
|
1954
1957
|
{
|
|
1955
1958
|
"code": 6009;
|
|
1956
|
-
"name": "
|
|
1957
|
-
"msg": "
|
|
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": "
|
|
1962
|
-
"msg": "
|
|
1964
|
+
"name": "syProgramMismatch";
|
|
1965
|
+
"msg": "SY program does not match orderbook.sy_program";
|
|
1963
1966
|
},
|
|
1964
1967
|
{
|
|
1965
1968
|
"code": 6011;
|
|
1966
|
-
"name": "
|
|
1967
|
-
"msg": "
|
|
1969
|
+
"name": "exponentCoreProgramMismatch";
|
|
1970
|
+
"msg": "Exponent Core program does not match orderbook.exponent_core";
|
|
1968
1971
|
},
|
|
1969
1972
|
{
|
|
1970
1973
|
"code": 6012;
|
|
1971
|
-
"name": "
|
|
1972
|
-
"msg": "
|
|
1974
|
+
"name": "emissionOrderbookMismatch";
|
|
1975
|
+
"msg": "Emission orderbook does not match out token account";
|
|
1973
1976
|
},
|
|
1974
1977
|
{
|
|
1975
1978
|
"code": 6013;
|
|
1976
|
-
"name": "
|
|
1977
|
-
"msg": "
|
|
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": "
|
|
1906
|
-
"msg": "
|
|
1908
|
+
"name": "InvalidOrderbookOwner",
|
|
1909
|
+
"msg": "Orderbook account owner mismatch"
|
|
1907
1910
|
},
|
|
1908
1911
|
{
|
|
1909
1912
|
"code": 6001,
|
|
1910
|
-
"name": "
|
|
1911
|
-
"msg": "
|
|
1913
|
+
"name": "VaultMismatch",
|
|
1914
|
+
"msg": "Vault does not match orderbook.vault"
|
|
1912
1915
|
},
|
|
1913
1916
|
{
|
|
1914
1917
|
"code": 6002,
|
|
1915
|
-
"name": "
|
|
1916
|
-
"msg": "
|
|
1918
|
+
"name": "YieldPositionMismatch",
|
|
1919
|
+
"msg": "Yield position does not match orderbook.yield_position"
|
|
1917
1920
|
},
|
|
1918
1921
|
{
|
|
1919
1922
|
"code": 6003,
|
|
1920
|
-
"name": "
|
|
1921
|
-
"msg": "
|
|
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": "
|
|
1926
|
-
"msg": "
|
|
1928
|
+
"name": "SyEscrowMismatch",
|
|
1929
|
+
"msg": "SY escrow does not match orderbook.token_escrow_sy"
|
|
1927
1930
|
},
|
|
1928
1931
|
{
|
|
1929
1932
|
"code": 6005,
|
|
1930
|
-
"name": "
|
|
1931
|
-
"msg": "
|
|
1933
|
+
"name": "YtEscrowMismatch",
|
|
1934
|
+
"msg": "YT escrow does not match orderbook.token_escrow_yt"
|
|
1932
1935
|
},
|
|
1933
1936
|
{
|
|
1934
1937
|
"code": 6006,
|
|
1935
|
-
"name": "
|
|
1936
|
-
"msg": "
|
|
1938
|
+
"name": "PtEscrowMismatch",
|
|
1939
|
+
"msg": "PT escrow does not match orderbook.token_escrow_pt"
|
|
1937
1940
|
},
|
|
1938
1941
|
{
|
|
1939
1942
|
"code": 6007,
|
|
1940
|
-
"name": "
|
|
1941
|
-
"msg": "
|
|
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": "
|
|
1946
|
-
"msg": "
|
|
1948
|
+
"name": "WrongAdmin",
|
|
1949
|
+
"msg": "Wrong admin for orderbook"
|
|
1947
1950
|
},
|
|
1948
1951
|
{
|
|
1949
1952
|
"code": 6009,
|
|
1950
|
-
"name": "
|
|
1951
|
-
"msg": "
|
|
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": "
|
|
1956
|
-
"msg": "
|
|
1958
|
+
"name": "SyProgramMismatch",
|
|
1959
|
+
"msg": "SY program does not match orderbook.sy_program"
|
|
1957
1960
|
},
|
|
1958
1961
|
{
|
|
1959
1962
|
"code": 6011,
|
|
1960
|
-
"name": "
|
|
1961
|
-
"msg": "
|
|
1963
|
+
"name": "ExponentCoreProgramMismatch",
|
|
1964
|
+
"msg": "Exponent Core program does not match orderbook.exponent_core"
|
|
1962
1965
|
},
|
|
1963
1966
|
{
|
|
1964
1967
|
"code": 6012,
|
|
1965
|
-
"name": "
|
|
1966
|
-
"msg": "
|
|
1968
|
+
"name": "EmissionOrderbookMismatch",
|
|
1969
|
+
"msg": "Emission orderbook does not match out token account"
|
|
1967
1970
|
},
|
|
1968
1971
|
{
|
|
1969
1972
|
"code": 6013,
|
|
1970
|
-
"name": "
|
|
1971
|
-
"msg": "
|
|
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/build/index.js
CHANGED
|
@@ -18,23 +18,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
19
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
20
|
};
|
|
21
|
-
var __importStar = (this && this.__importStar) ||
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
38
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
29
|
exports.PROGRAM_ID = exports.IDL = void 0;
|
|
40
30
|
__exportStar(require("./exponent_orderbook"), exports);
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,+DAAgD;AACnC,QAAA,GAAG,GAAG,GAAG,CAAA;AACT,QAAA,UAAU,GAAU,GAAG,CAAC,OAAO,CAAA"}
|
package/package.json
CHANGED
|
@@ -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": "
|
|
1906
|
-
"msg": "
|
|
1908
|
+
"name": "InvalidOrderbookOwner",
|
|
1909
|
+
"msg": "Orderbook account owner mismatch"
|
|
1907
1910
|
},
|
|
1908
1911
|
{
|
|
1909
1912
|
"code": 6001,
|
|
1910
|
-
"name": "
|
|
1911
|
-
"msg": "
|
|
1913
|
+
"name": "VaultMismatch",
|
|
1914
|
+
"msg": "Vault does not match orderbook.vault"
|
|
1912
1915
|
},
|
|
1913
1916
|
{
|
|
1914
1917
|
"code": 6002,
|
|
1915
|
-
"name": "
|
|
1916
|
-
"msg": "
|
|
1918
|
+
"name": "YieldPositionMismatch",
|
|
1919
|
+
"msg": "Yield position does not match orderbook.yield_position"
|
|
1917
1920
|
},
|
|
1918
1921
|
{
|
|
1919
1922
|
"code": 6003,
|
|
1920
|
-
"name": "
|
|
1921
|
-
"msg": "
|
|
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": "
|
|
1926
|
-
"msg": "
|
|
1928
|
+
"name": "SyEscrowMismatch",
|
|
1929
|
+
"msg": "SY escrow does not match orderbook.token_escrow_sy"
|
|
1927
1930
|
},
|
|
1928
1931
|
{
|
|
1929
1932
|
"code": 6005,
|
|
1930
|
-
"name": "
|
|
1931
|
-
"msg": "
|
|
1933
|
+
"name": "YtEscrowMismatch",
|
|
1934
|
+
"msg": "YT escrow does not match orderbook.token_escrow_yt"
|
|
1932
1935
|
},
|
|
1933
1936
|
{
|
|
1934
1937
|
"code": 6006,
|
|
1935
|
-
"name": "
|
|
1936
|
-
"msg": "
|
|
1938
|
+
"name": "PtEscrowMismatch",
|
|
1939
|
+
"msg": "PT escrow does not match orderbook.token_escrow_pt"
|
|
1937
1940
|
},
|
|
1938
1941
|
{
|
|
1939
1942
|
"code": 6007,
|
|
1940
|
-
"name": "
|
|
1941
|
-
"msg": "
|
|
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": "
|
|
1946
|
-
"msg": "
|
|
1948
|
+
"name": "WrongAdmin",
|
|
1949
|
+
"msg": "Wrong admin for orderbook"
|
|
1947
1950
|
},
|
|
1948
1951
|
{
|
|
1949
1952
|
"code": 6009,
|
|
1950
|
-
"name": "
|
|
1951
|
-
"msg": "
|
|
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": "
|
|
1956
|
-
"msg": "
|
|
1958
|
+
"name": "SyProgramMismatch",
|
|
1959
|
+
"msg": "SY program does not match orderbook.sy_program"
|
|
1957
1960
|
},
|
|
1958
1961
|
{
|
|
1959
1962
|
"code": 6011,
|
|
1960
|
-
"name": "
|
|
1961
|
-
"msg": "
|
|
1963
|
+
"name": "ExponentCoreProgramMismatch",
|
|
1964
|
+
"msg": "Exponent Core program does not match orderbook.exponent_core"
|
|
1962
1965
|
},
|
|
1963
1966
|
{
|
|
1964
1967
|
"code": 6012,
|
|
1965
|
-
"name": "
|
|
1966
|
-
"msg": "
|
|
1968
|
+
"name": "EmissionOrderbookMismatch",
|
|
1969
|
+
"msg": "Emission orderbook does not match out token account"
|
|
1967
1970
|
},
|
|
1968
1971
|
{
|
|
1969
1972
|
"code": 6013,
|
|
1970
|
-
"name": "
|
|
1971
|
-
"msg": "
|
|
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": "
|
|
1912
|
-
"msg": "
|
|
1914
|
+
"name": "invalidOrderbookOwner",
|
|
1915
|
+
"msg": "Orderbook account owner mismatch"
|
|
1913
1916
|
},
|
|
1914
1917
|
{
|
|
1915
1918
|
"code": 6001,
|
|
1916
|
-
"name": "
|
|
1917
|
-
"msg": "
|
|
1919
|
+
"name": "vaultMismatch",
|
|
1920
|
+
"msg": "Vault does not match orderbook.vault"
|
|
1918
1921
|
},
|
|
1919
1922
|
{
|
|
1920
1923
|
"code": 6002,
|
|
1921
|
-
"name": "
|
|
1922
|
-
"msg": "
|
|
1924
|
+
"name": "yieldPositionMismatch",
|
|
1925
|
+
"msg": "Yield position does not match orderbook.yield_position"
|
|
1923
1926
|
},
|
|
1924
1927
|
{
|
|
1925
1928
|
"code": 6003,
|
|
1926
|
-
"name": "
|
|
1927
|
-
"msg": "
|
|
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": "
|
|
1932
|
-
"msg": "
|
|
1934
|
+
"name": "syEscrowMismatch",
|
|
1935
|
+
"msg": "SY escrow does not match orderbook.token_escrow_sy"
|
|
1933
1936
|
},
|
|
1934
1937
|
{
|
|
1935
1938
|
"code": 6005,
|
|
1936
|
-
"name": "
|
|
1937
|
-
"msg": "
|
|
1939
|
+
"name": "ytEscrowMismatch",
|
|
1940
|
+
"msg": "YT escrow does not match orderbook.token_escrow_yt"
|
|
1938
1941
|
},
|
|
1939
1942
|
{
|
|
1940
1943
|
"code": 6006,
|
|
1941
|
-
"name": "
|
|
1942
|
-
"msg": "
|
|
1944
|
+
"name": "ptEscrowMismatch",
|
|
1945
|
+
"msg": "PT escrow does not match orderbook.token_escrow_pt"
|
|
1943
1946
|
},
|
|
1944
1947
|
{
|
|
1945
1948
|
"code": 6007,
|
|
1946
|
-
"name": "
|
|
1947
|
-
"msg": "
|
|
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": "
|
|
1952
|
-
"msg": "
|
|
1954
|
+
"name": "wrongAdmin",
|
|
1955
|
+
"msg": "Wrong admin for orderbook"
|
|
1953
1956
|
},
|
|
1954
1957
|
{
|
|
1955
1958
|
"code": 6009,
|
|
1956
|
-
"name": "
|
|
1957
|
-
"msg": "
|
|
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": "
|
|
1962
|
-
"msg": "
|
|
1964
|
+
"name": "syProgramMismatch",
|
|
1965
|
+
"msg": "SY program does not match orderbook.sy_program"
|
|
1963
1966
|
},
|
|
1964
1967
|
{
|
|
1965
1968
|
"code": 6011,
|
|
1966
|
-
"name": "
|
|
1967
|
-
"msg": "
|
|
1969
|
+
"name": "exponentCoreProgramMismatch",
|
|
1970
|
+
"msg": "Exponent Core program does not match orderbook.exponent_core"
|
|
1968
1971
|
},
|
|
1969
1972
|
{
|
|
1970
1973
|
"code": 6012,
|
|
1971
|
-
"name": "
|
|
1972
|
-
"msg": "
|
|
1974
|
+
"name": "emissionOrderbookMismatch",
|
|
1975
|
+
"msg": "Emission orderbook does not match out token account"
|
|
1973
1976
|
},
|
|
1974
1977
|
{
|
|
1975
1978
|
"code": 6013,
|
|
1976
|
-
"name": "
|
|
1977
|
-
"msg": "
|
|
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": [
|