@neo-one/smart-contract
Advanced tools
Comparing version 1.0.0-alpha.23 to 1.0.0-alpha.24
{ | ||
"name": "@neo-one/smart-contract", | ||
"version": "1.0.0-alpha.23", | ||
"version": "1.0.0-alpha.24", | ||
"author": "Alex DiCarlo <alexdicarlo@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "NEO•ONE smart contract apis.", |
@@ -822,2 +822,20 @@ // tslint:disable | ||
export interface DeployConstructor { | ||
/** | ||
* Use the sender `Address` for the constructor parameter. | ||
* | ||
* @example | ||
* import { Address, Deploy, SmartContract } from '@neo-one/smart-contract'; | ||
* | ||
* class Token implements SmartContract { | ||
* public constructor(public readonly owner: Address = Deploy.senderAddress) {} | ||
* } | ||
*/ | ||
readonly senderAddress: Address; | ||
} | ||
/** | ||
* Injects values at deployment time. Can only be used for default constructor parameters. | ||
*/ | ||
export const Deploy: DeployConstructor; | ||
export interface SmartContractValueArray extends Array<SmartContractValue> {} | ||
@@ -824,0 +842,0 @@ type SmartContractValue = |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41584
1210