Skip to content

Commit

Permalink
ci: fix fund integ test
Browse files Browse the repository at this point in the history
  • Loading branch information
yurushao committed Oct 6, 2024
1 parent 7c97022 commit 52e0a68
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 58 deletions.
48 changes: 19 additions & 29 deletions anchor/target/idl/glam.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"address": "GLAMpLuXu78TA4ao3DPZvT1zQ7woxoQ8ahdYbhnqY9mP",
"address": "Gco1pcjxCMYjKJjSNJ7mKV7qezeUTE7arXJgy7PAPNRc",
"metadata": {
"name": "glam",
"version": "0.3.3",
Expand Down Expand Up @@ -3866,58 +3866,48 @@
"errors": [
{
"code": 6000,
"name": "FundNotActive",
"msg": "Fund is not active"
"name": "CloseNotEmptyError",
"msg": "Error closing account: not empty"
},
{
"code": 6001,
"name": "InvalidShareClass",
"msg": "Share class not allowed to subscribe"
"name": "NotAuthorizedError",
"msg": "Error: not authorized"
},
{
"code": 6002,
"name": "InvalidAssetSubscribe",
"msg": "Asset not allowed to subscribe"
"name": "InvalidFundName",
"msg": "Invalid fund name: max 30 chars"
},
{
"code": 6003,
"name": "InvalidPricingOracle",
"msg": "Invalid oracle for asset price"
"name": "InvalidFundSymbol",
"msg": "Too many assets: max 50"
},
{
"code": 6004,
"name": "InvalidRemainingAccounts",
"msg": "Invalid accounts: the transaction is malformed"
"name": "InvalidFundUri",
"msg": "Too many assets: max 20"
},
{
"code": 6005,
"name": "InvalidTreasuryAccount",
"msg": "Invalid treasury ata"
"name": "InvalidAssetsLen",
"msg": "Too many assets: max 100"
},
{
"code": 6006,
"name": "InvalidSignerAccount",
"msg": "Invalid signer ata"
"name": "InvalidAssetsWeights",
"msg": "Number of weights should match number of assets"
},
{
"code": 6007,
"name": "InvalidAssetPrice",
"msg": "Invalid asset price"
"name": "InvalidAssetForSwap",
"msg": "Asset cannot be swapped"
},
{
"code": 6008,
"name": "InvalidStableCoinPriceForSubscribe",
"msg": "Subscription not allowed: invalid stable coin price"
},
{
"code": 6009,
"name": "SubscribeRedeemPaused",
"msg": "Fund is paused for subscription and redemption"
},
{
"code": 6010,
"name": "InvalidPolicyAccount",
"msg": "Policy account is mandatory"
"name": "InvalidSwap",
"msg": "Swap failed"
}
],
"types": [
Expand Down
46 changes: 18 additions & 28 deletions anchor/target/types/glam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3872,58 +3872,48 @@ export type Glam = {
"errors": [
{
"code": 6000,
"name": "fundNotActive",
"msg": "Fund is not active"
"name": "closeNotEmptyError",
"msg": "Error closing account: not empty"
},
{
"code": 6001,
"name": "invalidShareClass",
"msg": "Share class not allowed to subscribe"
"name": "notAuthorizedError",
"msg": "Error: not authorized"
},
{
"code": 6002,
"name": "invalidAssetSubscribe",
"msg": "Asset not allowed to subscribe"
"name": "invalidFundName",
"msg": "Invalid fund name: max 30 chars"
},
{
"code": 6003,
"name": "invalidPricingOracle",
"msg": "Invalid oracle for asset price"
"name": "invalidFundSymbol",
"msg": "Too many assets: max 50"
},
{
"code": 6004,
"name": "invalidRemainingAccounts",
"msg": "Invalid accounts: the transaction is malformed"
"name": "invalidFundUri",
"msg": "Too many assets: max 20"
},
{
"code": 6005,
"name": "invalidTreasuryAccount",
"msg": "Invalid treasury ata"
"name": "invalidAssetsLen",
"msg": "Too many assets: max 100"
},
{
"code": 6006,
"name": "invalidSignerAccount",
"msg": "Invalid signer ata"
"name": "invalidAssetsWeights",
"msg": "Number of weights should match number of assets"
},
{
"code": 6007,
"name": "invalidAssetPrice",
"msg": "Invalid asset price"
"name": "invalidAssetForSwap",
"msg": "Asset cannot be swapped"
},
{
"code": 6008,
"name": "invalidStableCoinPriceForSubscribe",
"msg": "Subscription not allowed: invalid stable coin price"
},
{
"code": 6009,
"name": "subscribeRedeemPaused",
"msg": "Fund is paused for subscription and redemption"
},
{
"code": 6010,
"name": "invalidPolicyAccount",
"msg": "Policy account is mandatory"
"name": "invalidSwap",
"msg": "Swap failed"
}
],
"types": [
Expand Down
3 changes: 2 additions & 1 deletion anchor/tests/glam_crud.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ describe("glam_crud", () => {
{ name: { drift: {} }, features: [] },
{ name: { jupiter: {} }, features: [] },
{ name: { marinade: {} }, features: [] },
{ name: { stakePool: {} }, features: [] },
{ name: { splStakePool: {} }, features: [] },
{ name: { sanctumStakePool: {} }, features: [] },
],
});
try {
Expand Down

0 comments on commit 52e0a68

Please sign in to comment.