Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docker/indexing-cutover-queries.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ begin;
truncate table tractor_snapshot_sow, tractor_snapshot_convert_up, tractor_execution_sow, tractor_execution_convert_up, tractor_order_sow, tractor_order_convert_up, tractor_execution, tractor_order;
insert into tractor_order ("blueprintHash", "orderType", "publisher", "data", "operatorPasteInstrs", "maxNonce", "startTime", "endTime", "signature", "publishedTimestamp", "publishedBlock", "beanTip", "cancelled", "lastExecutableSeason", "createdAt", "updatedAt") select "blueprintHash", "orderType"::text::public."enum_tractor_order_orderType", "publisher", "data", "operatorPasteInstrs", "maxNonce", "startTime", "endTime", "signature", "publishedTimestamp", "publishedBlock", "beanTip", "cancelled", "lastExecutableSeason", "createdAt", "updatedAt" from indexing_tractor_order;
insert into tractor_execution ("id", "blueprintHash", "nonce", "operator", "gasCostUsd", "tipUsd", "executedTimestamp", "executedBlock", "executedTxn", "createdAt", "updatedAt") select "id", "blueprintHash", "nonce", "operator", "gasCostUsd", "tipUsd", "executedTimestamp", "executedBlock", "executedTxn", "createdAt", "updatedAt" from indexing_tractor_execution;
insert into tractor_order_sow ("blueprintHash", "pintoSownCounter", "lastExecutedSeason", "orderComplete", "amountFunded", "cascadeAmountFunded", "sourceTokenIndices", "totalAmountToSow", "minAmountToSowPerSeason", "maxAmountToSowPerSeason", "minTemp", "maxPodlineLength", "maxGrownStalkPerBdv", "runBlocksAfterSunrise", "slippageRatio", "createdAt", "updatedAt", "blueprintVersion", "referralAddress") select "blueprintHash", "pintoSownCounter", "lastExecutedSeason", "orderComplete", "amountFunded", "cascadeAmountFunded", "sourceTokenIndices", "totalAmountToSow", "minAmountToSowPerSeason", "maxAmountToSowPerSeason", "minTemp", "maxPodlineLength", "maxGrownStalkPerBdv", "runBlocksAfterSunrise", "slippageRatio", "createdAt", "updatedAt", "blueprintVersion", "referralAddress" from indexing_tractor_order_sow;
insert into tractor_order_convert_up ("blueprintHash", "lastExecutedTimestamp", "beansLeftToConvert", "orderComplete", "amountFunded", "cascadeAmountFunded", "sourceTokenIndices", "totalBeanAmountToConvert", "minBeansConvertPerExecution", "maxBeansConvertPerExecution", "capAmountToBonusCapacity", "minTimeBetweenConverts", "minConvertBonusCapacity", "maxGrownStalkPerBdv", "grownStalkPerBdvBonusBid", "maxPriceToConvertUp", "minPriceToConvertUp", "seedDifference", "maxGrownStalkPerBdvPenalty", "slippageRatio", "lowStalkDeposits", "createdAt", "updatedAt") select "blueprintHash", "lastExecutedTimestamp", "beansLeftToConvert", "orderComplete", "amountFunded", "cascadeAmountFunded", "sourceTokenIndices", "totalBeanAmountToConvert", "minBeansConvertPerExecution", "maxBeansConvertPerExecution", "capAmountToBonusCapacity", "minTimeBetweenConverts", "minConvertBonusCapacity", "maxGrownStalkPerBdv", "grownStalkPerBdvBonusBid", "maxPriceToConvertUp", "minPriceToConvertUp", "seedDifference", "maxGrownStalkPerBdvPenalty", "slippageRatio", "lowStalkDeposits"::text::public."enum_tractor_order_convert_up_lowStalkDeposits", "createdAt", "updatedAt" from indexing_tractor_order_convert_up;
insert into tractor_order_sow ("blueprintHash", "pintoSownCounter", "lastExecutedSeason", "orderComplete", "amountFunded", "cascadeAmountFunded", "sourceTokenIndices", "totalAmountToSow", "minAmountToSowPerSeason", "maxAmountToSowPerSeason", "minTemp", "maxPodlineLength", "maxGrownStalkPerBdv", "runBlocksAfterSunrise", "slippageRatio", "createdAt", "updatedAt", "blueprintVersion", "referralAddress") select "blueprintHash", "pintoSownCounter", "lastExecutedSeason", "orderComplete", "amountFunded", "cascadeAmountFunded", "sourceTokenIndices", "totalAmountToSow", "minAmountToSowPerSeason", "maxAmountToSowPerSeason", "minTemp", "maxPodlineLength", "maxGrownStalkPerBdv", "runBlocksAfterSunrise", "slippageRatio", "createdAt", "updatedAt", "blueprintVersion"::text::public."enum_tractor_order_sow_blueprintVersion", "referralAddress" from indexing_tractor_order_sow;
insert into tractor_order_convert_up ("blueprintHash", "lastExecutedTimestamp", "beansLeftToConvert", "orderComplete", "amountFunded", "cascadeAmountFunded", "sourceTokenIndices", "totalBeanAmountToConvert", "minBeansConvertPerExecution", "maxBeansConvertPerExecution", "capAmountToBonusCapacity", "minTimeBetweenConverts", "minConvertBonusCapacity", "maxGrownStalkPerBdv", "grownStalkPerBdvBonusBid", "maxPriceToConvertUp", "minPriceToConvertUp", "seedDifference", "maxGrownStalkPerBdvPenalty", "slippageRatio", "lowStalkDeposits", "createdAt", "updatedAt", "blueprintVersion") select "blueprintHash", "lastExecutedTimestamp", "beansLeftToConvert", "orderComplete", "amountFunded", "cascadeAmountFunded", "sourceTokenIndices", "totalBeanAmountToConvert", "minBeansConvertPerExecution", "maxBeansConvertPerExecution", "capAmountToBonusCapacity", "minTimeBetweenConverts", "minConvertBonusCapacity", "maxGrownStalkPerBdv", "grownStalkPerBdvBonusBid", "maxPriceToConvertUp", "minPriceToConvertUp", "seedDifference", "maxGrownStalkPerBdvPenalty", "slippageRatio", "lowStalkDeposits"::text::public."enum_tractor_order_convert_up_lowStalkDeposits", "createdAt", "updatedAt", "blueprintVersion"::text::public."enum_tractor_order_convert_up_blueprintVersion" from indexing_tractor_order_convert_up;
insert into tractor_execution_sow ("id", "blueprintHash", "index", "beans", "pods", "placeInLine", "usedTokenIndices", "usedGrownStalkPerBdv", "referrer", "referrerPods", "referrerPlaceInLine", "refereePods", "refereePlaceInLine", "createdAt", "updatedAt") select "id", "blueprintHash", "index", "beans", "pods", "placeInLine", "usedTokenIndices", "usedGrownStalkPerBdv", "referrer", "referrerPods", "referrerPlaceInLine", "refereePods", "refereePlaceInLine", "createdAt", "updatedAt" from indexing_tractor_execution_sow;
insert into tractor_execution_convert_up ("id", "blueprintHash", "usedTokenIndices", "tokenFromAmounts", "tokenToAmounts", "beansConverted", "beanPriceBefore", "beanPriceAfter", "gsBonusStalk", "gsBonusBdv", "gsPenaltyStalk", "gsPenaltyBdv", "createdAt", "updatedAt") select "id", "blueprintHash", "usedTokenIndices", "tokenFromAmounts", "tokenToAmounts", "beansConverted", "beanPriceBefore", "beanPriceAfter", "gsBonusStalk", "gsBonusBdv", "gsPenaltyStalk", "gsPenaltyBdv", "createdAt", "updatedAt" from indexing_tractor_execution_convert_up;
insert into tractor_snapshot_sow ("id", "snapshotTimestamp", "snapshotBlock", "totalPintoSown", "totalPodsMinted", "totalCascadeFundedBelowTemp", "totalCascadeFundedAnyTemp", "totalTipsPaid", "currentMaxTip", "totalExecutions", "createdAt", "updatedAt", "season", "maxSowThisSeason", "uniquePublishers") select "id", "snapshotTimestamp", "snapshotBlock", "totalPintoSown", "totalPodsMinted", "totalCascadeFundedBelowTemp", "totalCascadeFundedAnyTemp", "totalTipsPaid", "currentMaxTip", "totalExecutions", "createdAt", "updatedAt", "season", "maxSowThisSeason", "uniquePublishers" from indexing_tractor_snapshot_sow;
Expand Down