-
Notifications
You must be signed in to change notification settings - Fork 3
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
lllwvlvwlll
committed
Jan 25, 2022
1 parent
bc19212
commit ca626cb
Showing
30 changed files
with
1,071 additions
and
889 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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,20 @@ | ||
import { rpc, wallet } from '@cityofzion/neon-core'; | ||
import { GeneratorType, PropConstructorOptions } from "./interface"; | ||
export declare class Generator { | ||
private options; | ||
private networkMagic; | ||
constructor(options?: PropConstructorOptions); | ||
init(): Promise<void>; | ||
get node(): rpc.RPCClient; | ||
get scriptHash(): string; | ||
createGenerator(generator: GeneratorType, signer: wallet.Account, timeConstantMS: number): Promise<string[]>; | ||
createGeneratorFromFile(path: string, signer: wallet.Account, timeConstantMS: number): Promise<string[]>; | ||
getGeneratorJSON(generatorId: number, signer?: wallet.Account): Promise<GeneratorType | string>; | ||
getGeneratorInstanceJSON(instanceId: number, signer?: wallet.Account): Promise<any>; | ||
createInstance(generatorId: number, signer: wallet.Account): Promise<string>; | ||
mintFromGenerator(generatorId: number, signer: wallet.Account): Promise<string>; | ||
mintFromInstance(instanceId: number, signer: wallet.Account): Promise<string>; | ||
setInstanceAuthorizedUsers(instanceId: number, authorizedUsers: string[], signer: wallet.Account): Promise<string>; | ||
totalGenerators(signer?: wallet.Account): Promise<number | string>; | ||
totalGeneratorInstances(signer?: wallet.Account): Promise<number | string>; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,31 @@ | ||
import { rpc, wallet } from '@cityofzion/neon-core'; | ||
import { PropConstructorOptions } from "./interface"; | ||
import { EpochType, PropConstructorOptions, PuppetType } from "./interface"; | ||
export declare class Puppet { | ||
private options; | ||
private networkMagic; | ||
constructor(options?: PropConstructorOptions); | ||
init(): Promise<void>; | ||
get node(): rpc.RPCClient; | ||
get scriptHash(): string; | ||
balanceOf(address: string): Promise<number>; | ||
decimals(): Promise<number>; | ||
deploy(signer: wallet.Account): Promise<any>; | ||
getAttributeMod(attributeValue: number): Promise<any>; | ||
getPuppetRaw(tokenId: string): Promise<string | undefined>; | ||
ownerOf(tokenId: number): Promise<wallet.Account | undefined>; | ||
offlineMint(target: string, signer: wallet.Account): Promise<string | undefined>; | ||
properties(tokenId: number): Promise<any>; | ||
purchase(signer: wallet.Account): Promise<string | undefined>; | ||
setMintFee(fee: number, signer: wallet.Account): Promise<number>; | ||
symbol(): Promise<string>; | ||
getMintFee(): Promise<number>; | ||
tokens(): Promise<number[]>; | ||
tokensOf(address: string): Promise<number[]>; | ||
transfer(to: string, tokenId: number, signer: wallet.Account, data: any): Promise<boolean | undefined>; | ||
totalSupply(): Promise<number>; | ||
update(script: string, manifest: string, signer: wallet.Account): Promise<boolean>; | ||
setCurrentEpoch(epoch_id: number, signer: wallet.Account): Promise<boolean | undefined>; | ||
getCurrentEpoch(): Promise<number | undefined>; | ||
balanceOf(address: string, signer?: wallet.Account): Promise<number>; | ||
createEpoch(generatorId: number, mintFee: number, maxSupply: number, signer: wallet.Account): Promise<string>; | ||
decimals(signer?: wallet.Account): Promise<number>; | ||
deploy(signer: wallet.Account): Promise<string>; | ||
getAttributeMod(attributeValue: number, signer?: wallet.Account): Promise<number | string>; | ||
getEpochJSON(epochId: number, signer?: wallet.Account): Promise<EpochType | string>; | ||
getPuppetJSON(tokenId: number, signer?: wallet.Account): Promise<PuppetType | string>; | ||
getPuppetRaw(tokenId: string, signer?: wallet.Account): Promise<string>; | ||
ownerOf(tokenId: number, signer?: wallet.Account): Promise<wallet.Account | string>; | ||
offlineMint(epochId: number, owner: string, signer: wallet.Account): Promise<string>; | ||
properties(tokenId: number, signer?: wallet.Account): Promise<PuppetType | string>; | ||
purchase(epochId: number, signer: wallet.Account): Promise<string | undefined>; | ||
setMintFee(epochId: number, fee: number, signer: wallet.Account): Promise<string>; | ||
symbol(signer?: wallet.Account): Promise<string>; | ||
tokens(signer?: wallet.Account): Promise<number[] | string>; | ||
tokensOf(address: string, signer?: wallet.Account): Promise<number[] | string>; | ||
totalAccounts(signer?: wallet.Account): Promise<number | string>; | ||
totalEpochs(signer?: wallet.Account): Promise<number | string>; | ||
totalSupply(signer?: wallet.Account): Promise<number | string>; | ||
transfer(to: string, tokenId: number, signer: wallet.Account, data: any): Promise<string>; | ||
update(script: string, manifest: string, signer: wallet.Account): Promise<string>; | ||
} |
Oops, something went wrong.