Skip to content

Commit 404eb02

Browse files
committed
First light on Invoice PDFs; formatting incorrect
1 parent 2818a34 commit 404eb02

File tree

12 files changed

+541
-84
lines changed

12 files changed

+541
-84
lines changed

requirements-invoice.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
eth-account >=0.7.0,<0.8
1+
eth-account >=0.8.0,<0.9
22
py-solc-x >=1.1.1,<1.2
33
pycryptodome >=3.16, <4
44
requests >=2.20, <3
5-
tabulate >=0.9.1,<1
6-
crypto-licensing >=3.0.3
5+
# Update to 0.9.1 w/ type deduction w/ missing/empty support
6+
#tabulate >=0.9.1,<1
7+
git+https://github.com/pjkundert/python-tabulate@feature-empties#egg=tabulate
78
dkimpy[ed25519] >=1.0.5,<2
89

910
# These versions are very brittle; must be upgraded in lock-step (see web3.py/setup.py)
10-
web3[tester] ==6.0.0b8
11-
eth-tester[py-evm] ==v0.7.0-beta.1
11+
web3[tester] ==6.0.0b9
12+
eth-tester[py-evm] ==v0.8.0-b.3

requirements-wallet.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
eth-account >=0.7.0,<0.8
1+
eth-account >=0.8.0,<0.9

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
base58 >=2.0.1,<3
22
chacha20poly1305 >=0.0.3
33
click >=8.1.3,<9
4+
crypto-licensing >=3.0.3,<4
45
cx_Freeze >=6.12 ; sys_platform == "win32"
56
fpdf2 >=2.5.7,<3
67
hdwallet >=2.2.1,<3

slip39/defaults.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@
8989
Photo = (int( 4 * MM_IN ), int( 6 * MM_IN )),
9090
)
9191

92+
ORIENTATION = 'portrait'
93+
9294
# The available GUI controls Layout Options
9395
LAYOUT = 'Backup'
9496
LAYOUT_OPTIONS = [
@@ -176,6 +178,7 @@
176178
# current prices for cryptocurrencies -- if you have access to an Ethereum blockchain (either
177179
# locally or via an HTTPS API like Alchemy), then we can securely and reliably get current prices.
178180
# To avoid conflicts, by convention we upper-case symbols, lower-case full names.
181+
INVOICE_ROWS = 15
179182
INVOICE_CURRENCY = "USD"
180183
INVOICE_PROXIES = {
181184
"USD": "USDC",
@@ -185,3 +188,7 @@
185188
"BTC": "WBTC",
186189
"bitcoin": "WBTC",
187190
}
191+
192+
# Invoice times; very explicit about timezones, b/c short zone names are non-deterministic
193+
INVOICE_DUE = dict( months=1 ) # Default terms are Net 1 month (~30 days)
194+
INVOICE_STRFTIME = "%c %z %Z" # Eg. "Wed Aug 16 21:30:00 1988 +0000 UTC"

0 commit comments

Comments
 (0)