Skip to content

Commit

Permalink
Adds remaining distribution contract scripts (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-toth authored Sep 2, 2024
1 parent c0a491a commit daa00b0
Show file tree
Hide file tree
Showing 47 changed files with 705 additions and 50 deletions.
2 changes: 1 addition & 1 deletion operations/cancel-distribution-dev.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "cancel-distribution-dev" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = ["scripts/distribution/cancel-distribution.ts"]
Expand Down
2 changes: 1 addition & 1 deletion operations/cancel-distribution-live.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "cancel-distribution-live" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = ["scripts/distribution/cancel-distribution.ts"]
Expand Down
2 changes: 1 addition & 1 deletion operations/cancel-distribution-stage.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "cancel-distribution-stage" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = ["scripts/distribution/cancel-distribution.ts"]
Expand Down
4 changes: 2 additions & 2 deletions operations/deploy-distribution-dev.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "deploy-distribution-dev" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npm"]
command = "run"
args = ["deploy"]
Expand Down Expand Up @@ -43,7 +43,7 @@ job "deploy-distribution-dev" {
"owner":"{{.Data.data.DISTRIBUTION_OWNER_ADDRESS}}",
"pendingDistributions":{},
"previousDistributions":{},
"tokensDistributedPerSecond":"62800000000000000"
"tokensDistributedPerSecond":"54320142060000000"
}
{{end}}
Expand Down
4 changes: 2 additions & 2 deletions operations/deploy-distribution-live.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "deploy-distribution-live" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npm"]
command = "run"
args = ["deploy"]
Expand Down Expand Up @@ -43,7 +43,7 @@ job "deploy-distribution-live" {
"owner":"{{.Data.data.DISTRIBUTION_OWNER_ADDRESS}}",
"pendingDistributions":{},
"previousDistributions":{},
"tokensDistributedPerSecond":"62800000000000000"
"tokensDistributedPerSecond":"54320142060000000"
}
{{end}}
Expand Down
4 changes: 2 additions & 2 deletions operations/deploy-distribution-stage.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "deploy-distribution-stage" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npm"]
command = "run"
args = ["deploy"]
Expand Down Expand Up @@ -43,7 +43,7 @@ job "deploy-distribution-stage" {
"owner":"{{.Data.data.DISTRIBUTION_OWNER_ADDRESS}}",
"pendingDistributions":{},
"previousDistributions":{},
"tokensDistributedPerSecond":"62800000000000000"
"tokensDistributedPerSecond":"54320142060000000"
}
{{end}}
Expand Down
2 changes: 1 addition & 1 deletion operations/deploy-relay-registry-dev.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "deploy-relay-registry-dev" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npm"]
command = "run"
args = ["deploy"]
Expand Down
2 changes: 1 addition & 1 deletion operations/deploy-relay-registry-live.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "deploy-relay-registry-live" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npm"]
command = "run"
args = ["deploy"]
Expand Down
2 changes: 1 addition & 1 deletion operations/deploy-relay-registry-stage.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "deploy-relay-registry-stage" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npm"]
command = "run"
args = ["deploy"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "set-token-distribution-rate-dev" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = ["scripts/distribution/set-token-distribution-rate.ts"]
Expand All @@ -36,7 +36,7 @@ job "set-token-distribution-rate-dev" {
PHASE="dev"
CONSUL_IP="127.0.0.1"
CONSUL_PORT="8500"
TOKENS_DISTRIBUTED_PER_SECOND="95116000000000000"
TOKENS_DISTRIBUTED_PER_SECOND="54320142060000000"
DISTRIBUTION_ADDRESS_CONSUL_KEY="smart-contracts/dev/distribution-address"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "set-token-distribution-rate-live" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = ["scripts/distribution/set-token-distribution-rate.ts"]
Expand All @@ -36,7 +36,7 @@ job "set-token-distribution-rate-live" {
PHASE="live"
CONSUL_IP="127.0.0.1"
CONSUL_PORT="8500"
TOKENS_DISTRIBUTED_PER_SECOND="95116000000000000"
TOKENS_DISTRIBUTED_PER_SECOND="54320142060000000"
DISTRIBUTION_ADDRESS_CONSUL_KEY="smart-contracts/live/distribution-address"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "set-token-distribution-rate-stage" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = ["scripts/distribution/set-token-distribution-rate.ts"]
Expand All @@ -36,7 +36,7 @@ job "set-token-distribution-rate-stage" {
PHASE="stage"
CONSUL_IP="127.0.0.1"
CONSUL_PORT="8500"
TOKENS_DISTRIBUTED_PER_SECOND="95116000000000000"
TOKENS_DISTRIBUTED_PER_SECOND="54320142060000000"
DISTRIBUTION_ADDRESS_CONSUL_KEY="smart-contracts/stage/distribution-address"
}

Expand Down
2 changes: 1 addition & 1 deletion operations/evolve-distribution-dev.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "deploy-distribution-dev" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npm"]
command = "run"
args = ["evolve"]
Expand Down
2 changes: 1 addition & 1 deletion operations/evolve-distribution-live.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "deploy-distribution-live" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npm"]
command = "run"
args = ["evolve"]
Expand Down
2 changes: 1 addition & 1 deletion operations/evolve-distribution-stage.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "deploy-distribution-stage" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npm"]
command = "run"
args = ["evolve"]
Expand Down
2 changes: 1 addition & 1 deletion operations/evolve-relay-registry-dev.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "evolve-relay-registry-dev" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npm"]
command = "run"
args = ["evolve"]
Expand Down
2 changes: 1 addition & 1 deletion operations/evolve-relay-registry-live.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "evolve-relay-registry-live" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npm"]
command = "run"
args = ["evolve"]
Expand Down
2 changes: 1 addition & 1 deletion operations/evolve-relay-registry-stage.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "evolve-relay-registry-stage" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npm"]
command = "run"
args = ["evolve"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "relay-registry-toggle-family-requirement-dev" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "relay-registry-toggle-family-requirement-live" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "relay-registry-toggle-family-requirement-stage" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "relay-registry-toggle-registration-credits-requirement-dev" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "relay-registry-toggle-registration-credits-requirement-live" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "relay-registry-toggle-registration-credits-requirement-stage" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = [
Expand Down
2 changes: 1 addition & 1 deletion operations/remove-relays-dev.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "remove-relays-dev" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = ["scripts/relay-registry/remove-relays.ts"]
Expand Down
2 changes: 1 addition & 1 deletion operations/remove-relays-live.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "remove-relays-live" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = ["scripts/relay-registry/remove-relays.ts"]
Expand Down
2 changes: 1 addition & 1 deletion operations/remove-relays-stage.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "remove-relays-stage" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = ["scripts/relay-registry/remove-relays.ts"]
Expand Down
2 changes: 1 addition & 1 deletion operations/set-distribution-bonus-dev.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "set-distribution-bonus-dev" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = ["scripts/distribution/set-distribution-bonus.ts"]
Expand Down
2 changes: 1 addition & 1 deletion operations/set-distribution-bonus-live.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "set-distribution-bonus-live" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = ["scripts/distribution/set-distribution-bonus.ts"]
Expand Down
2 changes: 1 addition & 1 deletion operations/set-distribution-bonus-stage.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "set-distribution-bonus-stage" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = ["scripts/distribution/set-distribution-bonus.ts"]
Expand Down
2 changes: 1 addition & 1 deletion operations/set-distribution-multipliers-dev.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "set-distribution-multipliers-dev" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = ["scripts/distribution/set-multipliers.ts"]
Expand Down
2 changes: 1 addition & 1 deletion operations/set-distribution-multipliers-live.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "set-distribution-multipliers-live" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = ["scripts/distribution/set-multipliers.ts"]
Expand Down
2 changes: 1 addition & 1 deletion operations/set-distribution-multipliers-stage.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "set-distribution-multipliers-stage" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = ["scripts/distribution/set-multipliers.ts"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "set-previous-distribution-tracking-limit-dev" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = ["scripts/distribution/set-token-distribution-rate.ts"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "set-previous-distribution-tracking-limit-live" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = ["scripts/distribution/set-token-distribution-rate.ts"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ job "set-previous-distribution-tracking-limit-stage" {

config {
network_mode = "host"
image = "ghcr.io/ator-development/smart-contracts:0.3.2"
image = "ghcr.io/ator-development/smart-contracts:0.3.3"
entrypoint = ["npx"]
command = "ts-node"
args = ["scripts/distribution/set-token-distribution-rate.ts"]
Expand Down
6 changes: 3 additions & 3 deletions smartweave/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit daa00b0

Please sign in to comment.