Skip to content

Commit

Permalink
regen api; fix JS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelvanderwaal committed Jun 26, 2023
1 parent bc335bc commit edc9a8b
Show file tree
Hide file tree
Showing 5 changed files with 310 additions and 29 deletions.
248 changes: 227 additions & 21 deletions fixed-price-sale/js/idl/fixed_price_sale.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
{
"name": "store",
"isMut": false,
"isSigner": false
"isSigner": false,
"relations": [
"admin"
]
},
{
"name": "admin",
Expand Down Expand Up @@ -43,12 +46,36 @@
{
"name": "vault",
"isMut": true,
"isSigner": false
"isSigner": false,
"relations": [
"owner"
]
},
{
"name": "owner",
"isMut": false,
"isSigner": false
"isSigner": false,
"pda": {
"seeds": [
{
"kind": "const",
"type": "string",
"value": "mt_vault"
},
{
"kind": "account",
"type": "publicKey",
"account": "Mint",
"path": "resource_mint"
},
{
"kind": "account",
"type": "publicKey",
"account": "Store",
"path": "store"
}
]
}
},
{
"name": "resourceToken",
Expand Down Expand Up @@ -124,7 +151,11 @@
{
"name": "market",
"isMut": true,
"isSigner": false
"isSigner": false,
"relations": [
"treasury_holder",
"selling_resource"
]
},
{
"name": "sellingResource",
Expand All @@ -144,7 +175,27 @@
{
"name": "tradeHistory",
"isMut": true,
"isSigner": false
"isSigner": false,
"pda": {
"seeds": [
{
"kind": "const",
"type": "string",
"value": "history"
},
{
"kind": "account",
"type": "publicKey",
"path": "user_wallet"
},
{
"kind": "account",
"type": "publicKey",
"account": "Market",
"path": "market"
}
]
}
},
{
"name": "treasuryHolder",
Expand Down Expand Up @@ -179,12 +230,36 @@
{
"name": "vault",
"isMut": true,
"isSigner": false
"isSigner": false,
"relations": [
"owner"
]
},
{
"name": "owner",
"isMut": false,
"isSigner": false
"isSigner": false,
"pda": {
"seeds": [
{
"kind": "const",
"type": "string",
"value": "mt_vault"
},
{
"kind": "account",
"type": "publicKey",
"account": "SellingResource",
"path": "selling_resource.resource"
},
{
"kind": "account",
"type": "publicKey",
"account": "SellingResource",
"path": "selling_resource.store"
}
]
}
},
{
"name": "newTokenAccount",
Expand Down Expand Up @@ -239,7 +314,10 @@
{
"name": "market",
"isMut": true,
"isSigner": false
"isSigner": false,
"relations": [
"owner"
]
},
{
"name": "owner",
Expand All @@ -260,7 +338,10 @@
{
"name": "market",
"isMut": true,
"isSigner": false
"isSigner": false,
"relations": [
"owner"
]
},
{
"name": "owner",
Expand All @@ -281,7 +362,10 @@
{
"name": "market",
"isMut": true,
"isSigner": false
"isSigner": false,
"relations": [
"owner"
]
},
{
"name": "owner",
Expand Down Expand Up @@ -333,7 +417,10 @@
{
"name": "market",
"isMut": true,
"isSigner": false
"isSigner": false,
"relations": [
"owner"
]
},
{
"name": "owner",
Expand All @@ -354,7 +441,12 @@
{
"name": "market",
"isMut": false,
"isSigner": false
"isSigner": false,
"relations": [
"treasury_holder",
"selling_resource",
"treasury_mint"
]
},
{
"name": "sellingResource",
Expand All @@ -379,7 +471,28 @@
{
"name": "owner",
"isMut": false,
"isSigner": false
"isSigner": false,
"pda": {
"seeds": [
{
"kind": "const",
"type": "string",
"value": "holder"
},
{
"kind": "account",
"type": "publicKey",
"account": "Market",
"path": "market.treasury_mint"
},
{
"kind": "account",
"type": "publicKey",
"account": "Market",
"path": "market.selling_resource"
}
]
}
},
{
"name": "destination",
Expand All @@ -399,7 +512,27 @@
{
"name": "payoutTicket",
"isMut": true,
"isSigner": false
"isSigner": false,
"pda": {
"seeds": [
{
"kind": "const",
"type": "string",
"value": "payout_ticket"
},
{
"kind": "account",
"type": "publicKey",
"account": "Market",
"path": "market"
},
{
"kind": "account",
"type": "publicKey",
"path": "funder"
}
]
}
},
{
"name": "rent",
Expand Down Expand Up @@ -459,7 +592,10 @@
{
"name": "sellingResource",
"isMut": true,
"isSigner": false
"isSigner": false,
"relations": [
"store"
]
},
{
"name": "mint",
Expand All @@ -474,7 +610,27 @@
{
"name": "owner",
"isMut": false,
"isSigner": false
"isSigner": false,
"pda": {
"seeds": [
{
"kind": "const",
"type": "string",
"value": "holder"
},
{
"kind": "account",
"type": "publicKey",
"path": "mint"
},
{
"kind": "account",
"type": "publicKey",
"account": "SellingResource",
"path": "selling_resource"
}
]
}
},
{
"name": "systemProgram",
Expand Down Expand Up @@ -535,7 +691,11 @@
{
"name": "market",
"isMut": false,
"isSigner": false
"isSigner": false,
"relations": [
"selling_resource",
"treasury_holder"
]
},
{
"name": "treasuryHolder",
Expand All @@ -545,7 +705,10 @@
{
"name": "sellingResource",
"isMut": false,
"isSigner": false
"isSigner": false,
"relations": [
"vault"
]
},
{
"name": "sellingResourceOwner",
Expand All @@ -555,7 +718,10 @@
{
"name": "vault",
"isMut": true,
"isSigner": false
"isSigner": false,
"relations": [
"owner"
]
},
{
"name": "metadata",
Expand All @@ -565,7 +731,28 @@
{
"name": "owner",
"isMut": false,
"isSigner": false
"isSigner": false,
"pda": {
"seeds": [
{
"kind": "const",
"type": "string",
"value": "mt_vault"
},
{
"kind": "account",
"type": "publicKey",
"account": "SellingResource",
"path": "selling_resource.resource"
},
{
"kind": "account",
"type": "publicKey",
"account": "SellingResource",
"path": "selling_resource.store"
}
]
}
},
{
"name": "destination",
Expand Down Expand Up @@ -616,7 +803,21 @@
{
"name": "primaryMetadataCreators",
"isMut": true,
"isSigner": false
"isSigner": false,
"pda": {
"seeds": [
{
"kind": "const",
"type": "string",
"value": "primary_creators"
},
{
"kind": "account",
"type": "publicKey",
"path": "metadata"
}
]
}
},
{
"name": "systemProgram",
Expand Down Expand Up @@ -1149,6 +1350,11 @@
"code": 6043,
"name": "WrongGatingToken",
"msg": "Wrong gating token"
},
{
"code": 6044,
"name": "EditionMarkerFull",
"msg": "No available editions in edition marker"
}
],
"metadata": {
Expand Down
Loading

0 comments on commit edc9a8b

Please sign in to comment.