Skip to content

Commit

Permalink
Upgrade candy-machine (v1) IDL, and add candy-machine-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
gagliardetto committed Jan 16, 2022
1 parent 5c09562 commit 0fb9783
Show file tree
Hide file tree
Showing 2 changed files with 706 additions and 16 deletions.
76 changes: 60 additions & 16 deletions idl/metaplex/nft_candy_machine.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.0.0",
"version": "0.1.0",
"name": "nft_candy_machine",
"instructions": [
{
Expand Down Expand Up @@ -220,6 +220,45 @@
}
}
]
},
{
"name": "updateAuthority",
"accounts": [
{
"name": "candyMachine",
"isMut": true,
"isSigner": false
},
{
"name": "authority",
"isMut": false,
"isSigner": true
}
],
"args": [
{
"name": "newAuthority",
"type": {
"option": "publicKey"
}
}
]
},
{
"name": "withdrawFunds",
"accounts": [
{
"name": "config",
"isMut": true,
"isSigner": false
},
{
"name": "authority",
"isMut": false,
"isSigner": true
}
],
"args": []
}
],
"accounts": [
Expand Down Expand Up @@ -392,74 +431,79 @@
],
"errors": [
{
"code": 300,
"code": 6000,
"name": "IncorrectOwner",
"msg": "Account does not have correct owner!"
},
{
"code": 301,
"code": 6001,
"name": "Uninitialized",
"msg": "Account is not initialized!"
},
{
"code": 302,
"code": 6002,
"name": "MintMismatch",
"msg": "Mint Mismatch!"
},
{
"code": 303,
"code": 6003,
"name": "IndexGreaterThanLength",
"msg": "Index greater than length!"
},
{
"code": 304,
"code": 6004,
"name": "ConfigMustHaveAtleastOneEntry",
"msg": "Config must have atleast one entry!"
},
{
"code": 305,
"code": 6005,
"name": "NumericalOverflowError",
"msg": "Numerical overflow error!"
},
{
"code": 306,
"code": 6006,
"name": "TooManyCreators",
"msg": "Can only provide up to 4 creators to candy machine (because candy machine is one)!"
},
{
"code": 307,
"code": 6007,
"name": "UuidMustBeExactly6Length",
"msg": "Uuid must be exactly of 6 length"
},
{
"code": 308,
"code": 6008,
"name": "NotEnoughTokens",
"msg": "Not enough tokens to pay for this minting"
},
{
"code": 309,
"code": 6009,
"name": "NotEnoughSOL",
"msg": "Not enough SOL to pay for this minting"
},
{
"code": 310,
"code": 6010,
"name": "TokenTransferFailed",
"msg": "Token transfer failed"
},
{
"code": 311,
"code": 6011,
"name": "CandyMachineEmpty",
"msg": "Candy machine is empty!"
},
{
"code": 312,
"code": 6012,
"name": "CandyMachineNotLiveYet",
"msg": "Candy machine is not live yet!"
},
{
"code": 313,
"code": 6013,
"name": "ConfigLineMismatch",
"msg": "Number of config lines must match items available"
"msg": "Number of config lines must be at least number of items available"
},
{
"code": 6014,
"name": "Deprecated",
"msg": "CMv1 is deprecated."
}
]
}
Loading

0 comments on commit 0fb9783

Please sign in to comment.