Rename TimeStamp to Timestamp
This commit is contained in:
parent
2824779699
commit
87e86c1cc8
|
@ -20,12 +20,12 @@ export type SignatureCondition = {
|
||||||
* Represents a condition that is met by executing a `applyTimestamp()`
|
* Represents a condition that is met by executing a `applyTimestamp()`
|
||||||
* transaction
|
* transaction
|
||||||
*
|
*
|
||||||
* @typedef {Object} TimeStampCondition
|
* @typedef {Object} TimestampCondition
|
||||||
* @property {string} type Must equal the string 'timestamp'
|
* @property {string} type Must equal the string 'timestamp'
|
||||||
* @property {PublicKey} from Public key from which `applyTimestamp()` will be accepted from
|
* @property {PublicKey} from Public key from which `applyTimestamp()` will be accepted from
|
||||||
* @property {Date} when The timestamp that was observed
|
* @property {Date} when The timestamp that was observed
|
||||||
*/
|
*/
|
||||||
export type TimeStampCondition = {
|
export type TimestampCondition = {
|
||||||
type: 'timestamp';
|
type: 'timestamp';
|
||||||
from: PublicKey;
|
from: PublicKey;
|
||||||
when: Date;
|
when: Date;
|
||||||
|
@ -46,9 +46,9 @@ export type Payment = {
|
||||||
/**
|
/**
|
||||||
* A condition that can unlock a payment
|
* A condition that can unlock a payment
|
||||||
*
|
*
|
||||||
* @typedef {SignatureCondition|TimeStampCondition} BudgetCondition
|
* @typedef {SignatureCondition|TimestampCondition} BudgetCondition
|
||||||
*/
|
*/
|
||||||
export type BudgetCondition = SignatureCondition | TimeStampCondition;
|
export type BudgetCondition = SignatureCondition | TimestampCondition;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
|
@ -144,7 +144,7 @@ export class BudgetProgram {
|
||||||
/**
|
/**
|
||||||
* Creates a timestamp condition
|
* Creates a timestamp condition
|
||||||
*/
|
*/
|
||||||
static timestampCondition(from: PublicKey, when: Date) : TimeStampCondition {
|
static timestampCondition(from: PublicKey, when: Date) : TimestampCondition {
|
||||||
return {
|
return {
|
||||||
type: 'timestamp',
|
type: 'timestamp',
|
||||||
from,
|
from,
|
||||||
|
|
Loading…
Reference in New Issue