diff --git a/.gitignore b/.gitignore index e28c787..c027eca 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ node_modules build +generated mappings/const.ts subgraph.yaml \ No newline at end of file diff --git a/config/xdai.json b/config/xdai.json index 0837736..4cf0e78 100644 --- a/config/xdai.json +++ b/config/xdai.json @@ -1,11 +1,11 @@ { - "chain": "xdai", - "kleros": { - "address": "0x9c1da9a04925bdfdedf0f6421bc7eea8305f9002", - "startBlock": "16895601" - }, - "policyRegistry": { - "address": "0x9d494768936b6bdaabc46733b8d53a937a6c6d7e", - "startBlock": "16895606" - } -} \ No newline at end of file + "chain": "gnosis", + "kleros": { + "address": "0x9c1da9a04925bdfdedf0f6421bc7eea8305f9002", + "startBlock": "16895601" + }, + "policyRegistry": { + "address": "0x9d494768936b6bdaabc46733b8d53a937a6c6d7e", + "startBlock": "16895606" + } +} diff --git a/generated/KlerosLiquid/KlerosLiquid.ts b/generated/KlerosLiquid/KlerosLiquid.ts deleted file mode 100644 index d894fac..0000000 --- a/generated/KlerosLiquid/KlerosLiquid.ts +++ /dev/null @@ -1,2453 +0,0 @@ -// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. - -import { - ethereum, - JSONValue, - TypedMap, - Entity, - Bytes, - Address, - BigInt -} from "@graphprotocol/graph-ts"; - -export class NewPhase extends ethereum.Event { - get params(): NewPhase__Params { - return new NewPhase__Params(this); - } -} - -export class NewPhase__Params { - _event: NewPhase; - - constructor(event: NewPhase) { - this._event = event; - } - - get _phase(): i32 { - return this._event.parameters[0].value.toI32(); - } -} - -export class NewPeriod extends ethereum.Event { - get params(): NewPeriod__Params { - return new NewPeriod__Params(this); - } -} - -export class NewPeriod__Params { - _event: NewPeriod; - - constructor(event: NewPeriod) { - this._event = event; - } - - get _disputeID(): BigInt { - return this._event.parameters[0].value.toBigInt(); - } - - get _period(): i32 { - return this._event.parameters[1].value.toI32(); - } -} - -export class StakeSet extends ethereum.Event { - get params(): StakeSet__Params { - return new StakeSet__Params(this); - } -} - -export class StakeSet__Params { - _event: StakeSet; - - constructor(event: StakeSet) { - this._event = event; - } - - get _address(): Address { - return this._event.parameters[0].value.toAddress(); - } - - get _subcourtID(): BigInt { - return this._event.parameters[1].value.toBigInt(); - } - - get _stake(): BigInt { - return this._event.parameters[2].value.toBigInt(); - } - - get _newTotalStake(): BigInt { - return this._event.parameters[3].value.toBigInt(); - } -} - -export class Draw extends ethereum.Event { - get params(): Draw__Params { - return new Draw__Params(this); - } -} - -export class Draw__Params { - _event: Draw; - - constructor(event: Draw) { - this._event = event; - } - - get _address(): Address { - return this._event.parameters[0].value.toAddress(); - } - - get _disputeID(): BigInt { - return this._event.parameters[1].value.toBigInt(); - } - - get _appeal(): BigInt { - return this._event.parameters[2].value.toBigInt(); - } - - get _voteID(): BigInt { - return this._event.parameters[3].value.toBigInt(); - } -} - -export class TokenAndETHShift extends ethereum.Event { - get params(): TokenAndETHShift__Params { - return new TokenAndETHShift__Params(this); - } -} - -export class TokenAndETHShift__Params { - _event: TokenAndETHShift; - - constructor(event: TokenAndETHShift) { - this._event = event; - } - - get _address(): Address { - return this._event.parameters[0].value.toAddress(); - } - - get _disputeID(): BigInt { - return this._event.parameters[1].value.toBigInt(); - } - - get _tokenAmount(): BigInt { - return this._event.parameters[2].value.toBigInt(); - } - - get _ETHAmount(): BigInt { - return this._event.parameters[3].value.toBigInt(); - } -} - -export class DisputeCreation extends ethereum.Event { - get params(): DisputeCreation__Params { - return new DisputeCreation__Params(this); - } -} - -export class DisputeCreation__Params { - _event: DisputeCreation; - - constructor(event: DisputeCreation) { - this._event = event; - } - - get _disputeID(): BigInt { - return this._event.parameters[0].value.toBigInt(); - } - - get _arbitrable(): Address { - return this._event.parameters[1].value.toAddress(); - } -} - -export class AppealPossible extends ethereum.Event { - get params(): AppealPossible__Params { - return new AppealPossible__Params(this); - } -} - -export class AppealPossible__Params { - _event: AppealPossible; - - constructor(event: AppealPossible) { - this._event = event; - } - - get _disputeID(): BigInt { - return this._event.parameters[0].value.toBigInt(); - } - - get _arbitrable(): Address { - return this._event.parameters[1].value.toAddress(); - } -} - -export class AppealDecision extends ethereum.Event { - get params(): AppealDecision__Params { - return new AppealDecision__Params(this); - } -} - -export class AppealDecision__Params { - _event: AppealDecision; - - constructor(event: AppealDecision) { - this._event = event; - } - - get _disputeID(): BigInt { - return this._event.parameters[0].value.toBigInt(); - } - - get _arbitrable(): Address { - return this._event.parameters[1].value.toAddress(); - } -} - -export class KlerosLiquid__courtsResult { - value0: BigInt; - value1: boolean; - value2: BigInt; - value3: BigInt; - value4: BigInt; - value5: BigInt; - - constructor( - value0: BigInt, - value1: boolean, - value2: BigInt, - value3: BigInt, - value4: BigInt, - value5: BigInt - ) { - this.value0 = value0; - this.value1 = value1; - this.value2 = value2; - this.value3 = value3; - this.value4 = value4; - this.value5 = value5; - } - - toMap(): TypedMap { - let map = new TypedMap(); - map.set("value0", ethereum.Value.fromUnsignedBigInt(this.value0)); - map.set("value1", ethereum.Value.fromBoolean(this.value1)); - map.set("value2", ethereum.Value.fromUnsignedBigInt(this.value2)); - map.set("value3", ethereum.Value.fromUnsignedBigInt(this.value3)); - map.set("value4", ethereum.Value.fromUnsignedBigInt(this.value4)); - map.set("value5", ethereum.Value.fromUnsignedBigInt(this.value5)); - return map; - } - - getParent(): BigInt { - return this.value0; - } - - getHiddenVotes(): boolean { - return this.value1; - } - - getMinStake(): BigInt { - return this.value2; - } - - getAlpha(): BigInt { - return this.value3; - } - - getFeeForJuror(): BigInt { - return this.value4; - } - - getJurorsForCourtJump(): BigInt { - return this.value5; - } -} - -export class KlerosLiquid__getSubcourtResult { - value0: Array; - value1: Array; - - constructor(value0: Array, value1: Array) { - this.value0 = value0; - this.value1 = value1; - } - - toMap(): TypedMap { - let map = new TypedMap(); - map.set("value0", ethereum.Value.fromUnsignedBigIntArray(this.value0)); - map.set("value1", ethereum.Value.fromUnsignedBigIntArray(this.value1)); - return map; - } - - getChildren(): Array { - return this.value0; - } - - getTimesPerPeriod(): Array { - return this.value1; - } -} - -export class KlerosLiquid__disputesResult { - value0: BigInt; - value1: Address; - value2: BigInt; - value3: i32; - value4: BigInt; - value5: BigInt; - value6: BigInt; - value7: boolean; - - constructor( - value0: BigInt, - value1: Address, - value2: BigInt, - value3: i32, - value4: BigInt, - value5: BigInt, - value6: BigInt, - value7: boolean - ) { - this.value0 = value0; - this.value1 = value1; - this.value2 = value2; - this.value3 = value3; - this.value4 = value4; - this.value5 = value5; - this.value6 = value6; - this.value7 = value7; - } - - toMap(): TypedMap { - let map = new TypedMap(); - map.set("value0", ethereum.Value.fromUnsignedBigInt(this.value0)); - map.set("value1", ethereum.Value.fromAddress(this.value1)); - map.set("value2", ethereum.Value.fromUnsignedBigInt(this.value2)); - map.set( - "value3", - ethereum.Value.fromUnsignedBigInt(BigInt.fromI32(this.value3)) - ); - map.set("value4", ethereum.Value.fromUnsignedBigInt(this.value4)); - map.set("value5", ethereum.Value.fromUnsignedBigInt(this.value5)); - map.set("value6", ethereum.Value.fromUnsignedBigInt(this.value6)); - map.set("value7", ethereum.Value.fromBoolean(this.value7)); - return map; - } - - getSubcourtID(): BigInt { - return this.value0; - } - - getArbitrated(): Address { - return this.value1; - } - - getNumberOfChoices(): BigInt { - return this.value2; - } - - getPeriod(): i32 { - return this.value3; - } - - getLastPeriodChange(): BigInt { - return this.value4; - } - - getDrawsInRound(): BigInt { - return this.value5; - } - - getCommitsInRound(): BigInt { - return this.value6; - } - - getRuled(): boolean { - return this.value7; - } -} - -export class KlerosLiquid__getVoteResult { - value0: Address; - value1: Bytes; - value2: BigInt; - value3: boolean; - - constructor(value0: Address, value1: Bytes, value2: BigInt, value3: boolean) { - this.value0 = value0; - this.value1 = value1; - this.value2 = value2; - this.value3 = value3; - } - - toMap(): TypedMap { - let map = new TypedMap(); - map.set("value0", ethereum.Value.fromAddress(this.value0)); - map.set("value1", ethereum.Value.fromFixedBytes(this.value1)); - map.set("value2", ethereum.Value.fromUnsignedBigInt(this.value2)); - map.set("value3", ethereum.Value.fromBoolean(this.value3)); - return map; - } - - getAccount(): Address { - return this.value0; - } - - getCommit(): Bytes { - return this.value1; - } - - getChoice(): BigInt { - return this.value2; - } - - getVoted(): boolean { - return this.value3; - } -} - -export class KlerosLiquid__appealPeriodResult { - value0: BigInt; - value1: BigInt; - - constructor(value0: BigInt, value1: BigInt) { - this.value0 = value0; - this.value1 = value1; - } - - toMap(): TypedMap { - let map = new TypedMap(); - map.set("value0", ethereum.Value.fromUnsignedBigInt(this.value0)); - map.set("value1", ethereum.Value.fromUnsignedBigInt(this.value1)); - return map; - } - - getStart(): BigInt { - return this.value0; - } - - getEnd(): BigInt { - return this.value1; - } -} - -export class KlerosLiquid__delayedSetStakesResult { - value0: Address; - value1: BigInt; - value2: BigInt; - - constructor(value0: Address, value1: BigInt, value2: BigInt) { - this.value0 = value0; - this.value1 = value1; - this.value2 = value2; - } - - toMap(): TypedMap { - let map = new TypedMap(); - map.set("value0", ethereum.Value.fromAddress(this.value0)); - map.set("value1", ethereum.Value.fromUnsignedBigInt(this.value1)); - map.set("value2", ethereum.Value.fromUnsignedBigInt(this.value2)); - return map; - } - - getAccount(): Address { - return this.value0; - } - - getSubcourtID(): BigInt { - return this.value1; - } - - getStake(): BigInt { - return this.value2; - } -} - -export class KlerosLiquid__jurorsResult { - value0: BigInt; - value1: BigInt; - - constructor(value0: BigInt, value1: BigInt) { - this.value0 = value0; - this.value1 = value1; - } - - toMap(): TypedMap { - let map = new TypedMap(); - map.set("value0", ethereum.Value.fromUnsignedBigInt(this.value0)); - map.set("value1", ethereum.Value.fromUnsignedBigInt(this.value1)); - return map; - } - - getStakedTokens(): BigInt { - return this.value0; - } - - getLockedTokens(): BigInt { - return this.value1; - } -} - -export class KlerosLiquid__getDisputeResult { - value0: Array; - value1: Array; - value2: Array; - value3: Array; - value4: Array; - value5: Array; - - constructor( - value0: Array, - value1: Array, - value2: Array, - value3: Array, - value4: Array, - value5: Array - ) { - this.value0 = value0; - this.value1 = value1; - this.value2 = value2; - this.value3 = value3; - this.value4 = value4; - this.value5 = value5; - } - - toMap(): TypedMap { - let map = new TypedMap(); - map.set("value0", ethereum.Value.fromUnsignedBigIntArray(this.value0)); - map.set("value1", ethereum.Value.fromUnsignedBigIntArray(this.value1)); - map.set("value2", ethereum.Value.fromUnsignedBigIntArray(this.value2)); - map.set("value3", ethereum.Value.fromUnsignedBigIntArray(this.value3)); - map.set("value4", ethereum.Value.fromUnsignedBigIntArray(this.value4)); - map.set("value5", ethereum.Value.fromUnsignedBigIntArray(this.value5)); - return map; - } - - getVotesLengths(): Array { - return this.value0; - } - - getTokensAtStakePerJuror(): Array { - return this.value1; - } - - getTotalFeesForJurors(): Array { - return this.value2; - } - - getVotesInEachRound(): Array { - return this.value3; - } - - getRepartitionsInEachRound(): Array { - return this.value4; - } - - getPenaltiesInEachRound(): Array { - return this.value5; - } -} - -export class KlerosLiquid__getVoteCounterResult { - value0: BigInt; - value1: Array; - value2: boolean; - - constructor(value0: BigInt, value1: Array, value2: boolean) { - this.value0 = value0; - this.value1 = value1; - this.value2 = value2; - } - - toMap(): TypedMap { - let map = new TypedMap(); - map.set("value0", ethereum.Value.fromUnsignedBigInt(this.value0)); - map.set("value1", ethereum.Value.fromUnsignedBigIntArray(this.value1)); - map.set("value2", ethereum.Value.fromBoolean(this.value2)); - return map; - } - - getWinningChoice(): BigInt { - return this.value0; - } - - getCounts(): Array { - return this.value1; - } - - getTied(): boolean { - return this.value2; - } -} - -export class KlerosLiquid extends ethereum.SmartContract { - static bind(address: Address): KlerosLiquid { - return new KlerosLiquid("KlerosLiquid", address); - } - - RNBlock(): BigInt { - let result = super.call("RNBlock", "RNBlock():(uint256)", []); - - return result[0].toBigInt(); - } - - try_RNBlock(): ethereum.CallResult { - let result = super.tryCall("RNBlock", "RNBlock():(uint256)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - disputesWithoutJurors(): BigInt { - let result = super.call( - "disputesWithoutJurors", - "disputesWithoutJurors():(uint256)", - [] - ); - - return result[0].toBigInt(); - } - - try_disputesWithoutJurors(): ethereum.CallResult { - let result = super.tryCall( - "disputesWithoutJurors", - "disputesWithoutJurors():(uint256)", - [] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - governor(): Address { - let result = super.call("governor", "governor():(address)", []); - - return result[0].toAddress(); - } - - try_governor(): ethereum.CallResult
{ - let result = super.tryCall("governor", "governor():(address)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toAddress()); - } - - lastDelayedSetStake(): BigInt { - let result = super.call( - "lastDelayedSetStake", - "lastDelayedSetStake():(uint256)", - [] - ); - - return result[0].toBigInt(); - } - - try_lastDelayedSetStake(): ethereum.CallResult { - let result = super.tryCall( - "lastDelayedSetStake", - "lastDelayedSetStake():(uint256)", - [] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - disputeStatus(_disputeID: BigInt): i32 { - let result = super.call("disputeStatus", "disputeStatus(uint256):(uint8)", [ - ethereum.Value.fromUnsignedBigInt(_disputeID) - ]); - - return result[0].toI32(); - } - - try_disputeStatus(_disputeID: BigInt): ethereum.CallResult { - let result = super.tryCall( - "disputeStatus", - "disputeStatus(uint256):(uint8)", - [ethereum.Value.fromUnsignedBigInt(_disputeID)] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toI32()); - } - - maxDrawingTime(): BigInt { - let result = super.call("maxDrawingTime", "maxDrawingTime():(uint256)", []); - - return result[0].toBigInt(); - } - - try_maxDrawingTime(): ethereum.CallResult { - let result = super.tryCall( - "maxDrawingTime", - "maxDrawingTime():(uint256)", - [] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - currentRuling(_disputeID: BigInt): BigInt { - let result = super.call( - "currentRuling", - "currentRuling(uint256):(uint256)", - [ethereum.Value.fromUnsignedBigInt(_disputeID)] - ); - - return result[0].toBigInt(); - } - - try_currentRuling(_disputeID: BigInt): ethereum.CallResult { - let result = super.tryCall( - "currentRuling", - "currentRuling(uint256):(uint256)", - [ethereum.Value.fromUnsignedBigInt(_disputeID)] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - courts(param0: BigInt): KlerosLiquid__courtsResult { - let result = super.call( - "courts", - "courts(uint256):(uint96,bool,uint256,uint256,uint256,uint256)", - [ethereum.Value.fromUnsignedBigInt(param0)] - ); - - return new KlerosLiquid__courtsResult( - result[0].toBigInt(), - result[1].toBoolean(), - result[2].toBigInt(), - result[3].toBigInt(), - result[4].toBigInt(), - result[5].toBigInt() - ); - } - - try_courts(param0: BigInt): ethereum.CallResult { - let result = super.tryCall( - "courts", - "courts(uint256):(uint96,bool,uint256,uint256,uint256,uint256)", - [ethereum.Value.fromUnsignedBigInt(param0)] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue( - new KlerosLiquid__courtsResult( - value[0].toBigInt(), - value[1].toBoolean(), - value[2].toBigInt(), - value[3].toBigInt(), - value[4].toBigInt(), - value[5].toBigInt() - ) - ); - } - - ALPHA_DIVISOR(): BigInt { - let result = super.call("ALPHA_DIVISOR", "ALPHA_DIVISOR():(uint256)", []); - - return result[0].toBigInt(); - } - - try_ALPHA_DIVISOR(): ethereum.CallResult { - let result = super.tryCall( - "ALPHA_DIVISOR", - "ALPHA_DIVISOR():(uint256)", - [] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - getSubcourt(_subcourtID: BigInt): KlerosLiquid__getSubcourtResult { - let result = super.call( - "getSubcourt", - "getSubcourt(uint96):(uint256[],uint256[4])", - [ethereum.Value.fromUnsignedBigInt(_subcourtID)] - ); - - return new KlerosLiquid__getSubcourtResult( - result[0].toBigIntArray(), - result[1].toBigIntArray() - ); - } - - try_getSubcourt( - _subcourtID: BigInt - ): ethereum.CallResult { - let result = super.tryCall( - "getSubcourt", - "getSubcourt(uint96):(uint256[],uint256[4])", - [ethereum.Value.fromUnsignedBigInt(_subcourtID)] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue( - new KlerosLiquid__getSubcourtResult( - value[0].toBigIntArray(), - value[1].toBigIntArray() - ) - ); - } - - onTransfer(_from: Address, _to: Address, _amount: BigInt): boolean { - let result = super.call( - "onTransfer", - "onTransfer(address,address,uint256):(bool)", - [ - ethereum.Value.fromAddress(_from), - ethereum.Value.fromAddress(_to), - ethereum.Value.fromUnsignedBigInt(_amount) - ] - ); - - return result[0].toBoolean(); - } - - try_onTransfer( - _from: Address, - _to: Address, - _amount: BigInt - ): ethereum.CallResult { - let result = super.tryCall( - "onTransfer", - "onTransfer(address,address,uint256):(bool)", - [ - ethereum.Value.fromAddress(_from), - ethereum.Value.fromAddress(_to), - ethereum.Value.fromUnsignedBigInt(_amount) - ] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBoolean()); - } - - disputes(param0: BigInt): KlerosLiquid__disputesResult { - let result = super.call( - "disputes", - "disputes(uint256):(uint96,address,uint256,uint8,uint256,uint256,uint256,bool)", - [ethereum.Value.fromUnsignedBigInt(param0)] - ); - - return new KlerosLiquid__disputesResult( - result[0].toBigInt(), - result[1].toAddress(), - result[2].toBigInt(), - result[3].toI32(), - result[4].toBigInt(), - result[5].toBigInt(), - result[6].toBigInt(), - result[7].toBoolean() - ); - } - - try_disputes( - param0: BigInt - ): ethereum.CallResult { - let result = super.tryCall( - "disputes", - "disputes(uint256):(uint96,address,uint256,uint8,uint256,uint256,uint256,bool)", - [ethereum.Value.fromUnsignedBigInt(param0)] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue( - new KlerosLiquid__disputesResult( - value[0].toBigInt(), - value[1].toAddress(), - value[2].toBigInt(), - value[3].toI32(), - value[4].toBigInt(), - value[5].toBigInt(), - value[6].toBigInt(), - value[7].toBoolean() - ) - ); - } - - RN(): BigInt { - let result = super.call("RN", "RN():(uint256)", []); - - return result[0].toBigInt(); - } - - try_RN(): ethereum.CallResult { - let result = super.tryCall("RN", "RN():(uint256)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - RNGenerator(): Address { - let result = super.call("RNGenerator", "RNGenerator():(address)", []); - - return result[0].toAddress(); - } - - try_RNGenerator(): ethereum.CallResult
{ - let result = super.tryCall("RNGenerator", "RNGenerator():(address)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toAddress()); - } - - NON_PAYABLE_AMOUNT(): BigInt { - let result = super.call( - "NON_PAYABLE_AMOUNT", - "NON_PAYABLE_AMOUNT():(uint256)", - [] - ); - - return result[0].toBigInt(); - } - - try_NON_PAYABLE_AMOUNT(): ethereum.CallResult { - let result = super.tryCall( - "NON_PAYABLE_AMOUNT", - "NON_PAYABLE_AMOUNT():(uint256)", - [] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - getVote( - _disputeID: BigInt, - _appeal: BigInt, - _voteID: BigInt - ): KlerosLiquid__getVoteResult { - let result = super.call( - "getVote", - "getVote(uint256,uint256,uint256):(address,bytes32,uint256,bool)", - [ - ethereum.Value.fromUnsignedBigInt(_disputeID), - ethereum.Value.fromUnsignedBigInt(_appeal), - ethereum.Value.fromUnsignedBigInt(_voteID) - ] - ); - - return new KlerosLiquid__getVoteResult( - result[0].toAddress(), - result[1].toBytes(), - result[2].toBigInt(), - result[3].toBoolean() - ); - } - - try_getVote( - _disputeID: BigInt, - _appeal: BigInt, - _voteID: BigInt - ): ethereum.CallResult { - let result = super.tryCall( - "getVote", - "getVote(uint256,uint256,uint256):(address,bytes32,uint256,bool)", - [ - ethereum.Value.fromUnsignedBigInt(_disputeID), - ethereum.Value.fromUnsignedBigInt(_appeal), - ethereum.Value.fromUnsignedBigInt(_voteID) - ] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue( - new KlerosLiquid__getVoteResult( - value[0].toAddress(), - value[1].toBytes(), - value[2].toBigInt(), - value[3].toBoolean() - ) - ); - } - - stakeOf(_account: Address, _subcourtID: BigInt): BigInt { - let result = super.call("stakeOf", "stakeOf(address,uint96):(uint256)", [ - ethereum.Value.fromAddress(_account), - ethereum.Value.fromUnsignedBigInt(_subcourtID) - ]); - - return result[0].toBigInt(); - } - - try_stakeOf( - _account: Address, - _subcourtID: BigInt - ): ethereum.CallResult { - let result = super.tryCall("stakeOf", "stakeOf(address,uint96):(uint256)", [ - ethereum.Value.fromAddress(_account), - ethereum.Value.fromUnsignedBigInt(_subcourtID) - ]); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - appealPeriod(_disputeID: BigInt): KlerosLiquid__appealPeriodResult { - let result = super.call( - "appealPeriod", - "appealPeriod(uint256):(uint256,uint256)", - [ethereum.Value.fromUnsignedBigInt(_disputeID)] - ); - - return new KlerosLiquid__appealPeriodResult( - result[0].toBigInt(), - result[1].toBigInt() - ); - } - - try_appealPeriod( - _disputeID: BigInt - ): ethereum.CallResult { - let result = super.tryCall( - "appealPeriod", - "appealPeriod(uint256):(uint256,uint256)", - [ethereum.Value.fromUnsignedBigInt(_disputeID)] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue( - new KlerosLiquid__appealPeriodResult( - value[0].toBigInt(), - value[1].toBigInt() - ) - ); - } - - phase(): i32 { - let result = super.call("phase", "phase():(uint8)", []); - - return result[0].toI32(); - } - - try_phase(): ethereum.CallResult { - let result = super.tryCall("phase", "phase():(uint8)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toI32()); - } - - MAX_STAKE_PATHS(): BigInt { - let result = super.call( - "MAX_STAKE_PATHS", - "MAX_STAKE_PATHS():(uint256)", - [] - ); - - return result[0].toBigInt(); - } - - try_MAX_STAKE_PATHS(): ethereum.CallResult { - let result = super.tryCall( - "MAX_STAKE_PATHS", - "MAX_STAKE_PATHS():(uint256)", - [] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - delayedSetStakes(param0: BigInt): KlerosLiquid__delayedSetStakesResult { - let result = super.call( - "delayedSetStakes", - "delayedSetStakes(uint256):(address,uint96,uint128)", - [ethereum.Value.fromUnsignedBigInt(param0)] - ); - - return new KlerosLiquid__delayedSetStakesResult( - result[0].toAddress(), - result[1].toBigInt(), - result[2].toBigInt() - ); - } - - try_delayedSetStakes( - param0: BigInt - ): ethereum.CallResult { - let result = super.tryCall( - "delayedSetStakes", - "delayedSetStakes(uint256):(address,uint96,uint128)", - [ethereum.Value.fromUnsignedBigInt(param0)] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue( - new KlerosLiquid__delayedSetStakesResult( - value[0].toAddress(), - value[1].toBigInt(), - value[2].toBigInt() - ) - ); - } - - lastPhaseChange(): BigInt { - let result = super.call( - "lastPhaseChange", - "lastPhaseChange():(uint256)", - [] - ); - - return result[0].toBigInt(); - } - - try_lastPhaseChange(): ethereum.CallResult { - let result = super.tryCall( - "lastPhaseChange", - "lastPhaseChange():(uint256)", - [] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - minStakingTime(): BigInt { - let result = super.call("minStakingTime", "minStakingTime():(uint256)", []); - - return result[0].toBigInt(); - } - - try_minStakingTime(): ethereum.CallResult { - let result = super.tryCall( - "minStakingTime", - "minStakingTime():(uint256)", - [] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - nextDelayedSetStake(): BigInt { - let result = super.call( - "nextDelayedSetStake", - "nextDelayedSetStake():(uint256)", - [] - ); - - return result[0].toBigInt(); - } - - try_nextDelayedSetStake(): ethereum.CallResult { - let result = super.tryCall( - "nextDelayedSetStake", - "nextDelayedSetStake():(uint256)", - [] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - getJuror(_account: Address): Array { - let result = super.call("getJuror", "getJuror(address):(uint96[])", [ - ethereum.Value.fromAddress(_account) - ]); - - return result[0].toBigIntArray(); - } - - try_getJuror(_account: Address): ethereum.CallResult> { - let result = super.tryCall("getJuror", "getJuror(address):(uint96[])", [ - ethereum.Value.fromAddress(_account) - ]); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigIntArray()); - } - - onApprove(_owner: Address, _spender: Address, _amount: BigInt): boolean { - let result = super.call( - "onApprove", - "onApprove(address,address,uint256):(bool)", - [ - ethereum.Value.fromAddress(_owner), - ethereum.Value.fromAddress(_spender), - ethereum.Value.fromUnsignedBigInt(_amount) - ] - ); - - return result[0].toBoolean(); - } - - try_onApprove( - _owner: Address, - _spender: Address, - _amount: BigInt - ): ethereum.CallResult { - let result = super.tryCall( - "onApprove", - "onApprove(address,address,uint256):(bool)", - [ - ethereum.Value.fromAddress(_owner), - ethereum.Value.fromAddress(_spender), - ethereum.Value.fromUnsignedBigInt(_amount) - ] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBoolean()); - } - - jurors(param0: Address): KlerosLiquid__jurorsResult { - let result = super.call("jurors", "jurors(address):(uint256,uint256)", [ - ethereum.Value.fromAddress(param0) - ]); - - return new KlerosLiquid__jurorsResult( - result[0].toBigInt(), - result[1].toBigInt() - ); - } - - try_jurors(param0: Address): ethereum.CallResult { - let result = super.tryCall("jurors", "jurors(address):(uint256,uint256)", [ - ethereum.Value.fromAddress(param0) - ]); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue( - new KlerosLiquid__jurorsResult(value[0].toBigInt(), value[1].toBigInt()) - ); - } - - getDispute(_disputeID: BigInt): KlerosLiquid__getDisputeResult { - let result = super.call( - "getDispute", - "getDispute(uint256):(uint256[],uint256[],uint256[],uint256[],uint256[],uint256[])", - [ethereum.Value.fromUnsignedBigInt(_disputeID)] - ); - - return new KlerosLiquid__getDisputeResult( - result[0].toBigIntArray(), - result[1].toBigIntArray(), - result[2].toBigIntArray(), - result[3].toBigIntArray(), - result[4].toBigIntArray(), - result[5].toBigIntArray() - ); - } - - try_getDispute( - _disputeID: BigInt - ): ethereum.CallResult { - let result = super.tryCall( - "getDispute", - "getDispute(uint256):(uint256[],uint256[],uint256[],uint256[],uint256[],uint256[])", - [ethereum.Value.fromUnsignedBigInt(_disputeID)] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue( - new KlerosLiquid__getDisputeResult( - value[0].toBigIntArray(), - value[1].toBigIntArray(), - value[2].toBigIntArray(), - value[3].toBigIntArray(), - value[4].toBigIntArray(), - value[5].toBigIntArray() - ) - ); - } - - getVoteCounter( - _disputeID: BigInt, - _appeal: BigInt - ): KlerosLiquid__getVoteCounterResult { - let result = super.call( - "getVoteCounter", - "getVoteCounter(uint256,uint256):(uint256,uint256[],bool)", - [ - ethereum.Value.fromUnsignedBigInt(_disputeID), - ethereum.Value.fromUnsignedBigInt(_appeal) - ] - ); - - return new KlerosLiquid__getVoteCounterResult( - result[0].toBigInt(), - result[1].toBigIntArray(), - result[2].toBoolean() - ); - } - - try_getVoteCounter( - _disputeID: BigInt, - _appeal: BigInt - ): ethereum.CallResult { - let result = super.tryCall( - "getVoteCounter", - "getVoteCounter(uint256,uint256):(uint256,uint256[],bool)", - [ - ethereum.Value.fromUnsignedBigInt(_disputeID), - ethereum.Value.fromUnsignedBigInt(_appeal) - ] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue( - new KlerosLiquid__getVoteCounterResult( - value[0].toBigInt(), - value[1].toBigIntArray(), - value[2].toBoolean() - ) - ); - } - - MIN_JURORS(): BigInt { - let result = super.call("MIN_JURORS", "MIN_JURORS():(uint256)", []); - - return result[0].toBigInt(); - } - - try_MIN_JURORS(): ethereum.CallResult { - let result = super.tryCall("MIN_JURORS", "MIN_JURORS():(uint256)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - appealCost(_disputeID: BigInt, _extraData: Bytes): BigInt { - let result = super.call( - "appealCost", - "appealCost(uint256,bytes):(uint256)", - [ - ethereum.Value.fromUnsignedBigInt(_disputeID), - ethereum.Value.fromBytes(_extraData) - ] - ); - - return result[0].toBigInt(); - } - - try_appealCost( - _disputeID: BigInt, - _extraData: Bytes - ): ethereum.CallResult { - let result = super.tryCall( - "appealCost", - "appealCost(uint256,bytes):(uint256)", - [ - ethereum.Value.fromUnsignedBigInt(_disputeID), - ethereum.Value.fromBytes(_extraData) - ] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - lockInsolventTransfers(): boolean { - let result = super.call( - "lockInsolventTransfers", - "lockInsolventTransfers():(bool)", - [] - ); - - return result[0].toBoolean(); - } - - try_lockInsolventTransfers(): ethereum.CallResult { - let result = super.tryCall( - "lockInsolventTransfers", - "lockInsolventTransfers():(bool)", - [] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBoolean()); - } - - arbitrationCost(_extraData: Bytes): BigInt { - let result = super.call( - "arbitrationCost", - "arbitrationCost(bytes):(uint256)", - [ethereum.Value.fromBytes(_extraData)] - ); - - return result[0].toBigInt(); - } - - try_arbitrationCost(_extraData: Bytes): ethereum.CallResult { - let result = super.tryCall( - "arbitrationCost", - "arbitrationCost(bytes):(uint256)", - [ethereum.Value.fromBytes(_extraData)] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBigInt()); - } - - pinakion(): Address { - let result = super.call("pinakion", "pinakion():(address)", []); - - return result[0].toAddress(); - } - - try_pinakion(): ethereum.CallResult
{ - let result = super.tryCall("pinakion", "pinakion():(address)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toAddress()); - } -} - -export class ChangePinakionCall extends ethereum.Call { - get inputs(): ChangePinakionCall__Inputs { - return new ChangePinakionCall__Inputs(this); - } - - get outputs(): ChangePinakionCall__Outputs { - return new ChangePinakionCall__Outputs(this); - } -} - -export class ChangePinakionCall__Inputs { - _call: ChangePinakionCall; - - constructor(call: ChangePinakionCall) { - this._call = call; - } - - get _pinakion(): Address { - return this._call.inputValues[0].value.toAddress(); - } -} - -export class ChangePinakionCall__Outputs { - _call: ChangePinakionCall; - - constructor(call: ChangePinakionCall) { - this._call = call; - } -} - -export class PassPhaseCall extends ethereum.Call { - get inputs(): PassPhaseCall__Inputs { - return new PassPhaseCall__Inputs(this); - } - - get outputs(): PassPhaseCall__Outputs { - return new PassPhaseCall__Outputs(this); - } -} - -export class PassPhaseCall__Inputs { - _call: PassPhaseCall; - - constructor(call: PassPhaseCall) { - this._call = call; - } -} - -export class PassPhaseCall__Outputs { - _call: PassPhaseCall; - - constructor(call: PassPhaseCall) { - this._call = call; - } -} - -export class PassPeriodCall extends ethereum.Call { - get inputs(): PassPeriodCall__Inputs { - return new PassPeriodCall__Inputs(this); - } - - get outputs(): PassPeriodCall__Outputs { - return new PassPeriodCall__Outputs(this); - } -} - -export class PassPeriodCall__Inputs { - _call: PassPeriodCall; - - constructor(call: PassPeriodCall) { - this._call = call; - } - - get _disputeID(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } -} - -export class PassPeriodCall__Outputs { - _call: PassPeriodCall; - - constructor(call: PassPeriodCall) { - this._call = call; - } -} - -export class ExecuteCall extends ethereum.Call { - get inputs(): ExecuteCall__Inputs { - return new ExecuteCall__Inputs(this); - } - - get outputs(): ExecuteCall__Outputs { - return new ExecuteCall__Outputs(this); - } -} - -export class ExecuteCall__Inputs { - _call: ExecuteCall; - - constructor(call: ExecuteCall) { - this._call = call; - } - - get _disputeID(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } - - get _appeal(): BigInt { - return this._call.inputValues[1].value.toBigInt(); - } - - get _iterations(): BigInt { - return this._call.inputValues[2].value.toBigInt(); - } -} - -export class ExecuteCall__Outputs { - _call: ExecuteCall; - - constructor(call: ExecuteCall) { - this._call = call; - } -} - -export class CastVoteCall extends ethereum.Call { - get inputs(): CastVoteCall__Inputs { - return new CastVoteCall__Inputs(this); - } - - get outputs(): CastVoteCall__Outputs { - return new CastVoteCall__Outputs(this); - } -} - -export class CastVoteCall__Inputs { - _call: CastVoteCall; - - constructor(call: CastVoteCall) { - this._call = call; - } - - get _disputeID(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } - - get _voteIDs(): Array { - return this._call.inputValues[1].value.toBigIntArray(); - } - - get _choice(): BigInt { - return this._call.inputValues[2].value.toBigInt(); - } - - get _salt(): BigInt { - return this._call.inputValues[3].value.toBigInt(); - } -} - -export class CastVoteCall__Outputs { - _call: CastVoteCall; - - constructor(call: CastVoteCall) { - this._call = call; - } -} - -export class ChangeSubcourtMinStakeCall extends ethereum.Call { - get inputs(): ChangeSubcourtMinStakeCall__Inputs { - return new ChangeSubcourtMinStakeCall__Inputs(this); - } - - get outputs(): ChangeSubcourtMinStakeCall__Outputs { - return new ChangeSubcourtMinStakeCall__Outputs(this); - } -} - -export class ChangeSubcourtMinStakeCall__Inputs { - _call: ChangeSubcourtMinStakeCall; - - constructor(call: ChangeSubcourtMinStakeCall) { - this._call = call; - } - - get _subcourtID(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } - - get _minStake(): BigInt { - return this._call.inputValues[1].value.toBigInt(); - } -} - -export class ChangeSubcourtMinStakeCall__Outputs { - _call: ChangeSubcourtMinStakeCall; - - constructor(call: ChangeSubcourtMinStakeCall) { - this._call = call; - } -} - -export class AppealCall extends ethereum.Call { - get inputs(): AppealCall__Inputs { - return new AppealCall__Inputs(this); - } - - get outputs(): AppealCall__Outputs { - return new AppealCall__Outputs(this); - } -} - -export class AppealCall__Inputs { - _call: AppealCall; - - constructor(call: AppealCall) { - this._call = call; - } - - get _disputeID(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } - - get _extraData(): Bytes { - return this._call.inputValues[1].value.toBytes(); - } -} - -export class AppealCall__Outputs { - _call: AppealCall; - - constructor(call: AppealCall) { - this._call = call; - } -} - -export class OnTransferCall extends ethereum.Call { - get inputs(): OnTransferCall__Inputs { - return new OnTransferCall__Inputs(this); - } - - get outputs(): OnTransferCall__Outputs { - return new OnTransferCall__Outputs(this); - } -} - -export class OnTransferCall__Inputs { - _call: OnTransferCall; - - constructor(call: OnTransferCall) { - this._call = call; - } - - get _from(): Address { - return this._call.inputValues[0].value.toAddress(); - } - - get _to(): Address { - return this._call.inputValues[1].value.toAddress(); - } - - get _amount(): BigInt { - return this._call.inputValues[2].value.toBigInt(); - } -} - -export class OnTransferCall__Outputs { - _call: OnTransferCall; - - constructor(call: OnTransferCall) { - this._call = call; - } - - get allowed(): boolean { - return this._call.outputValues[0].value.toBoolean(); - } -} - -export class ChangeSubcourtTimesPerPeriodCall extends ethereum.Call { - get inputs(): ChangeSubcourtTimesPerPeriodCall__Inputs { - return new ChangeSubcourtTimesPerPeriodCall__Inputs(this); - } - - get outputs(): ChangeSubcourtTimesPerPeriodCall__Outputs { - return new ChangeSubcourtTimesPerPeriodCall__Outputs(this); - } -} - -export class ChangeSubcourtTimesPerPeriodCall__Inputs { - _call: ChangeSubcourtTimesPerPeriodCall; - - constructor(call: ChangeSubcourtTimesPerPeriodCall) { - this._call = call; - } - - get _subcourtID(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } - - get _timesPerPeriod(): Array { - return this._call.inputValues[1].value.toBigIntArray(); - } -} - -export class ChangeSubcourtTimesPerPeriodCall__Outputs { - _call: ChangeSubcourtTimesPerPeriodCall; - - constructor(call: ChangeSubcourtTimesPerPeriodCall) { - this._call = call; - } -} - -export class ChangeSubcourtJurorFeeCall extends ethereum.Call { - get inputs(): ChangeSubcourtJurorFeeCall__Inputs { - return new ChangeSubcourtJurorFeeCall__Inputs(this); - } - - get outputs(): ChangeSubcourtJurorFeeCall__Outputs { - return new ChangeSubcourtJurorFeeCall__Outputs(this); - } -} - -export class ChangeSubcourtJurorFeeCall__Inputs { - _call: ChangeSubcourtJurorFeeCall; - - constructor(call: ChangeSubcourtJurorFeeCall) { - this._call = call; - } - - get _subcourtID(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } - - get _feeForJuror(): BigInt { - return this._call.inputValues[1].value.toBigInt(); - } -} - -export class ChangeSubcourtJurorFeeCall__Outputs { - _call: ChangeSubcourtJurorFeeCall; - - constructor(call: ChangeSubcourtJurorFeeCall) { - this._call = call; - } -} - -export class ChangeSubcourtAlphaCall extends ethereum.Call { - get inputs(): ChangeSubcourtAlphaCall__Inputs { - return new ChangeSubcourtAlphaCall__Inputs(this); - } - - get outputs(): ChangeSubcourtAlphaCall__Outputs { - return new ChangeSubcourtAlphaCall__Outputs(this); - } -} - -export class ChangeSubcourtAlphaCall__Inputs { - _call: ChangeSubcourtAlphaCall; - - constructor(call: ChangeSubcourtAlphaCall) { - this._call = call; - } - - get _subcourtID(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } - - get _alpha(): BigInt { - return this._call.inputValues[1].value.toBigInt(); - } -} - -export class ChangeSubcourtAlphaCall__Outputs { - _call: ChangeSubcourtAlphaCall; - - constructor(call: ChangeSubcourtAlphaCall) { - this._call = call; - } -} - -export class CastCommitCall extends ethereum.Call { - get inputs(): CastCommitCall__Inputs { - return new CastCommitCall__Inputs(this); - } - - get outputs(): CastCommitCall__Outputs { - return new CastCommitCall__Outputs(this); - } -} - -export class CastCommitCall__Inputs { - _call: CastCommitCall; - - constructor(call: CastCommitCall) { - this._call = call; - } - - get _disputeID(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } - - get _voteIDs(): Array { - return this._call.inputValues[1].value.toBigIntArray(); - } - - get _commit(): Bytes { - return this._call.inputValues[2].value.toBytes(); - } -} - -export class CastCommitCall__Outputs { - _call: CastCommitCall; - - constructor(call: CastCommitCall) { - this._call = call; - } -} - -export class ExecuteGovernorProposalCall extends ethereum.Call { - get inputs(): ExecuteGovernorProposalCall__Inputs { - return new ExecuteGovernorProposalCall__Inputs(this); - } - - get outputs(): ExecuteGovernorProposalCall__Outputs { - return new ExecuteGovernorProposalCall__Outputs(this); - } -} - -export class ExecuteGovernorProposalCall__Inputs { - _call: ExecuteGovernorProposalCall; - - constructor(call: ExecuteGovernorProposalCall) { - this._call = call; - } - - get _destination(): Address { - return this._call.inputValues[0].value.toAddress(); - } - - get _amount(): BigInt { - return this._call.inputValues[1].value.toBigInt(); - } - - get _data(): Bytes { - return this._call.inputValues[2].value.toBytes(); - } -} - -export class ExecuteGovernorProposalCall__Outputs { - _call: ExecuteGovernorProposalCall; - - constructor(call: ExecuteGovernorProposalCall) { - this._call = call; - } -} - -export class ChangeMinStakingTimeCall extends ethereum.Call { - get inputs(): ChangeMinStakingTimeCall__Inputs { - return new ChangeMinStakingTimeCall__Inputs(this); - } - - get outputs(): ChangeMinStakingTimeCall__Outputs { - return new ChangeMinStakingTimeCall__Outputs(this); - } -} - -export class ChangeMinStakingTimeCall__Inputs { - _call: ChangeMinStakingTimeCall; - - constructor(call: ChangeMinStakingTimeCall) { - this._call = call; - } - - get _minStakingTime(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } -} - -export class ChangeMinStakingTimeCall__Outputs { - _call: ChangeMinStakingTimeCall; - - constructor(call: ChangeMinStakingTimeCall) { - this._call = call; - } -} - -export class SetStakeCall extends ethereum.Call { - get inputs(): SetStakeCall__Inputs { - return new SetStakeCall__Inputs(this); - } - - get outputs(): SetStakeCall__Outputs { - return new SetStakeCall__Outputs(this); - } -} - -export class SetStakeCall__Inputs { - _call: SetStakeCall; - - constructor(call: SetStakeCall) { - this._call = call; - } - - get _subcourtID(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } - - get _stake(): BigInt { - return this._call.inputValues[1].value.toBigInt(); - } -} - -export class SetStakeCall__Outputs { - _call: SetStakeCall; - - constructor(call: SetStakeCall) { - this._call = call; - } -} - -export class ExecuteRulingCall extends ethereum.Call { - get inputs(): ExecuteRulingCall__Inputs { - return new ExecuteRulingCall__Inputs(this); - } - - get outputs(): ExecuteRulingCall__Outputs { - return new ExecuteRulingCall__Outputs(this); - } -} - -export class ExecuteRulingCall__Inputs { - _call: ExecuteRulingCall; - - constructor(call: ExecuteRulingCall) { - this._call = call; - } - - get _disputeID(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } -} - -export class ExecuteRulingCall__Outputs { - _call: ExecuteRulingCall; - - constructor(call: ExecuteRulingCall) { - this._call = call; - } -} - -export class ChangeRNGeneratorCall extends ethereum.Call { - get inputs(): ChangeRNGeneratorCall__Inputs { - return new ChangeRNGeneratorCall__Inputs(this); - } - - get outputs(): ChangeRNGeneratorCall__Outputs { - return new ChangeRNGeneratorCall__Outputs(this); - } -} - -export class ChangeRNGeneratorCall__Inputs { - _call: ChangeRNGeneratorCall; - - constructor(call: ChangeRNGeneratorCall) { - this._call = call; - } - - get _RNGenerator(): Address { - return this._call.inputValues[0].value.toAddress(); - } -} - -export class ChangeRNGeneratorCall__Outputs { - _call: ChangeRNGeneratorCall; - - constructor(call: ChangeRNGeneratorCall) { - this._call = call; - } -} - -export class ExecuteDelayedSetStakesCall extends ethereum.Call { - get inputs(): ExecuteDelayedSetStakesCall__Inputs { - return new ExecuteDelayedSetStakesCall__Inputs(this); - } - - get outputs(): ExecuteDelayedSetStakesCall__Outputs { - return new ExecuteDelayedSetStakesCall__Outputs(this); - } -} - -export class ExecuteDelayedSetStakesCall__Inputs { - _call: ExecuteDelayedSetStakesCall; - - constructor(call: ExecuteDelayedSetStakesCall) { - this._call = call; - } - - get _iterations(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } -} - -export class ExecuteDelayedSetStakesCall__Outputs { - _call: ExecuteDelayedSetStakesCall; - - constructor(call: ExecuteDelayedSetStakesCall) { - this._call = call; - } -} - -export class ChangeSubcourtJurorsForJumpCall extends ethereum.Call { - get inputs(): ChangeSubcourtJurorsForJumpCall__Inputs { - return new ChangeSubcourtJurorsForJumpCall__Inputs(this); - } - - get outputs(): ChangeSubcourtJurorsForJumpCall__Outputs { - return new ChangeSubcourtJurorsForJumpCall__Outputs(this); - } -} - -export class ChangeSubcourtJurorsForJumpCall__Inputs { - _call: ChangeSubcourtJurorsForJumpCall; - - constructor(call: ChangeSubcourtJurorsForJumpCall) { - this._call = call; - } - - get _subcourtID(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } - - get _jurorsForCourtJump(): BigInt { - return this._call.inputValues[1].value.toBigInt(); - } -} - -export class ChangeSubcourtJurorsForJumpCall__Outputs { - _call: ChangeSubcourtJurorsForJumpCall; - - constructor(call: ChangeSubcourtJurorsForJumpCall) { - this._call = call; - } -} - -export class CreateDisputeCall extends ethereum.Call { - get inputs(): CreateDisputeCall__Inputs { - return new CreateDisputeCall__Inputs(this); - } - - get outputs(): CreateDisputeCall__Outputs { - return new CreateDisputeCall__Outputs(this); - } -} - -export class CreateDisputeCall__Inputs { - _call: CreateDisputeCall; - - constructor(call: CreateDisputeCall) { - this._call = call; - } - - get _numberOfChoices(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } - - get _extraData(): Bytes { - return this._call.inputValues[1].value.toBytes(); - } -} - -export class CreateDisputeCall__Outputs { - _call: CreateDisputeCall; - - constructor(call: CreateDisputeCall) { - this._call = call; - } - - get disputeID(): BigInt { - return this._call.outputValues[0].value.toBigInt(); - } -} - -export class DrawJurorsCall extends ethereum.Call { - get inputs(): DrawJurorsCall__Inputs { - return new DrawJurorsCall__Inputs(this); - } - - get outputs(): DrawJurorsCall__Outputs { - return new DrawJurorsCall__Outputs(this); - } -} - -export class DrawJurorsCall__Inputs { - _call: DrawJurorsCall; - - constructor(call: DrawJurorsCall) { - this._call = call; - } - - get _disputeID(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } - - get _iterations(): BigInt { - return this._call.inputValues[1].value.toBigInt(); - } -} - -export class DrawJurorsCall__Outputs { - _call: DrawJurorsCall; - - constructor(call: DrawJurorsCall) { - this._call = call; - } -} - -export class CreateSubcourtCall extends ethereum.Call { - get inputs(): CreateSubcourtCall__Inputs { - return new CreateSubcourtCall__Inputs(this); - } - - get outputs(): CreateSubcourtCall__Outputs { - return new CreateSubcourtCall__Outputs(this); - } -} - -export class CreateSubcourtCall__Inputs { - _call: CreateSubcourtCall; - - constructor(call: CreateSubcourtCall) { - this._call = call; - } - - get _parent(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } - - get _hiddenVotes(): boolean { - return this._call.inputValues[1].value.toBoolean(); - } - - get _minStake(): BigInt { - return this._call.inputValues[2].value.toBigInt(); - } - - get _alpha(): BigInt { - return this._call.inputValues[3].value.toBigInt(); - } - - get _feeForJuror(): BigInt { - return this._call.inputValues[4].value.toBigInt(); - } - - get _jurorsForCourtJump(): BigInt { - return this._call.inputValues[5].value.toBigInt(); - } - - get _timesPerPeriod(): Array { - return this._call.inputValues[6].value.toBigIntArray(); - } - - get _sortitionSumTreeK(): BigInt { - return this._call.inputValues[7].value.toBigInt(); - } -} - -export class CreateSubcourtCall__Outputs { - _call: CreateSubcourtCall; - - constructor(call: CreateSubcourtCall) { - this._call = call; - } -} - -export class OnApproveCall extends ethereum.Call { - get inputs(): OnApproveCall__Inputs { - return new OnApproveCall__Inputs(this); - } - - get outputs(): OnApproveCall__Outputs { - return new OnApproveCall__Outputs(this); - } -} - -export class OnApproveCall__Inputs { - _call: OnApproveCall; - - constructor(call: OnApproveCall) { - this._call = call; - } - - get _owner(): Address { - return this._call.inputValues[0].value.toAddress(); - } - - get _spender(): Address { - return this._call.inputValues[1].value.toAddress(); - } - - get _amount(): BigInt { - return this._call.inputValues[2].value.toBigInt(); - } -} - -export class OnApproveCall__Outputs { - _call: OnApproveCall; - - constructor(call: OnApproveCall) { - this._call = call; - } - - get allowed(): boolean { - return this._call.outputValues[0].value.toBoolean(); - } -} - -export class ChangeMaxDrawingTimeCall extends ethereum.Call { - get inputs(): ChangeMaxDrawingTimeCall__Inputs { - return new ChangeMaxDrawingTimeCall__Inputs(this); - } - - get outputs(): ChangeMaxDrawingTimeCall__Outputs { - return new ChangeMaxDrawingTimeCall__Outputs(this); - } -} - -export class ChangeMaxDrawingTimeCall__Inputs { - _call: ChangeMaxDrawingTimeCall; - - constructor(call: ChangeMaxDrawingTimeCall) { - this._call = call; - } - - get _maxDrawingTime(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } -} - -export class ChangeMaxDrawingTimeCall__Outputs { - _call: ChangeMaxDrawingTimeCall; - - constructor(call: ChangeMaxDrawingTimeCall) { - this._call = call; - } -} - -export class ChangeGovernorCall extends ethereum.Call { - get inputs(): ChangeGovernorCall__Inputs { - return new ChangeGovernorCall__Inputs(this); - } - - get outputs(): ChangeGovernorCall__Outputs { - return new ChangeGovernorCall__Outputs(this); - } -} - -export class ChangeGovernorCall__Inputs { - _call: ChangeGovernorCall; - - constructor(call: ChangeGovernorCall) { - this._call = call; - } - - get _governor(): Address { - return this._call.inputValues[0].value.toAddress(); - } -} - -export class ChangeGovernorCall__Outputs { - _call: ChangeGovernorCall; - - constructor(call: ChangeGovernorCall) { - this._call = call; - } -} - -export class ProxyPaymentCall extends ethereum.Call { - get inputs(): ProxyPaymentCall__Inputs { - return new ProxyPaymentCall__Inputs(this); - } - - get outputs(): ProxyPaymentCall__Outputs { - return new ProxyPaymentCall__Outputs(this); - } -} - -export class ProxyPaymentCall__Inputs { - _call: ProxyPaymentCall; - - constructor(call: ProxyPaymentCall) { - this._call = call; - } - - get _owner(): Address { - return this._call.inputValues[0].value.toAddress(); - } -} - -export class ProxyPaymentCall__Outputs { - _call: ProxyPaymentCall; - - constructor(call: ProxyPaymentCall) { - this._call = call; - } - - get allowed(): boolean { - return this._call.outputValues[0].value.toBoolean(); - } -} - -export class ConstructorCall extends ethereum.Call { - get inputs(): ConstructorCall__Inputs { - return new ConstructorCall__Inputs(this); - } - - get outputs(): ConstructorCall__Outputs { - return new ConstructorCall__Outputs(this); - } -} - -export class ConstructorCall__Inputs { - _call: ConstructorCall; - - constructor(call: ConstructorCall) { - this._call = call; - } - - get _governor(): Address { - return this._call.inputValues[0].value.toAddress(); - } - - get _pinakion(): Address { - return this._call.inputValues[1].value.toAddress(); - } - - get _RNGenerator(): Address { - return this._call.inputValues[2].value.toAddress(); - } - - get _minStakingTime(): BigInt { - return this._call.inputValues[3].value.toBigInt(); - } - - get _maxDrawingTime(): BigInt { - return this._call.inputValues[4].value.toBigInt(); - } - - get _hiddenVotes(): boolean { - return this._call.inputValues[5].value.toBoolean(); - } - - get _minStake(): BigInt { - return this._call.inputValues[6].value.toBigInt(); - } - - get _alpha(): BigInt { - return this._call.inputValues[7].value.toBigInt(); - } - - get _feeForJuror(): BigInt { - return this._call.inputValues[8].value.toBigInt(); - } - - get _jurorsForCourtJump(): BigInt { - return this._call.inputValues[9].value.toBigInt(); - } - - get _timesPerPeriod(): Array { - return this._call.inputValues[10].value.toBigIntArray(); - } - - get _sortitionSumTreeK(): BigInt { - return this._call.inputValues[11].value.toBigInt(); - } -} - -export class ConstructorCall__Outputs { - _call: ConstructorCall; - - constructor(call: ConstructorCall) { - this._call = call; - } -} diff --git a/generated/PolicyRegistry/PolicyRegistry.ts b/generated/PolicyRegistry/PolicyRegistry.ts deleted file mode 100644 index 410041a..0000000 --- a/generated/PolicyRegistry/PolicyRegistry.ts +++ /dev/null @@ -1,167 +0,0 @@ -// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. - -import { - ethereum, - JSONValue, - TypedMap, - Entity, - Bytes, - Address, - BigInt -} from "@graphprotocol/graph-ts"; - -export class PolicyUpdate extends ethereum.Event { - get params(): PolicyUpdate__Params { - return new PolicyUpdate__Params(this); - } -} - -export class PolicyUpdate__Params { - _event: PolicyUpdate; - - constructor(event: PolicyUpdate) { - this._event = event; - } - - get _subcourtID(): BigInt { - return this._event.parameters[0].value.toBigInt(); - } - - get _policy(): string { - return this._event.parameters[1].value.toString(); - } -} - -export class PolicyRegistry extends ethereum.SmartContract { - static bind(address: Address): PolicyRegistry { - return new PolicyRegistry("PolicyRegistry", address); - } - - governor(): Address { - let result = super.call("governor", "governor():(address)", []); - - return result[0].toAddress(); - } - - try_governor(): ethereum.CallResult
{ - let result = super.tryCall("governor", "governor():(address)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toAddress()); - } - - policies(param0: BigInt): string { - let result = super.call("policies", "policies(uint256):(string)", [ - ethereum.Value.fromUnsignedBigInt(param0) - ]); - - return result[0].toString(); - } - - try_policies(param0: BigInt): ethereum.CallResult { - let result = super.tryCall("policies", "policies(uint256):(string)", [ - ethereum.Value.fromUnsignedBigInt(param0) - ]); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toString()); - } -} - -export class ChangeGovernorCall extends ethereum.Call { - get inputs(): ChangeGovernorCall__Inputs { - return new ChangeGovernorCall__Inputs(this); - } - - get outputs(): ChangeGovernorCall__Outputs { - return new ChangeGovernorCall__Outputs(this); - } -} - -export class ChangeGovernorCall__Inputs { - _call: ChangeGovernorCall; - - constructor(call: ChangeGovernorCall) { - this._call = call; - } - - get _governor(): Address { - return this._call.inputValues[0].value.toAddress(); - } -} - -export class ChangeGovernorCall__Outputs { - _call: ChangeGovernorCall; - - constructor(call: ChangeGovernorCall) { - this._call = call; - } -} - -export class SetPolicyCall extends ethereum.Call { - get inputs(): SetPolicyCall__Inputs { - return new SetPolicyCall__Inputs(this); - } - - get outputs(): SetPolicyCall__Outputs { - return new SetPolicyCall__Outputs(this); - } -} - -export class SetPolicyCall__Inputs { - _call: SetPolicyCall; - - constructor(call: SetPolicyCall) { - this._call = call; - } - - get _subcourtID(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } - - get _policy(): string { - return this._call.inputValues[1].value.toString(); - } -} - -export class SetPolicyCall__Outputs { - _call: SetPolicyCall; - - constructor(call: SetPolicyCall) { - this._call = call; - } -} - -export class ConstructorCall extends ethereum.Call { - get inputs(): ConstructorCall__Inputs { - return new ConstructorCall__Inputs(this); - } - - get outputs(): ConstructorCall__Outputs { - return new ConstructorCall__Outputs(this); - } -} - -export class ConstructorCall__Inputs { - _call: ConstructorCall; - - constructor(call: ConstructorCall) { - this._call = call; - } - - get _governor(): Address { - return this._call.inputValues[0].value.toAddress(); - } -} - -export class ConstructorCall__Outputs { - _call: ConstructorCall; - - constructor(call: ConstructorCall) { - this._call = call; - } -} diff --git a/generated/schema.ts b/generated/schema.ts deleted file mode 100644 index 19b31db..0000000 --- a/generated/schema.ts +++ /dev/null @@ -1,1241 +0,0 @@ -// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. - -import { - TypedMap, - Entity, - Value, - ValueKind, - store, - Bytes, - BigInt, - BigDecimal -} from "@graphprotocol/graph-ts"; - -export class ArbitrableHistory extends Entity { - constructor(id: Bytes) { - super(); - this.set("id", Value.fromBytes(id)); - } - - save(): void { - let id = this.get("id"); - assert(id != null, "Cannot save ArbitrableHistory entity without an ID"); - if (id) { - assert( - id.kind == ValueKind.BYTES, - `Entities of type ArbitrableHistory must have an ID of type Bytes but the id '${id.displayData()}' is of type ${id.displayKind()}` - ); - store.set("ArbitrableHistory", id.toBytes().toHexString(), this); - } - } - - static loadInBlock(id: Bytes): ArbitrableHistory | null { - return changetype( - store.get_in_block("ArbitrableHistory", id.toHexString()) - ); - } - - static load(id: Bytes): ArbitrableHistory | null { - return changetype( - store.get("ArbitrableHistory", id.toHexString()) - ); - } - - get id(): Bytes { - let value = this.get("id"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBytes(); - } - } - - set id(value: Bytes) { - this.set("id", Value.fromBytes(value)); - } - - get metaEvidence(): string { - let value = this.get("metaEvidence"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set metaEvidence(value: string) { - this.set("metaEvidence", Value.fromString(value)); - } - - get disputes(): DisputeLoader { - return new DisputeLoader( - "ArbitrableHistory", - this.get("id")!.toString(), - "disputes" - ); - } -} - -export class Dispute extends Entity { - constructor(id: string) { - super(); - this.set("id", Value.fromString(id)); - } - - save(): void { - let id = this.get("id"); - assert(id != null, "Cannot save Dispute entity without an ID"); - if (id) { - assert( - id.kind == ValueKind.STRING, - `Entities of type Dispute must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}` - ); - store.set("Dispute", id.toString(), this); - } - } - - static loadInBlock(id: string): Dispute | null { - return changetype(store.get_in_block("Dispute", id)); - } - - static load(id: string): Dispute | null { - return changetype(store.get("Dispute", id)); - } - - get id(): string { - let value = this.get("id"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set id(value: string) { - this.set("id", Value.fromString(value)); - } - - get disputeIDNumber(): BigInt { - let value = this.get("disputeIDNumber"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set disputeIDNumber(value: BigInt) { - this.set("disputeIDNumber", Value.fromBigInt(value)); - } - - get arbitrated(): Bytes { - let value = this.get("arbitrated"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBytes(); - } - } - - set arbitrated(value: Bytes) { - this.set("arbitrated", Value.fromBytes(value)); - } - - get metaEvidenceId(): BigInt { - let value = this.get("metaEvidenceId"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set metaEvidenceId(value: BigInt) { - this.set("metaEvidenceId", Value.fromBigInt(value)); - } - - get arbitrableHistory(): Bytes | null { - let value = this.get("arbitrableHistory"); - if (!value || value.kind == ValueKind.NULL) { - return null; - } else { - return value.toBytes(); - } - } - - set arbitrableHistory(value: Bytes | null) { - if (!value) { - this.unset("arbitrableHistory"); - } else { - this.set("arbitrableHistory", Value.fromBytes(value)); - } - } - - get ruling(): BigInt { - let value = this.get("ruling"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set ruling(value: BigInt) { - this.set("ruling", Value.fromBigInt(value)); - } - - get ruled(): boolean { - let value = this.get("ruled"); - if (!value || value.kind == ValueKind.NULL) { - return false; - } else { - return value.toBoolean(); - } - } - - set ruled(value: boolean) { - this.set("ruled", Value.fromBoolean(value)); - } - - get period(): string { - let value = this.get("period"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set period(value: string) { - this.set("period", Value.fromString(value)); - } - - get createdAtBlock(): BigInt { - let value = this.get("createdAtBlock"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set createdAtBlock(value: BigInt) { - this.set("createdAtBlock", Value.fromBigInt(value)); - } - - get court(): string { - let value = this.get("court"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set court(value: string) { - this.set("court", Value.fromString(value)); - } - - get periodDeadline(): BigInt { - let value = this.get("periodDeadline"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set periodDeadline(value: BigInt) { - this.set("periodDeadline", Value.fromBigInt(value)); - } - - get periodNotificationIndex(): BigInt { - let value = this.get("periodNotificationIndex"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set periodNotificationIndex(value: BigInt) { - this.set("periodNotificationIndex", Value.fromBigInt(value)); - } - - get lastPeriodChangeTs(): BigInt { - let value = this.get("lastPeriodChangeTs"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set lastPeriodChangeTs(value: BigInt) { - this.set("lastPeriodChangeTs", Value.fromBigInt(value)); - } - - get lastPeriodChangeBlock(): BigInt { - let value = this.get("lastPeriodChangeBlock"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set lastPeriodChangeBlock(value: BigInt) { - this.set("lastPeriodChangeBlock", Value.fromBigInt(value)); - } - - get nbChoices(): BigInt { - let value = this.get("nbChoices"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set nbChoices(value: BigInt) { - this.set("nbChoices", Value.fromBigInt(value)); - } - - get nbRounds(): BigInt { - let value = this.get("nbRounds"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set nbRounds(value: BigInt) { - this.set("nbRounds", Value.fromBigInt(value)); - } - - get currentRound(): Bytes { - let value = this.get("currentRound"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBytes(); - } - } - - set currentRound(value: Bytes) { - this.set("currentRound", Value.fromBytes(value)); - } - - get rounds(): RoundLoader { - return new RoundLoader("Dispute", this.get("id")!.toString(), "rounds"); - } - - get evidenceGroup(): EvidenceGroupLoader { - return new EvidenceGroupLoader( - "Dispute", - this.get("id")!.toString(), - "evidenceGroup" - ); - } -} - -export class Round extends Entity { - constructor(id: Bytes) { - super(); - this.set("id", Value.fromBytes(id)); - } - - save(): void { - let id = this.get("id"); - assert(id != null, "Cannot save Round entity without an ID"); - if (id) { - assert( - id.kind == ValueKind.BYTES, - `Entities of type Round must have an ID of type Bytes but the id '${id.displayData()}' is of type ${id.displayKind()}` - ); - store.set("Round", id.toBytes().toHexString(), this); - } - } - - static loadInBlock(id: Bytes): Round | null { - return changetype( - store.get_in_block("Round", id.toHexString()) - ); - } - - static load(id: Bytes): Round | null { - return changetype(store.get("Round", id.toHexString())); - } - - get id(): Bytes { - let value = this.get("id"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBytes(); - } - } - - set id(value: Bytes) { - this.set("id", Value.fromBytes(value)); - } - - get round(): BigInt { - let value = this.get("round"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set round(value: BigInt) { - this.set("round", Value.fromBigInt(value)); - } - - get isCurrentRound(): boolean { - let value = this.get("isCurrentRound"); - if (!value || value.kind == ValueKind.NULL) { - return false; - } else { - return value.toBoolean(); - } - } - - set isCurrentRound(value: boolean) { - this.set("isCurrentRound", Value.fromBoolean(value)); - } - - get dispute(): string { - let value = this.get("dispute"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set dispute(value: string) { - this.set("dispute", Value.fromString(value)); - } - - get jurors(): Array { - let value = this.get("jurors"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBytesArray(); - } - } - - set jurors(value: Array) { - this.set("jurors", Value.fromBytesArray(value)); - } -} - -export class UserDisputeInfo extends Entity { - constructor(id: string) { - super(); - this.set("id", Value.fromString(id)); - } - - save(): void { - let id = this.get("id"); - assert(id != null, "Cannot save UserDisputeInfo entity without an ID"); - if (id) { - assert( - id.kind == ValueKind.STRING, - `Entities of type UserDisputeInfo must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}` - ); - store.set("UserDisputeInfo", id.toString(), this); - } - } - - static loadInBlock(id: string): UserDisputeInfo | null { - return changetype( - store.get_in_block("UserDisputeInfo", id) - ); - } - - static load(id: string): UserDisputeInfo | null { - return changetype(store.get("UserDisputeInfo", id)); - } - - get id(): string { - let value = this.get("id"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set id(value: string) { - this.set("id", Value.fromString(value)); - } - - get dispute(): string { - let value = this.get("dispute"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set dispute(value: string) { - this.set("dispute", Value.fromString(value)); - } - - get juror(): string { - let value = this.get("juror"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set juror(value: string) { - this.set("juror", Value.fromString(value)); - } -} - -export class UserRoundInfo extends Entity { - constructor(id: string) { - super(); - this.set("id", Value.fromString(id)); - } - - save(): void { - let id = this.get("id"); - assert(id != null, "Cannot save UserRoundInfo entity without an ID"); - if (id) { - assert( - id.kind == ValueKind.STRING, - `Entities of type UserRoundInfo must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}` - ); - store.set("UserRoundInfo", id.toString(), this); - } - } - - static loadInBlock(id: string): UserRoundInfo | null { - return changetype( - store.get_in_block("UserRoundInfo", id) - ); - } - - static load(id: string): UserRoundInfo | null { - return changetype(store.get("UserRoundInfo", id)); - } - - get id(): string { - let value = this.get("id"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set id(value: string) { - this.set("id", Value.fromString(value)); - } - - get dispute(): string { - let value = this.get("dispute"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set dispute(value: string) { - this.set("dispute", Value.fromString(value)); - } - - get drawNotificationIndex(): BigInt { - let value = this.get("drawNotificationIndex"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set drawNotificationIndex(value: BigInt) { - this.set("drawNotificationIndex", Value.fromBigInt(value)); - } - - get juror(): string { - let value = this.get("juror"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set juror(value: string) { - this.set("juror", Value.fromString(value)); - } - - get round(): Bytes { - let value = this.get("round"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBytes(); - } - } - - set round(value: Bytes) { - this.set("round", Value.fromBytes(value)); - } -} - -export class Counter extends Entity { - constructor(id: string) { - super(); - this.set("id", Value.fromString(id)); - } - - save(): void { - let id = this.get("id"); - assert(id != null, "Cannot save Counter entity without an ID"); - if (id) { - assert( - id.kind == ValueKind.STRING, - `Entities of type Counter must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}` - ); - store.set("Counter", id.toString(), this); - } - } - - static loadInBlock(id: string): Counter | null { - return changetype(store.get_in_block("Counter", id)); - } - - static load(id: string): Counter | null { - return changetype(store.get("Counter", id)); - } - - get id(): string { - let value = this.get("id"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set id(value: string) { - this.set("id", Value.fromString(value)); - } - - get counter(): BigInt { - let value = this.get("counter"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set counter(value: BigInt) { - this.set("counter", Value.fromBigInt(value)); - } -} - -export class Court extends Entity { - constructor(id: string) { - super(); - this.set("id", Value.fromString(id)); - } - - save(): void { - let id = this.get("id"); - assert(id != null, "Cannot save Court entity without an ID"); - if (id) { - assert( - id.kind == ValueKind.STRING, - `Entities of type Court must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}` - ); - store.set("Court", id.toString(), this); - } - } - - static loadInBlock(id: string): Court | null { - return changetype(store.get_in_block("Court", id)); - } - - static load(id: string): Court | null { - return changetype(store.get("Court", id)); - } - - get id(): string { - let value = this.get("id"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set id(value: string) { - this.set("id", Value.fromString(value)); - } - - get timesPerPeriod(): Array | null { - let value = this.get("timesPerPeriod"); - if (!value || value.kind == ValueKind.NULL) { - return null; - } else { - return value.toBigIntArray(); - } - } - - set timesPerPeriod(value: Array | null) { - if (!value) { - this.unset("timesPerPeriod"); - } else { - this.set("timesPerPeriod", Value.fromBigIntArray(>value)); - } - } - - get hiddenVotes(): boolean { - let value = this.get("hiddenVotes"); - if (!value || value.kind == ValueKind.NULL) { - return false; - } else { - return value.toBoolean(); - } - } - - set hiddenVotes(value: boolean) { - this.set("hiddenVotes", Value.fromBoolean(value)); - } - - get policy(): string | null { - let value = this.get("policy"); - if (!value || value.kind == ValueKind.NULL) { - return null; - } else { - return value.toString(); - } - } - - set policy(value: string | null) { - if (!value) { - this.unset("policy"); - } else { - this.set("policy", Value.fromString(value)); - } - } - - get name(): string | null { - let value = this.get("name"); - if (!value || value.kind == ValueKind.NULL) { - return null; - } else { - return value.toString(); - } - } - - set name(value: string | null) { - if (!value) { - this.unset("name"); - } else { - this.set("name", Value.fromString(value)); - } - } - - get description(): string | null { - let value = this.get("description"); - if (!value || value.kind == ValueKind.NULL) { - return null; - } else { - return value.toString(); - } - } - - set description(value: string | null) { - if (!value) { - this.unset("description"); - } else { - this.set("description", Value.fromString(value)); - } - } - - get summary(): string | null { - let value = this.get("summary"); - if (!value || value.kind == ValueKind.NULL) { - return null; - } else { - return value.toString(); - } - } - - set summary(value: string | null) { - if (!value) { - this.unset("summary"); - } else { - this.set("summary", Value.fromString(value)); - } - } - - get requiredSkills(): string | null { - let value = this.get("requiredSkills"); - if (!value || value.kind == ValueKind.NULL) { - return null; - } else { - return value.toString(); - } - } - - set requiredSkills(value: string | null) { - if (!value) { - this.unset("requiredSkills"); - } else { - this.set("requiredSkills", Value.fromString(value)); - } - } -} - -export class Draw extends Entity { - constructor(id: string) { - super(); - this.set("id", Value.fromString(id)); - } - - save(): void { - let id = this.get("id"); - assert(id != null, "Cannot save Draw entity without an ID"); - if (id) { - assert( - id.kind == ValueKind.STRING, - `Entities of type Draw must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}` - ); - store.set("Draw", id.toString(), this); - } - } - - static loadInBlock(id: string): Draw | null { - return changetype(store.get_in_block("Draw", id)); - } - - static load(id: string): Draw | null { - return changetype(store.get("Draw", id)); - } - - get id(): string { - let value = this.get("id"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set id(value: string) { - this.set("id", Value.fromString(value)); - } - - get address(): Bytes { - let value = this.get("address"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBytes(); - } - } - - set address(value: Bytes) { - this.set("address", Value.fromBytes(value)); - } - - get appeal(): BigInt { - let value = this.get("appeal"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set appeal(value: BigInt) { - this.set("appeal", Value.fromBigInt(value)); - } - - get disputeID(): BigInt { - let value = this.get("disputeID"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set disputeID(value: BigInt) { - this.set("disputeID", Value.fromBigInt(value)); - } - - get voteID(): BigInt { - let value = this.get("voteID"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set voteID(value: BigInt) { - this.set("voteID", Value.fromBigInt(value)); - } -} - -export class TokenAndETHShift extends Entity { - constructor(id: string) { - super(); - this.set("id", Value.fromString(id)); - } - - save(): void { - let id = this.get("id"); - assert(id != null, "Cannot save TokenAndETHShift entity without an ID"); - if (id) { - assert( - id.kind == ValueKind.STRING, - `Entities of type TokenAndETHShift must have an ID of type String but the id '${id.displayData()}' is of type ${id.displayKind()}` - ); - store.set("TokenAndETHShift", id.toString(), this); - } - } - - static loadInBlock(id: string): TokenAndETHShift | null { - return changetype( - store.get_in_block("TokenAndETHShift", id) - ); - } - - static load(id: string): TokenAndETHShift | null { - return changetype( - store.get("TokenAndETHShift", id) - ); - } - - get id(): string { - let value = this.get("id"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set id(value: string) { - this.set("id", Value.fromString(value)); - } - - get ETHAmount(): BigInt { - let value = this.get("ETHAmount"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set ETHAmount(value: BigInt) { - this.set("ETHAmount", Value.fromBigInt(value)); - } - - get address(): Bytes { - let value = this.get("address"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBytes(); - } - } - - set address(value: Bytes) { - this.set("address", Value.fromBytes(value)); - } - - get disputeID(): BigInt { - let value = this.get("disputeID"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set disputeID(value: BigInt) { - this.set("disputeID", Value.fromBigInt(value)); - } - - get tokenAmount(): BigInt { - let value = this.get("tokenAmount"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set tokenAmount(value: BigInt) { - this.set("tokenAmount", Value.fromBigInt(value)); - } -} - -export class EvidenceGroup extends Entity { - constructor(id: Bytes) { - super(); - this.set("id", Value.fromBytes(id)); - } - - save(): void { - let id = this.get("id"); - assert(id != null, "Cannot save EvidenceGroup entity without an ID"); - if (id) { - assert( - id.kind == ValueKind.BYTES, - `Entities of type EvidenceGroup must have an ID of type Bytes but the id '${id.displayData()}' is of type ${id.displayKind()}` - ); - store.set("EvidenceGroup", id.toBytes().toHexString(), this); - } - } - - static loadInBlock(id: Bytes): EvidenceGroup | null { - return changetype( - store.get_in_block("EvidenceGroup", id.toHexString()) - ); - } - - static load(id: Bytes): EvidenceGroup | null { - return changetype( - store.get("EvidenceGroup", id.toHexString()) - ); - } - - get id(): Bytes { - let value = this.get("id"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBytes(); - } - } - - set id(value: Bytes) { - this.set("id", Value.fromBytes(value)); - } - - get dispute(): string | null { - let value = this.get("dispute"); - if (!value || value.kind == ValueKind.NULL) { - return null; - } else { - return value.toString(); - } - } - - set dispute(value: string | null) { - if (!value) { - this.unset("dispute"); - } else { - this.set("dispute", Value.fromString(value)); - } - } - - get length(): BigInt { - let value = this.get("length"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set length(value: BigInt) { - this.set("length", Value.fromBigInt(value)); - } - - get evidence(): EvidenceLoader { - return new EvidenceLoader( - "EvidenceGroup", - this.get("id")!.toString(), - "evidence" - ); - } -} - -export class Evidence extends Entity { - constructor(id: Bytes) { - super(); - this.set("id", Value.fromBytes(id)); - } - - save(): void { - let id = this.get("id"); - assert(id != null, "Cannot save Evidence entity without an ID"); - if (id) { - assert( - id.kind == ValueKind.BYTES, - `Entities of type Evidence must have an ID of type Bytes but the id '${id.displayData()}' is of type ${id.displayKind()}` - ); - store.set("Evidence", id.toBytes().toHexString(), this); - } - } - - static loadInBlock(id: Bytes): Evidence | null { - return changetype( - store.get_in_block("Evidence", id.toHexString()) - ); - } - - static load(id: Bytes): Evidence | null { - return changetype(store.get("Evidence", id.toHexString())); - } - - get id(): Bytes { - let value = this.get("id"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBytes(); - } - } - - set id(value: Bytes) { - this.set("id", Value.fromBytes(value)); - } - - get group(): Bytes { - let value = this.get("group"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBytes(); - } - } - - set group(value: Bytes) { - this.set("group", Value.fromBytes(value)); - } - - get creationTime(): BigInt { - let value = this.get("creationTime"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBigInt(); - } - } - - set creationTime(value: BigInt) { - this.set("creationTime", Value.fromBigInt(value)); - } - - get URI(): string { - let value = this.get("URI"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toString(); - } - } - - set URI(value: string) { - this.set("URI", Value.fromString(value)); - } - - get sender(): Bytes { - let value = this.get("sender"); - if (!value || value.kind == ValueKind.NULL) { - throw new Error("Cannot return null for a required field."); - } else { - return value.toBytes(); - } - } - - set sender(value: Bytes) { - this.set("sender", Value.fromBytes(value)); - } -} - -export class DisputeLoader extends Entity { - _entity: string; - _field: string; - _id: string; - - constructor(entity: string, id: string, field: string) { - super(); - this._entity = entity; - this._id = id; - this._field = field; - } - - load(): Dispute[] { - let value = store.loadRelated(this._entity, this._id, this._field); - return changetype(value); - } -} - -export class RoundLoader extends Entity { - _entity: string; - _field: string; - _id: string; - - constructor(entity: string, id: string, field: string) { - super(); - this._entity = entity; - this._id = id; - this._field = field; - } - - load(): Round[] { - let value = store.loadRelated(this._entity, this._id, this._field); - return changetype(value); - } -} - -export class EvidenceGroupLoader extends Entity { - _entity: string; - _field: string; - _id: string; - - constructor(entity: string, id: string, field: string) { - super(); - this._entity = entity; - this._id = id; - this._field = field; - } - - load(): EvidenceGroup[] { - let value = store.loadRelated(this._entity, this._id, this._field); - return changetype(value); - } -} - -export class EvidenceLoader extends Entity { - _entity: string; - _field: string; - _id: string; - - constructor(entity: string, id: string, field: string) { - super(); - this._entity = entity; - this._id = id; - this._field = field; - } - - load(): Evidence[] { - let value = store.loadRelated(this._entity, this._id, this._field); - return changetype(value); - } -} diff --git a/generated/templates.ts b/generated/templates.ts deleted file mode 100644 index 3313179..0000000 --- a/generated/templates.ts +++ /dev/null @@ -1,21 +0,0 @@ -// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. - -import { - Address, - DataSourceTemplate, - DataSourceContext -} from "@graphprotocol/graph-ts"; - -export class Arbitrable extends DataSourceTemplate { - static create(address: Address): void { - DataSourceTemplate.create("Arbitrable", [address.toHex()]); - } - - static createWithContext(address: Address, context: DataSourceContext): void { - DataSourceTemplate.createWithContext( - "Arbitrable", - [address.toHex()], - context - ); - } -} diff --git a/generated/templates/Arbitrable/Arbitrable.ts b/generated/templates/Arbitrable/Arbitrable.ts deleted file mode 100644 index 23af4d2..0000000 --- a/generated/templates/Arbitrable/Arbitrable.ts +++ /dev/null @@ -1,231 +0,0 @@ -// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. - -import { - ethereum, - JSONValue, - TypedMap, - Entity, - Bytes, - Address, - BigInt -} from "@graphprotocol/graph-ts"; - -export class MetaEvidence extends ethereum.Event { - get params(): MetaEvidence__Params { - return new MetaEvidence__Params(this); - } -} - -export class MetaEvidence__Params { - _event: MetaEvidence; - - constructor(event: MetaEvidence) { - this._event = event; - } - - get _metaEvidenceID(): BigInt { - return this._event.parameters[0].value.toBigInt(); - } - - get _evidence(): string { - return this._event.parameters[1].value.toString(); - } -} - -export class Dispute extends ethereum.Event { - get params(): Dispute__Params { - return new Dispute__Params(this); - } -} - -export class Dispute__Params { - _event: Dispute; - - constructor(event: Dispute) { - this._event = event; - } - - get _arbitrator(): Address { - return this._event.parameters[0].value.toAddress(); - } - - get _disputeID(): BigInt { - return this._event.parameters[1].value.toBigInt(); - } - - get _metaEvidenceID(): BigInt { - return this._event.parameters[2].value.toBigInt(); - } - - get _evidenceGroupID(): BigInt { - return this._event.parameters[3].value.toBigInt(); - } -} - -export class Evidence extends ethereum.Event { - get params(): Evidence__Params { - return new Evidence__Params(this); - } -} - -export class Evidence__Params { - _event: Evidence; - - constructor(event: Evidence) { - this._event = event; - } - - get _arbitrator(): Address { - return this._event.parameters[0].value.toAddress(); - } - - get _evidenceGroupID(): BigInt { - return this._event.parameters[1].value.toBigInt(); - } - - get _party(): Address { - return this._event.parameters[2].value.toAddress(); - } - - get _evidence(): string { - return this._event.parameters[3].value.toString(); - } -} - -export class Ruling extends ethereum.Event { - get params(): Ruling__Params { - return new Ruling__Params(this); - } -} - -export class Ruling__Params { - _event: Ruling; - - constructor(event: Ruling) { - this._event = event; - } - - get _arbitrator(): Address { - return this._event.parameters[0].value.toAddress(); - } - - get _disputeID(): BigInt { - return this._event.parameters[1].value.toBigInt(); - } - - get _ruling(): BigInt { - return this._event.parameters[2].value.toBigInt(); - } -} - -export class Arbitrable extends ethereum.SmartContract { - static bind(address: Address): Arbitrable { - return new Arbitrable("Arbitrable", address); - } - - arbitratorExtraData(): Bytes { - let result = super.call( - "arbitratorExtraData", - "arbitratorExtraData():(bytes)", - [] - ); - - return result[0].toBytes(); - } - - try_arbitratorExtraData(): ethereum.CallResult { - let result = super.tryCall( - "arbitratorExtraData", - "arbitratorExtraData():(bytes)", - [] - ); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toBytes()); - } - - arbitrator(): Address { - let result = super.call("arbitrator", "arbitrator():(address)", []); - - return result[0].toAddress(); - } - - try_arbitrator(): ethereum.CallResult
{ - let result = super.tryCall("arbitrator", "arbitrator():(address)", []); - if (result.reverted) { - return new ethereum.CallResult(); - } - let value = result.value; - return ethereum.CallResult.fromValue(value[0].toAddress()); - } -} - -export class RuleCall extends ethereum.Call { - get inputs(): RuleCall__Inputs { - return new RuleCall__Inputs(this); - } - - get outputs(): RuleCall__Outputs { - return new RuleCall__Outputs(this); - } -} - -export class RuleCall__Inputs { - _call: RuleCall; - - constructor(call: RuleCall) { - this._call = call; - } - - get _disputeID(): BigInt { - return this._call.inputValues[0].value.toBigInt(); - } - - get _ruling(): BigInt { - return this._call.inputValues[1].value.toBigInt(); - } -} - -export class RuleCall__Outputs { - _call: RuleCall; - - constructor(call: RuleCall) { - this._call = call; - } -} - -export class ConstructorCall extends ethereum.Call { - get inputs(): ConstructorCall__Inputs { - return new ConstructorCall__Inputs(this); - } - - get outputs(): ConstructorCall__Outputs { - return new ConstructorCall__Outputs(this); - } -} - -export class ConstructorCall__Inputs { - _call: ConstructorCall; - - constructor(call: ConstructorCall) { - this._call = call; - } - - get _arbitrator(): Address { - return this._call.inputValues[0].value.toAddress(); - } - - get _arbitratorExtraData(): Bytes { - return this._call.inputValues[1].value.toBytes(); - } -} - -export class ConstructorCall__Outputs { - _call: ConstructorCall; - - constructor(call: ConstructorCall) { - this._call = call; - } -} diff --git a/mappings/policy-registry.ts b/mappings/policy-registry.ts index 4da89c0..801e3fb 100644 --- a/mappings/policy-registry.ts +++ b/mappings/policy-registry.ts @@ -1,49 +1,38 @@ -import { PolicyUpdate as PolicyUpdateEvent } from "../generated/PolicyRegistry/PolicyRegistry" -import { Court } from "../generated/schema" -import { ipfs, log, json, Bytes } from "@graphprotocol/graph-ts"; +import { PolicyUpdate as PolicyUpdateEvent } from "../generated/PolicyRegistry/PolicyRegistry"; +import { Court, CourtMetadata } from "../generated/schema"; +import { json, Bytes, dataSource } from "@graphprotocol/graph-ts"; +import { CourtMetadata as CourtMetadataTemplate } from "../generated/templates"; export function handlePolicyUpdate(event: PolicyUpdateEvent): void { - let court = Court.load( - event.params._subcourtID.toString() - ) + let court = Court.load(event.params._subcourtID.toString()); if (!court) { - court = new Court( - event.params._subcourtID.toString() - ) + court = new Court(event.params._subcourtID.toString()); } - court.policy = event.params._policy - let jsonStr = ipfs.cat(event.params._policy); - if (!jsonStr) { - log.error('Failed to fetch policy #{} SubcourtID: {}', [event.params._policy, event.params._subcourtID.toString()]); - court.save(); - return; - } - - let jsonObjValueAndSuccess = json.try_fromBytes(jsonStr as Bytes); - if (!jsonObjValueAndSuccess.isOk) { - log.error(`Error getting json object value for policy #{} SubcourtID: {}`, [event.params._policy, event.params._subcourtID.toString()]); - court.save(); - return; - } - - let jsonObj = jsonObjValueAndSuccess.value.toObject(); - if (!jsonObj) { - log.error(`Error converting object value for policy #{} SubcourtID: {}`, [event.params._policy, event.params._subcourtID.toString()]); - court.save(); - return; - } + const ipfsHash = event.params._policy.replace("/ipfs/", ""); + court.policy = ipfsHash; + court.metadata = ipfsHash; - const name = jsonObj.get('name'); - court.name = name? name.toString() : null; + CourtMetadataTemplate.create(ipfsHash); + court.save(); +} - const description = jsonObj.get('description'); - court.description = description? description.toString() : null; +export function handleCourtMetadata(content: Bytes): void { + let courtMetadata = new CourtMetadata(dataSource.stringParam()); + const value = json.fromBytes(content).toObject(); - const requiredSkills = jsonObj.get('requiredSkills'); - court.requiredSkills = requiredSkills? requiredSkills.toString() : null; + if (value) { + const name = value.get("name"); + courtMetadata.name = name ? name.toString() : null; - court.save(); + const description = value.get("description"); + courtMetadata.description = description ? description.toString() : null; + const requiredSkills = value.get("requiredSkills"); + courtMetadata.requiredSkills = requiredSkills + ? requiredSkills.toString() + : null; + courtMetadata.save(); + } } diff --git a/package.json b/package.json index 9a94406..a6b0897 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,15 @@ { "devDependencies": { - "@graphprotocol/graph-cli": "^0.51.2", - "@graphprotocol/graph-ts": "^0.31.0", + "@graphprotocol/graph-cli": "^0.69.2", + "@graphprotocol/graph-ts": "^0.34.0", "mustache": "^4.2.0" }, "scripts": { "clean": "graph clean", "gen": "graph codegen --output-dir generated", "build": "graph build", - "deploy-gnosis": "mustache config/xdai.json subgraph.template.yaml > subgraph.yaml && yarn gen && graph deploy --studio kleros/kleros-display-gnosis", - "deploy-mainnet": "mustache config/mainnet.json subgraph.template.yaml > subgraph.yaml && yarn gen && graph deploy --studio kleros/kleros-display-mainnet", + "deploy-gnosis": "mustache config/xdai.json subgraph.template.yaml > subgraph.yaml && yarn gen && graph deploy --studio kleros-display-gnosis", + "deploy-mainnet": "mustache config/mainnet.json subgraph.template.yaml > subgraph.yaml && yarn gen && graph deploy --studio kleros-display-mainnet", "deploy-sepolia": "mustache config/sepolia.json subgraph.template.yaml > subgraph.yaml && yarn gen && graph deploy --studio kleros-display-sepolia" }, "packageManager": "yarn@1.22.21+sha1.1959a18351b811cdeedbd484a8f86c3cc3bbaf72" diff --git a/schema.graphql b/schema.graphql index 18a1cdb..2c0fc8d 100644 --- a/schema.graphql +++ b/schema.graphql @@ -66,9 +66,14 @@ type Court @entity { timesPerPeriod: [BigInt!] hiddenVotes: Boolean policy: String + summary: String + metadata: CourtMetadata +} + +type CourtMetadata @entity{ + id: ID! name: String description: String - summary: String requiredSkills: String } diff --git a/subgraph.template.yaml b/subgraph.template.yaml index 0f0bd07..67a5ddd 100644 --- a/subgraph.template.yaml +++ b/subgraph.template.yaml @@ -1,4 +1,4 @@ -specVersion: 0.0.5 +specVersion: 0.0.7 schema: file: ./schema.graphql features: @@ -87,3 +87,16 @@ templates: handler: handleEvidence - event: Ruling(indexed address,indexed uint256,uint256) handler: handleRuling + - name: CourtMetadata + kind: file/ipfs + mapping: + apiVersion: 0.0.7 + language: wasm/assemblyscript + file: ./mappings/policy-registry.ts + handler: handleCourtMetadata + entities: + - CourtMetadata + abis: + - name: PolicyRegistry + file: ./contracts/PolicyRegistry.json + diff --git a/subgraph.yaml b/subgraph.yaml deleted file mode 100644 index a7670a9..0000000 --- a/subgraph.yaml +++ /dev/null @@ -1,89 +0,0 @@ -specVersion: 0.0.5 -schema: - file: ./schema.graphql -features: - - ipfsOnEthereumContracts -dataSources: - - kind: ethereum - name: KlerosLiquid - network: mainnet - source: - address: "0x988b3A538b618C7A603e1c11Ab82Cd16dbE28069" - abi: KlerosLiquid - startBlock: 7303699 - mapping: - kind: ethereum/events - apiVersion: 0.0.7 - language: wasm/assemblyscript - entities: - - Draw - - DisputeCreation - - Counter - - AppealDecision - abis: - - name: KlerosLiquid - file: ./contracts/KlerosLiquid.json - eventHandlers: - - event: Draw(indexed address,indexed uint256,uint256,uint256) - handler: handleDraw - - event: DisputeCreation(indexed uint256,indexed address) - handler: handleDisputeCreation - - event: NewPeriod(indexed uint256,uint8) - handler: handleNewPeriod - - event: AppealDecision(indexed uint256,indexed address) - handler: handleAppealDecision - - event: TokenAndETHShift(indexed address,indexed uint256,int256,int256) - handler: handleTokenAndETHShift - callHandlers: - - function: "createSubcourt(uint96,bool,uint256,uint256,uint256,uint256,uint256[4],uint256)" - handler: CreateSubcourtCallHandler - - function: "changeSubcourtTimesPerPeriod(uint96,uint256[4])" - handler: ChangeSubcourtTimesPerPeriodCallHandler - file: ./mappings/kleros-liquid.ts - - kind: ethereum - name: PolicyRegistry - network: mainnet - source: - address: "0xcf1f07713d5193fae5c1653c9f61953d048bece4" - abi: PolicyRegistry - startBlock: 10175794 - mapping: - kind: ethereum/events - apiVersion: 0.0.7 - language: wasm/assemblyscript - entities: - - PolicyUpdate - abis: - - name: PolicyRegistry - file: ./contracts/PolicyRegistry.json - eventHandlers: - - event: PolicyUpdate(indexed uint256,string) - handler: handlePolicyUpdate - file: ./mappings/policy-registry.ts -templates: - - name: Arbitrable - kind: ethereum/contract - network: mainnet - source: - abi: Arbitrable - mapping: - kind: ethereum/events - apiVersion: 0.0.7 - language: wasm/assemblyscript - file: ./mappings/arbitrable.ts - entities: - - Dispute - - EvidenceGroup - - Evidence - abis: - - name: Arbitrable - file: ./contracts/Arbitrable.json - eventHandlers: - - event: MetaEvidence(indexed uint256,string) - handler: handleMetaEvidence - - event: Dispute(indexed address,indexed uint256,uint256,uint256) - handler: handleDispute - - event: Evidence(indexed address,indexed uint256,indexed address,string) - handler: handleEvidence - - event: Ruling(indexed address,indexed uint256,uint256) - handler: handleRuling diff --git a/yarn.lock b/yarn.lock index 98c1c9b..8a2b25e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -219,13 +219,15 @@ graphql-import-node "^0.0.5" js-yaml "^4.1.0" -"@graphprotocol/graph-cli@^0.51.2": - version "0.51.2" - resolved "https://registry.yarnpkg.com/@graphprotocol/graph-cli/-/graph-cli-0.51.2.tgz#ad333a5110b4835e648c3205b46a2582653d1966" - integrity sha512-C+h6HLeYhsNFpV3TmVz1j6MMYA0K81+iInysFdnqX2J1ZwH7ldiHZyJuNq4ajxZlXhBL7+UV9zx7id6OSaj6GA== +"@graphprotocol/graph-cli@^0.69.2": + version "0.69.2" + resolved "https://registry.yarnpkg.com/@graphprotocol/graph-cli/-/graph-cli-0.69.2.tgz#f0c7c62994c691eac0a463559a6cf4f0451f36c4" + integrity sha512-zAlnhNpxLReoqsY3MNJdD1r4/bQqIaN2HgVv2jUlt/Tydi41hMsg8jQg542JZabObcQ+BdpQkMmspuuDtwuq+g== dependencies: "@float-capital/float-subgraph-uncrashable" "^0.0.0-alpha.4" "@oclif/core" "2.8.6" + "@oclif/plugin-autocomplete" "^2.3.6" + "@oclif/plugin-not-found" "^2.4.0" "@whatwg-node/fetch" "^0.8.4" assemblyscript "0.19.23" binary-install-raw "0.0.13" @@ -236,14 +238,13 @@ dockerode "2.5.8" fs-extra "9.1.0" glob "9.3.5" - gluegun "5.1.2" + gluegun "5.1.6" graphql "15.5.0" immutable "4.2.1" ipfs-http-client "55.0.0" jayson "4.0.0" js-yaml "3.14.1" - prettier "1.19.1" - request "2.88.2" + prettier "3.0.3" semver "7.4.0" sync-request "6.1.0" tmp-promise "3.0.3" @@ -251,10 +252,10 @@ which "2.0.2" yaml "1.10.2" -"@graphprotocol/graph-ts@^0.31.0": - version "0.31.0" - resolved "https://registry.yarnpkg.com/@graphprotocol/graph-ts/-/graph-ts-0.31.0.tgz#730668c0369828b31bef81e8d9bc66b9b48e3480" - integrity sha512-xreRVM6ho2BtolyOh2flDkNoGZximybnzUnF53zJVp0+Ed0KnAlO1/KOCUYw06euVI9tk0c9nA2Z/D5SIQV2Rg== +"@graphprotocol/graph-ts@^0.34.0": + version "0.34.0" + resolved "https://registry.yarnpkg.com/@graphprotocol/graph-ts/-/graph-ts-0.34.0.tgz#ca47398295b114f25b412faa364b98af31fa2bb7" + integrity sha512-gnhjai65AV4YMYe9QHGz+HP/jdzI54z/nOfEXZFfh6m987EP2iy3ycLXrTi+ahcogHH7vtoWFdXbUzZbE8bCAg== dependencies: assemblyscript "0.19.10" @@ -360,6 +361,58 @@ wordwrap "^1.0.0" wrap-ansi "^7.0.0" +"@oclif/core@^2.15.0": + version "2.16.0" + resolved "https://registry.yarnpkg.com/@oclif/core/-/core-2.16.0.tgz#e6f3c6c359d4313a15403d8652bbdd0e99ce4b3a" + integrity sha512-dL6atBH0zCZl1A1IXCKJgLPrM/wR7K+Wi401E/IvqsK8m2iCHW+0TEOGrans/cuN3oTW+uxIyJFHJ8Im0k4qBw== + dependencies: + "@types/cli-progress" "^3.11.0" + ansi-escapes "^4.3.2" + ansi-styles "^4.3.0" + cardinal "^2.1.1" + chalk "^4.1.2" + clean-stack "^3.0.1" + cli-progress "^3.12.0" + debug "^4.3.4" + ejs "^3.1.8" + get-package-type "^0.1.0" + globby "^11.1.0" + hyperlinker "^1.0.0" + indent-string "^4.0.0" + is-wsl "^2.2.0" + js-yaml "^3.14.1" + natural-orderby "^2.0.3" + object-treeify "^1.1.33" + password-prompt "^1.1.2" + slice-ansi "^4.0.0" + string-width "^4.2.3" + strip-ansi "^6.0.1" + supports-color "^8.1.1" + supports-hyperlinks "^2.2.0" + ts-node "^10.9.1" + tslib "^2.5.0" + widest-line "^3.1.0" + wordwrap "^1.0.0" + wrap-ansi "^7.0.0" + +"@oclif/plugin-autocomplete@^2.3.6": + version "2.3.10" + resolved "https://registry.yarnpkg.com/@oclif/plugin-autocomplete/-/plugin-autocomplete-2.3.10.tgz#787f6208cdfe10ffc68ad89e9e7f1a7ad0e8987f" + integrity sha512-Ow1AR8WtjzlyCtiWWPgzMyT8SbcDJFr47009riLioHa+MHX2BCDtVn2DVnN/E6b9JlPV5ptQpjefoRSNWBesmg== + dependencies: + "@oclif/core" "^2.15.0" + chalk "^4.1.0" + debug "^4.3.4" + +"@oclif/plugin-not-found@^2.4.0": + version "2.4.3" + resolved "https://registry.yarnpkg.com/@oclif/plugin-not-found/-/plugin-not-found-2.4.3.tgz#3d24095adb0f3876cb4bcfdfdcb775086cf6d4b5" + integrity sha512-nIyaR4y692frwh7wIHZ3fb+2L6XEecQwRDIb4zbEam0TvaVmBQWZoColQyWA84ljFBPZ8XWiQyTz+ixSwdRkqg== + dependencies: + "@oclif/core" "^2.15.0" + chalk "^4" + fast-levenshtein "^3.0.0" + "@peculiar/asn1-schema@^2.3.8": version "2.3.8" resolved "https://registry.yarnpkg.com/@peculiar/asn1-schema/-/asn1-schema-2.3.8.tgz#04b38832a814e25731232dd5be883460a156da3b" @@ -623,16 +676,6 @@ acorn@^8.4.1: resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.3.tgz#71e0b14e13a4ec160724b38fb7b0f233b1b81d7a" integrity sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg== -ajv@^6.12.3: - version "6.12.6" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" - integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== - dependencies: - fast-deep-equal "^3.1.1" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.4.1" - uri-js "^4.2.2" - ansi-colors@^4.1.1: version "4.1.3" resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b" @@ -734,13 +777,6 @@ asap@~2.0.6: resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" integrity sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA== -asn1@~0.2.3: - version "0.2.6" - resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.6.tgz#0d3a7bb6e64e02a90c0303b31f292868ea09a08d" - integrity sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ== - dependencies: - safer-buffer "~2.1.0" - asn1js@^3.0.1, asn1js@^3.0.5: version "3.0.5" resolved "https://registry.yarnpkg.com/asn1js/-/asn1js-3.0.5.tgz#5ea36820443dbefb51cc7f88a2ebb5b462114f38" @@ -767,10 +803,10 @@ assemblyscript@0.19.23: long "^5.2.0" source-map-support "^0.5.20" -assert-plus@1.0.0, assert-plus@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" - integrity sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw== +astral-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" + integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== async@^3.2.3: version "3.2.5" @@ -787,16 +823,6 @@ at-least-node@^1.0.0: resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2" integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== -aws-sign2@~0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" - integrity sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA== - -aws4@^1.8.0: - version "1.12.0" - resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.12.0.tgz#ce1c9d143389679e253b314241ea9aa5cec980d3" - integrity sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg== - axios@^0.21.1, axios@^0.21.4: version "0.21.4" resolved "https://registry.yarnpkg.com/axios/-/axios-0.21.4.tgz#c67b90dc0568e5c1cf2b0b858c43ba28e2eda575" @@ -821,13 +847,6 @@ base64-js@^1.3.1: resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== -bcrypt-pbkdf@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" - integrity sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w== - dependencies: - tweetnacl "^0.14.3" - binary-extensions@^2.0.0: version "2.3.0" resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.3.0.tgz#f6e14a97858d327252200242d4ccfe522c445522" @@ -1041,7 +1060,7 @@ chalk@^2.4.2: escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chalk@^4.0.2, chalk@^4.1.2: +chalk@^4, chalk@^4.0.2, chalk@^4.1.0, chalk@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== @@ -1152,7 +1171,7 @@ colors@1.4.0, colors@^1.1.2: resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78" integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA== -combined-stream@^1.0.6, combined-stream@~1.0.6: +combined-stream@^1.0.6: version "1.0.8" resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== @@ -1179,11 +1198,6 @@ concat-stream@^1.6.0, concat-stream@^1.6.2, concat-stream@~1.6.2: readable-stream "^2.2.2" typedarray "^0.0.6" -core-util-is@1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - integrity sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ== - core-util-is@~1.0.0: version "1.0.3" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85" @@ -1237,13 +1251,6 @@ cross-spawn@7.0.3, cross-spawn@^7.0.3: shebang-command "^2.0.0" which "^2.0.1" -dashdash@^1.12.0: - version "1.14.1" - resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" - integrity sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g== - dependencies: - assert-plus "^1.0.0" - debug@4.3.4, debug@^4.1.1, debug@^4.3.1, debug@^4.3.4: version "4.3.4" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" @@ -1331,20 +1338,12 @@ dockerode@2.5.8: docker-modem "^1.0.8" tar-fs "~1.16.3" -ecc-jsbn@~0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" - integrity sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw== - dependencies: - jsbn "~0.1.0" - safer-buffer "^2.1.0" - -ejs@3.1.6: - version "3.1.6" - resolved "https://registry.yarnpkg.com/ejs/-/ejs-3.1.6.tgz#5bfd0a0689743bb5268b3550cceeebbc1702822a" - integrity sha512-9lt9Zse4hPucPkoP7FHDF0LQAlGyF9JVpnClFLFH3aSSbxmyoqINRpp/9wePWJTUl4KOQwRL72Iw3InHPDkoGw== +ejs@3.1.8: + version "3.1.8" + resolved "https://registry.yarnpkg.com/ejs/-/ejs-3.1.8.tgz#758d32910c78047585c7ef1f92f9ee041c1c190b" + integrity sha512-/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ== dependencies: - jake "^10.6.1" + jake "^10.8.5" ejs@^3.1.8: version "3.1.10" @@ -1538,21 +1537,6 @@ execa@5.1.1: signal-exit "^3.0.3" strip-final-newline "^2.0.0" -extend@~3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" - integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== - -extsprintf@1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" - integrity sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g== - -extsprintf@^1.2.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.1.tgz#8d172c064867f235c0c84a596806d279bf4bcc07" - integrity sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA== - eyes@^0.1.8: version "0.1.8" resolved "https://registry.yarnpkg.com/eyes/-/eyes-0.1.8.tgz#62cf120234c683785d902348a800ef3e0cc20bc0" @@ -1563,11 +1547,6 @@ fast-decode-uri-component@^1.0.1: resolved "https://registry.yarnpkg.com/fast-decode-uri-component/-/fast-decode-uri-component-1.0.1.tgz#46f8b6c22b30ff7a81357d4f59abfae938202543" integrity sha512-WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg== -fast-deep-equal@^3.1.1: - version "3.1.3" - resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" - integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== - fast-fifo@^1.0.0: version "1.3.2" resolved "https://registry.yarnpkg.com/fast-fifo/-/fast-fifo-1.3.2.tgz#286e31de96eb96d38a97899815740ba2a4f3640c" @@ -1584,10 +1563,12 @@ fast-glob@^3.2.9: merge2 "^1.3.0" micromatch "^4.0.4" -fast-json-stable-stringify@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" - integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== +fast-levenshtein@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-3.0.0.tgz#37b899ae47e1090e40e3fd2318e4d5f0142ca912" + integrity sha512-hKKNajm46uNmTlhHSyZkmToAc56uZJwYq7yrciZjqOxnlfQwERDQJmHPUp7m1m9wx8vgOe8IaCKZ5Kv2k1DdCQ== + dependencies: + fastest-levenshtein "^1.0.7" fast-querystring@^1.1.1: version "1.1.2" @@ -1603,6 +1584,11 @@ fast-url-parser@^1.1.3: dependencies: punycode "^1.3.2" +fastest-levenshtein@^1.0.7: + version "1.0.16" + resolved "https://registry.yarnpkg.com/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz#210e61b6ff181de91ea9b3d1b84fdedd47e034e5" + integrity sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg== + fastq@^1.6.0: version "1.17.1" resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.17.1.tgz#2a523f07a4e7b1e81a42b91b8bf2254107753b47" @@ -1629,11 +1615,6 @@ follow-redirects@^1.14.0: resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b" integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA== -forever-agent@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" - integrity sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw== - form-data@^2.2.0: version "2.5.1" resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.5.1.tgz#f2cbec57b5e59e23716e128fe44d4e5dd23895f4" @@ -1643,15 +1624,6 @@ form-data@^2.2.0: combined-stream "^1.0.6" mime-types "^2.1.12" -form-data@~2.3.2: - version "2.3.3" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6" - integrity sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.6" - mime-types "^2.1.12" - fs-constants@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad" @@ -1728,13 +1700,6 @@ get-stream@^6.0.0: resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== -getpass@^0.1.1: - version "0.1.7" - resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" - integrity sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng== - dependencies: - assert-plus "^1.0.0" - glob-parent@^5.1.2, glob-parent@~5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" @@ -1776,10 +1741,10 @@ globby@^11.1.0: merge2 "^1.4.1" slash "^3.0.0" -gluegun@5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/gluegun/-/gluegun-5.1.2.tgz#ffa0beda0fb6bbc089a867157b08602beae2c8cf" - integrity sha512-Cwx/8S8Z4YQg07a6AFsaGnnnmd8mN17414NcPS3OoDtZRwxgsvwRNJNg69niD6fDa8oNwslCG0xH7rEpRNNE/g== +gluegun@5.1.6: + version "5.1.6" + resolved "https://registry.yarnpkg.com/gluegun/-/gluegun-5.1.6.tgz#74ec13193913dc610f5c1a4039972c70c96a7bad" + integrity sha512-9zbi4EQWIVvSOftJWquWzr9gLX2kaDgPkNR5dYWbM53eVvCI3iKuxLlnKoHC0v4uPoq+Kr/+F569tjoFbA4DSA== dependencies: apisauce "^2.1.5" app-module-path "^2.2.0" @@ -1787,7 +1752,7 @@ gluegun@5.1.2: colors "1.4.0" cosmiconfig "7.0.1" cross-spawn "7.0.3" - ejs "3.1.6" + ejs "3.1.8" enquirer "2.3.6" execa "5.1.1" fs-jetpack "4.3.1" @@ -1839,19 +1804,6 @@ graphql@^16.6.0: resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.8.1.tgz#1930a965bef1170603702acdb68aedd3f3cf6f07" integrity sha512-59LZHPdGZVh695Ud9lRzPBVTtlX9ZCV150Er2W43ro37wVof0ctenSaskPPjN7lVTIN8mSZt8PHUNKZuNQUuxw== -har-schema@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" - integrity sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q== - -har-validator@~5.1.3: - version "5.1.5" - resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.5.tgz#1f0803b9f8cb20c0fa13822df1ecddb36bde1efd" - integrity sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w== - dependencies: - ajv "^6.12.3" - har-schema "^2.0.0" - has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" @@ -1929,15 +1881,6 @@ http-response-object@^3.0.1: dependencies: "@types/node" "^10.0.3" -http-signature@~1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" - integrity sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ== - dependencies: - assert-plus "^1.0.0" - jsprim "^1.2.2" - sshpk "^1.7.0" - human-signals@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" @@ -2176,11 +2119,6 @@ is-stream@^2.0.0: resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== -is-typedarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== - is-wsl@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" @@ -2213,11 +2151,6 @@ isomorphic-ws@^4.0.1: resolved "https://registry.yarnpkg.com/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz#55fd4cd6c5e6491e76dc125938dd863f5cd4f2dc" integrity sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w== -isstream@~0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" - integrity sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g== - it-all@^1.0.4: version "1.0.6" resolved "https://registry.yarnpkg.com/it-all/-/it-all-1.0.6.tgz#852557355367606295c4c3b7eff0136f07749335" @@ -2263,7 +2196,7 @@ it-to-stream@^1.0.0: p-fifo "^1.0.0" readable-stream "^3.6.0" -jake@^10.6.1, jake@^10.8.5: +jake@^10.8.5: version "10.8.7" resolved "https://registry.yarnpkg.com/jake/-/jake-10.8.7.tgz#63a32821177940c33f356e0ba44ff9d34e1c7d8f" integrity sha512-ZDi3aP+fG/LchyBzUM804VjddnwfSfsdeYkwt8NcbKRvo4rFkjhs456iLFn3k2ZUWvNe4i48WACDbza8fhq2+w== @@ -2316,27 +2249,12 @@ js-yaml@^4.1.0: dependencies: argparse "^2.0.1" -jsbn@~0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" - integrity sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg== - json-parse-even-better-errors@^2.3.0: version "2.3.1" resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== -json-schema-traverse@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" - integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== - -json-schema@0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.4.0.tgz#f7de4cf6efab838ebaeb3236474cbba5a1930ab5" - integrity sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA== - -json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1: +json-stringify-safe@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== @@ -2355,16 +2273,6 @@ jsonparse@^1.2.0: resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" integrity sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg== -jsprim@^1.2.2: - version "1.4.2" - resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.2.tgz#712c65533a15c878ba59e9ed5f0e26d5b77c5feb" - integrity sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw== - dependencies: - assert-plus "1.0.0" - extsprintf "1.3.0" - json-schema "0.4.0" - verror "1.10.0" - keccak@^3.0.0: version "3.0.4" resolved "https://registry.yarnpkg.com/keccak/-/keccak-3.0.4.tgz#edc09b89e633c0549da444432ecf062ffadee86d" @@ -2527,7 +2435,7 @@ mime-db@1.52.0: resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== -mime-types@^2.1.12, mime-types@~2.1.19: +mime-types@^2.1.12: version "2.1.35" resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== @@ -2713,11 +2621,6 @@ number-to-bn@1.7.0: bn.js "4.11.6" strip-hex-prefix "1.0.0" -oauth-sign@~0.9.0: - version "0.9.0" - resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" - integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== - object-assign@^4.1.0: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" @@ -2842,11 +2745,6 @@ pbkdf2@^3.0.17: safe-buffer "^5.0.1" sha.js "^2.4.8" -performance-now@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" - integrity sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow== - picocolors@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" @@ -2862,10 +2760,10 @@ pluralize@^8.0.0: resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-8.0.0.tgz#1a6fa16a38d12a1901e0320fa017051c539ce3b1" integrity sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA== -prettier@1.19.1: - version "1.19.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb" - integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew== +prettier@3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.3.tgz#432a51f7ba422d1469096c0fdc28e235db8f9643" + integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg== process-nextick-args@~2.0.0: version "2.0.1" @@ -2898,11 +2796,6 @@ protobufjs@^6.10.2: "@types/node" ">=13.7.0" long "^4.0.0" -psl@^1.1.28: - version "1.9.0" - resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7" - integrity sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag== - pump@^1.0.0: version "1.0.3" resolved "https://registry.yarnpkg.com/pump/-/pump-1.0.3.tgz#5dfe8311c33bbf6fc18261f9f34702c47c08a954" @@ -2916,11 +2809,6 @@ punycode@^1.3.2: resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" integrity sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ== -punycode@^2.1.0, punycode@^2.1.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5" - integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg== - pvtsutils@^1.3.2, pvtsutils@^1.3.5: version "1.3.5" resolved "https://registry.yarnpkg.com/pvtsutils/-/pvtsutils-1.3.5.tgz#b8705b437b7b134cd7fd858f025a23456f1ce910" @@ -2940,11 +2828,6 @@ qs@^6.4.0: dependencies: side-channel "^1.0.6" -qs@~6.5.2: - version "6.5.3" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.3.tgz#3aeeffc91967ef6e35c0e488ef46fb296ab76aad" - integrity sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA== - queue-microtask@^1.2.2: version "1.2.3" resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" @@ -3017,32 +2900,6 @@ redeyed@~2.1.0: dependencies: esprima "~4.0.0" -request@2.88.2: - version "2.88.2" - resolved "https://registry.yarnpkg.com/request/-/request-2.88.2.tgz#d73c918731cb5a87da047e207234146f664d12b3" - integrity sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw== - dependencies: - aws-sign2 "~0.7.0" - aws4 "^1.8.0" - caseless "~0.12.0" - combined-stream "~1.0.6" - extend "~3.0.2" - forever-agent "~0.6.1" - form-data "~2.3.2" - har-validator "~5.1.3" - http-signature "~1.2.0" - is-typedarray "~1.0.0" - isstream "~0.1.2" - json-stringify-safe "~5.0.1" - mime-types "~2.1.19" - oauth-sign "~0.9.0" - performance-now "^2.1.0" - qs "~6.5.2" - safe-buffer "^5.1.2" - tough-cookie "~2.5.0" - tunnel-agent "^0.6.0" - uuid "^3.3.2" - resolve-from@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" @@ -3112,7 +2969,7 @@ safe-buffer@~5.1.0, safe-buffer@~5.1.1: resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== -"safer-buffer@>= 2.1.2 < 3.0.0", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: +"safer-buffer@>= 2.1.2 < 3.0.0": version "2.1.2" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== @@ -3209,6 +3066,15 @@ slash@^3.0.0: resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== +slice-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" + integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== + dependencies: + ansi-styles "^4.0.0" + astral-regex "^2.0.0" + is-fullwidth-code-point "^3.0.0" + source-map-support@^0.5.20: version "0.5.21" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" @@ -3232,21 +3098,6 @@ sprintf-js@~1.0.2: resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== -sshpk@^1.7.0: - version "1.18.0" - resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.18.0.tgz#1663e55cddf4d688b86a46b77f0d5fe363aba028" - integrity sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ== - dependencies: - asn1 "~0.2.3" - assert-plus "^1.0.0" - bcrypt-pbkdf "^1.0.0" - dashdash "^1.12.0" - ecc-jsbn "~0.1.1" - getpass "^0.1.1" - jsbn "~0.1.0" - safer-buffer "^2.0.2" - tweetnacl "~0.14.0" - stream-to-it@^0.2.2: version "0.2.4" resolved "https://registry.yarnpkg.com/stream-to-it/-/stream-to-it-0.2.4.tgz#d2fd7bfbd4a899b4c0d6a7e6a533723af5749bd0" @@ -3448,14 +3299,6 @@ to-regex-range@^5.0.1: dependencies: is-number "^7.0.0" -tough-cookie@~2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2" - integrity sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g== - dependencies: - psl "^1.1.28" - punycode "^2.1.1" - tr46@~0.0.3: version "0.0.3" resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" @@ -3485,18 +3328,6 @@ tslib@^2.0.0, tslib@^2.3.1, tslib@^2.4.0, tslib@^2.5.0, tslib@^2.6.1, tslib@^2.6 resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== -tunnel-agent@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" - integrity sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w== - dependencies: - safe-buffer "^5.0.1" - -tweetnacl@^0.14.3, tweetnacl@~0.14.0: - version "0.14.5" - resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" - integrity sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA== - type-fest@^0.21.3: version "0.21.3" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" @@ -3524,13 +3355,6 @@ universalify@^2.0.0: resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.1.tgz#168efc2180964e6386d061e094df61afe239b18d" integrity sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw== -uri-js@^4.2.2: - version "4.4.1" - resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" - integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== - dependencies: - punycode "^2.1.0" - urlpattern-polyfill@^8.0.0: version "8.0.2" resolved "https://registry.yarnpkg.com/urlpattern-polyfill/-/urlpattern-polyfill-8.0.2.tgz#99f096e35eff8bf4b5a2aa7d58a1523d6ebc7ce5" @@ -3546,11 +3370,6 @@ util-deprecate@^1.0.1, util-deprecate@~1.0.1: resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== -uuid@^3.3.2: - version "3.4.0" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" - integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== - uuid@^8.3.2: version "8.3.2" resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" @@ -3566,15 +3385,6 @@ varint@^6.0.0: resolved "https://registry.yarnpkg.com/varint/-/varint-6.0.0.tgz#9881eb0ce8feaea6512439d19ddf84bf551661d0" integrity sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg== -verror@1.10.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" - integrity sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw== - dependencies: - assert-plus "^1.0.0" - core-util-is "1.0.2" - extsprintf "^1.2.0" - wcwidth@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8"