-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b6a8d9
commit 57ac4e3
Showing
20 changed files
with
586 additions
and
6 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
{ | ||
"buildInfo": { | ||
"rustc": { | ||
"version": "1.71.0-nightly", | ||
"commitHash": "7f94b314cead7059a71a265a8b64905ef2511796", | ||
"commitDate": "2023-04-23", | ||
"channel": "Nightly", | ||
"short": "rustc 1.71.0-nightly (7f94b314c 2023-04-23)" | ||
}, | ||
"contractCrate": { | ||
"name": "proxy-deployer", | ||
"version": "0.0.0" | ||
}, | ||
"framework": { | ||
"name": "multiversx-sc", | ||
"version": "0.43.4" | ||
} | ||
}, | ||
"name": "ProxyDeployer", | ||
"constructor": { | ||
"inputs": [], | ||
"outputs": [] | ||
}, | ||
"endpoints": [ | ||
{ | ||
"name": "upgrade", | ||
"mutability": "mutable", | ||
"inputs": [], | ||
"outputs": [] | ||
}, | ||
{ | ||
"name": "contractDeploy", | ||
"mutability": "mutable", | ||
"inputs": [ | ||
{ | ||
"name": "template_address_id", | ||
"type": "u64" | ||
}, | ||
{ | ||
"name": "args", | ||
"type": "variadic<bytes>", | ||
"multi_arg": true | ||
} | ||
], | ||
"outputs": [ | ||
{ | ||
"type": "Address" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "contractUpgrade", | ||
"mutability": "mutable", | ||
"inputs": [ | ||
{ | ||
"name": "contract_address", | ||
"type": "Address" | ||
}, | ||
{ | ||
"name": "template_address_id", | ||
"type": "u64" | ||
}, | ||
{ | ||
"name": "args", | ||
"type": "variadic<bytes>", | ||
"multi_arg": true | ||
} | ||
], | ||
"outputs": [] | ||
}, | ||
{ | ||
"name": "callContractEndpoint", | ||
"mutability": "mutable", | ||
"inputs": [ | ||
{ | ||
"name": "contract_address", | ||
"type": "Address" | ||
}, | ||
{ | ||
"name": "function_name", | ||
"type": "bytes" | ||
}, | ||
{ | ||
"name": "args", | ||
"type": "variadic<bytes>", | ||
"multi_arg": true | ||
} | ||
], | ||
"outputs": [] | ||
}, | ||
{ | ||
"name": "addContractTemplate", | ||
"onlyOwner": true, | ||
"mutability": "mutable", | ||
"inputs": [ | ||
{ | ||
"name": "template_address", | ||
"type": "Address" | ||
} | ||
], | ||
"outputs": [ | ||
{ | ||
"type": "u64" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "removeContractTemplate", | ||
"onlyOwner": true, | ||
"mutability": "mutable", | ||
"inputs": [ | ||
{ | ||
"name": "address_id", | ||
"type": "u64" | ||
} | ||
], | ||
"outputs": [] | ||
}, | ||
{ | ||
"name": "getAllDeployers", | ||
"mutability": "readonly", | ||
"inputs": [], | ||
"outputs": [ | ||
{ | ||
"type": "variadic<Address>", | ||
"multi_result": true | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "getDeployerContractAddresses", | ||
"mutability": "readonly", | ||
"inputs": [ | ||
{ | ||
"name": "deployer_address", | ||
"type": "Address" | ||
} | ||
], | ||
"outputs": [ | ||
{ | ||
"type": "variadic<Address>", | ||
"multi_result": true | ||
} | ||
] | ||
} | ||
], | ||
"events": [], | ||
"hasCallback": false, | ||
"types": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Field, InputType, Int } from '@nestjs/graphql'; | ||
import { Matches } from 'class-validator'; | ||
import { ADDRESS_ERROR, ADDRESS_RGX } from 'src/utils/constants'; | ||
|
||
@InputType() | ||
export class WhitelistMinterArgs { | ||
@Matches(RegExp(ADDRESS_RGX), { message: ADDRESS_ERROR }) | ||
@Field() | ||
address: string; | ||
|
||
@Matches(RegExp(ADDRESS_RGX), { message: ADDRESS_ERROR }) | ||
@Field() | ||
adminAddress: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Field, InputType, Int } from '@nestjs/graphql'; | ||
import { Matches } from 'class-validator'; | ||
import { ADDRESS_ERROR, ADDRESS_RGX } from 'src/utils/constants'; | ||
|
||
@InputType() | ||
export class DeployMinterArgsP { | ||
@Matches(RegExp(ADDRESS_RGX), { message: ADDRESS_ERROR }) | ||
@Field() | ||
royaltiesClaimAddress: string; | ||
|
||
@Matches(RegExp(ADDRESS_RGX), { message: ADDRESS_ERROR }) | ||
@Field() | ||
ownerAddress: string; | ||
|
||
@Matches(RegExp(ADDRESS_RGX), { message: ADDRESS_ERROR }) | ||
@Field() | ||
mintClaimAddress: string; | ||
|
||
@Field(() => Int) | ||
maxNftsPerTransaction: number; | ||
} | ||
|
||
@InputType() | ||
export class UpgradeMinterArgs { | ||
@Matches(RegExp(ADDRESS_RGX), { message: ADDRESS_ERROR }) | ||
@Field() | ||
minterAddress: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Field, ID, ObjectType } from '@nestjs/graphql'; | ||
import { MinterEntity } from 'src/db/minters'; | ||
|
||
@ObjectType() | ||
export class Minter { | ||
@Field(() => ID) | ||
address!: string; | ||
|
||
@Field(() => ID) | ||
adminAddress!: string; | ||
|
||
constructor(init?: Partial<Minter>) { | ||
Object.assign(this, init); | ||
} | ||
|
||
static fromEntity(minter: MinterEntity) { | ||
return minter | ||
? new Minter({ | ||
address: minter.address, | ||
adminAddress: minter.adminAddress, | ||
}) | ||
: null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Field, InputType, Int } from '@nestjs/graphql'; | ||
import { Matches } from 'class-validator'; | ||
import { ADDRESS_ERROR, ADDRESS_RGX } from 'src/utils/constants'; | ||
|
||
@InputType() | ||
export class MinterFilters { | ||
@Matches(RegExp(ADDRESS_RGX), { message: ADDRESS_ERROR }) | ||
@Field() | ||
minterAddress: string; | ||
|
||
@Matches(RegExp(ADDRESS_RGX), { message: ADDRESS_ERROR }) | ||
@Field() | ||
minterAdminAddress: string; | ||
|
||
constructor(init?: Partial<MinterFilters>) { | ||
Object.assign(this, init); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { ObjectType } from '@nestjs/graphql'; | ||
import relayTypes from 'src/modules/common/Relay.types'; | ||
import { Minter } from './Minter.dto'; | ||
|
||
@ObjectType() | ||
export class MintersResponse extends relayTypes<Minter>(Minter) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './Minter.dto'; | ||
export * from './AddMinterArgs'; |
Oops, something went wrong.