Skip to content

Commit

Permalink
update package info/version. Change permissions to use constants in a…
Browse files Browse the repository at this point in the history
…ddresses.
  • Loading branch information
Tritium committed Jul 26, 2023
1 parent e56e15a commit 5b7ee4b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# 0.8.0
added andd dotmaps + permissions
# 0.6.0
Use new balancer deployments repo.
# 0.4.0
Expand Down
4 changes: 2 additions & 2 deletions bal_addresses/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from .addresses import AddrBook
from . permissions import BalPermissions
from .addresses import AddrBook, GITHUB_DEPLOYMENTS_RAW, GITHUB_DEPLOYMENTS_NICE, GITHUB_RAW_OUTPUTS, GITHUB_RAW_EXTRAS
from .permissions import BalPermissions
8 changes: 3 additions & 5 deletions bal_addresses/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from web3 import Web3
import requests
from dotmap import DotMap
from bal_addresses import AddrBook
from bal_addresses import AddrBook, GITHUB_DEPLOYMENTS_RAW, GITHUB_RAW_OUTPUTS
from collections import defaultdict
from munch import Munch

Expand All @@ -18,10 +18,8 @@ class NoResultError(Exception):

### Main class
class BalPermissions:
GITHUB_DEPLOYMENTS_RAW = "https://raw.githubusercontent.com/balancer/balancer-deployments/master"
## TODO switch back to main branch
#GITHUB_RAW_OUTPUTS = "https://raw.githubusercontent.com/BalancerMaxis/bal_addresses/main/outputs"
GITHUB_RAW_OUTPUTS = "https://raw.githubusercontent.com/BalancerMaxis/bal_addresses/generate_permissions_jsons/outputs"


### Errors
Expand All @@ -33,8 +31,8 @@ class NoResultError(Exception):

def __init__(self, chain):
self.chain = chain
self.active_permissions_by_action_id = requests.get(f"{self.GITHUB_RAW_OUTPUTS}/permissions/active/{chain}.json").json()
self.action_ids_by_contract_by_deployment = requests.get(f"{self.GITHUB_DEPLOYMENTS_RAW}/action-ids/{chain}/action-ids.json").json()
self.active_permissions_by_action_id = requests.get(f"{GITHUB_RAW_OUTPUTS}/permissions/active/{chain}.json").json()
self.action_ids_by_contract_by_deployment = requests.get(f"{GITHUB_DEPLOYMENTS_RAW}/action-ids/{chain}/action-ids.json").json()

# Define
self.paths_by_action_id = defaultdict(set)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

VERSION = '0.7.0'
VERSION = '0.8.0'
DESCRIPTION = 'Balancer Maxi Addressbook'
LONG_DESCRIPTION = 'Balancer Maxi Addressbook and Balancer Permissions helper'

Expand Down

0 comments on commit 5b7ee4b

Please sign in to comment.